Python Vehicle Detector

oneML model to detect vehicles in images, returning their confident scores, and bounding boxes.

oneML.alprAPI.VehicleDetector : public object

The oneML VehicleDetector API object.

Class to create and use oneML vehicle detector model.

Public Functions

__init__(self, manager)

Construct a VehicleDetector object.

Parameters

detect_batch(self, imgvec_)

Detect vehicles in images.

Return

VehicleDetectorResultVector: list of VehicleDetectorResult objects

Parameters
  • imgvec_: numpy array with shape (batch, height, width, channel)

detect(self, imgvec_)

Detect vehicles in an image.

Return

VehicleDetectorResult: VehicleDetectorResult object

Parameters
  • imgvec_: numpy array with shape (height, width, channel)

oneML.alprAPI.VehicleDetectorResult : public object

The result object for oneML VehicleDetector API.

Helper class to access all the results from
an API call.

Public Functions

get_scores(self)

Get result scores.

Return

FloatVector: list of float scores

get_bboxes(self)

Get result bounding box.

Return

BBoxVector: list of BBox objects

get_size(self)

Get number of vehicles detected.

Return

int: number of vehicles detected

get_return_status(self)

Get return status.

Return

IntVector: list of in values of return status

oneML.alprAPI.VehicleDetectorResultVector : public object
List of VehicleDetectorResult objects.
oneML.alprAPI.VehicleDetectorStatus_Empty = _oneMLalprPython.VehicleDetectorStatus_Empty
oneML.alprAPI.VehicleDetectorStatus_Success = _oneMLalprPython.VehicleDetectorStatus_Success
oneML.alprAPI.VehicleDetectorStatus_Fail = _oneMLalprPython.VehicleDetectorStatus_Fail