|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.first.wpilibj.camera.AxisCamera
public class AxisCamera
This class is a singleton used to configure and get images from the axis camera.
Nested Class Summary | |
---|---|
static class |
AxisCamera.ExposurePriorityT
Enumeration representing the exposure priority. |
static class |
AxisCamera.ExposureT
Enumaration representing the different values which exposure may be set to. |
static class |
AxisCamera.ResolutionT
Enumeration representing the image resoultion provided by the camera. |
static class |
AxisCamera.RotationT
Enumeration representing the orientation of the picture. |
static class |
AxisCamera.WhiteBalanceT
Enumeration representing the different values which white balence may be set to. |
Method Summary | |
---|---|
boolean |
freshImage()
Has the current image from the camera been retrieved yet. |
int |
getBrightness()
Get the current brightness of the AxisCamera |
int |
getColorLevel()
Get the color level of images being retunred from the camera. |
int |
getCompression()
Get the compression of the images eing returned by the camera. |
AxisCamera.ExposureT |
getExposureControl()
Get the exposure mode that the camera is using. |
AxisCamera.ExposurePriorityT |
getExposurePriority()
Get the exposure priority that the camera is using. |
ColorImage |
getImage()
Get an image from the camera. |
static AxisCamera |
getInstance()
Get a reference to the AxisCamera, or initialize the AxisCamera if it has not yet been initialized. |
static AxisCamera |
getInstance(java.lang.String address)
Get a reference to the AxisCamera, or initialize the AxisCamera if it has not yet been initialized. |
int |
getMaxFPS()
Get the maximum frames per second that the camera will generate. |
AxisCamera.ResolutionT |
getResolution()
Get the resolution fo the images that the camera is returning. |
AxisCamera.RotationT |
getRotation()
Get the rotation of the images returned from the camera. |
AxisCamera.WhiteBalanceT |
getWhiteBalance()
Get the white balance set on the camera. |
void |
writeBrightness(int brightness)
Write the brightness for the camera to use. |
void |
writeColorLevel(int value)
Set the color level of images returned from the camera. |
void |
writeCompression(int value)
Write the level of JPEG compression to use on images returned from the camera. |
void |
writeExposureControl(AxisCamera.ExposureT value)
Write the exposure mode for the camera to use. |
void |
writeExposurePriority(AxisCamera.ExposurePriorityT value)
Write the exposure priority for the camera to use. |
void |
writeMaxFPS(int value)
Set the maximum frames per second that the camera will generate. |
void |
writeResolution(AxisCamera.ResolutionT value)
Set the resolution of the images to return. |
void |
writeRotation(AxisCamera.RotationT value)
Write the rotation of images for the camera to return. |
void |
writeWhiteBalance(AxisCamera.WhiteBalanceT whiteBalance)
Write the WhiteBalance for the camera to use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AxisCamera getInstance(java.lang.String address)
address
- A string containing the IP address for the camera in the
form "10.x.y.2" for cameras on the Ethernet switch or "192.168.0.90"
for cameras connected to the 2nd Ethernet port on an 8-slot cRIO.
public static AxisCamera getInstance()
public ColorImage getImage() throws AxisCameraException, NIVisionException
AxisCameraException
NIVisionException
public void writeBrightness(int brightness)
brightness
- This must be an integer between 0 and 100, with 100 being the brightestpublic int getBrightness()
public void writeWhiteBalance(AxisCamera.WhiteBalanceT whiteBalance)
whiteBalance
- The value to set the white balance to on the camera.public AxisCamera.WhiteBalanceT getWhiteBalance()
public void writeColorLevel(int value)
value
- This must be an integer from 0 to 100 with 0 being black and white.public int getColorLevel()
public void writeExposureControl(AxisCamera.ExposureT value)
value
- The expsure mode for the camera to use.public AxisCamera.ExposureT getExposureControl()
public void writeExposurePriority(AxisCamera.ExposurePriorityT value)
value
- The exposure priority to use.public AxisCamera.ExposurePriorityT getExposurePriority()
public void writeResolution(AxisCamera.ResolutionT value)
value
- The resolution imaga for the camera to return.public AxisCamera.ResolutionT getResolution()
public void writeCompression(int value)
value
- The level of JPEG compression to use from 0 to 100 with 0 being the least compression.public int getCompression()
public void writeRotation(AxisCamera.RotationT value)
value
- The rotation to be applied to images from the camera.public AxisCamera.RotationT getRotation()
public boolean freshImage()
public int getMaxFPS()
public void writeMaxFPS(int value)
value
- the new max fps
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |