Negative RGB values

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

Negative RGB values

Postby 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: 5906
Joined: 14 Dec 2012, 00:25

Re: Negative RGB values

Postby 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


Return to “General questions”

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 21 guests