Package javaforce.media
Class Camera
java.lang.Object
javaforce.media.Camera
Web Camera API
- Author:
- pquiring Created : Aug 20, 2013
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]getFrame()Get next image.int[]Get next image and flip vertically.int[]Get next image and mirror horizontally.int[]Get next image and mirror horizontally and flip vertically.intintgetWidth()booleaninit()String[]String[]listModes(int deviceIdx) booleanstart(int deviceIdx, int width, int height) booleanstop()booleanuninit()
-
Constructor Details
-
Camera
public Camera()
-
-
Method Details
-
init
public boolean init() -
uninit
public boolean uninit() -
listDevices
-
listModes
-
start
public boolean start(int deviceIdx, int width, int height) -
stop
public boolean stop() -
getFrame
public int[] getFrame()Get next image. -
getFrameMirror
public int[] getFrameMirror()Get next image and mirror horizontally. -
getFrameFlip
public int[] getFrameFlip()Get next image and flip vertically. -
getFrameMirrorAndFlip
public int[] getFrameMirrorAndFlip()Get next image and mirror horizontally and flip vertically. -
getWidth
public int getWidth() -
getHeight
public int getHeight()
-