Welcome to Dream.In.Code
Become a VB Expert!

Join 149,483 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,382 people online right now. Registration is fast and FREE... Join Now!




colour analysis with webcam

 
Reply to this topicStart new topic

colour analysis with webcam

jonnyt6
1 May, 2007 - 11:55 AM
Post #1

New D.I.C Head
*

Joined: 1 May, 2007
Posts: 1


My Contributions
Hello,

Here's my problem:
I've got a hexagonic tile with 4 different colours on 4 of the sides (2 sides are left black), namely red, blue, yellow and green. Using a webcam i need to write a program in visualbasic which looks at which colour is on which side of the tile and then compares this to a database that has been made. As each tile is different i then know which tile is which.
As my programming experience is almost nothing, I am not quite sure where to start. How can I tell visualbasic to look at a certain point, see which colour it is (the RGB values) and record this info. Are there any usefull papers that I can read to help me with this or does anybody have any ideas?

***It actually all comes down to comparing an image that i took with my webcam to an image that is stored in the database of my pc***

Thanks a lot to everyone,

-Onj-

This post has been edited by jonnyt6: 1 May, 2007 - 12:18 PM
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: Colour Analysis With Webcam
2 May, 2007 - 12:18 AM
Post #2

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,867



Thanked: 53 times
Dream Kudos: 550
My Contributions
Generally there is a way to get at the image data, a nice little function like getPixel(x, y) can be used to get the color of the pixel located at (x,y).

How you would go about your task depends on a few things:

What version of VB are you using (VB6/Vb.Net)?
User is online!Profile CardPM
+Quote Post

wrwlf
RE: Colour Analysis With Webcam
2 May, 2007 - 01:59 AM
Post #3

New D.I.C Head
*

Joined: 2 May, 2007
Posts: 2


My Contributions
interesting project! i was wondering when i read this, how would you get a vb program to capture a image using a usb webcam then open it into itself to begin analysis?

thanks
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: Colour Analysis With Webcam
2 May, 2007 - 05:47 AM
Post #4

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 15,262



Thanked: 61 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
You may be interested in looking at some of the source code from this project: http://jpbrown.i8.com/cubesolver.html

It's a Lego Rubix Cube solver, but does some color recognition using a cam and I believe VB 5.0
User is online!Profile CardPM
+Quote Post

wrwlf
RE: Colour Analysis With Webcam
2 May, 2007 - 09:31 PM
Post #5

New D.I.C Head
*

Joined: 2 May, 2007
Posts: 2


My Contributions
thanks! just interested in trying it out!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 04:41PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month