ImageProcessor class

A class that provides image processing capabilities using Python.

Constructors

ImageProcessor.new({PythonBridge? pythonBridge})
Creates a new ImageProcessor instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

detectObjects(String imagePath, {double confidenceThreshold = 0.5}) Future<PythonResult>
Detects objects in an image using a pre-trained model.
extractTextFromImage(String imagePath) Future<PythonResult>
Extracts text from an image using OCR (Optical Character Recognition).
generateImageProcessingCode({required String inputPath, required String outputPath, required List<ImageOperation> operations}) String
Generates Python code for image processing based on the specified operations. This method is exposed for UI display purposes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processImage(String imagePath, List<ImageOperation> operations, {bool saveToAssets = false}) Future<PythonResult>
Processes an image using Python's OpenCV library.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited