cvkit package

Subpackages

Submodules

cvkit.utils module

MAGIC_NUMBER = -4668

Magic number used to represent missing data

Module contents

class MetaProcessor(plugin_name, processor_type, processor_class)[source]

Bases: object

It contains Metadata for the Processor class. It contains the Processor class, the name of the package it belongs, and the type of the processor.

Parameters:
  • plugin_name (str) – Name of the plugin to which the processor belongs.

  • processor_type (str) – Indicates whether it is “generative”,”filter”, or “util”

  • processor_class (:py:class`~cvkit.pose_estimation.processors.processor_interface.Processor`) – Reference to the Processor class

get_processor_class(processor_id)[source]

Get Processor class from the Processor ID.

Parameters:

processor_id (str) – Unique identifier for a Processor

Returns:

Processor class

Return type:

class

register_processor(processor: MetaProcessor)[source]

Registers discovered Processor.

Parameters:

processor (MetaProcessor) – The metadata of the plugin that is to be registered.

verify_installed_processor(processor_id)[source]

Checks whether the processor id was registered.

Parameters:

processor_id (str) – The unique identifier of the Processor.

Returns:

Whether the given Processor was registered.

Return type:

bool