After building Opnecv with the Docker container up,
import numpy as np
(frame:309):Gtk-WARNING**:cannot open display:
Error similar to
I put ffmpeg in when building with opencv, so I think I can load the video, but how do I display the images and videos from docker?python ubuntu opencv docker
The Docker does not have a GUI installed, so
cannot open display appears.Installing the X Window System is one way.
Another way is to install the Jupiter Notebook and run cv2 on the Jupiter notebook.This one is easier.
© 2022 OneMinuteCode. All rights reserved.