Cv2 vs opencv contrib google colab:无法使用opencv contrib

2024-10-02 04:23:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图从colab加载cv2(contrib),因为我需要

cv2.dnn_superres.DnnSuperResImpl_create()

但是它说

AttributeError: module 'cv2.cv2' has no attribute 'dnn_superres'

使用pip安装是无用的,因为它说已经安装了opencv contrib

那么,我该怎么做才能使colab加载opencv contrib而不是opencv


Tags: pipnocreateattributecontribcv2opencvattributeerror

热门问题