Giter Club home page Giter Club logo

Comments (8)

40tude avatar 40tude commented on August 25, 2024

Bonjour,
Any answer, comment, feedback or advise?
Best regards, Philippe

from raspicam.

40tude avatar 40tude commented on August 25, 2024

Toc, toc...
I was out last week
Any answer, comment, feedback or advise?
I still do not understand why raspicam_still_test is not working will raspicam_test seems to be working properly.
Best regards, Philippe

from raspicam.

g00dnatur3 avatar g00dnatur3 commented on August 25, 2024

40tude,

I have had a similar problem, I had to reboot my pi can the _still test worked.

However, 14fps seems really slow.

I'm getting 33 fps on a stock RPI3, here is how I achieved such performance:

  1. Make sure you have class 10 sd-card & have rpi camera v2.1 hardare

  2. Download latest raspbian lite image

2)  apt-get update and upgrade
  1. rpi-update

  2. compile 3.2 version of open cv from source

I did these steps and ran the sample code (the one with opencv integrations) I got 33 fps on rpi3.

from raspicam.

HesselM avatar HesselM commented on August 25, 2024

I guess the issue is the Callback=NULL and the mutex handling in takePicture in private_still_impl.cpp: as no callback is defined, the code does not know when an image is retrieved. The takePicture function however waits until the userdata-mutex is set, which should be done in the callback.

With raspicam_test I was able to get near 100 fps with fps=120, w=640 and h=480 on a RPi Zero.

from raspicam.

theSundayProgrammer avatar theSundayProgrammer commented on August 25, 2024

I have a similar problem: using raspicam_still_test if I call grab_retreive 4000 times with a one second delay between two calls, the application hangs after making around 3000 calls.

from raspicam.

HesselM avatar HesselM commented on August 25, 2024

After messing around with this library and others, I suspect the issue is not in the callback mentioned before, but might be in the configuration of the preview-channel. As I had trouble fixing the bug (and had some additional requirements for some experiments) I decided to build my own lib for which both still and video mode work. For video mode (when disabling opencv preview) I can reach ~120fps for w=640 and h=480 on a RPi Zero. The library is still work in progress and is not as mature and advanced as raspicam is.

ps. Sorry for the shameless advertisement of my own work, but i think the answer for this issue might lay in it.

from raspicam.

cedricve avatar cedricve commented on August 25, 2024

@HesselM no problem at all, thanks for your contribution! Do you think it's worth integrating your changes inside this repo, or would that require too much work? It looks like you've a good understanding of the MMAL library. Thank you for the reference on your Github repo btw, highly appreciated.

from raspicam.

HesselM avatar HesselM commented on August 25, 2024

@cedricve Direct integration might not be an option I think, as I adopted and merged ideas and code from several libraries and fitted that with my own needs/requirements. I did however had a second look at your code and i guess the missing configuration of the preview-port for the stills is the issue for the before mentioned problem.

From the source code of the Python PiCamera repository I found that the preview needs to be initialised to (at least) a nullsink as the GPU/image pipeline of the RPi uses it for AWB-control and computation of other settings. Configuration might be as simple as this (with of course proper memory management).

from raspicam.

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.