BaseTextDetector

class BaseTextDetector[source]

Bases: ABC

Define the common interface for text detection backends.

abstractmethod read_image(image: ndarray) list[QuadPoints][source]

Detect text coordinates in an image.

Parameters:

image (numpy.ndarray) – Image data to process.

Returns:

Detected text coordinates.

Return type:

list[QuadPoints]