impulse_input_block module#

class edgeimpulse_api.models.impulse_input_block.ImpulseInputBlock(
*,
id: ConstrainedIntValue,
type: StrictStr,
name: StrictStr,
title: StrictStr,
windowSizeMs: StrictInt | None = None,
windowIncreaseMs: StrictInt | None = None,
frequencyHz: float | None = None,
classificationWindowIncreaseMs: StrictInt | None = None,
padZeros: StrictBool | None = None,
imageWidth: StrictInt | None = None,
imageHeight: StrictInt | None = None,
resizeMode: StrictStr | None = None,
resizeMethod: StrictStr | None = None,
cropAnchor: StrictStr | None = None,
primaryVersion: StrictBool,
baseBlockId: StrictInt | None = None,
tunerBaseBlockId: StrictInt | None = None,
tunerTemplateId: StrictInt | None = None,
tunerPrimary: StrictBool | None = None,
clonedFromBlockId: StrictInt | None = None,
mutated: StrictBool | None = None,
enabled: StrictBool | None = None,
db: StrictBool | None = None,
description: StrictStr | None = None,
createdBy: StrictStr | None = None,
createdAt: datetime | None = None,
)[source]#

Bases: BaseModel

class Config[source]#

Bases: object

allow_population_by_field_name = True#
validate_assignment = False#
base_block_id: StrictInt | None#
classification_window_increase_ms: StrictInt | None#
cloned_from_block_id: StrictInt | None#
created_at: datetime | None#
created_by: StrictStr | None#
crop_anchor: StrictStr | None#
classmethod crop_anchor_validate_enum(v)[source]#
db: StrictBool | None#
description: StrictStr | None#
enabled: StrictBool | None#
frequency_hz: float | None#
classmethod from_dict(
obj: dict,
) ImpulseInputBlock[source]#

Create an instance of ImpulseInputBlock from a dict

classmethod from_json(
json_str: str,
) ImpulseInputBlock[source]#

Create an instance of ImpulseInputBlock from a JSON string

id: ConstrainedIntValue#
image_height: StrictInt | None#
image_width: StrictInt | None#
mutated: StrictBool | None#
name: StrictStr#
pad_zeros: StrictBool | None#
primary_version: StrictBool#
resize_method: StrictStr | None#
classmethod resize_method_validate_enum(v)[source]#
resize_mode: StrictStr | None#
classmethod resize_mode_validate_enum(v)[source]#
title: StrictStr#
to_dict()[source]#

Returns the dictionary representation of the model using alias

to_json() str[source]#

Returns the JSON representation of the model using alias

to_str() str[source]#

Returns the string representation of the model using alias

tuner_base_block_id: StrictInt | None#
tuner_primary: StrictBool | None#
tuner_template_id: StrictInt | None#
type: StrictStr#
classmethod type_validate_enum(v)[source]#
window_increase_ms: StrictInt | None#
window_size_ms: StrictInt | None#