Page 2 of 6 FirstFirst 123456 LastLast
Results 11 to 20 of 58

Thread: Calling Any Java Programmers - Computer Vision Project

  1. #11
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    cool! glad to see some more interest. I'll post my code up 2moz, with a write up to follow later.

    EDIT: Here's a write up I did for my final year project. It should serve as a good computer vision primer.

  2. #12
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    ok, I've managed to get some code up and running it'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.
    Attached Files Attached Files

  3. #13
    FLAC alti's Avatar
    Join Date
    Sep 2004
    Location
    NY
    Posts
    1,723
    Thanks for the update and the code to check out. I started reading but have not yet finished your projects write up (very good by the way) And plan to look at the code early next week (planning a wedding kills your weekends ) I also just received my nitemax cameras in the mail today, but I have to wait to find the correct ac-dc power source to fire them up.

    Once I get everything up and running I will give any thoughts (hopefully helpful) that I can think of, and hopefully I might be able to provide some help on the project as it really interests me. BTW if you are into AI at all check out On Intelligence by Jeff Hawkins, the only reason I mention it, is because he spends some thought in his book as to how the brain can recognize and identify people and objects at any angle, with such precision and speed, when it is so difficult on a computer. He also goes into depth on what we know of how the brain interprets the signals sent from our retinas over the optic nerve.

    Sorry about my rambling.
    My Install

    Software:
    CFiG v1
    iGuidance Plugin for CF

    CarShell
    Working shell for a CarPC

    StopWatch
    StopWatch plugin remade for centrafuse RC1

  4. #14
    Variable Bitrate 84RegalRider's Avatar
    Join Date
    Nov 2004
    Location
    San Diego
    Posts
    427
    Ill probably give it a try tomorrow in my carputer.
    Core duo
    1tb harddrive
    256 ddr
    8 lilliput
    bu-353

    still installing...

  5. #15
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    Quote Originally Posted by alti
    I also just received my nitemax cameras in the mail today, but I have to wait to find the correct ac-dc power source to fire them up.
    this will be very interesting. currently I'm using hue and saturation to identify moving objects, and ignoring illumanatoin (see HSI colour models in teh write up). The nitemax will be B&W I beleive, which means it has to work on a single channel RGB-style model. The code doesn't yet deal with that, but I'll modify it so it does... hopefuly by the time your wedding is sorted

    use an ATX supply for power?

    Quote Originally Posted by alti
    Once I get everything up and running I will give any thoughts (hopefully helpful) that I can think of, and hopefully I might be able to provide some help on the project as it really interests me.
    cool.

    Quote Originally Posted by alti
    BTW if you are into AI at all check out On Intelligence by Jeff Hawkins, the only reason I mention it, is because he spends some thought in his book as to how the brain can recognize and identify people and objects at any angle, with such precision and speed, when it is so difficult on a computer. He also goes into depth on what we know of how the brain interprets the signals sent from our retinas over the optic nerve.
    I am very much into AI. There's a book called Vision by a genius called David Marr. I highly recommend this (if you can find it). He delves into explaining how human vision is a process, and not some magic, and he mixes neuropsychology with computer programs. I've been trying to locate a copy ever since I read a part of it. I may have to buy it for the full price of $300-400 (out of print now). I will look into the Jeff Hawkins stuff too.

    Quote Originally Posted by alti
    Sorry about my rambling.
    all input is good input dude!


    Quote Originally Posted by 84RegalRider
    Ill probably give it a try tomorrow in my carputer.
    nice. what camera do you have? does it have automatic intensity control or is that fixed?

    ps. my dad had an 84 regal!

  6. #16
    Variable Bitrate 84RegalRider's Avatar
    Join Date
    Nov 2004
    Location
    San Diego
    Posts
    427
    Just some cheapy.
    Fixed intensity.
    Sorry its taking a bit long but just got my carputer reading my ecu/pcm and thus my gauges working. Just need to finish coding that before i want to dive into this.
    Core duo
    1tb harddrive
    256 ddr
    8 lilliput
    bu-353

    still installing...

  7. #17
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    good that you have fixed intensity, let me know how it all goes. I've been really pressed for time recently so the carputer is on hold

  8. #18
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    anyone had anytime to test this yet?

  9. #19
    Low Bitrate Bryan Pape's Avatar
    Join Date
    Apr 2004
    Posts
    74
    Crap... didn't know anyone was working on this stuff... I've been looking into AI / Computer Vision stuff for years. I got a grip on a lot of the theories / problems / etc, but the upper level math keeps me away from programming any real solutions. I can help work on integration stuff, but it would be in Delphi.

    I'm D/L what ya got. Really interested to check it out!

    Quote Originally Posted by sama
    anyone had anytime to test this yet?

  10. #20
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    this is exactly my aim, to try to get a framework going so that people with little or no knowledge of vision algorithms can build applications, which in turn would drive the development of algorithm plugins to use.

    my maths isn't the best either, but there are plenty of resources out there.

    the current download offers a fairly simple motion detection algorithm. it learns the background by continously averaging pixel values over time. It detects foreground objects by subtracting the current frame from the learnt background.

    the problems currently with it are that any major change in lighting will render the background model useless, since it no longer applies to the new lighting conditions. a way of detecting this would be useful, so a reset can be issued to the background learning loop. This infers that there would be a window where the foreground is not determined whilst the background is being learnt again.

    Perhaps another motion detection algorithm can kick in at that stage, something like differential analysis (subtracting previous frame from current). hopefully, by using knowledge prior to the light change, the regions of last known moving objects can be applied to the differntial algorithm.

    Im' thinking out loud here on how the impact of lighting changes can be minimised. you may need to study the code a little to to see what I'm gettin at.

Page 2 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. Making a Car Computer; Need Your Help!
    By Fear Effect in forum Newbie
    Replies: 20
    Last Post: 08-18-2008, 09:51 AM
  2. Project start for 1965 Mustang Fastback
    By 65_2plus2 in forum General MP3Car Discussion
    Replies: 3
    Last Post: 03-24-2005, 10:43 AM
  3. 1994 Honda Accord Coupe Computer Project
    By project94coupe in forum Show off your project
    Replies: 20
    Last Post: 07-28-2004, 10:50 AM
  4. just got other computer so project is back on
    By babas151 in forum General Hardware Discussion
    Replies: 2
    Last Post: 10-10-2003, 06:35 PM
  5. new computer project... question about ebay LCDs...
    By nadir_s in forum LCD/Display
    Replies: 10
    Last Post: 10-19-2002, 04:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •