本文介绍了如何在OpenCV 4.1.0中实现LSD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在开放的CV项目中实现了LSD.一切正常,直到我将opencv版本从4.0.0升级到4.1.0.现在我得到了错误
I had implemented LSD in my open CV project. Every thing worked well until I upgraded opencv version from 4.0.0 to 4.1.0. Now I get error as
cv2.error: OpenCV(4.1.0) /io/opencv/modules/imgproc/src/lsd.cpp:143: error: (-213:The function/feature is not implemented) Implementation has been removed due original code license issues in function 'LineSegmentDetectorImpl'
似乎由于某些许可问题,此功能已被删除.我该如何解决这个问题.
It seems that due to some liscense issue this feature has been removed. How do I address this problem.
该错误显示在代码的以下部分中:
The error is shown in the following part of code :
cv2.createLineSegmentDetector(0)
推荐答案
$ pip install pylsd
为我工作
这篇关于如何在OpenCV 4.1.0中实现LSD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!