I want to use HDMI in / out using python

I am trying to use the HDMI in/out using python for computer vision can anyone help me out with this.

Python3 is supported in the latest snickerdoodle image, but if you’re looking for a 100% Python-driven workflow, I’d start with Adam Taylor’s PYNQ port project: http://krtkl.com/projects/pynq-pismasher-build/

(We currently have someone working on a ‘stock’ snickerdoodle black-piSmasher PYNQ image, but we’re still working out the kinks with that.)

P.S. As a follow-on to the aforementioned PYNQ project, you can check out Adam’s HDMI in/out project; it was built using a different Zynq board but the same principles apply: https://www.hackster.io/adam-taylor/creating-a-zynq-or-fpga-based-image-processing-platform-e79394

I refer this link to use HDMI using python but the problem is there no bit file available for snickerdoodle and pi-smasher.

I refer this link to use HDMI
https://github.com/krtkl/piSmasher-software/tree/master/projects

I connect HDMI in with my laptop screen and HDMI out with TV but the output is an only black screen why I am getting a black screen, There any modification in files?

Help me out with this problem.

Here’s a step-by-step to get an HDMI loop up and running:

  1. Image SD card with r2p1 image (found here)
  2. Copy ‘piSmasher-snickerdoodle-black’ contents into root directory/BOOT
  3. Modify ‘config.txt’ as you’d like (specifically: add a user/password combination)
  4. Install card and boot piSmasher from an external power supply
  5. If you aren’t connected to a network or didn't add one to config.txt, make sure you set the system date/time e.g. $ sudo date -s “1 JAN 2019 00:00:00”
  6. Unpack pismasher-software.tgz to user dir $ tar zxvf /boot/pismasher-software.tgz
  7. Navigate to ‘projects’ $ cd pismasher-software/projects
  8. Make contents $ make
  9. Plug in HDMI source (1080p60) and sink (display) $ sudo ./hdmi_en.sh

    *If you receive the following error

    [ 285.752322] Unhandled fault: external abort on non-linefetch (0x1018) at 0x6aa4f000
    [ 285.759904] pgd = 9f1bc000
    [ 285.762592] [6aa4f000] *pgd=1cd74831, *pte=43c10703, *ppte=43c10e33
    ./hdmi_en.sh: line 15: 1988 Bus error build/uio-vtc -m 1920x1080 12

    ensure your video source is outputting 1080p @ 60Hz and run the script again
    $ sudo ./hdmi_en.sh

This will get the video source you have connected to HDMI In playing out HDMI Out.

Let me know if you’re still having issues after following the above.

-Ryan

I followed the same step but the black screen appears on the HDMI out.

Do you get any errors when you run the HDMI enable command?

It is also important to note the 1080p60 source needs to be connected to HDMI Rx before running the script because it sources the HDMI Tx pixel clock. And if the source isn’t set to 1080p at 60Hz, it won’t produce an image (although you can modify the script to work at different resolutions/frame rates).