如何提取最接近图像底部的轮廓的像素坐标?
我正在对图像进行一些轮廓分析:
contours, hierarchy = cv2.findContours(image=background_removed_ROI, mode=cv2.RETR_TREE, method=cv2.CHAIN_APPROX_SIMPLE)
我需要提取最接近图像底部的轮廓。从最接近图像底部的轮廓中,我想提取像素的坐标,该坐标最接近该轮廓的底部。 我该如何实现?
I am performing some contour analysis on an image:
contours, hierarchy = cv2.findContours(image=background_removed_ROI, mode=cv2.RETR_TREE, method=cv2.CHAIN_APPROX_SIMPLE)
I need to extract the contour, which is closest to the bottom of the image. From the contour, which is closest to the bottom of the image, I then want to extract the coordinates of the pixel, which is closest to the bottom in this contour.
How can I achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论