跳到主要内容

Target Detection

services

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 (not supported at the moment)
scene_typeCurrent recognition sceneint0: GeneralDefault to pass 0
target_type_listList of detection types currently selected by the user. An empty list indicates all supported detection types under the current recognition scene for recognitionlist<int>Refer to the definition of "Target Recognition Type" belowNULL can be passed

Example**:**

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: target_detect_open

ColumnNameTypeconstraintDescription
resultIs AI recognition enabledint0 for success, non-zero for failure

Target Recognition Result Reporting

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

**Direction:**up

Method: target_detect_result_report

Data:

ColumnNameTypeconstraintDescription
timeTimestamplong
uav_idDrone IDString
camera_idCamera IDint0: Visible Light, 1: Infrared
global_posAircraft Latitude and LongitudeGlobalPos
cameraCamera ParametersCameraBean
obj_cntNumber of Detected Targetsint
objsDetection ContentList<ObjCnts>

ObjCnts

ColumnNameTypeconstraintDescription
tracker_idDetected Target IDString
cls_idDetected Target Typeint
bboxTarget Detection BoxBBox
posTarget Latitude and LongitudeGlobalPos
picPath to the First Frame ImageString(May be subject to change, base slot and aircraft currently cannot obtain screenshots)

BBox

ColumnNameTypeconstraintDescription
xTarget's X-coordinate on the screenfloatProportion of the screen
yTarget's Y-coordinate on the screenfloatProportion of the screen
wTarget's width on the screenfloatProportion of the screen
hTarget's height on the screenfloatProportion of the screen

CameraBean

ColumnNameTypeconstraintDescription
rollGimbal Roll Anglefloat
pitchGimbal Pitch Anglefloat
yawGimbal Yaw Angle (Horizontal)float
longitudeDrone Longitudefloat
latitudeDrone Latitudefloat
heightDrone Relative Altitudefloat
fovField of View Angleflaot[]
resolutionOriginal Image Resolutionint[]
focal_typeFocal Length TypeString

GlobalPos

ColumnNameTypeconstraintDescription
latitudeLatitudefloat
longitudeLongitudefloat
altitudeAltitudefloat

Target**Type:**

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

Disable 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
resultResult of Disabling AI Recognitionint0 for success, non-zero for failure