webcam zoomer and area locator

For general discussion related FlowStone
Post Reply
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

webcam zoomer and area locator

Post by tester »

This little fellow should work with webcam (tested on picture, no webcam here), adding two cool features: zooming the picture and selecting the area you wish to see. Potential uses: eye movement registering, mouth positions registering, and so on. It's better than automatic tracking in situations, where position of tracked element is rather fixed per session.

Did anyone played with auto tracking of various elements, and following them automatically? Whole face is too big to be point of interest... :mrgreen:

Any interesting databases of Haar tables? (have no idea how it works).
Attachments
webcam-1-1-smallfix.fsm
(63.27 KiB) Downloaded 881 times
webcam1.fsm
(63.24 KiB) Downloaded 882 times
Last edited by tester on Sun Mar 23, 2014 11:58 am, edited 1 time in total.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: webcam zoomer and area locator

Post by KG_is_back »

Very nice!!! I didn't noticed how ugly I look when zoomed close xD
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: webcam zoomer and area locator

Post by tester »

Hehe, if it looks so bad, maybe you should upgrade your webcam. :lol:

I'm thinking to integrate motion/zoom zones within it, to reduce amount of visual elements. I think that:

1) click and drag - could zoom out 1:1 the picture and draw a small rectangle on a zoomed zone
2) the rectangle would be then moved around, to point the location to show (undrag would bring the zoomed place)
3) right click and drag (up/down) could be responsible for zoom in/out
4) right dbclick could zoom out 1:1 the picture

Second scenario would be to keep the zoom slider, and use right click to activate/deactivate motion mode. Thus - the zoomed rectangle would stay on track, and not follow the mouse automatically. Anyway - things to consider.

And now the mad science: there are few bitmap primitives that could do interesting stuff with the picture itself. :-)

ColourDetect, MotionDetect, VideoSave (supports codecs! why can't this support be done for audio codecs as well?) and few others.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: webcam zoomer and area locator

Post by tester »

Here are two possible scenarios.

Now - I doubt that it's worth to use a self-scaled small rectangle, that reflects zoom factor, because at higher zooms and small webcam window sizes at all - it woult be not usable. I think it is better to use pointer, to select the center of your interest (camtasia style).
Attachments
webcam-1-2-merging.fsm
(63.19 KiB) Downloaded 909 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: webcam zoomer and area locator

Post by tester »

Hmm... And how to save to a file not the whole bitmap/picture, but only the cropped area that is displayed?

//edit:

Okay, found it. I have vague idea how exactly this works, but it works. :-)
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Post Reply