跳到主要内容

Target Recognition

Interface Changes​

✓ available, — not available. Interfaces not listed are identical on EVO Nest and Autel Nest2.

MethodFunctionEVO NestAutel Nest2Notes
AI_security_setAI Arming Settings—✓
area_searchArea Search—✓
start_trackStart Tracking—✓
active_zoom_controlTarget Lock Auto Zoom—✓
aiservice_illegal_dataAI Illegal Parking Data Service✓—

Service

Target tracking flow: intelligent_lock_enter → select_tracking_target → start_track.

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 visionLens 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

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-zero: Failure

Enter Intelligent Tracking​

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: intelligent_lock_enter

Data:

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

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: intelligent_lock_enter

Data:

ColumnNameTypeconstraintDescription
resultReturn codeint0: Success, Non-zero: Failure

Exit Intelligent Tracking​

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: intelligent_lock_exit

Data:

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: intelligent_lock_exit

Data:

ColumnNameTypeconstraintDescription
resultReturn codeint0: Success, Non-zero: Failure

Select Locked 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
camera_idLens IDint0: Visible light, 1: InfraredLens used for locking; if omitted, the lens selected when entering intelligent tracking is reused
tracker_idDetection target IDintTarget tracking ID
start_xStarting point x-coordinatedouble0-1Starting X coordinate of the target bounding box
start_yStarting point y-coordinatedouble0-1Starting Y coordinate of the target bounding box
widthWidth of the target bounding boxdouble0-10 indicates a click selection
heightHeight of the target bounding boxdouble0-10 indicates a click selection

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_id": 0,
"tracker_id": 6,
"start_x": 0.24,
"start_y": 0.64,
"width": 0.0,
"height": 0.0
},
"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

Start Tracking​

Sent after the target is locked by select_tracking_target; the aircraft must already be airborne. The six target box fields (camera_id, tracker_id, start_x, start_y, width, height) must all be provided or all omitted; when all are omitted, the locked target is tracked.

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: start_track

Data:

ColumnNameTypeconstraintDescription
track_typeTracking modeint1: Simple tracking, 3: Orbit trackingRequired
camera_idLens IDint0: Visible light, 1: InfraredLens used for tracking
tracker_idDetection target IDintTarget tracking ID
start_xStarting point x-coordinatefloat0~1Starting X coordinate of the target bounding box
start_yStarting point y-coordinatefloat0~1Starting Y coordinate of the target bounding box
widthWidth of the target bounding boxfloat0~10 indicates a point selection
heightHeight of the target bounding boxfloat0~10 indicates a point selection
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 togetherOptional

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"track_type": 3
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "start_track"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: start_track

Data:

ColumnNameTypeconstraintDescription
resultReturn codeint0: Success, Non-zero: Failure

Target Lock Auto Zoom​

Automatically adjusts the zoom ratio to keep the locked target at an appropriate size. The switch state is reported through the aircraft property active_zoom_control.

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: active_zoom_control

Data:

ColumnNameTypeconstraintDescription
enableEnable auto zoomint0: Disable, 1: EnableRequired

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: active_zoom_control

Data:

ColumnNameTypeconstraintDescription
resultReturn codeint0: Success, Non-zero: Failure

The aircraft flies along a route within the specified polygon area and recognizes targets.

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: area_search

Data:

ColumnNameTypeconstraintDescription
target_point_listSearch area verticesList<Object>At least 3 pointsForms the search polygon
target_typeList of detection typeslist<int>See definition of "Target Types" belowOptional
is_continueContinue searchint0: No, 1: YesDefault: 0
is_swingSwing searchint0: No, 1: YesDefault: 0
flight_idTask IDstringOptional
timeout_secTimeoutintUnit: second, default: 600

target_point_list

ColumnNameTypeconstraintDescription
latitudeLatitudedoubleUnit: degree
longitudeLongitudedoubleUnit: degree
altitudeAltitudedoubleUnit: meter

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: area_search

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
target_idTarget vehicle IDstringOptional
start_xStarting point x-coordinatefloat0-1Starting X coordinate of the target bounding box
start_yStarting point y-coordinatefloat0-1Starting Y coordinate of the target bounding box
widthWidth of the bounding boxfloat0-1, must be greater than 0Required; the request fails when it is 0
heightHeight of the bounding boxfloat0-1, must be greater than 0Required; the request fails when it is 0
vehicle_typeVehicle typeintDefault: 0
license_plateLicense plate numberstringOptional

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: select_illegal_parking_target

Data:

ColumnNameTypeconstraintDescription
resultReturn codeint0: Success, Non-zero: Failure

AI Arming Settings​

Sets the lens, scene, target types and trigger action for security recognition.

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: AI_security_set

Data:

ColumnNameTypeconstraintDescription
enableEnable security recognitionbool1/0 also acceptedDefault: false
ai_lens_typeDetection lensint0: Visible light, 1: Infrared, 2: Night visionDefault: 0
scene_typeRecognition sceneint0: General, 1: Security, 2: Power grid inspectionDefault: 0
target_type_listList of detection typeslist<int>See definition of "Target Types" belowAn empty list indicates all types in the current scene
actionTrigger actionint0: Record and photo, 3: Photo onlyDefault: 0
max_record_timeMaximum recording durationint5-1800Unit: second, default: 60
stateStateint1: EnabledDefault: 1
enable_funcFunction enablementint1: EnabledDefault: 1
actionsAction listList<Object>Pass-through field, optional
propertysProperty listList<Object>Pass-through field, optional

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: AI_security_set

