public class USBCamera extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
USBCamera.WhiteBalance |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
kDefaultCameraName |
Constructor and Description |
---|
USBCamera() |
USBCamera(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
closeCamera() |
int |
getBrightness()
Get the brightness, as a percentage (0-100).
|
void |
getImage(NIVision.Image image) |
void |
getImageData(java.nio.ByteBuffer data) |
void |
openCamera() |
void |
setBrightness(int brightness)
Set the brightness, as a percentage (0-100).
|
void |
setExposureAuto()
Set the exposure to auto aperature.
|
void |
setExposureHoldCurrent()
Set the exposure to hold current.
|
void |
setExposureManual(int value)
Set the exposure to manual, as a percentage (0-100).
|
void |
setFPS(int fps) |
void |
setSize(int width,
int height) |
void |
setWhiteBalanceAuto()
Set the white balance to auto.
|
void |
setWhiteBalanceHoldCurrent()
Set the white balance to hold current.
|
void |
setWhiteBalanceManual(int value)
Set the white balance to manual, with specified color temperature.
|
void |
startCapture() |
void |
stopCapture() |
void |
updateSettings() |
public static java.lang.String kDefaultCameraName
public void openCamera()
public void closeCamera()
public void startCapture()
public void stopCapture()
public void updateSettings()
public void setFPS(int fps)
public void setSize(int width, int height)
public void setBrightness(int brightness)
public int getBrightness()
public void setWhiteBalanceAuto()
public void setWhiteBalanceHoldCurrent()
public void setWhiteBalanceManual(int value)
public void setExposureAuto()
public void setExposureHoldCurrent()
public void setExposureManual(int value)
public void getImage(NIVision.Image image)
public void getImageData(java.nio.ByteBuffer data)