Git Product home page Git Product logo

Comments (2)

iwatake2222 avatar iwatake2222 commented on May 26, 2024

One possible reason is you reuse the same input image object (Mat) for the 1st and the 2nd inference. The result (such as inference time, bounding boxes, etc.) is drawn onto the input image.
So, the input images for the 1st and 2nd inference can be difference. It can be happen even if you store the Mat object like this.

Mat mat_original;
mat_original = get original input data;
Mat mat_1st = mat_original;
Mat mat_2nd = mat_original;
ImageProcessorProcess(mat_1st.getNativeObjAddr());    <- pixel data (of mat_original, mat_1st, mat_2nd) is over written
ImageProcessorProcess(mat_2nd.getNativeObjAddr());

I logged the input data and confirmed the input data is same.

Did you confirm all the input pixel data (not just the address of data) is the same when calling ImageProcessorProcess ? I can check if you share your code.

from play_with_tflite.

yyuzhongpv avatar yyuzhongpv commented on May 26, 2024

Thanks for your kind reply.
The root cause is exact as you said. Results were drawn on the frame due to the sync of detection thread and render thread.

I compare some lines of the input frames, not for each pixel. It's my bad.

from play_with_tflite.

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.