GithubHelp home page GithubHelp logo

Comments (4)

fengyuentau avatar fengyuentau commented on August 31, 2024

You can try to call self.model.init again with tracking results to set template.

from opencv_zoo.

arielkantorovich avatar arielkantorovich commented on August 31, 2024

Thank you for your comment, So if I understand from your answer there is no template refreshing that you do in the code? (I can do this manually using init method)
When I look at the documentation of Vit in OpenCV, for example, I see that the update method gets to frame and cv::Rect bb so what is the difference? in cpp you update the bb with the method or only use the init bb?

from opencv_zoo.

fengyuentau avatar fengyuentau commented on August 31, 2024

there is no template refreshing

If init() does not count, yes.

so what is the difference? in cpp you update the bb with the method or only use the init bb?

I do not get your question well but if I am not mis-understanding, you are asking the meaning of the second parameter in update(frame, bbox), right? It serves as the return output. See code here for more details:

https://github.com/opencv/opencv/blob/43c1c81c8c70955e3059637a7f0a099ccd2533b4/modules/video/src/tracking/tracker_vit.cpp#L170-L203

Note that although the template is not refreshed in update() but the target bbox does get updated (see line 200).

from opencv_zoo.

fengyuentau avatar fengyuentau commented on August 31, 2024

You may try refreshing template to see whether you get a better tracking result that does not make the jump.

from opencv_zoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.