Description
|
Deprecated. Use sim.setVisionSensorImg instead |
C/C++ synopsis
|
int simSetVisionSensorCharImage(int sensorHandle,const unsigned char* image) |
C/C++ parameters |
sensorHandle: handle of the vision sensor object. Can be combined with sim.handleflag_greyscale (simply add sim.handleflag_greyscale to sensorHandle if you provide grey scale values instead of rgb value) or/and sim.handleflag_rawvalue (simply add sim.handleflag_rawvalue to sensorHandle if you do not wish to trigger image processing).
image: rgb buffer containing the image (buffer size must be resolutionX*resolutionY*3). Values in the buffer should vary between 0 and 255. In case a grey scale image is provided, the buffer size must be resolutionX*resolutionY.
|
C/C++ return value
|
-1 if operation was not successful. 0 if the image processing didn't trigger anything, 1 if the image processing triggered a detection
|
Lua synopsis
|
int result=sim.setVisionSensorCharImage(int sensorHandle,buffer image) |
Lua parameters |
Similar to the C-function counterpart |
Lua return values
|
Similar to the C-function counterpart
|
Python synopsis |
int result=sim.setVisionSensorCharImage(int sensorHandle,bytes image) |