Page 4 of 6 FirstFirst 123456 LastLast
Results 31 to 40 of 58

Thread: Calling Any Java Programmers - Computer Vision Project

  1. #31
    FLAC alti's Avatar
    Join Date
    Sep 2004
    Location
    NY
    Posts
    1,723
    here is a shot of what i get in jmstudio when i select capture and then a shot of what i get in your program.
    Attached Images Attached Images   
    My Install

    Software:
    CFiG v1
    iGuidance Plugin for CF

    CarShell
    Working shell for a CarPC

    StopWatch
    StopWatch plugin remade for centrafuse RC1

  2. #32
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    hey alti. black and white will not work with the algroithm out of the box as I'm currently using an HSI colour model. This is less sensative to light changes, since only changes to hue (colour) and saturation of that hue are considered, and intensity is ignored.

    b&w is purely an intensity based colour model, so you have two choices. Either switch on the considerIntensity flag, or switch to an RGB colour model. I'll make this configurable when I get some time.

    I'll also make it deal with B&W better since at the moment it'll do 3 cycles per pixel (R G and B) but it only needs to do one.

    the code you need to change is in teh constructor of the motion detector I beleive. I'll have a look at the code tonight and externalise these settings, but lemme know how you go if you make the changes yourself.


    PS Tidy your room!

  3. #33
    FLAC alti's Avatar
    Join Date
    Sep 2004
    Location
    NY
    Posts
    1,723
    I changed the flag over and will check it out when i get home, thanks
    My Install

    Software:
    CFiG v1
    iGuidance Plugin for CF

    CarShell
    Working shell for a CarPC

    StopWatch
    StopWatch plugin remade for centrafuse RC1

  4. #34
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    sorry, I got busy all last night!

    try both hsi with intensity and the rgb options, to see what works best.

  5. #35
    FLAC alti's Avatar
    Join Date
    Sep 2004
    Location
    NY
    Posts
    1,723
    alright i was able to get it to show the image from the camera in your app by changing tbe RGB flag to 1. have also played around with some of the other flags to see what happens, I changed the RGB elements flag from 3 to 1, thinkng that was what you were refering to above on the 1 vs 3 scans of the pixels.

    I have messed with Hue, saturation, intesitity flag (both true and flase) and intesity

    The best i get though is the image in the window, it does not seem to detec any motion. When it first starts up the image flickers light to dark and is grainy, it settles in to a better quality picture within 10 or 20 seconds, I image this is the code 'learning' the background.

    I have to spend more time understanding yuor code, I think.

    on a side note I have some color CCDs comming from Mark, should get to me next week.
    My Install

    Software:
    CFiG v1
    iGuidance Plugin for CF

    CarShell
    Working shell for a CarPC

    StopWatch
    StopWatch plugin remade for centrafuse RC1

  6. #36
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    excellent stuff. i'll test the algorithm on a b&w setup (I'll just use 1 channel for now). I'm hoping to do some this weekend, but I'll have some time this monday for sure as it's a bank holiday in the UK.

    the code should makes some sense if read in conjunction with computer vision primer.

    it sounds like you're looking at the image learnt rather than the foreground. I'm not sure if you messed with what is displayed. when you move in front of the camera, do you appear at all? check these in ProcessorTest:


    // image = motionDetector.getBackground();
    image = motionDetector.getForeground();

    if you view the background, that'll show you the learnt model, so you can see it's learning correctly. the foreground will be the current frame minus the background (+ noise and other light variations)

  7. #37
    Maximum Bitrate pyros's Avatar
    Join Date
    Mar 2004
    Location
    Toronto, Canada
    Posts
    500
    Wow, this is some good stuff. I'll take a look at the application and source this weekend.

    I'm a java programmer but I haven't actively been doing standalone application development for about a year now (got suckered into web services development) but shouldn't be much of a learning curve to get back into. I'll try to check this out, seems pretty neat.
    2004 Ford Mustang Mach 1
    Specs: Epia M2-1000, 512mb ram, SB Audigy NX, Lilliput 7" Touchscreen, M2-ATX, DVD, 160gb HDD, gps, obdII, wifi, bluetooth, XM radio, HQCT and Logitech wireless gamepad.
    Install Status: DONE

    My XM FAQ

  8. #38
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    I'm a web services sucker too. I do prefer standalone apps, but sadly the market demands otherwise.

    welcome, and any questions, just ask.

  9. #39
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    Alti, you were right. the RGB model didn't work. it does now. download the latest jar, which now includes the source code.

    I've left it in RGB mode so it shoudl work for B&W cameras out of the box now.

    my camera is very very bad, so bad, that it's leaving a trail of it's encoding artifcats, making it hell. when there is motion, the camera changes the blocks behind the moved object. probably in an attempt to save bandwidth and most definitely succeeding in making my life difficult... I need to buy a decent cam!

    anyway, give this a shot and let me know how it goes.

  10. #40
    FLAC alti's Avatar
    Join Date
    Sep 2004
    Location
    NY
    Posts
    1,723
    awesome, I will try it out tonight, I was able to work some more on it using a sony handicam at work, the nice part about that was that it could switch between b/w and color. I made some progress on understanding whats going on in the software as well. I saw the differences turning on and off the background and forground methods made, ect..

    I will post more after i get it up and working tonight...
    My Install

    Software:
    CFiG v1
    iGuidance Plugin for CF

    CarShell
    Working shell for a CarPC

    StopWatch
    StopWatch plugin remade for centrafuse RC1

Page 4 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
  •