Hi Panno.
My camera is a SpaceCam120.. pretty naff if you ask me :)
There has been aLOT of work put into that code to detect and remove the noise, otherwise it loks like an untuned TV set :)
Well, it can detect actual motion quite well- not fantastic, but quite well, so i might be able to do a punch-breakout or something :) using toka maybe?
Its quite slow though- not sure if it'd be really useful for anything :)
Noise removal:
I do it by comparing the last frame with the current one, and checking for a difference of *greater than X*
if it is different, then update the image with new info and add a MOTION flag to the pixel.
This still leaves quite a bit of noise in the motion flags, so you then skim through and check the size of each motion pixel- if it is surrounded by other motion pixels then its usually not noise- if it isnt, then it would be and should be reset so its NOT a motion pixel.
using the above method and only updating part of the images that are detected as changed, means 1) maybe i can encode a new video format and 2) i get a clean looking screen despite the noise from the webcam.
My camera is a SpaceCam120.. pretty naff if you ask me :)
There has been aLOT of work put into that code to detect and remove the noise, otherwise it loks like an untuned TV set :)
Well, it can detect actual motion quite well- not fantastic, but quite well, so i might be able to do a punch-breakout or something :) using toka maybe?
Its quite slow though- not sure if it'd be really useful for anything :)
Noise removal:
I do it by comparing the last frame with the current one, and checking for a difference of *greater than X*
if it is different, then update the image with new info and add a MOTION flag to the pixel.
This still leaves quite a bit of noise in the motion flags, so you then skim through and check the size of each motion pixel- if it is surrounded by other motion pixels then its usually not noise- if it isnt, then it would be and should be reset so its NOT a motion pixel.
using the above method and only updating part of the images that are detected as changed, means 1) maybe i can encode a new video format and 2) i get a clean looking screen despite the noise from the webcam.