Negative RGB values

Typically: "How do I... ", "How can I... " questions
Post Reply
Theodore
Posts: 2
Joined: 21 Oct 2016, 08:41

Negative RGB values

Post by Theodore » 19 Apr 2017, 19:07

Hi,
I am using the remote Python API and retrieve the image of a vision sensor with img = simxGetVisionSensorImage(clientID, vSensor, 0, simx_opmode_buffer)
But some values are negative. What exactly are these values if not (R,G,B) triplets?

Thanks,
Theodore

coppelia
Site Admin
Posts: 6185
Joined: 14 Dec 2012, 00:25

Re: Negative RGB values

Post by coppelia » 21 Apr 2017, 07:47

Hello Theodore,

try with:

Code: Select all

import numpy as np
.
.
.
img = np.array(image,dtype=np.uint8)
Cheers

Post Reply