How can I connect these lines to target points? The image is the result of the skeletonization process.
I am trying to segment each row as a region using the Watershed transform.
MikeE : ., . , / , , , .
( , bw):
bw
import cv2, numpy as np kernel = np.ones((1,20), np.uint8) # note this is a horizontal kernel d_im = cv2.dilate(bw, kernel, iterations=1) e_im = cv2.erode(d_im, kernel, iterations=1)
, , :
,
:
, /, ., :
, , , .
, .
, : http://docs.opencv.org/2.4/doc/tutorials/imgproc/opening_closing_hats/opening_closing_hats.html#closing
, , . . : http://docs.opencv.org/2.4/doc/tutorials/imgproc/erosion_dilatation/erosion_dilatation.html
, , . , .
, erode.
Source: https://habr.com/ru/post/1676697/More articles:Ember JS Tutorial: TypeError: Unable to read property maps undefined - javascriptElectron. Can my application exchange data with main and rendering processes? - electronCloud functions for Firebase timing - how long have google functions been idle? - firebaseWhere does msbuild put its crash log files? - .netASP.NET MVC Iterating over Model Properties with Data Annotations - reflectionModel Display Name using Reflection - reflectionASP.NET MVC 3 Razor DisplayFor Delegate - c #all.equal () in the R base that does not return TRUE - functionWhy is this negative lookbehind considered a successful regular expression? - regexCall AngularJS - javascriptAll Articles