A quick minimal demo program that showcases the use of https://github.com/inspirit/PS3EYEDriver to get frames from a PS3 Eye camera into an OpenCV Mat.
The PS3 Eye is a very cheap and readily available camera that can operate at up to 187fps, which makes it great for some computer vision applications
Should work on macOS, Linux and Windows. Tested on macOS Mojave
Note Parts of the code in this repository has been developed by https://github.com/inspirit/PS3EYEDriver.
- Clone this repository
- Make sure you have libusb > 1.0 installed
- Make sure you have OpenCV > 3 installed
- In project directory
cmake .
make
./ps3eye
Change the FPS
definition and the resolution definition in the main.cpp
file.
THe following settings seem to work fine:
Resolution | Frame Rate | Notes |
---|---|---|
640x480 | 83 Hz | Partially corrupted frames. |
640x480 | 75 Hz | |
640x480 | 60 Hz | |
640x480 | 50 Hz | |
640x480 | 40 Hz | |
640x480 | 30 Hz | |
640x480 | 25 Hz | |
640x480 | 20 Hz | |
640x480 | 15 Hz | |
640x480 | 10 Hz | |
640x480 | 8 Hz | |
640x480 | 5 Hz | |
640x480 | 3 Hz | |
640x480 | 2 Hz | |
320x240 | 290 Hz | Partially corrupted frames. |
320x240 | 205 Hz | Partially corrupted frames. |
320x240 | 187 Hz | |
320x240 | 150 Hz | |
320x240 | 137 Hz | |
320x240 | 125 Hz | |
320x240 | 100 Hz | |
320x240 | 75 Hz | |
320x240 | 60 Hz | |
320x240 | 50 Hz | |
320x240 | 40 Hz | |
320x240 | 37 Hz | |
320x240 | 30 Hz | |
320x240 | 17 Hz | |
320x240 | 15 Hz | |
320x240 | 12 Hz | |
320x240 | 10 Hz | |
320x240 | 7 Hz | |
320x240 | 5 Hz | |
320x240 | 3 Hz | |
320x240 | 2 Hz |