How to read and save the image of a vision sensor

Typically: "How do I... ", "How can I... " questions
Post Reply
Hacher
Posts: 16
Joined: 28 Nov 2024, 02:00

How to read and save the image of a vision sensor

Post by Hacher »

I am trying to use "sim.getVisionSensorImg" to read the image of a vision sensor in the eternal application.However, I'm failed becaus the data I achieve a series of Hexadecimal numbers which cannot be used as image data.The data I get with the function is just like:"b'\xe2\x00\x1d\xff\x8c\x00\xe2\x00\x1d\xe2\x00\x1d\xe2\x00\x1d\xe2\x00\x1d\......". I don't konw how to use it.

And I noticed the hint about use "sim.handleVisionSensor", but this funciton cannot work with error:objet not tagged for explicit handling.
Hacher
Posts: 16
Joined: 28 Nov 2024, 02:00

Re: How to read and save the image of a vision sensor

Post by Hacher »

This question has been solved by convert the data into binary.
Post Reply