Add adaptive padding to improve tracking
This commit is contained in:
@@ -2196,11 +2196,25 @@ int VideoDetectorEngine_CPP(std::string modelFilePath, std::string videoFilePath
|
||||
int RTMPOSETest_CPP() {
|
||||
int modelType = 32; // ONNXRTMPOSE (use 33 for RTRTMPOSE)
|
||||
std::string modelFilePath = "E:\\Programs\\DemoAssets\\ANSAIModels\\PoseEstimationModels\\ANSRTMPOSE.zip";
|
||||
std::string videoFile = "E:\\Programs\\DemoAssets\\Videos\\rtmpose.mp4";
|
||||
std::string videoFile = "E:\\Programs\\DemoAssets\\Videos\\ANSOffice.mp4";// "E:\\Programs\\DemoAssets\\Videos\\rtmpose.mp4";
|
||||
VideoDetectorEngine_CPP(modelFilePath, videoFile, modelType);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// YOLO OD via the direct cv::Mat / typed-Object path. Use this to verify
|
||||
// trackIds reach the overlay — the JPEG/JSON variant strips track_id in
|
||||
// VectorDetectionToJsonString (ANSEngineCommon.cpp:1122-1123), so the
|
||||
// JSON overlay always shows ":0". This _CPP path reads obj.trackId
|
||||
// directly so adaptive-padding tracker output is visible.
|
||||
int YOLO26ODYolo11Test_CPP() {
|
||||
std::string modelFilePath = "C:\\Projects\\ANSVIS\\Models\\ANS_VehicleDetection_v2.0.zip";
|
||||
std::string videoFile = "C:\\ProgramData\\ANSCENTER\\Shared\\road.mp4";
|
||||
int modelType = 3; // auto-detect (matches YOLO26ODYolo11Test)
|
||||
int modelDetectionType = 1; // object detection
|
||||
VideoDetectorEngine_CPP(modelFilePath, videoFile, modelType, modelDetectionType);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int RTMPOSETest() {
|
||||
int modelType = 33; // ONNX YOLO (30) RT YOLO (31)
|
||||
std::string onnxclmodelFilePath = "E:\\Programs\\DemoAssets\\ANSAIModels\\PoseEstimationModels\\ANSRTMPOSE.zip";
|
||||
@@ -2215,8 +2229,8 @@ int main()
|
||||
//ALPROD_Test();
|
||||
//FireNSmokeTest();
|
||||
//ElasticGPUTest();
|
||||
|
||||
RTMPOSETest();
|
||||
RTMPOSETest_CPP();
|
||||
//RTMPOSETest();
|
||||
//YOLO26SEGYolo11Test();
|
||||
//YOLO26POSEYolo11Test();
|
||||
//YOLO26CLYolo11Test();
|
||||
|
||||
Reference in New Issue
Block a user