- This topic has 1 reply, 2 voices, and was last updated 2 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Fórum Detecção e Reconhecimento Facial com Python › olá bom dia
import cv2
import numpy as np
from google.colab.patches import cv2_imshow
cv2._version_
AttributeError Traceback (most recent call last)
<ipython-input-2-9944bc8a39fd> in <cell line: 1>()
—-> 1 cv2._version_
AttributeError: module ‘cv2’ has no attribute ‘_version_’
Olá Edison!
Esse erro ocorre pois está apenas com 1 underline antes e 1 após a palavra version, na verdade são 2.
Ou seja, ao invés de _version_ mude para __version__