darcyai.perceptor.cpu.cpu_perceptor_base
CpuPerceptorBase Objects
class CpuPerceptorBase(Perceptor)
Base class for all CPU Perceptors.
load
def load() -> None
Loads the perceptor.
read_label_file
@staticmethod
def read_label_file(filename: str,
                    has_ids: bool = True,
                    encoding: str = "UTF-8") -> dict
Reads the labels file.
Arguments
- filename (
str): The path to the labels file. - has_ids (
bool): Whether the labels file contains IDs. - encoding (
str): The encoding of the labels file. 
Returns
dict: A dictionary containing the labels.