Skip to content

diwi/PS3Eye

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PS3Eye Header

PS3Eye

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

PS3Eye Header


Download

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
  • 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

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 (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.

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
  3. make sure no driver is installed (uninstall if necessary) and then use Zadig to install libus-win32

PS3Eye_libusb_driver_install