I am building a project that can read text from images. I also need to determine in which color this text is written. Images are computer generated and are always consist of numbers. I am using PyTesseract for OCR detection. Can anyone suggest to me how can I do it?
Say for example I need information in my python code like 429.05 Green
My code is as bellow
import pytesseract
import cv2
pytesseract.pytesseract.tesseract_cmd = "C:\\Program Files\\Tesseract-OCR\\tesseract.exe"
img = cv2.imread("D:\\test2.png")
text = pytesseract.image_to_string(img)
print(text)