Motion capture to computer with selectable squares for detection - Feature Requests - CHDK Forum  

Motion capture to computer with selectable squares for detection

  • 2 Replies
  • 2686 Views
Advertisements
Motion capture to computer via usb with selectable squares for detection.  The you could set the camera up as a security camera that could run all the time.

*

Offline fbonomi

  • ****
  • 469
  • A570IS SD1100/Ixus80
    • Francesco Bonomi
Re: Motion capture to computer with selectable squares for detection
« Reply #1 on: 28 / August / 2009, 19:28:40 »
While it's fun to code functions on the camera, why should one code such a complex function on a $>100 camera when there are far cheaper webcams, and software that already have this function?


Re: Motion capture to computer with selectable squares for detection
« Reply #2 on: 29 / August / 2009, 11:02:20 »
Motion capture to computer via usb with selectable squares for detection.  The you could set the camera up as a security camera that could run all the time.


Yes, that is no problem, I have just tried it.

Only drawback is that the camera has to switch to playback mode and retract the lens while it uploads images.
You run WIA-Loader on the PC and a script similar to the following on your camera :-

Code: [Select]

@title Security 'Yob-CAM'

@param a Columns
@default a 6
@param b Rows
@default b 4
@param c Threshold (0-255)
@default c 10
@param g Burst/Review/Video time (s)
@default g 0
@param d Compare Interval (ms)
@default d 7
@param h Pixel Step (pixels)
@default h 6
@param f Channel (0U,1Y,2V,3R,4G,5B)
@default f 1
@param n Timeout (10s of seconds)
@default n 30
@param e Trigger Delay (0.1 sec)
@default e 5
@param i Masking (0=No 1=Mask 2=Use)
@default i 0
@param j -      Mask Columns Left
@default j 0
@param k -      Mask Columns Right
@default k 0
@param l -      Mask Rows    Top
@default l 0
@param m -      Mask Rows    Bottom
@default m 0
@param o Shoot fast=0,slow=1,test=2
@default o 2
@param p  upload time for images
@default p 10
e=e*100
g=g*1000
n=n*10000

set_sync 0 0 0 0


 " Yob-CAM running !"
:slow_md_loop
  t=0
  do
    md_detect_motion a, b, f, n, d, c, 1, t, i, j+1, l+1, a-k, b-m, 0, h, e
  until t>0
  shoot
  sleep_for_seconds 2
  upload_images_for p
  sleep_for_seconds 50
  goto "slow_md_loop"


I can give you more details if you want to try it.

There is a solution for certain cameras using commercial software that does not retract the lens.



David

 

Related Topics