Hello everyone. I have a simple code that uses the lines using Skimage Threshold_minimum. Yes, perhaps this is not the perfect method. Nevertheless, on the resulting image, I need to highlight lines, in which the thickness is less than a certain pixel value. That is, I expect that by specifying the value of 3 pixels, part of the lines on the image will be deleted. Alternatively considered CV2.houghlines, but he draws only flat lines.
Import Matplotlib.pyplot AS PLT Import CV2. From Skimage.Filters Import Threshold_tsu, Threshold_mean, Threshold_minimum, try_all_threshold # Load Image. img= cv2.imread ('C: \\ Temp \\ Map.png', 0) Thresh_min= Threshold_minimum (IMG) binary_min= img > Thresh_min. Fig, Axes= Plt.Subplots (NCols= 2, Figsize= (8, 3)) ax= axes.ravel () AX  .imshow (IMG, CMAP= PLT.cm.gray) AX  .set_title ('Original') AX  .imshow (Binary_min, CMAP= PLT.cm.gray) AX  .set_title ('Thresholded (MIN)') Plt.Show ()
- python : How to output camera camera OpenCV
- Is it possible to set up a stereo camera using OpenCV, Python3 to get the optimal image
- python : Is I well referred to a piece of code in the OOP?
- python : Error writing CV2.ERROR: OpenCV (4.5.1) Error: (-215: Assertion Failed)! _Img.Empty () in Function 'CV :: Imwrite'
- python : Selection of a large circuit CV2
- python : Why an error is issued: setting an array element with a sequence
- python : How to save a lot of files to the folder?
- python : How can you allocate all the shades of red from the picture?