Hello,
I am trying to simply output an image via the HDMI port. Here’s my code:
from pynq.overlays.base import BaseOverlay
from pynq.lib.video import *
import PIL.ImageDraw as ImageDraw
import PIL.Image as Image
import numpy as np
base = BaseOverlay(“base.bit”)hdmi_out = base.video.hdmi_out
Mode = VideoMode(1920,1080,24)
hdmi_out.configure(Mode,PIXEL_RGB)hdmi_out.start()
image = Image.open(‘base/video/orig.jpg’)
hdmi_out.writeframe(image)
I get the following error:
AttributeError: ‘JpegImageFile’ object has no attribute ‘flush’
I have tried converting into a numpy array, but that doesn’t seem to work either. Any ideas?