image module

ImageImpulseRunner

class edge_impulse_linux.image.ImageImpulseRunner(
		model_path: str
)

Parameters

  • model_path: str

Bases

  • edge_impulse_linux.runner.ImpulseRunner

Methods

classifier

edge_impulse_linux.image.classifier(
		self,
		videoDeviceId=0
)

Parameters

  • self

  • videoDeviceId=0

classify

edge_impulse_linux.image.classify(
		self,
		data
)

Parameters

  • self

  • data

get_features_from_image

edge_impulse_linux.image.get_features_from_image(
		self,
		img,
		crop_direction_x='center',
		crop_direction_y='center'
)

Parameters

  • self

  • img

  • 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

  • self

  • img

get_frames

edge_impulse_linux.image.get_frames(
		self,
		videoDeviceId=0
)

Parameters

  • self

  • videoDeviceId=0

init

edge_impulse_linux.image.init(
		self,
		debug=False
)

Parameters

  • self

  • debug=False

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

  • img

  • mode

  • output_width

  • output_height

  • is_grayscale

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

  • image

  • target_width

  • target_height

Last updated