模块 'cv2.cv2' 没有属性 'cvtcolor'

module 'cv2.cv2' has no attribute 'cvtcolor'

之前没用过python和openCV,不知道是什么问题

from PIL import ImageGrab
import cv2
import time

last_time = time.time()
while(True):
        screen = np.array(ImageGrab.grab(bbox=(0,40, 640, 480)))
        print('Loop took {} second'.format(time.time()-last_time))
        cv2.imshow('window', cv2.cvtcolor(screen, cv2.COLOR_BRG2RGB))
        if cv2.waitKey(25) & 0xFF == ord('q'):
                cv2.destroyAllWindow()
                break

这是代码,有人能帮我理解这个问题吗?

谢谢

the code with the error, sorry for the language translate from italian

Error duting the runtime

应该是 cvtColor 因为 cvtcolor 重命名为 cvtColor

来源: https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_colorspaces/py_colorspaces.html