image-processing

Read blurry barcode in python with pyzbar

我只是一个虾纸丫 提交于 2021-01-05 05:51:42
问题 I have been trying to read some barcodes from images uzing Python and pyzbar. Unfortunately, the images are taken from several feet away under several constraints and I cannot move or zoom the camera any closer. Is it possible to read barcodes this blurry using any existing Python libraries? So far I've tried some preprocessing including thresholding, sharpening, applying a vertical closing filter, and Wiener filtering, but none seem to help. I am probably asking for a miracle, but if you

Does OpenCV support .HEIC image format?

三世轮回 提交于 2021-01-02 20:22:46
问题 I'm working on a face detection project and want to know if opencv provides support for heic format in imread() and imwrite() methods? Can an image be read using cv2's imread() and written using cv2.imwrite() functions? (Language being used: Python3.6) 来源: https://stackoverflow.com/questions/60951161/does-opencv-support-heic-image-format

Outline text on image in Python

谁都会走 提交于 2021-01-02 06:26:20
问题 I have been using PIL Image I am trying to draw text on an image. I want this text to have a black outline like most memes. I've attempted to do this by drawing a shadow letter of a bigger font behind the letter in front. I've adjusted the x and y postions of the shadow accordingly. The shadow is slightly off though. The letter in front should be exactly in the middle of the shadow letter, but this isn't the case. The question mark certainly isn't centered horizontally, and all the letters

What is the method for edge detection of a binary image in python?

独自空忆成欢 提交于 2021-01-01 11:26:10
问题 I have a binary image [0,1]. I want to use Python to find the edge of the image. I have tried sobel method on the binary but it provides a bad result. I expect the output like the image 回答1: The best way is to apply a 1-pixel morphological erosion, then take the difference between the input image and the result. In pseudo-code: edges = image - erosion(image) 来源: https://stackoverflow.com/questions/54134295/what-is-the-method-for-edge-detection-of-a-binary-image-in-python

What is the method for edge detection of a binary image in python?

萝らか妹 提交于 2021-01-01 11:16:40
问题 I have a binary image [0,1]. I want to use Python to find the edge of the image. I have tried sobel method on the binary but it provides a bad result. I expect the output like the image 回答1: The best way is to apply a 1-pixel morphological erosion, then take the difference between the input image and the result. In pseudo-code: edges = image - erosion(image) 来源: https://stackoverflow.com/questions/54134295/what-is-the-method-for-edge-detection-of-a-binary-image-in-python

What is the method for edge detection of a binary image in python?

五迷三道 提交于 2021-01-01 11:13:46
问题 I have a binary image [0,1]. I want to use Python to find the edge of the image. I have tried sobel method on the binary but it provides a bad result. I expect the output like the image 回答1: The best way is to apply a 1-pixel morphological erosion, then take the difference between the input image and the result. In pseudo-code: edges = image - erosion(image) 来源: https://stackoverflow.com/questions/54134295/what-is-the-method-for-edge-detection-of-a-binary-image-in-python

What is the method for edge detection of a binary image in python?

时光毁灭记忆、已成空白 提交于 2021-01-01 11:13:29
问题 I have a binary image [0,1]. I want to use Python to find the edge of the image. I have tried sobel method on the binary but it provides a bad result. I expect the output like the image 回答1: The best way is to apply a 1-pixel morphological erosion, then take the difference between the input image and the result. In pseudo-code: edges = image - erosion(image) 来源: https://stackoverflow.com/questions/54134295/what-is-the-method-for-edge-detection-of-a-binary-image-in-python

What is the method for edge detection of a binary image in python?

六眼飞鱼酱① 提交于 2021-01-01 11:09:04
问题 I have a binary image [0,1]. I want to use Python to find the edge of the image. I have tried sobel method on the binary but it provides a bad result. I expect the output like the image 回答1: The best way is to apply a 1-pixel morphological erosion, then take the difference between the input image and the result. In pseudo-code: edges = image - erosion(image) 来源: https://stackoverflow.com/questions/54134295/what-is-the-method-for-edge-detection-of-a-binary-image-in-python

What is the method for edge detection of a binary image in python?

青春壹個敷衍的年華 提交于 2021-01-01 11:06:28
问题 I have a binary image [0,1]. I want to use Python to find the edge of the image. I have tried sobel method on the binary but it provides a bad result. I expect the output like the image 回答1: The best way is to apply a 1-pixel morphological erosion, then take the difference between the input image and the result. In pseudo-code: edges = image - erosion(image) 来源: https://stackoverflow.com/questions/54134295/what-is-the-method-for-edge-detection-of-a-binary-image-in-python

What is the method for edge detection of a binary image in python?

北城以北 提交于 2021-01-01 11:06:02
问题 I have a binary image [0,1]. I want to use Python to find the edge of the image. I have tried sobel method on the binary but it provides a bad result. I expect the output like the image 回答1: The best way is to apply a 1-pixel morphological erosion, then take the difference between the input image and the result. In pseudo-code: edges = image - erosion(image) 来源: https://stackoverflow.com/questions/54134295/what-is-the-method-for-edge-detection-of-a-binary-image-in-python