跳到主要内容

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)Lens type used for AI recognition
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

Select Tracking Target Information

The tracking target function allows the aircraft to adjust its body to face the target, making that target point the center of the camera's view.

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: select_tracking_target

Data:

ColumnNameTypeconstraintDescription
lockedWhether the relative position of the nose and gimbal is lockedboolfalse: only the gimbal turns, the body does not turn; true: locks the nose, the gimbal and body turn togetherWhen locked, the gimbal and body rotate together
start_xStarting point x-coordinatedoubleStarting X coordinate of the target bounding box
start_yStarting point y-coordinatedoubleStarting Y coordinate of the target bounding box
widthWidth of the target pointdoubleWidth of the target bounding box
heightHeight of the target pointdoubleHeight of the target bounding box
tracker_idDetection target IDintTarget tracking ID

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"start_x": 0.5,
"start_y": 0.5,
"locked": true,
"width": 0.8,
"height": 0.3,
"tracker_id": 123456
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "select_tracking_target"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: select_tracking_target

Data:

ColumnNameTypeconstraintDescription
resultReturn codeintNon-zero indicates an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "select_tracking_target"
}

Exit Target Lock

Exiting the target lock will continue target detection; the target will not stop being detected unless target recognition is turned off.

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: target_tracking_close

Data:

Example:

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: target_tracking_close

ColumnNameTypeconstraintDescription
resultResult of closing AI recognition operationint0 for success; non-zero for failure

Intelligent Lock Enter

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: intelligent_lock_enter

Data:

ColumnNameTypeconstraintDescription
payload_indexCamera payload indexstringCamera payload enumeration index

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: intelligent_lock_enter

Data:

ColumnNameTypeconstraintDescription
resultReturn codeint0: Success, Non-zero: Failure

Intelligent Lock Exit

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: intelligent_lock_exit

Data:

ColumnNameTypeconstraintDescription
payload_indexCamera payload indexstringCamera payload enumeration index

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: intelligent_lock_exit

Data:

ColumnNameTypeconstraintDescription
resultReturn codeint0: Success, Non-zero: Failure

Select Illegal Parking Target

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: select_illegal_parking_target

Data:

ColumnNameTypeconstraintDescription
payload_indexCamera payload indexstringCamera payload enumeration index
xScreen X coordinatefloat0~1X coordinate ratio of the target on screen
yScreen Y coordinatefloat0~1Y coordinate ratio of the target on screen

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: select_illegal_parking_target

Data:

ColumnNameTypeconstraintDescription
resultReturn codeint0: Success, Non-zero: Failure

AI Illegal Parking Data Service

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: aiservice_illegal_data

Data:

ColumnNameTypeconstraintDescription
payload_indexCamera payload indexstringCamera payload enumeration index
actionAction typeintIllegal parking data operation type

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: aiservice_illegal_data

Data:

ColumnNameTypeconstraintDescription
resultReturn codeint0: 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
timeTimestamplongDetection timestamp
uav_idUAV IDStringUAV device identifier
camera_idCamera IDint0: visible light, 1: infraredCamera ID used for detection
global_posUAV Latitude/LongitudeGlobalPosCurrent latitude and longitude of the aircraft
cameraCamera ParametersCameraBeanCamera parameter information
obj_cntDetected Target CountintTotal number of detected targets
objsDetected ContentsList<ObjCnts>Detected target list

ObjCnts

