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
manager
: LicenseManager instance.
-
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
- 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.
-
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¶