|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
Quote:
5MP (2592×1944 pixels) Omnivision 5647 sensor in a fixed focus module So basically it is using a similar interface to what I was doing. Most of OmniVision's modules are relatively similar. If you take a microscope to a large number of USB webcams you'll find OmniVision's wafer art. I wasn't doing this with a Raspberry Pi though. I was using something I worked up with a local company that makes ARM development boards. The Raspberry Pi is faster. It doesn't have built on CAN which I actually do. It would be possible to add it (after all it works on this board). This should be interesting. When this was proposed it didn't seem like anyone was interested in it. I look forward to seeing how this works out. If I can help please let me know. Last edited by techhelpbb : 06-09-2013 at 11:51. |
|
#2
|
|||
|
|||
|
Re: Raspberry Pi + Camera Module = New Vision System?
Quote:
It would be even cooler if you could figure out how to do this without necessarily recompiling. Other than that, see if you can have access to view input and output values through something like NetworkTables. This will allow for much quicker iteration. Greg McKaskle |
|
#3
|
|||||
|
|||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
I've been playing with a Raspberry Pi and a Logitech USB camera this summer and have been pretty impressed. I've got a Pi camera sitting on my desk ready to go... it's on the list of things to check out.
One or two small things to keep in mind is that the Pi camera has a fairly wide field of view (as I understand it)... which can be good for latching on to a target, but maybe not so good for precise targeting. On the other hand... the increased resolution might make up for that. The other minor thing to note is that it apparently has an IR filter. Which is only a big deal if you are using IR beacons as part of the nav/targeting package. Other than those minor-to-the-point-of-almost-insignificant things, go for it. The Pi community might one day grow to match the Arduino community. That aspect alone makes the Pi stand out as a development platform. Jason |
|
#4
|
||||
|
||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
Quote:
What resolution and processed frame rate are you able to get with that configuration? Previous limitations on the combo you are using was keeping frame rate really low. Where do you have it now? I have been working with the PCDuino and a Microsoft USB webcam and am able to get 320X240 images processed into tracking coordinated and to the cRio at 10+ FPS in a worst case lighting environment. (I should be able to get close to 20+ FPS in the proper lighting environment and calibration.) |
|
#5
|
||||
|
||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
I have done some significant improvements to the speed of the rpi and the camera module, however it is still too slow for what I would like to get. I got about 450ms per image on 640x480 and bitmap images, and about 161ms per image on 640x480 and jpeg images.
I have a few ideas on how to create a system to fully utilize the two resources, and I'll make sure to keep this thread updated when I make progress! Last edited by thephpdev : 07-10-2013 at 20:53. |
|
#6
|
||||
|
||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
I am just wondering if anyone knows whether this camera will work
http://www.goldmine-elec-products.co...?number=G19511 |
|
#7
|
|||||
|
|||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
Quote:
As for a previous question I'm now getting streaming video, over wifi and internet, of "a few" frames per second at 640x480 using a Logitech USB camera and MJPG Streamer software. There were also some latency issues, but interestingly, those varied from browser to browser. I could have Firefox and Chrome open on the same computer and get different latencies on each browser. So I don't entirely blame the Pi for that. I haven't had a chance to play with the Pi camera itself yet... but (at risk of repeating my post to a different thread) will recommend anyone with a Pi take a look at PiFM. Jason |
|
#8
|
||||
|
||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
I actually had just started work on a project like this after hearing about it from a friend, so I'm glad I found this thread, and I'd love to help! Is there anything specific I could help out with?
Also, a question. what do you think the best way would be to communicate between the Pi and the cRIO? I tried a simple TCP connection and tried to set up some basic communication, and I was getting about a full second of lag. Any ideas why this might be/alternative ways of communicating? Again, this sounds really interesting, and I'd love to help out! |
|
#9
|
||||
|
||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
Do you guys know of any cheap substitute to the raspberry pi camera, that doesn't use USB?
|
|
#10
|
||||
|
||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
I hate how the pi doesn't support any of the $2 cameras because of it's interface. Why can't the RPi foundation make the camera cheaper. $25 is a lot, especually when you can buy a better substitute at a lower price
|
|
#11
|
||||
|
||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
You can help by checking out the github and making some example programs using OpenCV. It isn't very fast, and I am grasping for any spare time that I can spend on this. So if anyone is able to make good examples that are able to utilize any library that would be very helpful to teams.
|
|
#12
|
||||
|
||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
Quote:
As a status update, I started utilizing OpenCV and the UV4L driver to get a /dev/video0 input stream. Under 320x240 I got about 10-12 frames per second while processing and rotating the image (the pi wasn't oriented correctly for my setup), and about 3 FPS under 640x480. The goal was to find mini retro-reflective targets that resembled the targets from last year. The algorithm was converting to HSV, thresholding, then searching for contours. From there I filtered out the bad polygons and I was left with (mostly, occasionally I would get the outlier) my two targets. |
|
#13
|
||||
|
||||
|
Re: Raspberry Pi + Camera Module = New Vision System?
I think this is a good time to give another update on my status of the project. Using a C++ V4L interface, I was able to get raw data incredibly fast using a low-level I/O read from a UV4L driver (/dev/video0). From there I made a Mat in OpenCV and thresholded the image, and then located the contours in the image. From there I did some filtering based on two factors: Contour Area, and "Rectangularity." From there I was mostly left with just my vision targets, and I was streaming 320x240 at 30FPS with some idle time, and 640x480 at 12FPS with no idle time (lots of processing done on these raw images).
That isn't where I stopped though, I also went on to make an android app to help calibrate the vision system based on different lighting environments. In order to do this, I chose to make an http server on the raspberry pi with a c++ library (libmicrohttpd) and set brightness, threshold, and contour area values as well as requesting images (PNG). |
|
#14
|
||||
|
||||
|
Great job. Keep up the progress!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|