Giter VIP home page Giter VIP logo

opencv-video-minimal's People

Contributors

czeni avatar flaviostutz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

opencv-video-minimal's Issues

Python3 version downgraded

Hello,

Please when I try to use your image as base image for my build, my python version is downgraded from 3.8 to 3.7.5 as shown below. I have later gotten to understand, its because of the fact 3.8 is from alpine 3.11 but this image uses 3.10. I really want to test out 3.8, but not sure how to get to it.

(1/47) Downgrading libcrypto1.1 (1.1.1d-r3 -> 1.1.1d-r2)
(2/47) Installing ca-certificates (20190108-r0)
(3/47) Installing nghttp2-libs (1.39.2-r0)
(4/47) Downgrading libssl1.1 (1.1.1d-r3 -> 1.1.1d-r2)
(5/47) Downgrading zlib (1.2.11-r3 -> 1.2.11-r1)
(6/47) Installing libcurl (7.66.0-r0)
(7/47) Installing curl (7.66.0-r0)
(8/47) Downgrading python3 (3.8.1-r0 -> 3.7.5-r1)

I then attempted to rebuild myself using alpine 3.11, but I get the errors below:

ERROR: unsatisfiable constraints:
  jasper-dev (missing):
    required by: world[jasper-dev]
  jasper-libs (missing):
    required by: world[jasper-libs]

Any help will be very much appreciated

EDIT: Apparently just found out it seems jasper-dev is not available for 3.11. This is correct?

Kind regards

Pip3 not Found error

Hello,

Thanks again for your file. I have been using it for a while, and recently tried to rebuild it again. ALl of a sudden I get the below

(131/139) Upgrading libgfortran (8.3.0-r0 -> 9.2.0-r6)
(132/139) Upgrading gfortran (8.3.0-r0 -> 9.2.0-r6)
(133/139) Upgrading tiff (4.0.10-r3 -> 4.1.0-r0)
(134/139) Upgrading libtiffxx (4.0.10-r3 -> 4.1.0-r0)
(135/139) Upgrading tiff-dev (4.0.10-r3 -> 4.1.0-r0)
(136/139) Installing libidn2 (2.3.0-r0)
(137/139) Upgrading wget (1.20.3-r0 -> 1.20.3-r1)
(138/139) Purging mpfr3 (3.1.5-r1)
(139/139) Purging llvm8-libs (8.0.0-r1)
Executing busybox-1.31.1-r13.trigger
Executing ca-certificates-20191127-r2.trigger
Executing glib-2.64.1-r0.trigger
No schema files found: doing nothing.
OK: 970 MiB in 193 packages
'/usr/local/bin/python' -> '/usr/bin/python3'
'/usr/local/bin/pip' -> '/usr/bin/pip3'
'/usr/include/libpng' -> '/usr/include/libpng16'
'/usr/include/xlocale.h' -> '/usr/include/locale.h'
/bin/sh: pip3: not found
The command '/bin/sh -c apk add --update --no-cache     build-base clang clang-dev cmake pkgconf wget openblas openblas-dev     linux-headers     libjpeg-turbo libjpeg-turbo-dev     libpng libpng-dev     libwebp libwebp-dev     tiff tiff-dev     jasper-libs jasper-dev     openexr openexr-dev     ffmpeg-libs ffmpeg-dev     libavc1394 libavc1394-dev     gstreamer gstreamer-dev     gst-plugins-base gst-plugins-base-dev     libgphoto2 libgphoto2-dev &&     apk add --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing             --update --no-cache libtbb libtbb-dev &&     apk add --repository http://dl-cdn.alpinelinux.org/alpine/edge/main             --update --no-cache python3 python3-dev &&     apk upgrade --repository http://dl-cdn.alpinelinux.org/alpine/edge/main musl &&     ln -vfs /usr/bin/python3 /usr/local/bin/python &&     ln -vfs /usr/bin/pip3 /usr/local/bin/pip &&     ln -vfs /usr/include/libpng16 /usr/include/libpng &&     ln -vfs /usr/include/locale.h /usr/include/xlocale.h &&     pip3 install -v --no-cache-dir --upgrade pip &&     pip3 install -v --no-cache-dir numpy &&     cd /tmp &&     wget https://github.com/opencv/opencv/archive/$OPENCV_VERSION.tar.gz &&     tar -xvzf $OPENCV_VERSION.tar.gz &&     rm -vrf $OPENCV_VERSION.tar.gz &&     mkdir -vp /tmp/opencv-$OPENCV_VERSION/build &&     cd /tmp/opencv-$OPENCV_VERSION/build &&     cmake         -D CMAKE_BUILD_TYPE=RELEASE         -D CMAKE_C_COMPILER=/usr/bin/clang         -D CMAKE_CXX_COMPILER=/usr/bin/clang++         -D CMAKE_INSTALL_PREFIX=/usr         -D INSTALL_PYTHON_EXAMPLES=NO         -D INSTALL_C_EXAMPLES=NO         -D WITH_IPP=NO         -D WITH_1394=NO         -D WITH_LIBV4L=NO         -D WITH_V4l=YES         -D WITH_TBB=YES         -D WITH_FFMPEG=YES         -D WITH_GPHOTO2=YES         -D WITH_GSTREAMER=YES         -D BUILD_DOCS=NO         -D BUILD_TESTS=NO         -D BUILD_PERF_TESTS=NO         -D BUILD_EXAMPLES=NO         -D BUILD_opencv_java=NO         -D BUILD_opencv_python2=NO         -D BUILD_ANDROID_EXAMPLES=NO         -D PYTHON3_LIBRARY=`find /usr -name libpython3.so`         -D PYTHON_EXECUTABLE=`which python3`         -D PYTHON3_EXECUTABLE=`which python3`         -D BUILD_opencv_python3=YES .. &&     make -j`grep -c '^processor' /proc/cpuinfo` &&     make install &&     cd / && rm -vrf /tmp/opencv-$OPENCV_VERSION &&     apk del --purge build-base clang clang-dev cmake pkgconf wget openblas-dev                     openexr-dev gstreamer-dev gst-plugins-base-dev libgphoto2-dev                     libtbb-dev libjpeg-turbo-dev libpng-dev tiff-dev jasper-dev                     ffmpeg-dev libavc1394-dev python3-dev &&     rm -vrf /var/cache/apk/*' returned a non-zero code: 127

Will be gracious if you could point me in the right direction on how to fix this please.

Kind regards

Python 3.7.5

Hello @czeni,

Thanks for this and it builds fine. But please is it possible for me to build based on python 3.7.5 instead of 3.8?

Thanks

alpine:3.10 (py3.7) is incompatible with comunity/testing branch

~ # python3
Error relocating /usr/lib/libpython3.8.so.1.0: copy_file_range: symbol not found

Python 3.8 only exists in edge and does not exist in Alpine 3.10.

My guess is that you are using alpine:3.10 which is using py3.7 but you are also pulling py-numpy py-numpy-dev from community branch which are built against py3.8, which in turn could/would cause problems in the whole setup.

No module name 'cv2'

As of the latest relase the cv2 module is missing from the container.

Python 3.7.5 (default, Oct 17 2019, 12:25:15)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'

Missing pkgconfig file

Some programs like ffmpeg and gocv (Golang bindings for OpenCV) cannot work without pkgconfig properly configured for OpenCV.

In recent versions of OpenCV 4.x this is not generated by default.

More info at opencv/opencv#13154

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.