handwriting_sample.writer package

Submodules

handwriting_sample.writer.exceptions module

handwriting_sample.writer.interface module

class handwriting_sample.writer.interface.HandwritingSampleWriter[source]

Bases: LoggableObject

Class implementing handwriting data writer

write_to_json(sample, save_path, file_name=None, store_original_data=False, verbose=False)[source]

Stores HandwritingSample data to a JSON file.

Parameters
  • sample (HandwritingSample) – instance of handwriting sample

  • save_path (str) – save path

  • file_name (str, optional) – file name (optional if meta data), defaults to None

  • store_original_data (bool, optional) – store original data, defaults to False

  • verbose (bool, optional) – verbosity of the logging, defaults to False

Returns

True if stored, False otherwise

Return type

bool

write_to_svc(sample, save_path, file_name=None, store_original_data=False, verbose=False)[source]

Stores HandwritingSample data to an SVC file.

Parameters
  • sample (HandwritingSample) – instance of handwriting sample

  • save_path (str) – save path

  • file_name (str, optional) – file name (optional if meta data), defaults to None

  • store_original_data (bool, optional) – store original data, defaults to False

  • verbose (bool, optional) – verbosity of the logging, defaults to False

Returns

True if stored, False otherwise

Return type

bool

handwriting_sample.writer.writers module

class handwriting_sample.writer.writers.JSONFileWriter[source]

Bases: LoggableObject

Class implementing JSON file writer

classmethod write(path, data, meta=None, verbose=False)[source]

Writes the handwriting data and meta data to a JSON file

class handwriting_sample.writer.writers.SVCFileWriter[source]

Bases: LoggableObject

Class implementing SVC file writer

classmethod write(path, data, meta=None, verbose=False)[source]

Writes the handwriting data and meta data to an SVC file

Module contents