ok, I've managed to get some code up and runningit's attached.
inside the zip, you'll find a jar and the source code.
you'll need to install the java media framework first, and have a device capture card working. you can do this by running JMStudio (when JMF is installed, you get this) and going to File->Preferences. Under the "Capture Devices" tab, press "Detect Capture Devices" (can take a while), then look at the location of that device. it should be something like: vfw://0. commit and exit that screen then try File->Capture. If you can capture in JMStudio, and the location is vfw://0 then the jar application should just work. If the capture doesn't work, sort that out![]()
If the location is different, then you'll need to edit the ProcessorTest.java and change the location.
about the code:
currently, it's not optimised or anything, but it does get you familiar and started with grabbing and processing.
If you leave the camera pointed in a direction, it will slowly learn that background. After about 10 seconds, try to move around in front of the camera. Only the moving parts should appear in the image (plus a load of noise, depending on the quality of the cam, but you always get noise).
Be careful not to make the camera's auto-intensity change too much, by going too close to it, since this will fool the algorithm into thinking the background has changed.
have a mess around with this and any questions, fire away.



LinkBack URL
About LinkBacks



Reply With Quote
it's attached.
) I also just received my nitemax

Bookmarks