https://github.com/diwi/ps3eye
Sony PS3Eye Java/Processing Library.
https://github.com/diwi/ps3eye
libusb processing ps3eye ps3eye-driver
Last synced: about 1 year ago
JSON representation
Sony PS3Eye Java/Processing Library.
- Host: GitHub
- URL: https://github.com/diwi/ps3eye
- Owner: diwi
- License: mit
- Created: 2017-03-26T12:19:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-20T03:30:47.000Z (about 9 years ago)
- Last Synced: 2025-04-12T00:50:05.073Z (about 1 year ago)
- Topics: libusb, processing, ps3eye, ps3eye-driver
- Language: Java
- Homepage:
- Size: 40 KB
- Stars: 18
- Watchers: 5
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# PS3Eye
A Java/Processing Library for the PS3Eye USB-Camera.
The library-core is mostly a Java-port of the [PS3EYEDriver](https://github.com/inspirit/PS3EYEDriver) project.
Java Demo [PS3Eye_GUI.zip](https://github.com/diwi/PS3Eye/files/939853/PS3Eye_GUI.zip)

## Download
+ [Releases](https://github.com/diwi/PS3Eye/releases)
+ [PS3Eye Website](http://thomasdiewald.com/processing/libraries/PS3Eye/)
+ Processing IDE -> Library Manager
JavaDoc: http://thomasdiewald.com/processing/libraries/PS3Eye/reference/index.html
## Controls
```
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
```
## Installation, Processing IDE
- Download [Processing 3](https://processing.org/download/?processing)
- Install PS3Eye via the Library Manager.
- Or manually, unzip and put the extracted PS3Eye folder into the libraries folder of your Processing sketches. Reference and examples are included in the PS3Eye folder.
#### Platforms
Windows, Linux, MacOSX
## Processing Example
```java
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);
}
```
## Installation, PS3Eye Driver
[usb4java](http://usb4java.org/) (based on [libusb](http://libusb.info/)) is used to access PS3Eye USB-device.
So, to use the PS3Eye-Library you need to install the corresponding PS3Eye driver for your OS.
[How_to_use_libusb_on_Windows](https://github.com/libusb/libusb/wiki/Windows#How_to_use_libusb_on_Windows)
#### How i did it (Windows 10, x64)
1) plugin PS3Eye-USB-Camera
2) open the Device Manager and open [Zadig](http://zadig.akeo.ie/)
3) make sure no driver is installed (uninstall if necessary) and then use Zadig to install **libus-win32**
