Text Recognition package¶
Submodules¶
text_recognition_engine module¶
- class dronebuddylib.atoms.textrecognition.text_recognition_engine.TextRecognitionEngine(algorithm: TextRecognitionAlgorithm, config: EngineConfigurations)[source]¶
Bases:
objectThe TextRecognitionEngine class handles text recognition operations.
google_text_recognition_impl module¶
- class dronebuddylib.atoms.textrecognition.google_text_recognition_impl.GoogleTextRecognitionImpl(engine_configurations: EngineConfigurations)[source]¶
Bases:
ITextRecognitionImplementation of the IFaceRecognition interface using face_recognition library.
- recognize_text(image_path) TextRecognitionResult[source]¶
Detects text within an image located at the specified path.
This method reads the image file, creates an Image object, and uses the Google Cloud Vision API’s text detection capabilities to find text within the image.
- Parameters:
image_path (str) – The file path of the image to be processed.
- Returns:
An object containing the response from the Google Cloud Vision API. This object includes text annotations for detected text in the image.
- Raises:
Google API client exceptions if the request fails. –
i_text_recognition module¶
- class dronebuddylib.atoms.textrecognition.i_text_recognition.ITextRecognition(engine_configurations: EngineConfigurations)[source]¶
Bases:
IDBLFunctionInterface for face recognition functionality.
- recognize_face()¶
Recognizes faces in an image.
- remember_face()¶
Associates a name with a face in an image.