| Home | Trees | Index | Help |
|
|---|
| Package pyrobot :: Package camera :: Class Camera |
|
Device --+
|
PyrobotImage --+
|
Camera
AiboCamera,
BlobCamera,
BT848Camera,
FakeCamera,
ManualFakeCamera,
PlayerCamera,
RobocupCamera,
V4LCameraA base class for Camera
| Method Summary | |
|---|---|
To specify the resolution of a particular camera, overload this... | |
Add a filter to the filter list. | |
apply(self,
command,
*args)
| |
clearCallbackList(self)
| |
clearFilters(self)
| |
delFilter(self,
pos)
| |
getCanvasHeight(self)
| |
getCanvasWidth(self)
| |
getData(self)
| |
Returns the device data, whatever it might be. | |
Returns the .state. | |
getFilterList(self)
| |
getImage(self)
| |
hideWindow(self)
| |
listCallbackList(self)
| |
loadFilters(self)
| |
makeFilterMenu(self,
data)
| |
Assumes self.menuButtons exists... | |
Method to make and show the device window. | |
pauseButton(self)
| |
playButton(self)
| |
popCallbackList(self)
| |
popFilterList(self)
| |
printit(self,
event)
| |
processAll(self)
| |
processLeftClickDown(self,
event)
| |
processLeftClickUp(self,
event)
| |
processMiddleClick(self,
event)
| |
processRightClick(self,
event)
| |
Save a copy of the image to disk, in TGA format (Gimp and display can read it). | |
saveFilters(self)
| |
saveImage(self)
| |
Filters take the form: ("name", (args))... | |
Sets the title of the device. | |
setUpdateInterval(self,
val)
| |
Starts the device (sets the .state). | |
Stops the device (sets the .state). | |
toggleFilterMode(self)
| |
togglePlay(self,
event)
| |
Update method for getting next sequence from a video camera. | |
updateButton(self)
| |
Method called to update the device properties. | |
updateOnce(self)
| |
Method to update the device window. | |
| Inherited from PyrobotImage | |
| |
cropPixels() ------------ crops pixels in the amount specified from left, top, right, and bottom if unspecified, right is assumed to be the same as left and bottom the same as top. | |
Display PyrobotImage in ASCII Art. | |
Get a pixel value. | |
getBitmap()... | |
Get the entire col, in tuples... | |
returns a filtered image r,g,b values indicate percentage of each color to keep eg. | |
| |
Method to convert depth 3 color into depth 1 grayscale... | |
| |
Get the entire row, in tuples... | |
return a scaled version of the current image... | |
Get the entire color value of the pixel in quetion, returned as a tuple. | |
Creates a histogram. | |
Method to increment a pixel value. | |
Method to load image from file. | |
Reset an image to a vector. | |
reset the image to a specified color... | |
Method to save image to a file. | |
Method to set the entire RGB value of a pixel. | |
| |
| Inherited from Device | |
Get a SensorValue, a range, or a set. | |
Used to iterate through SensorValues of device. | |
Method to addWidgets to the device window. | |
Device-level method to get all of the angles. | |
Hides the window. | |
Device-level method to get all of the distances. | |
Returns the value of .active. | |
Return all of the groups a pos is in. | |
Get the maxvalue of the sensor. | |
Returns a specific SensorValue from the range device. | |
Returns the .visible of the sensor. | |
Convert the sensor units into default units. | |
Sets the .active property. | |
Set the maxvalue of the sensor. | |
Use this to put setup code in (instead of in __init__). | |
Sets the .visible attribute, and hides/shows window. | |
| Property Summary | |
|---|---|
| Inherited from Device | |
geometry | |
noise | |
pos | |
rawValue | |
value | |
| Method Details |
|---|
__init__(self,
width,
height,
depth=3,
title='Camera View',
parent=None,
visible=1)
|
addFilter(self, func, *args)Add a filter to the filter list. Example: self.robot.camera[0].addFilter( "superColor", 3) |
getDeviceData(self)Returns the device data, whatever it might be.
|
getDeviceState(self)Returns the .state.
|
makeMenu(self, bar, name, commands)Assumes self.menuButtons exists |
makeWindow(self)Method to make and show the device window.
|
saveAsTGA(self, path='~/V4LGrab.tga')Save a copy of the image to disk, in TGA format (Gimp and display can read it). path is the name of the save file, and defaults to '~/V4LGrab.tga' |
setFilterList(self, filterList)
Filters take the form: ("name", (args))
Example: cam.setFilterList([("superColor",1,-1,-1,0),("meanBlur",3)])
|
setTitle(self, title)Sets the title of the device.
|
startDevice(self)Starts the device (sets the .state).
|
stopDevice(self)Stops the device (sets the .state).
|
update(self)Update method for getting next sequence from a video camera. |
updateDevice(self)Method called to update the device properties.
|
updateWindow(self)Method to update the device window.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jul 25 01:39:28 2005 | http://epydoc.sf.net |