WebCam Palette
Hi folks!
This is the outcome of some experiments I’ve been doing lately using C++, Qt and OpenCV, the computer vision library. The goal of this software is rather simple, but handy!
When you launch the .exe a window is shown on your screen. Press start to open the connection to your webcam and start acquiring frames from it. Then drag selections over the webcam window to select the area, when you release the mouse button the software will calculate the selection’s average rgb pixel component and it will show it in the main small window in three separated text fields. So obviously watch out what you select to get right color there (btw the color is shown also on the top left corner of the webcam window)
Why use this small piece of software? Well personally sometimes I wanted to know: which color is my sweater? Or, whoa, I like the color on this book/flower/pen/muffin etc etc, but what could it be? Well now I can find my answer with this software just putting the object in front of the webcam and selecting the region of interest. As I said is a small piece of software, but handy for any kind of graphic app, Blender shaders and materials included!
You can download the software here, it’s in a zip file, unpack it wherever you wish and launch WebCamPalette.exe.
Yeah, before you start giving me the f%&#&ng MS supporter/developer, I can upload the sources and you can compile them yourselves on your favourite platform, however you need them to have also the OpenCV libraries compiled for the OS on which you are going to run WCP.

March 3rd, 2010 at 4:55 pm
hi, very cool.
can i have the source to compile it on linux?
March 11th, 2010 at 5:19 pm
Goodday akta,
nice programm you have there. do you mind to share the source code with me for learning purpose? right now i’m learning opencv and qt as hobby. thank.
March 11th, 2010 at 5:39 pm
Sure guys, sorry for the late reply it took me a while
Here you go:
http://www.aktasway.com/files/webcampalette_src.zip
March 14th, 2010 at 10:47 am
thnx akta.
June 3rd, 2010 at 5:16 pm
please help:
http://www.pasteall.org/pic/3759
any suggestions?
riftmaster
June 3rd, 2010 at 5:37 pm
Looks like you’re missing that dll, wasn’t it included in the zip file?