I intend to put my macbook on my landing/hallway for when the people downstairs come up to rummage through my bedroom/rooms, such that when an intruder is detected a set of scripted events occur, such as a countdown from 10 followed by very loud music, but the existing software is either commercial or insufficient. Im not intending to spend money on this.
Given a Macbook or desktop with a webcam. and using java, what libraries would I need to implement a basic version of the above? Also what references for implementing these kinds of motion detection programs would be useful?