Code Monkey home page Code Monkey logo

Comments (8)

l1npengtul avatar l1npengtul commented on July 28, 2024 2

Im working on a fix in a local 0.10 branch.

from nokhwa.

l1npengtul avatar l1npengtul commented on July 28, 2024 1

@D1plo1d You should be able to fix it by using Callback Camera. That runs the camera in another thread, allowing you to decode frames in a different thread from the camera.

from nokhwa.

l1npengtul avatar l1npengtul commented on July 28, 2024

Are you using the camera in a dark or bright environment?

from nokhwa.

SludgePhD avatar SludgePhD commented on July 28, 2024

Pretty bright, it's not due to auto-exposure (it performs better with LinuxVideo in the same environment)

from nokhwa.

D1plo1d avatar D1plo1d commented on July 28, 2024

@l1npengtul Did you have any success improving the v4l2 performance? I'm also seeing between 8 and 18 fps on a system that normally performs much faster.

Edit: I am also seeing a low fps when I use the v4l crate directly. Maybe a problem on their end?

Edit 2: Nm, that was comparing MJPEG nokhwa vs a much slower v4l mode, changing v4l to MJPEG resulting in 20fps so there is something slow happening in nokhwa specifically.

from nokhwa.

l1npengtul avatar l1npengtul commented on July 28, 2024

@l1npengtul Did you have any success improving the v4l2 performance? I'm also seeing between 8 and 18 fps on a system that normally performs much faster.

Edit: I am also seeing a low fps when I use the v4l crate directly. Maybe a problem on their end?

Edit 2: Nm, that was comparing MJPEG nokhwa vs a much slower v4l mode, changing v4l to MJPEG resulting in 20fps so there is something slow happening in nohawk specifically.

Maybe its frame decoding taking too long?

Instead of frame, try frame_raw to see if you get the same performance

from nokhwa.

D1plo1d avatar D1plo1d commented on July 28, 2024

Instead of frame, try frame_raw to see if you get the same performance

Yup, that was it. frame_raw gets the same fps as using v4l directly.

from nokhwa.

l1npengtul avatar l1npengtul commented on July 28, 2024

This issue is a non-nokhwa issue. Closing.

from nokhwa.

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.