Git Product home page Git Product logo

opencv's Introduction

OpenCV

Configure a virtual environment with OpenCV Goal Use the conda package manager to configure an Anaconda virtual environment with OpenCV.

Background The Python installations on our lab computers don’t support OpenCV. We’ll add a virtual environment and install it.

Procedure

  1. Open an Anaconda command window. Open a Python shell and import cv. You’ll probably get an error message. Exit the shell.
  2. OpenCV is not available in the default Anaconda distribution. So you’ll have to add a “channel.” Type conda config --add channels conda-forge (that’s a double-dash before the word “add”). You can find out more about conda-forge at conda-forge.org.
  3. Now create your virtual environment. You can name it anything you want but I suggest csc745. Type conda create --name csc745 (again, a double dash). Conda will ask you whether to proceed; type ‘y’. This will create an environment using the same version of Python as in your base environment. You can specify a different version by adding, for example, python=2.7 after the name of the environment.
  4. Activate your environment: activate csc745
  5. Install OpenCV: conda install opencv
  6. Check your installation; open a python shell and import cv2. If the import is successful, you should be able to use OpenCV in your programs.

opencv's People

Contributors

junyaz avatar

Watchers

 avatar

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.