跳到主要内容

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)AI lens type
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
timeTimestamplongReport timestamp
uav_idUAV IDStringUAV unique identifier
camera_idCamera IDint0: visible light, 1: infraredCamera unique identifier
global_posUAV Latitude/LongitudeGlobalPosUAV global position
cameraCamera ParametersCameraBeanShooting camera parameters
obj_cntDetected Target CountintNumber of detected targets
objsDetected ContentsList<ObjCnts>List of detected target objects

ObjCnts

ColumnNameTypeconstraintDescription
tracker_idDetected Target IDStringTarget tracking ID
cls_idDetected Target TypeintTarget classification ID, see Target Types table below
bboxTarget Detection BoxBBoxDetection box coordinates of target in frame
posTarget Latitude/LongitudeGlobalPosTarget latitude/longitude position on map
picFirst Frame Image PathString(This may change as the base station and UAV currently cannot capture screenshots)
timestampTimestamp when this target was detected

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 AnglefloatCamera attitude angle (roll)
pitchGimbal Pitch AnglefloatCamera attitude angle (pitch)
yawGimbal Yaw Angle (Horizontal)floatCamera attitude angle (yaw)
longitudeUAV LongitudefloatUAV longitude when capturing
latitudeUAV LatitudefloatUAV latitude when capturing
heightUAV Relative HeightfloatUAV height relative to takeoff point when capturing
fovField of View (FOV)flaot[]Camera field of view (degrees)
resolutionOriginal Image Resolution`int[]Original image resolution [width, height]
focal_typeFocal TypeStringCamera focal type (e.g. wide-angle/zoom)

GlobalPos

ColumnNameTypeconstraintDescription
latitudeLatitudefloatLatitude coordinate
longitudeLongitudefloatLongitude coordinate
altitudeAltitudefloatAltitude in meters

Target Types

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