Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44327

    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_’

    #44342
    Gabriel Alves
    Keymaster

      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__

    Viewing 2 posts - 1 through 2 (of 2 total)
    • You must be logged in to reply to this topic.