Data:

ColumnNameTypeconstraintDescription
resultReturn codeint0: Success, Non-zero: Failure

Event

Target Recognition Result Report (Deprecated)​

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: target_detect_result_report

Data:

ColumnNameTypeconstraintDescription
device_idDevice IDintReporting device identifier
timestampTimestamplongDetection timestamp, in milliseconds
image_urlDetection frame image URLstringURL of the detection frame image
lens_idLens IDint0: Visible light, 1: InfraredLens used for detection
objectsDetected target arrayList<Object>List of detected targets

Object

ColumnNameTypeconstraintDescription
typeDetected target typeintSee "Target Types" belowTarget classification ID
confidenceConfidencefloat0~1Detection confidence
xTarget X Coordinatefloat0~1Proportion of the screen
yTarget Y Coordinatefloat0~1Proportion of the screen
widthTarget Widthfloat0~1Proportion of the screen
heightTarget Heightfloat0~1Proportion of the screen

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

AI Detection Shooting Result Report​

This interface is deprecated. AI detection shooting results are reported through video stream SEI. For how to parse the SEI and for the field descriptions, see AI Target Recognition.

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: AI_detect_shoot_notify

Data:

ColumnNameTypeconstraintDescription
even_idEvent IDtextUnique identifier of the detection event
file_idFile IDtextFile identifier
pathBusiness path of the filetextBusiness storage path of the file
shooting_typeShooting action typeintType of the shooting action
extFile extension contentstructExtended information of the file
»flight_idTask IDtextUnique identifier for the flight task
»waypoint_idWaypoint IDtextUnique identifier for the waypoint
»drone_model_keyDrone product enumeration valuetextProduct enumeration value of the drone model
»payload_model_keyPayload product enumeration valuetextProduct enumeration value of the payload model
»is_originalIs it the original imageint0: No, 1: YesWhether 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 positionstructPosition when the photo was taken
»»latShooting position latitudedoubleLatitude of the shooting position
»»lngShooting position longitudedoubleLongitude of the shooting position
obj_numNumber of detected targets in a frameintTotal number of detected targets in the current frame
obj_infoDetected target arraystructArray of detected target information
»tracker_idDetected target IDtextUnique tracking ID of the detected target
»cls_idDetected target typeintSee "Target Types"Classification type of the detected target
»timestampTimestamplongDetection timestamp, in milliseconds
»object_positionTarget latitude and longitudestructLatitude and longitude of the target
»»object_latLatitudedoubleLatitude of the detected target
»»object_lngLongitudedoubleLongitude of the detected target
»»object_altitudeAltitudedoubleAltitude of the detected target
»bboxTarget detection boxstructBounding 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 Report​

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: evidence_collection_status

Data:

This method has two message types; the cloud distinguishes them by the keys present in data.

Task progress

ColumnNameTypeconstraintDescription
task_idTask IDstringUnique identifier for the task
statusTask statusint0: Not started, 1: Collecting, 2: Completed, 3: FailedCurrent task status
progressProgressint0~100Collection progress
photo_countPhotos takenintNumber of photos already taken
required_countPhotos requiredintNumber of photos required
target_plateTarget license platestringTarget license plate number
error_msgError messagestringPresent on failure

Single vehicle collection result

ColumnNameTypeconstraintDescription
mission_nameMission namestringName of the mission
mission_idMission IDintIdentifier of the mission
work_modeWork modeintCurrent work mode
statusCollection statusint0: Success, Non-zero: FailureCollection result
failure_reasonFailure reasonintReason code on failure
vehicle_idVehicle IDintIdentifier of the vehicle
posVehicle positionList<int>Position coordinates of the vehicle
car_colorVehicle body colorintColor of the vehicle body
license_plate_colorLicense plate colorintLicense plate type
vehicle_numNumber of vehiclesintCount of vehicles
vehicle_brandVehicle brandintBrand of the vehicle
is_driver_seat_occupiedIs driver seat occupiedint0: No, 1: YesWhether the driver seat is occupied
photo_pathPhoto path listList<string>Storage paths of the captured photos

Illegal Parking Detection Info Report​

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: ai_service_illegal_parking_info

Data:

ColumnNameTypeconstraintDescription
task_idTask IDtextIllegal parking detection task identifier
plate_numberLicense plate numbertext
plate_colorLicense plate colortext
vehicle_typeVehicle typetext
vehicle_colorVehicle colortext
latitudeLatitudedoubleLatitude of the vehicle
longitudeLongitudedoubleLongitude of the vehicle
addressAddresstextAddress of the vehicle
detect_timeDetection timelongDetection timestamp, unit: milliseconds
confidenceConfidencedouble0~1Detection confidence
evidence_urlsEvidence image URLsList<text>List of evidence image URLs for this violation