opencv in python

Asked

Viewed 37 times

0

I need to make an algorithm that reads the color code and opens a window with the color.

I know I need to use the library cv, but I don’t know how you do it and I can’t find anything like it on the internet

Someone knows how to help?

1 answer

0

from tkinter import messagebox
import cv2

image = cv2.imread("sample.jpg")
color = int(image[300, 300])

messagebox.showinfo("Cor em BGR",  color)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.