josh-larson / cameraboardapi Goto Github PK
View Code? Open in Web Editor NEWAn API to interface with the Camera Board on the Raspberry Pi.
An API to interface with the Camera Board on the Raspberry Pi.
Hi,
I've playing a bit with userland code (without success at the moment).
Our current code is slow because uses still mode. The idea should be to use video mode and using a rgb encoder instead. This would allow to have a 30/60fps camera, which I think is the objective. I have not succeeded yet though in connecting the video output to the still encoder. In addition, in video mode we can not set JPEG or RGB encoders :(
Hi,
take a look at
http://thinkrpi.wordpress.com/2013/05/22/opencv-and-camera-board-csi/
http://tothinkornottothink.com/post/59305587476/raspberry-pi-simplecv-opencv-raspicam-csi-camera
may be we can modify our project to do the same!
I try to compress changing cameraboard.ccp but without any result.
output of jpg are no compressed.
Nice work Josh
I'm terribly sorry for a probably extremely easy question, but how does one get colour pictures with this API?
In the FindContour example I've tried to naively replace UV_8U1
with UV_8U3
and to my surprise it compiled, but then it throws a segfault, so currently I'm stuck with grayscale images and I would like to detect specific colours.
Hi Josh,
I've been testing your changes. Good idea to add take_picture!
Nevertheless, I can not get good results when capturing. When I run the test, the first image obtained is very dark. However, the rest of the images are completely black. I've check that it is not because take_picture, it is always the first image very dark, and the rest in black. (No matter if I use BMP or JPEG, get the same result).
I've been playing around with iso, brightness and exposure values, but I did not succeed.
When I try with raspistill, the images are ok. I have put the images for you to check at https://dl.dropboxusercontent.com/u/89571862/images.zip
Cheers,
Rafa
Add the encoding for a raw image (such as RGB, RGBA, etc) in addition to the encodings already supported (JPEG, GIF, PNG, BMP).
Describe the project in some way with a README file.
Hi Josh,
I have already finished the job. Take a look at:
http://www.uco.es/investiga/grupos/ava/node/40
Cheers
I was using this API for a couple weeks but after some updates on rasp the images become black. Using "raspistill -v - o test.jpg" the imagens are normal, but when i use a simples " ./video_test" or look at imagens from example all of than are comming black. Any solution?
I am having the same issue, i tried with another API and everything is normal, but with this one i'm only getting black images.
Hi, I've just added an opencv camera module.
I've been testing the camera and the results are not comparable to original raspistill in my opinion.
First, capture is very slow(0.5fps). I have worked on changing the STILLS_FRAME_RATE_NUM and set it to 15, but I have obtained no difference. When I use jpeg in camera_test, it seems to run a bit faster.
In addition, I see the images generated to be different from these obtained by raspistill, the later seems brighter.
I've successfully made your library work and modified it to start implementing my own CV stuff, but your the contour example doesn't work for some reason.
I executed the example program just as instructed in the readme, compilation goes well, no errors whatsoever, but I get this error when I try to launch it with ./FindContours
:
./FindContours: error while loading shared libraries: libraspicam.so.0.0: cannot open shared object file: No such file or directory
I have the following files in the example folder: libraspicam.so
, libraspicam.so.0.0
, libraspicam.so.0.0.1
, all of them take 789652 bytes, and also FindContours.cpp
and the compiled FindContours
file.
I have already defined LD_PRELOAD
beforehand.
I've tried some solutions I've found here and there, but no luck so far. Can you give me a push?
I sincerely appreciate the way you've documented this library, that's some quality work one can start building on.
Hi,
i've just find out that the iamges generated and saved to file are nothing but zeros. As I see, this is happening even in your original code. I have ust noticed now that I have tried to see the images generated. Could you please confirm that the initial version captured images?
Cheers,
Rafa
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.