python - opencv python中的detectAndCompute()方法给出命令行错误
问题描述
我正在尝试使用 ORB 方法进行特征匹配,但该detectAndCompute
方法出错。
代码:
import cv2
import matplotlib.pyplot as
# display function
def display(img, title=None, cmap='gray'):
fig = plt.figure(figsize=(12, 10))
ax = fig.add_subplot(111)
ax.imshow(img, cmap)
plt.title(title)
plt.show()
reeses_printout = cv2.imread("../DATA/reeses_puffs.png", 0)
cereals = cv2.imread("../DATA/many_cereals.jpg", 0)
orb = cv2.ORB_create()
key_points_1, descriptors_1 = orb.detectAndCompute(reeses_printout, mask=None)
key_points_2, descriptors_2 = orb.detectAndCompute(cereals, mask=None)
错误信息:
$ python3 feature_matcing.py
: CommandLine Error: Option 'enable-value-profiling' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
解决方案
推荐阅读
- postgresql - plpgsql 函数 - 列名不明确
- javascript - Javascript 数组处理,Firefox 和 Chrome 的区别
- javascript - 有没有办法从 Html 中的输入中获取完整的文件路径?
- angular - 从子组件调用父函数
- html - 当居中元素的高度大于窗口高度时如何禁用垂直居中?(没有Javascript)
- openxml - 如何使用 AddDigitalSignatureOriginPart(DocumentFormat.OpenXml 库)来保护 Excel 文件?
- python - 如何合并具有重复值的字典列表以创建嵌套字典?
- hadoop - 如何将文件添加到 Hive
- android - 如何在viewpager中将值从片段传递到片段?
- kotlin - 无法编译应用程序 java.lang.IllegalStateException: processingEnv 不能为空