capture image for vision processing

Hi,

I want to capture what the robot sees for image processing. The documentation makes it sound easy, but it never says how to do it in a way that I can understand.

I tried this
image = breve.createInstances( breve.Image, 1 )
image.readPixels(0,0)

but this gives me the error
File "/home/jmugan/rcode/robot.py", line 233, in iterate
image.readPixels(0,0)
File "lib/classes/breve/Image.py", line 169, in readPixels
breve.breveInternalFunctionFinder.imageReadPixels( self, self.imageData, x, y )
File "lib/classes/breve/__init__.py", line 144, in __call__
return breveInternal.callInternalFunction( self.function, args )
RuntimeError: invalid type for argument 0 of internal function "imageReadPixels" (got "int", expected "string" )

Any ideas?

Thanks,
Jonathan

Pattern Language

BREVE C/S MODE

"Undue haste is waste." — US Marine Corps

I don't understand

Thanks for your response, but I don't understand. What is C/S mode?

OK

Client's connect to servers. My client is required to send your server a terrain map. How could my client connect to your breve server? Our clients don't understand steve.

Run me a bypass Jonathan. In the future "robot, and" or save you but.

"Undue haste is waste." — US Marine Corps

huh?

Again, I don't understand your response. There is no client and no server, all in Breve.

list terrain waypoints

@use Real.

real read-line-as-list
send-over-network to hostName (string) on portNumber (int)

Processing?

Know many vision recognition systems. Hardware and software, unless you are reinventing a few cogs, always here to assist.

Carry On,

-Doug

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.