Пытаюсь вывести изображение через библиотеки pygame и cv2, но ничего не выдаёт и ошибок не пишет

import pygame as dick
import cv2


class ArtConverter:
    def _init_(self, path='img/test.jpg'):
        dick.init()
        self.path = path
        self.image = cv2.imread(self.path)
        self.RES = self.WIDTH, self.HEIGHT = self.image.shape[0], self.image.shape[1]
        self.surface = dick.display.set_mode(self.RES)
        self.clock = dick.time.Clock()

    def get_image(self):
        pass

    def draw(self):
        dick.surfarray.blit_array(self.surface, self.image)
        cv2.imshow('img', self.image)

    def run(self):
        while True:
            for i in dick.event.get():
                if i.type == dick.QUIT:
                    exit()
            self.draw()
            dick.display.set_caption(str(self.clock.get_fps()))
            dick.display.flip()
            self.clock.tick

выдаёт следующее:

PS C:\Users\Dima> & C:/Users/Dima/AppData/Local/Programs/Python/Python310/python.exe c:/Users/Dima/Music/python/0.py
pygame 2.1.2 (SDL 2.0.18, Python 3.10.7)
Hello from the pygame community. https://www.pygame.org/contribute.html

Ответы (0 шт):