Commit 2138b8d7 authored by oscar's avatar oscar

提交更新

parent 80fb4dd2
......@@ -580,6 +580,7 @@ void TrackingRos::ThreadTrackingProcess()
else
target.reportType = "Other_Truck";
target.vehicleNum = obj.license_plate_number;
target.uniqueID = std::to_string(obj.obj_id);
target.confidence = obj.score * 100;
target.location.x = obj.Lat;
target.location.y = obj.Long;
......
......@@ -28,6 +28,7 @@ AJSON(Location,
typedef struct _Targets {
std::string reportType;
std::string vehicleNum;
std::string uniqueID;
int confidence;
Location location;
}Targets;
......@@ -35,6 +36,7 @@ typedef struct _Targets {
AJSON(Targets,
reportType,
vehicleNum,
uniqueID,
confidence,
location
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment