Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
或者是说 有什么方法可以求两条黑线之间的中线呢
blobs = img.find_blobs() if len(blobs) == 2: 直线1 = blobs[0] 直线2 = blobs[1] print(直线1.cx()) print(直线1.cy()) print(直线2.cx()) print(直线2.cy()) 中间点 = [(直线1.cx()-直线2.cx())/2, (直线1.cy()-直线2.cy())/2] print(中间点)