…ant to set the ccInit(indexCam, width, height) in order to get the camera workin. The indexCam is the 0,1,2... from the ccList . Notice ccList returns collections of Camera Names, separated by commas. So it's up to the developer to find which camera and set the right index. If you pass ccInit() ( null, null, null) the it will work with the default camear, and 320x240 default resolution
…which the background of a webcam, in the Apple Macbook at least, varies in terms of light balance, if the subject is not in the scene. This causes the whole background to change. We may need to start capturing multiple backgrounds with the subject moving first, to generate a real average background before comparing the pixels.