跳到主要内容

Target Recognition

Service

Enable Target Recognition

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: target_detect_open

Data:

ColumnNameTypeconstraintDescription
ai_lens_typeDetection lensint0: Visible light, 1: Infrared, 2: Night vision (currently unsupported)
scene_typeCurrent recognition sceneint0: GeneralDefault value is 0
target_type_listList of selected detection types by the user; an empty list indicates recognition of all supported detection types in the current scenelist<int>See definition of "Target recognition types" belowNULL is acceptable

Example**:**

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: target_detect_open

ColumnNameTypeconstraintDescription
resultIs AI recognition enabledint0: Success, Non-zero: Failure

Turn Off Target Recognition

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: target_detect_close

Data:

Example**:**

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: target_detect_close

ColumnNameTypeconstraintDescription
resultDisable AI recognition operation resultint0: Success, Non-zero: Failure

Status

Target Recognition Result Reporting

Topic: topic: thing/product/{gateway_sn}/state

Direction: up

Method: target_detect_result_report

Data:

ColumnNameTypeconstraintDescription
timeTimestamplong
uav_idUAV IDString
camera_idCamera IDint0: visible light, 1: infrared
global_posUAV Latitude/LongitudeGlobalPos
cameraCamera ParametersCameraBean
obj_cntDetected Target Countint
objsDetected ContentsList<ObjCnts>

ObjCnts

ColumnNameTypeconstraintDescription
tracker_idDetected Target IDString
cls_idDetected Target Typeint
bboxTarget Detection BoxBBox
posTarget Latitude/LongitudeGlobalPos
picFirst Frame Image PathString(This may change as the base station and UAV currently cannot capture screenshots)
timestamp

BBox

ColumnNameTypeconstraintDescription
xTarget X CoordinatefloatProportion of the screen
yTarget Y CoordinatefloatProportion of the screen
wTarget WidthfloatProportion of the screen
hTarget HeightfloatProportion of the screen

CameraBean

ColumnNameTypeconstraintDescription
rollGimbal Roll Anglefloat
pitchGimbal Pitch Anglefloat
yawGimbal Yaw Angle (Horizontal)float
longitudeUAV Longitudefloat
latitudeUAV Latitudefloat
heightUAV Relative Heightfloat
fovField of View (FOV)flaot[]
resolutionOriginal Image Resolution`int[]
focal_typeFocal TypeString

GlobalPos

ColumnNameTypeconstraintDescription
latitudeLatitudefloat
longitudeLongitudefloat
altitudeAltitudefloat

Target Types

Target Type IDTarget Name
0Background
1Animal
2Boat
3Car
4Pedestrian
5Cyclist
6Large Vehicle
34Drone
35Smoke
36Fire
99No Target Detected