How to install OpenCV on Raspbian Stretch? The 2019 Stack Overflow Developer Survey Results Are InHow to install OpenCV on Raspberry Pi 3 in Raspbian Jessie?How to install OpenCV 3 on Raspbian JessieError Install OpenCV 3.1.0Installing Opencv make errorHow to install opencv on raspbian jessie Lite?Video Output through ssh on Raspbian Minimal + OpenCV example?How to install RetroPie over Raspbian Stretch?Can't install OpenCV-3.4.0 on Raspbian Stretch (CMake error)How to install R 3.5.1 on raspbian stretchcan't install mariadb 10.1 on raspbian stretchRaspbian Stretch install imapclient to Python 3.5.3

What is this business jet?

Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?

Correct punctuation for showing a character's confusion

Why didn't the Event Horizon Telescope team mention Sagittarius A*?

Match Roman Numerals

Mathematics of imaging the black hole

Is it okay to consider publishing in my first year of PhD?

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

What is the most efficient way to store a numeric range?

How to type a long/em dash `—`

What do I do when my TA workload is more than expected?

Button changing its text & action. Good or terrible?

How to charge AirPods to keep battery healthy?

A word that means fill it to the required quantity

For what reasons would an animal species NOT cross a *horizontal* land bridge?

Why was M87 targeted for the Event Horizon Telescope instead of Sagittarius A*?

Can withdrawing asylum be illegal?

How do PCB vias affect signal quality?

Why can't devices on different VLANs, but on the same subnet, communicate?

Can we generate random numbers using irrational numbers like π and e?

Slides for 30 min~1 hr Skype tenure track application interview

APIPA and LAN Broadcast Domain

Why couldn't they take pictures of a closer black hole?

How to translate "being like"?



How to install OpenCV on Raspbian Stretch?



The 2019 Stack Overflow Developer Survey Results Are InHow to install OpenCV on Raspberry Pi 3 in Raspbian Jessie?How to install OpenCV 3 on Raspbian JessieError Install OpenCV 3.1.0Installing Opencv make errorHow to install opencv on raspbian jessie Lite?Video Output through ssh on Raspbian Minimal + OpenCV example?How to install RetroPie over Raspbian Stretch?Can't install OpenCV-3.4.0 on Raspbian Stretch (CMake error)How to install R 3.5.1 on raspbian stretchcan't install mariadb 10.1 on raspbian stretchRaspbian Stretch install imapclient to Python 3.5.3



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















The directions for Raspbian Jessie fail with Error 2:



