Comments (7)
Does it work with the default width and height?
from raspicam.
This is what happens if I do not call any set function;
But if i call setters with default values like the folloowing;
cap->set(CV_CAP_PROP_FRAME_WIDTH , 2592);
cap->set(CV_CAP_PROP_FRAME_HEIGHT, 1944);
I am getting this frame, this is corrupted but not as much as the others;
from raspicam.
Are you repeatedly getting a new frame, or just grabbing one? My live feed looks like this sometimes when the camera has just started, but fixes itself. Maybe a 5s sleep before grabbing the image would help.
from raspicam.
I am also getting this issue with the the non-opencv video version.
By adding the line: Camera.setCaptureSize(1640, 1232);
to simpletest_raspicam.cpp
the following image is produced:
Hardware is Raspberry Pi 3 and Camera v2. The default resolution works fine, but I'm trying to get a higher resolution. Both picamera and raspivid are able to output this resolution, so I'm not sure what's different with this library.
Any ideas? Thanks!
from raspicam.
I am having the exact same issue. Has anyone found out a work around or how to fix it yet?
from raspicam.
@FirstCaptain yes, I've found the solution and have a rough patch on my branch (https://github.com/dennisss/raspicam/) implemented for video only right now though.
I've tested it with grayscale on the RPi Camera v2, but I think it should work for RGB and BGR as well. YUV needs more work.
The main issue is that if the width and height is not aligned to 32 x 16 blocks, mmal internally pads each row up to that alignment point.
So the fix is basically to change the routine that copies the buffer to do it row by row and skip the padding: https://github.com/dennisss/raspicam/blob/master/src/private/private_impl.cpp#L766
from raspicam.
awesome @dennisss can we merge upstream?
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.