如何处理在 Cv2/.dylibs/QTGui 和 LibQcocoa/LibQt5Print Support 中实现的类?

Sam*_*Sam 5 python dylib qtgui anaconda cv2

我正在尝试在图像数据集上实现 Mask RCNN,但我的代码因错误消息而停止。这 8 个类在我的计算机上的两个不同位置实现,计算机告诉我选择一个;但是,我无法理解如何选择一个(或选择哪个)。我只在 HS,所以我真的需要我能得到的所有帮助!:)

我正在使用 Anaconda 3 在 Eclipse 中的 Mac 上运行它。


visualize.display_instances(image, r['rois'], r['masks'], r['class_ids'], dataset.class_names, r['scores'], ax=get_ax(1), title="Predictions")
Run Code Online (Sandbox Code Playgroud)

这一行是调用这些类的地方。该程序能够调用该函数并输出元数据:

image                    shape: (736, 700, 3)         min:    0.00000  max:  255.00000  uint8
molded_images            shape: (1, 1472, 1408, 3)    min:  -48.22000  max:  214.44000  float64
image_metas              shape: (1, 14)               min:    0.00000  max: 1472.00000  float64
anchors                  shape: (1, 517638, 4)        min:   -0.06433  max:    1.01884  float32
Run Code Online (Sandbox Code Playgroud)

但随后由于错误而停止:

objc[1408]: Class QCocoaPrintPanelDelegate is implemented in both /Users/myName/py3env/anaconda3/lib/python3.7/site-packages/cv2/.dylibs/QtGui (0x1c400c8638) and /Users/myName/py3env/anaconda3/lib/libQt5PrintSupport.5.9.7.dylib (0x129f55f40). One of the two will be used. Which one is undefined.
objc[1408]: Class QCocoaApplicationDelegate is implemented in both /Users/myName/py3env/anaconda3/lib/python3.7/site-packages/cv2/.dylibs/QtGui (0x1c400c8340) and /Users/myName/py3env/anaconda3/plugins/platforms/libqcocoa.dylib (0x1c439e2670). One of the two will be used. Which one is undefined.
objc[1408]: Class QNSApplication is implemented in both /Users/myName/py3env/anaconda3/lib/python3.7/site-packages/cv2/.dylibs/QtGui (0x1c400c82f0) and /Users/myName/py3env/anaconda3/plugins/platforms/libqcocoa.dylib (0x1c439e26c0). One of the two will be used. Which one is undefined.
objc[1408]: Class QCocoaMenuLoader is implemented in both /Users/myName/py3env/anaconda3/lib/python3.7/site-packages/cv2/.dylibs/QtGui (0x1c400c82a0) and /Users/myName/py3env/anaconda3/plugins/platforms/libqcocoa.dylib (0x1c439e2760). One of the two will be used. Which one is undefined.
objc[1408]: Class QNSImageView is implemented in both /Users/myName/py3env/anaconda3/lib/python3.7/site-packages/cv2/.dylibs/QtGui (0x1c400c8660) and /Users/myName/py3env/anaconda3/plugins/platforms/libqcocoa.dylib (0x1c439e2850). One of the two will be used. Which one is undefined.
objc[1408]: Class QNSStatusItem is implemented in both /Users/myName/py3env/anaconda3/lib/python3.7/site-packages/cv2/.dylibs/QtGui (0x1c400c86b0) and /Users/myName/py3env/anaconda3/plugins/platforms/libqcocoa.dylib (0x1c439e28a0). One of the two will be used. Which one is undefined.
objc[1408]: Class QNSOpenSavePanelDelegate is implemented in both /Users/myName/py3env/anaconda3/lib/python3.7/site-packages/cv2/.dylibs/QtGui (0x1c400c8480) and /Users/myName/py3env/anaconda3/plugins/platforms/libqcocoa.dylib (0x1c439e2940). One of the two will be used. Which one is undefined.
Run Code Online (Sandbox Code Playgroud)

旁注:此时我还没有下载 XCode。许多相关问题的答案已将问题定位到 xCode,但我没有实际应用程序,只有 Mac 上的库。更新:我下载了 XCode 看看它是否有帮助,但这个问题仍然存在。

*** 一个类似的问题是在PyQt5 和 OpenCV 有类似的库;如何避免两者之间的冲突?然而,没有答案,所以我试图更简洁地表达这一点。谢谢!