It was a misconception of how the .threshold method works.
The code is working, but what i need is to set a threshold of the amount of change between the previous frame and the new frame.
Because the problem i have is that even if i dont move my hand ( there is always a little movement) im still getting images, and the idea is to get only images when there is a significant move in front of kinect.
How can i control the threshold of the amount of change ?
Hi Pandereto , ive tried your approach , it works fine but only depending on the size of the moving “thing” in front of the kinect , for example, if i use a threshold value that works fine with my “hand” and then i put my body , even if i dont move my body at all, its gonna detect movement because my body is much bigger than my hand and its gonna create much more white pixels than the non moving hand.
Do anybody have an idea of how to solve this problem?
Is there is a way of detecting significant movement that not depends on the size of the moving object?