Created
November 19, 2020 15:26
-
-
Save Namburger/b76f417a8e96052c7b78bcdbd824f57a to your computer and use it in GitHub Desktop.
Minimal Dockerfile for Coral Dev Board with tflite API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM arm64v8/debian:latest | |
WORKDIR /home | |
ENV HOME /home | |
RUN cd ~ | |
RUN apt-get update | |
RUN apt-get install -y git nano python3-pip python-dev pkg-config wget usbutils curl | |
RUN echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" \ | |
| tee /etc/apt/sources.list.d/coral-edgetpu.list | |
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
RUN apt-get update |
Yes, you are right, thank you. I'll continue to describe the following issue if someone else tries this too. After I fixed my docker run
, I got the following error:
Unable to init server: Could not connect: Connection refused
(My cam video:12): Gtk-WARNING **: 18:54:45.068: cannot open display: :0
I managed to fix it by executing the following commands:
sudo apt install -y x11-xserver-utils
xhost +
make sure that DISPLAY
is set correctly and check your display number with w
. If it's not, try the following:
w
export DISPLAY=<number-you-found-from-the-w-command-output>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@alexcocinda I'm not 100% sure, but according to this tutorial:
https://www.learnopencv.com/install-opencv-docker-image-ubuntu-macos-windows/
You may want to specify the video device file as oppose to the usb devide it self, maybe?