跳到主要内容

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 (not currently supported)
scene_typeCurrent recognition sceneint0:GeneralDefault pass 0
target_type_listCurrent user-selected detection type list, pass empty list to indicate all supported detection types in current recognition scenelist<int>See "Target Recognition Types" definition belowCan pass NULL

Example**:**

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: target_detect_open

ColumnNameTypeconstraintDescription
resultWhether AI recognition is enabledint0 success, non-0 failure

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
resultDisable AI recognition operation resultint0 success, non-0 failure

Status

Target Recognition Result Report

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 and longitudeGlobalPos
cameraCamera parametersCameraBean
obj_cntNumber of detected targetsint
objsDetection contentList<ObjCnts>

ObjCnts

ColumnNameTypeconstraintDescription
tracker_idDetection target IDString
cls_idDetection target typeint
bboxTarget detection boxBBox
posTarget latitude and longitudeGlobalPos
picFirst frame image pathString(May change, base station and UAV currently cannot get screenshots)
timestamp

BBox

ColumnNameTypeconstraintDescription
xTarget X coordinate in screenfloatProportion of screen
yTarget Y coordinate in screenfloatProportion of screen
wTarget width in screenfloatProportion of screen
hTarget height in screenfloatProportion of screen

CameraBean

ColumnNameTypeconstraintDescription
rollGimbal roll anglefloat
pitchGimbal pitch anglefloat
yawGimbal rotation angle (horizontal)float
longitudeUAV longitudefloat
latitudeUAV latitudefloat
heightUAV relative altitudefloat
fovField of view angleflaot[]
resolutionOriginal image resolution`int[]
focal_typeFocal length typeString

GlobalPos

ColumnNameTypeconstraintDescription
latitudeLatitudefloat
longitudeLongitudefloat
altitudeElevation altitudefloat

Target** Types:**

Target Type IDTarget Name
0Background
1Animal
2Boat
3Car
4Pedestrian
5Cyclist
6Large vehicle
34UAV
35Smoke
36Fire
99No target detected