image-processing

How can I process images faster with Python?

女生的网名这么多〃 提交于 2020-12-01 10:40:46
问题 I'd trying to write a script that will detect an RGB value on the screen then click the x,y values. I know how to perform the click but I need to process the image a lot faster than my code below currently does. Is this possible with Python? So far I'm reading a row at a time, when x = 1920 I go onto the second row but it takes about 10 seconds to do one row. By that time the person on screen would have moved into a completely different spot and I have only done one row! Can I speed this code

How to improve image quality? [closed]

笑着哭i 提交于 2020-12-01 09:55:12
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . Improve this question I am making an OCR which reads ID cards. After getting region of interest by using YOLO, I am giving that cropped region to Tesseract to read it. As those cropped images are very small and blurry, Tesseract is unable to read them. When it can read them, it

Find location of image inside bigger image

混江龙づ霸主 提交于 2020-11-30 12:08:27
问题 So i have an image lets say small.png and a bigger image big.png .The small image occurs 2 times in the bigger image and i wish to find its location. I tried using numpy and Image but got error 'JpegImageFile' object has no attribute '__getitem__' .I had png format earlier and it gave the same error. Is there any other module or way to get this done.I am open to any . The code as of now which throws error is import numpy from PIL import Image here = Image.open(r"/Users/vks/Desktop/heren.jpg")

Find location of image inside bigger image

↘锁芯ラ 提交于 2020-11-30 12:07:45
问题 So i have an image lets say small.png and a bigger image big.png .The small image occurs 2 times in the bigger image and i wish to find its location. I tried using numpy and Image but got error 'JpegImageFile' object has no attribute '__getitem__' .I had png format earlier and it gave the same error. Is there any other module or way to get this done.I am open to any . The code as of now which throws error is import numpy from PIL import Image here = Image.open(r"/Users/vks/Desktop/heren.jpg")

Find location of image inside bigger image

北城以北 提交于 2020-11-30 12:05:31
问题 So i have an image lets say small.png and a bigger image big.png .The small image occurs 2 times in the bigger image and i wish to find its location. I tried using numpy and Image but got error 'JpegImageFile' object has no attribute '__getitem__' .I had png format earlier and it gave the same error. Is there any other module or way to get this done.I am open to any . The code as of now which throws error is import numpy from PIL import Image here = Image.open(r"/Users/vks/Desktop/heren.jpg")

Deblur image with text to be recognized by OCR

|▌冷眼眸甩不掉的悲伤 提交于 2020-11-30 04:42:41
问题 I have an image which is blurred: This is a part of the business card and it is one of the frames taken by the camera and without proper focus. The clear image looks like this I'm looking for the method which could give me an image of better quality, so that image could be recognized by OCR, but also should be quite fast. Image is not blurred too much (I think so) but isn't good for OCR. I tried: different kinds of HPF, Laplacian, Canny detector, combinations of morphological operations

Deblur image with text to be recognized by OCR

て烟熏妆下的殇ゞ 提交于 2020-11-30 04:39:30
问题 I have an image which is blurred: This is a part of the business card and it is one of the frames taken by the camera and without proper focus. The clear image looks like this I'm looking for the method which could give me an image of better quality, so that image could be recognized by OCR, but also should be quite fast. Image is not blurred too much (I think so) but isn't good for OCR. I tried: different kinds of HPF, Laplacian, Canny detector, combinations of morphological operations