Skip to content

Tag: opencv

RGB average of circles

I’m using OpenCV and PIL in Python. I have 96 circles detected with their center coordinates and radios. I need the average RGB from each circles. Each circle has 6000 pixels, so I thinks iterate one to one it is not efficient. How can I extract the average RGB from each circle? I am ready to use any ot…

implement mat2gray in Opencv with Python

I have the same problem with him: Scaling a matrix in OpenCV I got the same problem with him, I have a colored picture, I used matlab to read the picture: Input = imread(‘input1.jpg’);, and the format of the picture is 612x612x3 uint8, I print the 5x5x1 pixel in the picture as below:Input(1:5,1:5,…