在 Python3 中载入 OpenCV 需要使用如下方式:
from cv2 import cv2
而不能使用 import cv2 否则 vscode 会报错:
import cv2
而正确导入则不会报错: