Outputting Image with Python Library


I am trying to simply output an image via the HDMI port. Here’s my code:

from pynq.overlays.base import BaseOverlay
from import *
import PIL.ImageDraw as ImageDraw
import PIL.Image as Image
import numpy as np
base = BaseOverlay(“base.bit”)

hdmi_out =
Mode = VideoMode(1920,1080,24)


image =‘base/video/orig.jpg’)


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?

I think you should check more examples

Thanks for responding.

I went and took a look at that example again.

I don’t want to capture anything from the HDMI input. I want to pass an image for output. The examples all involve using a webcam or some other device to capture a frame. Is there a way to do this or must the HDMI input be used? An example would be extremely helpful.

Is there any example somewhere that shows how to take a pre-existing static image and pass it to HDMI out?