ColumnNameTypeconstraintDescription
tracker_idDetected Target IDStringTarget tracking ID
cls_idDetected Target TypeintTarget classification ID
bboxTarget Detection BoxBBoxTarget detection bounding box coordinates
posTarget Latitude/LongitudeGlobalPosTarget latitude and longitude
picFirst Frame Image PathString(This may change as the base station and UAV currently cannot capture screenshots)
timestampDetection 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 AnglefloatGimbal roll angle
pitchGimbal Pitch AnglefloatGimbal pitch angle
yawGimbal Yaw Angle (Horizontal)floatGimbal yaw angle
longitudeUAV LongitudefloatUAV longitude
latitudeUAV LatitudefloatUAV latitude
heightUAV Relative HeightfloatRelative altitude of the aircraft
fovField of View (FOV)flaot[]Camera field of view
resolutionOriginal Image Resolution`int[]Image resolution
focal_typeFocal TypeStringLens focal type

GlobalPos

ColumnNameTypeconstraintDescription
latitudeLatitudefloatAngle value. Negative for south, positive for north, accurate to 6 decimal places.
longitudeLongitudefloatAngle value. Positive for east, negative for west, accurate to 6 decimal places.
altitudeAltitudefloatTarget point altitude (ellipsoid height)

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

Event

AI Detection Shooting Result Reporting

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: AI_detect_shoot_notify

Data:

ColumnNameTypeconstraintDescription
FileFiletextFile information
pathBusiness path of the filetextBusiness storage path of the file
extFile extension contentstructExtended information of the file
»flight_idTask IDtextUnique identifier for the flight task
»uav_idDrone SNtextDrone SN
»waypoint_idWaypoint IDtextUnique identifier for the waypoint
»drone_model_keyDrone product enumeration valuetextProduct enumeration value of the drone model
»payload_model_keyPayload product enumeration valuetexttProduct enumeration value of the payload model
»is_originalIs it the original imagebool:"No", "1":"Yes"Whether the image is the original
metadataMedia metadatastructMetadata of the media file
»gimbal_yaw_degreeGimbal yaw anglefloatGimbal yaw angle in degrees
»absolute_altitudeAbsolute shooting heightfloatAbsolute altitude when shooting
»relative_altitudeRelative shooting heightfloatRelative altitude when shooting
»create_timeMedia shooting timedate"format":"iso8601"Creation time of the media file
»shoot_positionShooting positionstructGPS position when the photo was taken
»»latShooting position latitudefloatLatitude of the shooting position
»»lngShooting position longitudefloatLongitude of the shooting position
obj_numNumber of detected targets in a frameintTotal number of detected targets in the current frame
ObjInfoDetected target arraystructArray of detected target information
»tracker_idDetected target IDStringUnique tracking ID of the detected target
»cls_idDetected target typeintClassification type of the detected target
»timestampDetection timestamp
»object_positionTarget latitude and longitudeLatitude and longitude of the target
»»object_latLatitudeLatitude of the detected target
»»object_lngLongitudeLongitude of the detected target
»»object_altitudeAltitudefloatAltitude of the detected target
»bboxTarget detection boxBounding box of the detected target
»»xTarget X coordinate on screenfloatX coordinate ratio on screen
»»yTarget Y coordinate on screenfloatY coordinate ratio on screen
»»wTarget width on screenfloatWidth ratio on screen
»»hTarget height on screenfloatHeight ratio on screen

Evidence Collection Status Reporting

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: evidence_collection_status

Data:

ColumnNameTypeconstraintDescription
timestampTimestampintUnit: milliseconds
indexTarget indexintIndex number of the current target vehicle
car_sumTotal number of vehiclesintTotal count of detected vehicles
flight_idTask namestringTemporarily stores mission_id
statusTask statusint1: Paused, 2: Executing, 3: Task completed, 4: Task stopped abnormally, 5: Single vehicle collection completedCurrent task execution status
stop_reasonAbnormal stop reasonintReason for task abnormal stop
posTarget latitude/longitudeGlobalPosLatitude and longitude of the target vehicle
car_colorVehicle colorstringColor of the detected vehicle
plate_colorLicense plate colorstringRepresents license plate type, requires mapping
car_numLicense plate numberstringLicense plate number of the vehicle
car_brandVehicle brandstringBrand of the detected vehicle
car_idVehicle IDintUnique identifier of the vehicle
is_driver_seat_occupiedIs driver seat occupiedboolWhether the driver seat is occupied
photo_path_topTop photo pathstringStorage path of the top-view photo
photo_path_frontFront photo pathstringStorage path of the front-view photo
photo_path_numLicense plate photo pathstringStorage path of the license plate photo

GlobalPos

ColumnNameTypeconstraintDescription
latitudeLatitudedoublemax 90, min -90Angle value. Negative for south, positive for north, accurate to 6 decimal places.
longitudeLongitudedoublemax 180, min -180Angle value. Positive for east, negative for west, accurate to 6 decimal places.
altitudeAltitudefloatTarget point altitude (ellipsoid height)

Illegal Parking Detection Info Reporting

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: aiservice_illegal_parking_info

Data:

ColumnNameTypeconstraintDescription
timestampTimestamplongFrame acquisition timestamp
frame_idFrame IDintUnique identifier for the video frame
flight_idTask IDstringUnique identifier for the flight task
resolution_widthImage widthintImage resolution width
resolution_heightImage heightintImage resolution height
lens_idLens IDintLens ID corresponding to the published result
indexVehicle indexintIndex number of the vehicle
car_colorVehicle colorstringColor of the vehicle
scoreConfidenceint[0,100]Detection confidence score
car_latLatitudedoubleLatitude of the vehicle
car_lonLongitudedoubleLongitude of the vehicle
car_altAltitudedoubleAltitude of the vehicle
car_center_wTarget center width ratioint[0,10000]Ratio of the target center point in the width direction
car_center_hTarget center height ratioint[0,10000]Ratio of the target center point in the height direction
car_grid_wTarget box width ratioint[0,10000]Width percentage of the target box
car_grid_hTarget box height ratioint[0,10000]Height percentage of the target box