...
[ 43%] Building CXX object modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_imgproc_tests_cpu.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
modules/gapi/CMakeFiles/opencv_test_gapi.dir/build.make:158: recipe for target 'modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_core_tests_cpu.cpp.o' failed
make[2]: *** [modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_core_tests_cpu.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
[ 43%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_ie_models.cpp.o
...


How can I install on Stretch?










share|improve this question




























    2















    The directions for Raspbian Jessie fail with Error 2:



    ...
    [ 43%] Building CXX object modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_imgproc_tests_cpu.cpp.o
    c++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
    modules/gapi/CMakeFiles/opencv_test_gapi.dir/build.make:158: recipe for target 'modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_core_tests_cpu.cpp.o' failed
    make[2]: *** [modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_core_tests_cpu.cpp.o] Error 4
    make[2]: *** Waiting for unfinished jobs....
    [ 43%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_ie_models.cpp.o
    ...


    How can I install on Stretch?










    share|improve this question
























      2












      2








      2


      2






      The directions for Raspbian Jessie fail with Error 2:



      ...
      [ 43%] Building CXX object modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_imgproc_tests_cpu.cpp.o
      c++: internal compiler error: Killed (program cc1plus)
      Please submit a full bug report,
      with preprocessed source if appropriate.
      See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
      modules/gapi/CMakeFiles/opencv_test_gapi.dir/build.make:158: recipe for target 'modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_core_tests_cpu.cpp.o' failed
      make[2]: *** [modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_core_tests_cpu.cpp.o] Error 4
      make[2]: *** Waiting for unfinished jobs....
      [ 43%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_ie_models.cpp.o
      ...


      How can I install on Stretch?










      share|improve this question














      The directions for Raspbian Jessie fail with Error 2:



      ...
      [ 43%] Building CXX object modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_imgproc_tests_cpu.cpp.o
      c++: internal compiler error: Killed (program cc1plus)
      Please submit a full bug report,
      with preprocessed source if appropriate.
      See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
      modules/gapi/CMakeFiles/opencv_test_gapi.dir/build.make:158: recipe for target 'modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_core_tests_cpu.cpp.o' failed
      make[2]: *** [modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_core_tests_cpu.cpp.o] Error 4
      make[2]: *** Waiting for unfinished jobs....
      [ 43%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_ie_models.cpp.o
      ...


      How can I install on Stretch?







      raspbian-stretch opencv






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 30 at 18:31









      mmorinmmorin

      1515




      1515




















          1 Answer
          1






          active

          oldest

          votes


















          4














          Following these directions from PyImageSearch fixes the problem. Those directions lack an easy copy-paste and have a lot of interspersed text, so I copy them here. I assume you already have Python3 and pip3 installed.





          sudo apt-get update
          sudo apt-get -y upgrade
          sudo apt-get -y install build-essential cmake unzip pkg-config
          sudo apt-get -y install libjpeg-dev libpng-dev libtiff-dev
          sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
          sudo apt-get -y install libxvidcore-dev libx264-dev
          sudo apt-get -y install libgtk-3-dev
          sudo apt-get -y install libcanberra-gtk*
          sudo apt-get -y install libatlas-base-dev gfortran
          sudo apt-get -y install python3-dev

          cd ~
          sudo rm -r -f opencv
          git clone https://github.com/opencv/opencv.git
          sudo rm -r -f opencv_contrib
          git clone https://github.com/Itseez/opencv_contrib.git

          pip3 install numpy
          cd ~/opencv
          mkdir build
          cd build
          cmake -D CMAKE_BUILD_TYPE=RELEASE
          -D CMAKE_INSTALL_PREFIX=/usr/local
          -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules
          -D ENABLE_NEON=ON
          -D ENABLE_VFPV3=ON
          -D BUILD_TESTS=OFF
          -D OPENCV_ENABLE_NONFREE=ON
          -D INSTALL_PYTHON_EXAMPLES=OFF
          -D BUILD_EXAMPLES=OFF ..

          make -j4
          sudo make install
          sudo ldconfig


          Stuck at 99%?



          You may get this error:



          ...
          [ 99%] Built target gen_opencv_python_source
          [ 99%] Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o
          c++: internal compiler error: Killed (program cc1plus)
          Please submit a full bug report,
          with preprocessed source if appropriate.
          See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
          modules/python2/CMakeFiles/opencv_python2.dir/build.make:62: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
          make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] Error 4
          CMakeFiles/Makefile2:11656: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
          make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
          Makefile:160: recipe for target 'all' failed
          make: *** [all] Error 2


          You need to increase your swap size, as mentioned in the original directions. Open /etc/dphys-swapfile:



          sudo nano /etc/dphys-swapfile


          and edit the CONF_SWAPSIZE variable:



          # set size to absolute value, leaving empty (default) then uses computed value
          # you most likely don't want this, unless you have an special disk situation
          # CONF_SWAPSIZE=100
          CONF_SWAPSIZE=2048


          It worked for me without further problems:



          >>> import cv2
          >>>





          share|improve this answer

























            Your Answer






            StackExchange.ifUsing("editor", function ()
            return StackExchange.using("schematics", function ()
            StackExchange.schematics.init();
            );
            , "cicuitlab");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "447"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fraspberrypi.stackexchange.com%2fquestions%2f95982%2fhow-to-install-opencv-on-raspbian-stretch%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4














            Following these directions from PyImageSearch fixes the problem. Those directions lack an easy copy-paste and have a lot of interspersed text, so I copy them here. I assume you already have Python3 and pip3 installed.





            sudo apt-get update
            sudo apt-get -y upgrade
            sudo apt-get -y install build-essential cmake unzip pkg-config
            sudo apt-get -y install libjpeg-dev libpng-dev libtiff-dev
            sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
            sudo apt-get -y install libxvidcore-dev libx264-dev
            sudo apt-get -y install libgtk-3-dev
            sudo apt-get -y install libcanberra-gtk*
            sudo apt-get -y install libatlas-base-dev gfortran
            sudo apt-get -y install python3-dev

            cd ~
            sudo rm -r -f opencv
            git clone https://github.com/opencv/opencv.git
            sudo rm -r -f opencv_contrib
            git clone https://github.com/Itseez/opencv_contrib.git

            pip3 install numpy
            cd ~/opencv
            mkdir build
            cd build
            cmake -D CMAKE_BUILD_TYPE=RELEASE
            -D CMAKE_INSTALL_PREFIX=/usr/local
            -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules
            -D ENABLE_NEON=ON
            -D ENABLE_VFPV3=ON
            -D BUILD_TESTS=OFF
            -D OPENCV_ENABLE_NONFREE=ON
            -D INSTALL_PYTHON_EXAMPLES=OFF
            -D BUILD_EXAMPLES=OFF ..

            make -j4
            sudo make install
            sudo ldconfig


            Stuck at 99%?



            You may get this error:



            ...
            [ 99%] Built target gen_opencv_python_source
            [ 99%] Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o
            c++: internal compiler error: Killed (program cc1plus)
            Please submit a full bug report,
            with preprocessed source if appropriate.
            See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
            modules/python2/CMakeFiles/opencv_python2.dir/build.make:62: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
            make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] Error 4
            CMakeFiles/Makefile2:11656: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
            make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
            Makefile:160: recipe for target 'all' failed
            make: *** [all] Error 2


            You need to increase your swap size, as mentioned in the original directions. Open /etc/dphys-swapfile:



            sudo nano /etc/dphys-swapfile


            and edit the CONF_SWAPSIZE variable:



            # set size to absolute value, leaving empty (default) then uses computed value
            # you most likely don't want this, unless you have an special disk situation
            # CONF_SWAPSIZE=100
            CONF_SWAPSIZE=2048


            It worked for me without further problems:



            >>> import cv2
            >>>





            share|improve this answer





























              4














              Following these directions from PyImageSearch fixes the problem. Those directions lack an easy copy-paste and have a lot of interspersed text, so I copy them here. I assume you already have Python3 and pip3 installed.





              sudo apt-get update
              sudo apt-get -y upgrade
              sudo apt-get -y install build-essential cmake unzip pkg-config
              sudo apt-get -y install libjpeg-dev libpng-dev libtiff-dev
              sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
              sudo apt-get -y install libxvidcore-dev libx264-dev
              sudo apt-get -y install libgtk-3-dev
              sudo apt-get -y install libcanberra-gtk*
              sudo apt-get -y install libatlas-base-dev gfortran
              sudo apt-get -y install python3-dev

              cd ~
              sudo rm -r -f opencv
              git clone https://github.com/opencv/opencv.git
              sudo rm -r -f opencv_contrib
              git clone https://github.com/Itseez/opencv_contrib.git

              pip3 install numpy
              cd ~/opencv
              mkdir build
              cd build
              cmake -D CMAKE_BUILD_TYPE=RELEASE
              -D CMAKE_INSTALL_PREFIX=/usr/local
              -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules
              -D ENABLE_NEON=ON
              -D ENABLE_VFPV3=ON
              -D BUILD_TESTS=OFF
              -D OPENCV_ENABLE_NONFREE=ON
              -D INSTALL_PYTHON_EXAMPLES=OFF
              -D BUILD_EXAMPLES=OFF ..

              make -j4
              sudo make install
              sudo ldconfig


              Stuck at 99%?



              You may get this error:



              ...
              [ 99%] Built target gen_opencv_python_source
              [ 99%] Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o
              c++: internal compiler error: Killed (program cc1plus)
              Please submit a full bug report,
              with preprocessed source if appropriate.
              See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
              modules/python2/CMakeFiles/opencv_python2.dir/build.make:62: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
              make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] Error 4
              CMakeFiles/Makefile2:11656: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
              make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
              Makefile:160: recipe for target 'all' failed
              make: *** [all] Error 2


              You need to increase your swap size, as mentioned in the original directions. Open /etc/dphys-swapfile:



              sudo nano /etc/dphys-swapfile


              and edit the CONF_SWAPSIZE variable:



              # set size to absolute value, leaving empty (default) then uses computed value
              # you most likely don't want this, unless you have an special disk situation
              # CONF_SWAPSIZE=100
              CONF_SWAPSIZE=2048


              It worked for me without further problems:



              >>> import cv2
              >>>





              share|improve this answer



























                4












                4








                4







                Following these directions from PyImageSearch fixes the problem. Those directions lack an easy copy-paste and have a lot of interspersed text, so I copy them here. I assume you already have Python3 and pip3 installed.





                sudo apt-get update
                sudo apt-get -y upgrade
                sudo apt-get -y install build-essential cmake unzip pkg-config
                sudo apt-get -y install libjpeg-dev libpng-dev libtiff-dev
                sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
                sudo apt-get -y install libxvidcore-dev libx264-dev
                sudo apt-get -y install libgtk-3-dev
                sudo apt-get -y install libcanberra-gtk*
                sudo apt-get -y install libatlas-base-dev gfortran
                sudo apt-get -y install python3-dev

                cd ~
                sudo rm -r -f opencv
                git clone https://github.com/opencv/opencv.git
                sudo rm -r -f opencv_contrib
                git clone https://github.com/Itseez/opencv_contrib.git

                pip3 install numpy
                cd ~/opencv
                mkdir build
                cd build
                cmake -D CMAKE_BUILD_TYPE=RELEASE
                -D CMAKE_INSTALL_PREFIX=/usr/local
                -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules
                -D ENABLE_NEON=ON
                -D ENABLE_VFPV3=ON
                -D BUILD_TESTS=OFF
                -D OPENCV_ENABLE_NONFREE=ON
                -D INSTALL_PYTHON_EXAMPLES=OFF
                -D BUILD_EXAMPLES=OFF ..

                make -j4
                sudo make install
                sudo ldconfig


                Stuck at 99%?



                You may get this error:



                ...
                [ 99%] Built target gen_opencv_python_source
                [ 99%] Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o
                c++: internal compiler error: Killed (program cc1plus)
                Please submit a full bug report,
                with preprocessed source if appropriate.
                See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
                modules/python2/CMakeFiles/opencv_python2.dir/build.make:62: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
                make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] Error 4
                CMakeFiles/Makefile2:11656: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
                make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
                Makefile:160: recipe for target 'all' failed
                make: *** [all] Error 2


                You need to increase your swap size, as mentioned in the original directions. Open /etc/dphys-swapfile:



                sudo nano /etc/dphys-swapfile


                and edit the CONF_SWAPSIZE variable:



                # set size to absolute value, leaving empty (default) then uses computed value
                # you most likely don't want this, unless you have an special disk situation
                # CONF_SWAPSIZE=100
                CONF_SWAPSIZE=2048


                It worked for me without further problems:



                >>> import cv2
                >>>





                share|improve this answer















                Following these directions from PyImageSearch fixes the problem. Those directions lack an easy copy-paste and have a lot of interspersed text, so I copy them here. I assume you already have Python3 and pip3 installed.





                sudo apt-get update
                sudo apt-get -y upgrade
                sudo apt-get -y install build-essential cmake unzip pkg-config
                sudo apt-get -y install libjpeg-dev libpng-dev libtiff-dev
                sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
                sudo apt-get -y install libxvidcore-dev libx264-dev
                sudo apt-get -y install libgtk-3-dev
                sudo apt-get -y install libcanberra-gtk*
                sudo apt-get -y install libatlas-base-dev gfortran
                sudo apt-get -y install python3-dev

                cd ~
                sudo rm -r -f opencv
                git clone https://github.com/opencv/opencv.git
                sudo rm -r -f opencv_contrib
                git clone https://github.com/Itseez/opencv_contrib.git

                pip3 install numpy
                cd ~/opencv
                mkdir build
                cd build
                cmake -D CMAKE_BUILD_TYPE=RELEASE
                -D CMAKE_INSTALL_PREFIX=/usr/local
                -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules
                -D ENABLE_NEON=ON
                -D ENABLE_VFPV3=ON
                -D BUILD_TESTS=OFF
                -D OPENCV_ENABLE_NONFREE=ON
                -D INSTALL_PYTHON_EXAMPLES=OFF
                -D BUILD_EXAMPLES=OFF ..

                make -j4
                sudo make install
                sudo ldconfig


                Stuck at 99%?



                You may get this error:



                ...
                [ 99%] Built target gen_opencv_python_source
                [ 99%] Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o
                c++: internal compiler error: Killed (program cc1plus)
                Please submit a full bug report,
                with preprocessed source if appropriate.
                See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
                modules/python2/CMakeFiles/opencv_python2.dir/build.make:62: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
                make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] Error 4
                CMakeFiles/Makefile2:11656: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
                make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
                Makefile:160: recipe for target 'all' failed
                make: *** [all] Error 2


                You need to increase your swap size, as mentioned in the original directions. Open /etc/dphys-swapfile:



                sudo nano /etc/dphys-swapfile


                and edit the CONF_SWAPSIZE variable:



                # set size to absolute value, leaving empty (default) then uses computed value
                # you most likely don't want this, unless you have an special disk situation
                # CONF_SWAPSIZE=100
                CONF_SWAPSIZE=2048


                It worked for me without further problems:



                >>> import cv2
                >>>






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 31 at 8:53

























                answered Mar 30 at 18:31









                mmorinmmorin

                1515




                1515



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Raspberry Pi Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fraspberrypi.stackexchange.com%2fquestions%2f95982%2fhow-to-install-opencv-on-raspbian-stretch%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Triangular numbers and gcdProving sum of a set is $0 pmod n$ if $n$ is odd, or $fracn2 pmod n$ if $n$ is even?Is greatest common divisor of two numbers really their smallest linear combination?GCD, LCM RelationshipProve a set of nonnegative integers with greatest common divisor 1 and closed under addition has all but finite many nonnegative integers.all pairs of a and b in an equation containing gcdTriangular Numbers Modulo $k$ - Hit All Values?Understanding the Existence and Uniqueness of the GCDGCD and LCM with logical symbolsThe greatest common divisor of two positive integers less than 100 is equal to 3. Their least common multiple is twelve times one of the integers.Suppose that for all integers $x$, $x|a$ and $x|b$ if and only if $x|c$. Then $c = gcd(a,b)$Which is the gcd of 2 numbers which are multiplied and the result is 600000?

                    Ingelân Ynhâld Etymology | Geografy | Skiednis | Polityk en bestjoer | Ekonomy | Demografy | Kultuer | Klimaat | Sjoch ek | Keppelings om utens | Boarnen, noaten en referinsjes Navigaasjemenuwww.gov.ukOffisjele webside fan it regear fan it Feriene KeninkrykOffisjele webside fan it Britske FerkearsburoNederlânsktalige ynformaasje fan it Britske FerkearsburoOffisjele webside fan English Heritage, de organisaasje dy't him ynset foar it behâld fan it Ingelske kultuergoedYnwennertallen fan alle Britske stêden út 'e folkstelling fan 2011Notes en References, op dizze sideEngland

                    Հադիս Բովանդակություն Անվանում և նշանակություն | Դասակարգում | Աղբյուրներ | Նավարկման ցանկ