Comments (8)
Bonjour,
Any answer, comment, feedback or advise?
Best regards, Philippe
from raspicam.
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.
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:
-
Make sure you have class 10 sd-card & have rpi camera v2.1 hardare
-
Download latest raspbian lite image
2) apt-get update and upgrade
-
rpi-update
-
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.
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.
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.
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.
@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.
@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)
- Raspberry Pi4 CM
- Could not find mmal libraries HOT 2
- Still working with OpenCV 4? HOT 2
- Images change in color HOT 1
- Unable to run simpletest_raspicam.cpp HOT 1
- Multiple cameras HOT 2
- When camera is disconnected on Rpi4, the open success, and the grab blocks. On Rpi3 the open fail correctly.
- On PI4 camera is work with raspistill, but simletest_raspicam freezes during grab
- raspicam_test: symbol lookup error: raspicam_test: undefined symbol: _ZN8raspicam8RaspiCam12setFrameRateEi
- The camera cannot be destroyed in Raspicam_Still!
- The CPU is fully loaded! HOT 1
- Use of raspicam in stereo mode
- issue with ENOSPC(but not the same one with in introduce)
- Unable to run simpletest_raspicam.cpp
- RAW image support
- Missed Private_Impl::getVideoStabilization
- Installation on Manjaro (RPi3B)
- Can't compile the library HOT 1
- Does this Work with the Raspberry Pi HQ Camera?
- error in compiling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspicam.