lundi 29 août 2022

Bytetrack cpp with cv::Rect csa export

I want to use byteTrack-cpp with my cv::rect box exported to csv. Still some error.

Base Bytetrack code is here : https://github.com/Qengineering/YoloX-Tracking-ncnn-RPi_64-bit

cv::Rect Rect;
Rect.x = 77;
Rect.y = 88;
Rect.width = 98;
Rect.height=123;

struct Object
        {
            cv::Rect_<float> rect;
            int label;
            float prob;
        };
Object  obj ;
obj.label = 1;
obj.prob = 0.33;
obj.rect = Rect;
std::vector<Object> objects;
objects.push_back (obj);
vector<STrack> output_stracks = tracker.update(objects);

from the repo main code is in : https://github.com/Qengineering/YoloX-Tracking-ncnn-RPi_64-bit/blob/main/src/yoloX.cpp

so easy to see from there than to copy all here.

I want to read from bbox rectangle per frames from csa file and push to the tracker.

minimal example above give some error:

../TrackerB/main.cpp:48:52: error: no viable conversion from 'vector' to 'const vector' vector output_stracks = tracker.update(objects); ^~~~~~~

somehow I can't see the solution ...:(

Aucun commentaire:

Enregistrer un commentaire