Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenCV location on Ubuntu
#2
Do you talk about opencv-python?
That package include all of what needed to use OpenCV.
opencv-python Wrote:Q: Do I need to install also OpenCV separately?

A: No, the packages are special wheel binary packages and they already contain statically built OpenCV binaries.
Location will be under site-packages with a folder cv2.
tom@tom-VirtualBox:~$ pip show opencv-python
Name: opencv-python
Version: 4.5.1.48
Summary: Wrapper package for OpenCV python bindings.
Home-page: https://github.com/skvark/opencv-python
Author: None
Author-email: None
License: MIT
Location: /home/tom/.pyenv/versions/3.9.1/lib/python3.9/site-packages
Requires: numpy
Required-by: 
Usually there is no need to know location,as import cv2 should take care of all.
tom@tom-VirtualBox:~$ python 
Python 3.9.1 (default, Jan 25 2021, 15:34:59) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> 
>>> cv2.__version__
'4.5.1'
>>> exit()
Reply


Messages In This Thread
OpenCV location on Ubuntu - by Pavel_47 - Mar-03-2021, 09:47 AM
RE: OpenCV location on Ubuntu - by snippsat - Mar-03-2021, 12:34 PM
RE: OpenCV location on Ubuntu - by Pavel_47 - Mar-03-2021, 01:13 PM
RE: OpenCV location on Ubuntu - by Pavel_47 - Mar-09-2021, 12:24 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020