GithubHelp home page GithubHelp logo

Comments (4)

mirceaciu avatar mirceaciu commented on June 12, 2024

I had an similar issue on my embedded Ubuntu board.

I was using OpenCv installed with apt-get or pip. My problem was solved after compiling OpenCv

How did you install OpenCv, and what Os do you use?

from face_classification.

gubiniliya avatar gubiniliya commented on June 12, 2024

Ubuntu 17.10 x64 desktop
pip install opencv2-python
or
pip3 install opencv-python
I do not remember exactly, but likely pip3 install opencv-python
$ sudo apt-get install opencv
not found this packege

may be i need reinstall opencv?

from face_classification.

oarriaga avatar oarriaga commented on June 12, 2024

You need to compile openCV since the pip installation does not include the VideoCapture functionalities. I would recommend following this guide. Which is the same guide I believe @mirceaciu gave you.

from face_classification.

gubiniliya avatar gubiniliya commented on June 12, 2024

Completely following the instructions, I ran into the problem in step where using cmake
The previous steps were fully implemented and passed successfully, but when entering the command

cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D INSTALL_PYTHON_EXAMPLES=ON \
    -D INSTALL_C_EXAMPLES=OFF \
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.1.0/modules \
    -D PYTHON_EXECUTABLE=~/.virtualenvs/cv/bin/python \
    -D BUILD_EXAMPLES=ON ..

in build dir with using workon cv where cmake end i have

Configuring incomplete, errors occurred!
See also "/home/gubiniliya/opencv/opencv-3.3.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/gubiniliya/opencv/opencv-3.3.0/build/CMakeFiles/CMakeError.log".

I tried restarting with deleting the build folder, but it did not help. I also tried to do this after rebooting - the same result
strange and the fact that the section Python is also not similar to the one in the instruction
I do everything for Python 3

-- 
--   Python 2:
--     Interpreter:                 NO
-- 
--   Python 3:
--     Interpreter:                 /home/gubiniliya/.virtualenvs/cv/bin/python3 (ver 3.6.3)
-- 
--   Python (for build):            /home/gubiniliya/.virtualenvs/cv/bin/python3
-- 

I'll attach logs, maybe you'll advise something or tell me that you need some option to add or remove
CMakeError.log
CMakeOutput.log
Naturally to step make -j I can not go, because the project is not building

from face_classification.

Related Issues (20)

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.