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?


Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 25042
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...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

User avatar
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 (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”