|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Just for fun - skin detection
Another example of what you can do with your FRC robot this year, is track human skin. I coded up a simple example in LabVIEW to detect skin in real time, with reasonable reliability. You can tweak the parameters and white balance to make it work better in your lighting environment. As an added bonus, the algorithm should work regardless race.
|
|
#2
|
|||
|
|||
|
Re: Just for fun - skin detection
Good thing. I would hate to think your robot is utilizing racial profiling.
![]() |
|
#3
|
||||
|
||||
|
Re: Just for fun - skin detection
What's the red goggle thing it's picking up on the right of the red image?
|
|
#4
|
||||
|
||||
|
Re: Just for fun - skin detection
best guess is that its confusing the change in light [gray, blue, and red] with a human skin tone.
|
|
#5
|
|||
|
|||
|
Re: Just for fun - skin detection
The algorithm is pretty simple, just checking the red and green channels, normalized by intensity. The code runs quickly enough for processing live video, but is sensitive to lighting changes and prone to some false positives. There are a number of functions which could be used to reduce or remove noise and false positives, the posted code however just outputs anything falling into the correct color range.
|
|
#6
|
|||
|
|||
|
Re: Just for fun - skin detection
We decided just detecting skin wasn't good enough, and decided to use the information for where people were to modify the original image by tinkering with the Hue, Saturation and Luminance. We also added an erode and dilate function to remove some of the random noise.
For those of you who want to put a face to the names you see in the forums, that's myself, Greg McKaskle and Christy Dellas (left to right) in the sample image. ![]() |
|
#7
|
|||
|
|||
|
Re: Just for fun - skin detection
Hi, I'm just new in this forum and in the world of robotics and labVIEW programs. I need to implement a program in LabVIEW that recognizes the movement of a hand using an usb camera for my final project career. I've downloaded your vi to the skin detection, but when I try to run it, it doesn't find "Camera.lvlib:Close.vi" and others similar elements. Where can I find the "Robotics Library" or the library I need to use your program?
Please, excuse my English and thank you very much. |
|
#8
|
|||
|
|||
|
Re: Just for fun - skin detection
The libraries you are looking for are part of the FIRST robotics installation. The example used the camera support from that library.
If you already have LV, you can replace a few elements and do this without the FIRST library. Do you have a camera? What driver or VIs were you planning to use to get images from the camera? If you can get images, then you can replace the Open, Get, and Close with your camera specific VIs. Greg McKaskle |
|
#9
|
||||
|
||||
|
Re: Just for fun - skin detection
I swear this is how Terminator FRC addition will start.
|
|
#10
|
|||
|
|||
|
Re: Just for fun - skin detection
Ike, don't give the theaters new ideas for bad sequels. Also, don't give my subconscious ideas for bad nightmares, being chased down by 67 scares me...
Very nifty stuff, this does show off the power of the system we now have access to. Thank you for sharing. Now, what are the chances of getting OpenCV ported to the Crio? Then our robots could autonomously track down and pummel assorted people with balls for not wearing safety glasses. |
|
#11
|
|||
|
|||
|
Re: Just for fun - skin detection
Quote:
|
|
#12
|
|||
|
|||
|
Re: Just for fun - skin detection
Quote:
Greg McKaskle |
|
#13
|
|||
|
|||
|
Re: Just for fun - skin detection
Hello again,
I've replaced the VIs I haven't with my camera specific VIs, but I still haven't got some of the VIs you use: Set image compression.vi Set Exposure Priority.vi and Set White Balance.vi. I've omitted them and I can run the program, it captures the original image but the second display is always black. What VIs are essential? And what does Set White Balance. vi do exactly? I'm quite lost... Thanks! Last edited by Andromeda28 : 07-07-2009 at 13:01. |
|
#14
|
||||
|
||||
|
Just for fun skin detection
Thank you all for your comment. It was fun to do. And for Zesty, yeah, it takes some time, depending on the shot and your skills with photoshop. In general 20-30 min for a shot I guess.
Jan |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Just for fun, Aug 21–Aug 25 and it is free | Mikekizer | Off-Season Events | 0 | 08-07-2007 16:01 |
| Just for fun: type your username with clothing... | Billfred | Chit-Chat | 15 | 25-02-2005 19:05 |
| Customizable Winamp3 Skin for Teams... | Clark Gilbert | Computer Graphics | 3 | 07-10-2002 19:57 |
| Just for fun. | archiver | 2000 | 7 | 24-06-2002 00:16 |