Mario.Nnz
Posts: 1
Joined: Thu Nov 06, 2014 6:49 pm

Pi with VGA camera to read colors

Thu Nov 06, 2014 7:14 pm

Good morning my fellow programmers

I've been thinking about starting a new project but I would like to know if somebody has had an experience with this kind of idea and maybe you could tell me how feasible it is to create.

My problem is that I need to detect if there is a certain color coverage over a certain area. I know I could address this using color detection sensors and I've got the code for it, but since this is a large area I was thinking of installing an overhead USB Sentech camera with a Tamron lens to cover the full area I need.

The area to be scanned will not change, neither will the color to be detected.

So, how does it sound? do you think it's possible to do it? Has anyone tried to do color scanning with a USB camera?

Thanks!

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23636
Joined: Sat Jul 30, 2011 7:41 pm

Re: Pi with VGA camera to read colors

Thu Nov 06, 2014 8:22 pm

Sounds feasible. Any reason you don't want to use the Raspi camera? Should be fine for the job, and would give you much more CPU grunt for the image processing.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
experix
Posts: 204
Joined: Mon Nov 10, 2014 7:39 pm
Location: Coquille OR
Contact: Website

Re: Pi with VGA camera to read colors

Fri Nov 14, 2014 3:43 pm

"color scanning with a USB camera" seems to be exactly what I have demonstrated (among other things) in the 'pictures' file in experix_r14_book.tgz2 from experix.sourceforge.net (freely available open-source project recently adapted to run on raspberry-pi). Please have a look at this, and contact me for advice if you want to set it up.

Return to “Graphics programming”