项目作者: diwi

项目描述 :
Sony PS3Eye Java/Processing Library.
高级语言: Java
项目地址: git://github.com/diwi/PS3Eye.git
创建时间: 2017-03-26T12:19:15Z
项目社区:https://github.com/diwi/PS3Eye

开源协议:MIT License

下载


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

  1. Camera Controls
  2. gain = 20 [0, 63]
  3. exposure = 120 [0, 255]
  4. sharpness = 0 [0, 63]
  5. hue = 143 [0, 255]
  6. brightness = 20 [0, 255]
  7. contrast = 37 [0, 255]
  8. blueblc = 128 [0, 255]
  9. redblc = 128 [0, 255]
  10. greenblc = 128 [0, 255]
  11. autogain = false
  12. awb = false
  13. flip_h = false
  14. flip_v = false
  15. ...
  16. Resolution
  17. PS3Eye.Resolution.VGA ... framerate[2, 75]
  18. PS3Eye.Resolution.QVGA ... framerate[2, 187]
  19. PixelFormat
  20. PS3Eye.Format.RGB
  21. PS3Eye.Format.BGR
  22. 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

  1. import com.thomasdiewald.ps3eye.PS3EyeP5;
  2. PS3EyeP5 ps3eye;
  3. public void settings() {
  4. size(640, 480);
  5. }
  6. public void setup() {
  7. ps3eye = PS3EyeP5.getDevice(this);
  8. if (ps3eye == null) {
  9. System.out.println("No PS3Eye connected. Good Bye!");
  10. exit();
  11. return;
  12. }
  13. ps3eye.start();
  14. }
  15. public void draw() {
  16. image(ps3eye.getFrame(), 0, 0);
  17. }


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