multithreading - How to run multiple instance of same program in java -
i doing final year project on speed calculation using webcam. in project want calculate speed of object taking 3 sequential images whenever motion detected. given here: raser abwehr speedcam 2012, in 3 line red
blue
, green
made , whenever vehicle cross it, takes 1 snap.
for have idea suppose camera resolution 640*480
hence can divide x-axis in 3 parts of 210px
each therefore can have 3 rectangular screens of size (210*480)
. now, want whenever vehicle enters in screen1
click picture start second screen detector , when vehicle enters second screen takes second picture , @ last detect in third , click picture. hence have 3 picture , can calculate speed process given here calculating speed using webcam
presently, using javacv image processing library. running multiple instance of single java program detect motion in different screen. please suggest me how can do. can thread
useful here?
(more comment doesn't fit)
i'd suggest starting try making work taking 3 pictures @ fixed interval (which guess).
then, if want address issue of detecting speed of objects moving @ quite different speeds, i'd suggest starting taking many pictures possible once detect movement, sufficiently long time, , figuring out afterwards 1 should use analysis.
i can see trying should start dumb things first. 2 cents...
Comments
Post a Comment