The demo applications are located in the citric/apps directory. Help for demo applications can be displayed by giving the -- option, such as
./demo_testcam --
demo_bgsub performs 2 tasks - the first is continuous background subtraction, and the second is echoing incoming CB packets.
The demo app captures frames, performs background subtraction, extracts bounding boxes for foreground objects, and sends the number of bounding boxes to the server. The initial frame is stored as "im0000.jpg" and detected foregrounds are stored as "im####.jpg" where #### is the frame number.
Any user CB packet (with CB type 128-255) that is received by the demo_bgsub will be displayed on the screen and the same packet (same type and data) will be sent back to the server.
The server can be used to test the wireless functionality of the demo app by following these steps (menu items in parenthesis):
demo_testcam is a quick capture program designed to test the camera. Upon any keypress, it will capture an image and save it as a jpg, and also send the jpg file wirelessly to the server using wireless file transfer. Hitting the ESC key will quit the program. sz can be used to download files over USB.
There is a known issue after quitting the demo_testcam program where keyboard input is not echoed on the screen. The cause is unknown, but the bash terminal is still fully functional and responsive to keystrokes.