Coder Social home page Coder Social logo

darknet-docker's People

Contributors

jcjimenez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

darknet-docker's Issues

Not able to run darknet with OpenCV

Hello,

Thanks for sharing your work on docker + jetson + darknet...

I'm trying to run darknet with OpenCV but I'm failing, here is what I did try:

Run your prebuild image with opencv:

./darknet-docker run --rm -it jcjimenez/darknet-docker:jetson-tx2-opencv-3.4.1

It gives me this error Demo needs OpenCV for webcam images. when I try to use something that needs opencv (like running on mp4):

./darknet detector test cfg/voc.data cfg/tiny-yolo-voc.cfg yolov2-tiny-voc.weights video.mp4

Seems darknet wasn't compiled with OPENCV=1

Build my own image:

  • Cloned darknet, compiled it with OPENCV=1
  • Pasted in the docker folder for image creation
  • Build my own opencv version with your build-opencv script , got a tar file that y copied in the docker folder for image creation
  • Built the docker image with the following config (combining both of your Docker files)
RUN apt-get -y autoremove && apt-get -y autoclean
RUN rm -rf /var/cache/apt

RUN apt-get update
RUN apt-get install -y \
    libglew-dev \
    libtiff5-dev \
    zlib1g-dev \
    libjpeg-dev \
    libpng12-dev \
    libjasper-dev \
    libavcodec-dev \
    libavformat-dev \
    libavutil-dev \
    libpostproc-dev \
    libswscale-dev \
    libeigen3-dev \
    libtbb-dev \
    libgtk2.0-dev \
    libgstreamer1.0-0 \
    libwayland-client0 \
    libwayland-egl1-mesa \
    libwayland-cursor0 \
    cmake \
    pkg-config

RUN apt-get install -y python-dev python-numpy python-py python-pytest -y
RUN apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
RUN apt-get install -y ffmpeg

# The opencv-3.4.1.install.tgz was created by running the script in
#
# https://github.com/jcjimenez/buildOpenCVTX2
#
# and then running something like:
#
# tar cfz opencv-3.4.1.install.tgz -T install_.txt
COPY opencv-3.4.1.tgz /

COPY darknet /darknet
WORKDIR /darknet

But then, when I try to run darknet in the docker container I get this error:
./darknet: error while loading shared libraries: libopencv_highgui.so.3.3: cannot open shared object file: No such file or directory

It seems that opencv isn't correctly installed in the docker container.. I'm investigating further but if you have any idea

Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.