Fabio53443 / Rosita-CoppeliaSim

CoppeliaSim implementation of the ROSITA robot
MIT License
3 stars 0 forks source link

python vision handling + tag scanning #2

Closed Fabio53443 closed 8 months ago

Fabio53443 commented 9 months ago

get an image from the kinect into the python workspace, possibly in a tag-scanning library of sorts.

ruryx00 commented 9 months ago
visionSensorHandle = sim.getObject('/VisionSensor')
img, [resX, resY] = sim.getVisionSensorImg(visionSensorHandle)
img = np.frombuffer(img, dtype=np.uint8).reshape(resY, resX, 3)
ruryx00 commented 9 months ago

https://manual.coppeliarobotics.com/en/apiFunctions.htm

Fabio53443 commented 9 months ago

IDEA: save image in a temp/persistent folder then pass the image as a file to the qr library

Fabio53443 commented 8 months ago

Done