Object Detection¶
-
SDK.
detect_objects
(self: tfsdk.SDK) → List[tfsdk.BoundingBox]¶ Detect people and objects in the image.
- Returns
The
ERRORCODE
and a list oftfsdk.BoundingBox
representing the detected objects, in that order.
-
SDK.
get_object_label_string
(self: tfsdk.SDK, object_label: tfsdk.OBJECTLABEL) → str¶ Converts an object label to a string.
- Parameters
object_label – the
tfsdk.BounxingBox.label
.- Returns
The string representation of the
tfsdk.BoundingBox.label
.
-
class
tfsdk.
BoundingBox
¶ -
property
height
¶ The height of the bounding box
-
property
label
¶ The object class as a label
-
property
probability
¶ The detection’s confidence probability
-
property
width
¶ The width of the bounding box
-
property
-
class
tfsdk.
OBJECTLABEL
¶ Members:
background
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
pottedplant
sheep
sofa
train
tvmonitor