avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday February 5, 2023, 8:53 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - VideoInPicture [ switch to compact view ]

Pages: prev1 ... 14 15 16 17 18 [19]
I'm getting an unhandled exception when i choose "grab a frame":

"Object reference not set to an instance of an object"
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Drawing.Bitmap..ctor(Image original)
   at SampleGrabberNET.UnsafeBitmap..ctor(Bitmap bitmapRef)
   at WebCam_Signature.MainForm.GetFullFrameBitmap()
   at WebCam_Signature.FineTuneTrackColorsForm.GrabAFrameButton_MouseClick(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Is your webcam turned on? I didn't realize that the program would throw an exception when the webcam is not available and you try to go into "Fine Tune Tracking Color". I will fix that in a bit. You can safely press the continue button if that pops up.

So you can "write" and "draw" using a webcam and (mostly) any ordinary object? One of the coolest things I have seen using a webcam. Very interesting. :Thmbsup:
-wreckedcarzz (June 24, 2008, 10:30 PM)

Yep, you can use any object that has a color not in the background. I have been able to make the program track the color of my hand if I wear long sleeves!

Right now, I'm adding the ability for you to just draw with the mouse because you may not always have a webcam available. However, with the way I am implementing the control from the mouse, the signatures come out almost as smooth as using a pen and the webcam. The signatures you can create are top notch and much better than you can create in many painting programs without spending hours.

I have made some improvements to Webcam Signature and the newest version is now 1.1. The primary thing is that I added the capability to select the tracking color by just clicking on a point on an image from the webcam. The greatly simplifies selecting the tracking color. I have also added the capability to statically or dynamically filter out the background for greater robustness. Get the latest version for testing at http://webcamsignatu...oad-webcam-signature

I have sent the source code to mouser if anyone needs it. The source code and the program are open source under a GNU General Public License V3 and I'll post it on the website in a few days.


I just realized that Webcam Signature works REALLY well with a flashlight in place of a colored pen. If you are having trouble getting Webcam Signature to track accurately, you should definitely try using a flashlight:


Instructions are on my Help & FAQ page at Essentially, you just making the tracking color bright white and the program will track a bright light source.

There is also a video of me using Webcam Signature with a flashlight at

After playing around with Webcam Signature 1.0, I've got an idea that should greatly enhance the ability of the program to track the pen and filter out background colors. I'm going to try to code it in time for the contest closing. I've just got to plan it out and think it through so I'll know if it'll work. It might take too much processing power. We'll see if it works or not.

pretty amazing i'd say when you think of where it might lead.

i'd say, refine it a bit, think of the 'killer application' and then patent that.

Yeah, I will definitely be developing this program further. And I'm making it open source after the DC Programming Contest closes so I won't be patenting anything. Although, I would settle for a programming job (I'm a mechanical engineering university student).

one thing im noticing is that the far right and left of webcam image dont map to far right and left of drawing surface -- it might be nice if that were the case.

On my computer with the settings I'm using, I can get the signature to write to all the edges but it is a bit finicky. This is due to a combination of the tweaks used to speed the program up (the program doesn't actually look at every pixel because that takes too much CPU time) and how the program determines exactly what point to put the program drawing square at (average of all the valid colored pixels). This will take some tweaking to make it work well around the edges or I could just shrink the visible drawing surface.

This could turn into a great application for someone with a disability where they have limited use of their hands but want to navigate around the internet.  Kinda of like Mouse Gestures (https://addons.mozil...-US/firefox/addon/39) but using the web cam instead.

With the Webcam Mouse program I was creating, I was stuck on was how to do all the clicks and scroll that a mouse could do with just your hands and not a whole bunch of cryptic coding. Mouse gestures may work for it but wouldn't there be a lot of false clicks and scrolls and I'm just moving my mouse around?

I think a good feature would be let person press a button to take a snapshot of the webcam image, and then select a point or two in the image that defines the color to track.  would be easier and more accurate than trying to guess your pen color.

I thought of that but my goal for the 1.0 release was just to make sure it works properly. It took a good deal of tweaking to ensure the program actually ran in real time because it is so computationally intensive. I will add that in for the 2.0 release.

As a note, the two colored squares in the lower left of the window represents the brightest and darkest red/blue/green color the program will track.


This is such a fun cool idea.. I expect it has to be very hard to get this to work accurately and might require a bit of tweaking, but it's just so cool.

I haven't even connected my webcam to this pc, but i'm going to now just to try this out.  :Thmbsup: :Thmbsup:

Thanks, I was originally creating a hands based webcam mouse program but it didn't work to my satisfaction so I made this program instead. I'm just surprised no one has done this yet. I searched google and didn't see anything similar.

My goal is to eventually morph Webcam Signature into a no-holds bar hands based webcam mouse.

It doesn't take much work to make the program track accurately. For starters, I recommend you read the Help & FAQ on my web site. For the first time use, just grab a RED bic pen with a RED cap so you don't have to change any settings. Make sure you don't have too much red in your background.

Ok, my submission for the programming contest: https://www.donation....msg118048#msg118048

Let's see what you have.


What Webcam Signature Does
Ever had a document on your computer that required your signature before sending it back to someone? Well, Webcam Signature allows you to write your name on your computer by using your webcam and a pen! No drawing tablets/cameras/scanners required.

Benefits of Using Webcam Signature
Natural: It is much more natural to write your name using a pen than a mouse.
Smooth: Your signature comes out smooth, unlike when you use MS Paint to draw something. It won't look like you visited Jittery Joe's!
Convenience: Allows you to write your name on your computer by just using your webcam and a pen! Capture signatures anywhere.
Reusable: Save your signature to an image for future use. Or, save the data points of your signature for future manipulation.
Simple: A very clean interface that is easy to use and takes no time to learn.
Versatile: In a pinch, you can use Webcam Signature to draw diagrams. Useful if you are taking classes and take notes with a laptop.

How to Use Webcam Signature
With the program opened, hold down either the CTRL or SHIFT key and then proceed to write your name in front of the webcam. Release the key you are holding down to stop writing. Press the CTRL or SHIFT key again to start writing again.
Copy your signature to the clipboard or save it to file to further manipulate it in a drawing program.
Save the data points of your signature so that you can retrieve it in the future to apply different colors and line sizes.

How Webcam Signature Works
Webcam Signature tracks the colors seen from your webcam to determine where your pen is. To obtain good results, the color of your pen should not be similar to the colors of your background. You can adjust what range of colors Webcam Signature tracks from within the program.

Compare for Yourself
On the left is a signature created using Webcam Signature and on the right is the same signature created using a mouse and MS Paint. Notice that the Webcam Signature output is much smoother and looks more natural whereas the one created in MS Paint is all jagged and looks like you have an unsteady hand. If you are signing documents for a client, it would not make a good impression to use the signature created in MS Paint. The difference is even more pronounced when you use thinner line sizes.



The source code will be send to mouser and veign after some people check it out to make sure it is working properly.

Does this require a tabbed browser? I know some people stuck with IE6 (the poor suckers) that would enjoy this...

Also, I am not sure if this is a side-effect of FF 3 RC 1, but I get this oddball setup when I try to pull a youtube video (see image)...
-wreckedcarzz (May 25, 2008, 12:30 AM)

I tried DetachVideo using IE 7 and Youtube. There is a problem when I close the detached video Window: the Youtube video doesn't go back to its original position on the browser. Can some explain how DetachVideo goes about finding the Youtube video? I understand the gist of the source code but I don't see how it actually finds the handle to the Youtube video?

I really like your program, i think it has lost of potential. Unfortunately, i think the best use for it is for having thumbnails of open live messenger windows (with or without video), but it doesn't behave very well with those :(
I know it's MS's fault for making non-standard windows, but it'd be really sweet if it worked..

PS: you probably should reverse the order of the tray icon's options, "quit" should be the option on the bottom and not on the top ;)

I'm putting the development of Video in Picture on hold for a few weeks to take care of some other stuff, computer and life related.
However, I will look into the issue of making Video in Picture work with Live Messenger. I'm pretty sure there is a way to make it work.
As for the tray icon right-click menu, I placed the options in that order because I keep Video in Picture running and like to have the options that I use more closer to the mouse when the menu opens up (my taskbar is on the bottom of the screen). However, I can see where it can be beneficial to invert the menu (ie: taskbar on the top of the screen). I will add an option to the settings panel to invert the menu.

I'm going to throw my hat into this programming contest. I've been playing around with some code and libraries these past few days that have given me a couple of ideas (and a lot of ideas that don't work because the theoretical aspects don't work very well right now). It is a program for something that people have requested on the board and no satisfactory program was found on the web or programs were still be developed without a working release for people to use. I'll e-mail you later mouser. BTW, after I e-mail you, can I start a website on Wikidot for my new project?

For my post above. I meant to say you can get a copy of the program off my website.


Hello, this is my first time posting on Donation Coder. I noticed that the topic of this thread is very similar to the project I've been working on for the past couple of months. It's called Video in Picture for Vista and has the ability to essentially replicate the function of the program from the OP.

However, I go by it a different way. I use the live previews features of Vista to allow you to crop, resize, and reposition the live previews of windows. You can dynamically resize the live previews by using the scroll wheel of your mouse, the keyboard arrows, or just by dragging the borders. You can also crop the picture to the way you want it by just holding down CTRL and dragging the borders.

The program allows you to create the previews from a scrolling menu or even better, by just minimizing the window you are looking at. If you close the preview and create it a preview from the same window again, it remembers the size and position of your previous menu so you don't have to resize it.

There are some videos and pictures on my website: that will show you what I mean. You can also get a copy of the problem off there. It current is in development to get rid of some bugs and streamline it, but it is functional and stable.

Pages: prev1 ... 14 15 16 17 18 [19]