Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

Using JAI to compare images

Thread view: 
Arash Nikkar - 28 Feb 2006 22:55 GMT
Hi,

I am trying to write a short application which will take a
video...convert it to a series of images, and then compare the images
to detect motion. Now I know motion detection is not a trivial task,
but I am attempting the crude approach first.

I have figured out to to use JAI to convert the image to grayscale, but
I am not sure what I should use to compare the two PlanarImages. Should
I take the mean, the extrema? or maybe grab the histrogram of each and
use the entropy?

If someone could point me in the right direction, I'd appreciate it.
Thanks!
hussainak@gmail.com - 01 Mar 2006 02:54 GMT
hey can u please help me with JAI to read and conver RAW images to BMP??
Roedy Green - 01 Mar 2006 04:49 GMT
>If someone could point me in the right direction, I'd appreciate it.
>Thanks!
We had this problem with a security camera controlling program. nto
all cameras have motion detect hardware. There are C libraries for
this sort of thing. So we hooked them up.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Arash Nikkar - 01 Mar 2006 18:52 GMT
Hi Roedy,

I want to stay away from hardware dependency, because I also want to be
able to just input any video (inlcuding a whole video), and detect for
motion. so I want to try and figure out a way to compare frames.
Roedy Green - 01 Mar 2006 20:59 GMT
>I want to stay away from hardware dependency, because I also want to be
>able to just input any video (inlcuding a whole video), and detect for
>motion. so I want to try and figure out a way to compare frames.

You are certainly to the first person to need this.  I would spend
some time looking for reasonable ways to implement this. Some ways may
involve very sophisticated, pinpointing key spots in the image and
seeing where they go. A simpler solution is just to team your camera
up with  a motion detector, that uses ultrasound, IR, sound detection
etc.

Pretty well anything you cook up on your own without mathematically
background is like to be both slow and inaccurate.  You want to be
able to calibrate it for sensitivity.  You don't want wind wiggling
leaves to trigger it.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.