How to detect image brightness and sharpness in python?
*Basic recommendation, using the gray images is better on OCR
You can use the BRISQUE image quality assessment for scoring the image quality, it's available as a library. check it out, a smaller score means good quality.
I tried applying tesseract ocr on image but before applying OCR I want to improve the quality of the image so that OCR efficiency increase,

How to detect image brightness and increase or decrease the brightness of the image as per requirement.

How to detect image sharpness