Sony PS3Eye Java/Processing Library.
A Java/Processing Library for the PS3Eye USB-Camera.
The library-core is mostly a Java-port of the PS3EYEDriver project.
Java Demo PS3Eye_GUI.zip
JavaDoc: http://thomasdiewald.com/processing/libraries/PS3Eye/reference/index.html
Camera Controls
gain = 20 [0, 63]
exposure = 120 [0, 255]
sharpness = 0 [0, 63]
hue = 143 [0, 255]
brightness = 20 [0, 255]
contrast = 37 [0, 255]
blueblc = 128 [0, 255]
redblc = 128 [0, 255]
greenblc = 128 [0, 255]
autogain = false
awb = false
flip_h = false
flip_v = false
...
Resolution
PS3Eye.Resolution.VGA ... framerate[2, 75]
PS3Eye.Resolution.QVGA ... framerate[2, 187]
PixelFormat
PS3Eye.Format.RGB
PS3Eye.Format.BGR
PS3Eye.Format.BAYER
Windows, Linux, MacOSX
import com.thomasdiewald.ps3eye.PS3EyeP5;
PS3EyeP5 ps3eye;
public void settings() {
size(640, 480);
}
public void setup() {
ps3eye = PS3EyeP5.getDevice(this);
if (ps3eye == null) {
System.out.println("No PS3Eye connected. Good Bye!");
exit();
return;
}
ps3eye.start();
}
public void draw() {
image(ps3eye.getFrame(), 0, 0);
}
usb4java (based on libusb) is used to access PS3Eye USB-device.
So, to use the PS3Eye-Library you need to install the corresponding PS3Eye driver for your OS.
1) plugin PS3Eye-USB-Camera
2) open the Device Manager and open Zadig
3) make sure no driver is installed (uninstall if necessary) and then use Zadig to install libus-win32