Giter VIP home page Giter VIP logo

Comments (6)

xliucs avatar xliucs commented on June 14, 2024 1

For the issue 2, can you please print out the tensor shape before fedding into the model (before model.predict())? I think you did not preprocess correctly. Printing shapes will help you a lot.

from mtts-can.

xliucs avatar xliucs commented on June 14, 2024

For the issue 1, you will need to look into the shape of preprocessing. Please go to inference_preprocess.py to print out shapes and try to debug what is going on. The other thing is that you did not specify the sampling rate flag, i don't know if that is the reason causing your problem.

from mtts-can.

gandalf1819 avatar gandalf1819 commented on June 14, 2024

I want to process live video streams instead of static .mp4 files and was wondering if there's a way to auto-detect the sampling rate for the videos or keeping a default value for the sampling rate flag that would allow processing live videos for the most part?

from mtts-can.

xliucs avatar xliucs commented on June 14, 2024

I beleive you can use CV2 or something else to detect the sampling rate e.g., https://learnopencv.com/how-to-find-frame-rate-or-frames-per-second-fps-in-opencv-python-cpp/.

I think most of the smartphone's front cameras probably are 30fps though.

from mtts-can.

talhaanwarch avatar talhaanwarch commented on June 14, 2024

@gabdalf1819, as a user i will recommend using some face detection algorithm as it is obvious from the screenshot attached its detecting stuff other than face only. for your second query, you need to count fps manually, there is no function in open cv. check this stackoverflow query

from mtts-can.

xliucs avatar xliucs commented on June 14, 2024

Please move to https://github.com/ubicomplab/rPPG-Toolbox

We added support there.

Thanks!

from mtts-can.

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.