You can try to use opencv to get images from cam and work with them