sketchkit.datasets.differsketching

class sketchkit.datasets.differsketching.DifferSketching(root: str | Path | None = None, load_all: bool = False, cislab_source: bool = False, skip_integrity_check: bool = False)[source]

Bases: SketchDataset

The DifferSketching dataset contains vector sketches with pressure and timing data.

This dataset includes multiple drawing types (original, global, stroke, reg) across various categories, with each sketch containing stroke sequences with pressure and timing information.

md5_sum

MD5 checksum for dataset integrity verification.

Type:

str

extra_repr() str[source]

Return extra information for the string representation.

md5_sum = 'ab0d9202dbaca58339b0b8ae6c1be0f3'
metadata = ['id', 'file_path', 'category', 'type']
sketchkit.datasets.differsketching.load_differsketching_json(json_path: str) Sketch[source]

Load a JSON sketch and convert it to a Sketch instance.

Parameters:

json_path (str) – Path to a DifferSketching JSON file.

Returns:

A Sketch object representing the vector sketch.

Return type:

Sketch