image module
ImageImpulseRunner
class edge_impulse_linux.image.ImageImpulseRunner(
model_path: str
)
Parameters
Bases
edge_impulse_linux.runner.ImpulseRunner
Methods
classifier
edge_impulse_linux.image.classifier(
self,
videoDeviceId=0
)
Parameters
classify
edge_impulse_linux.image.classify(
self,
data
)
Parameters
get_features_from_image
edge_impulse_linux.image.get_features_from_image(
self,
img,
crop_direction_x='center',
crop_direction_y='center'
)
Parameters
crop_direction_x='center'
crop_direction_y='center'
get_features_from_image_auto_studio_setings
edge_impulse_linux.image.get_features_from_image_auto_studio_setings(
self,
img
)
Parameters
get_frames
edge_impulse_linux.image.get_frames(
self,
videoDeviceId=0
)
Parameters
init
edge_impulse_linux.image.init(
self,
debug=False
)
Parameters
get_features_from_image_with_studio_mode
edge_impulse_linux.image.get_features_from_image_with_studio_mode(
img,
mode,
output_width,
output_height,
is_grayscale
)
Extract features from an image using different resizing modes suitable for Edge Impulse Studio.
Parameters
resize_with_letterbox
edge_impulse_linux.image.resize_with_letterbox(
image,
target_width,
target_height
)
Resize an image while maintaining aspect ratio using letterboxing.
Parameters