Messages - VideoInPicture [ switch to compact view ]

Pages: prev1 ... 86 87 88 89 90 [91] 92 93 94next
451
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.

452
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.

453
Alrighty,
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://webcamsignature.wikidot.com/download-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.

FineTuneTC.JPG1
FineTuneTCFiltered.JPG2

454
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:

flashlightscreenshot.JPG1

Instructions are on my Help & FAQ page at http://webcamsignature.wikidot.com/help-faq. 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 http://webcamsignature.wikidot.com/screenshots-video.


455
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.

Pages: prev1 ... 86 87 88 89 90 [91] 92 93 94next
Go to full version