opencv: installation of package libtiff - opencv

This package is installing opencv and here it says that libtiff4 has no installation.
And here i set from libtiff4 to libtiff 5 so it says package broken
i used all update commands again but not recovering. can any one suggest me where am i mistaken ?

Related

Boost not found when installing dlib, but its actually installed

Im trying to install dlib for few cv2 projects, but I have problems installing it.I made everything without problem but when I wanted to finally do the python setup.py install It showed me this error message: Could NOT find Boost (missing: python) (found suitable version "1.79.0", minimum required is "1.41.0")
I mean why doesnt it work when it sees my installed Boost 1.79...
Does somebody know how to fix it guys?
Thank you anyways:)
From error log it looks like boost libraries are found, but it's missing specific boost library to integrate with python
You have not mentioned which OS you are using for debian & it's derivatives
sudo apt-get install libboost-python-dev or if you are installing specific version of boost sudo apt-get install libboost-python1.79-dev should install the python module.
If boost is built from sources, during bootstrapping enable python libs to be built
./bootstrap.sh --with-libraries=python,filesystem,serialization
for list of boost libs can be built
./bootstrap.sh --show-libraries

What is the proper way of adding a local dependency (openCV) in Meson?

I am using OpenCV in one of my projects. Until now, I was using version 3 under Ubuntu 18.04, so in my meson.build I had:
... dependencies: [dependency('opencv')])
Now, I've compiled OpenCV 4 from source and installed to the default dir, /usr/local/, and changed my meson.build to:
... dependencies: [dependency('opencv4')])
Resulting in a not found error (despite this works with Ubuntu 20.04 and the package from the official repos, which is version 4.2). How should I specify the library's location so Meson can find it?
I've seen find_library, but that's deprecated according the docs.
The dependency function is using pkg-config or cmake if pkg-config fails, to find external dependency (installed library).
When you install OpenCV4, please check if there is pkg-config for opencv4. Here is my command:
pkg-config --list-all | grep "opencv4"
and output:
opencv4 OpenCV - Open Source Computer Vision Library
Also, check PKG_CONFIG_PATH environment variable. pkg-config will use that path to search for .pc files.
Edit:
be sure to use -D OPENCV_GENERATE_PKGCONFIG=YES when building opencv with cmake.

installing old versions of cv2 using pip

i've been trying to download older versions of cv2 as an easy way to get around not being able to use SIFT.
I've tried the following:
pip install opencv-contrib-python==3.4.2.17
however I get this error:
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python==3.4.2.17 (from versions: 3.4.8.29, 3.4.9.31, 3.4.9.33, 4.1.2.30, 4.2.0.32, 4.2.0.34)
ERROR: No matching distribution found for opencv-contrib-python==3.4.2.17
All the advice I've seen on the site so far tells me to either download these older versions of opencv or to build it myself (which seems like an absolute nightmare)
Anyone have any suggestions on how to install these older versions of cv2?
opencv-contrib-python 3.4.2.17 provides wheels for Pythons up to 3.7. Probably you use Python 3.8.
Use Python 3.7 (or lower). Or compile from sources for 3.8.

libtiff version of OpenCV 2.3.1

OpenCV 2.3.1 uses libtiff as 3rd party library.
And I want to know which version of libtiff is used for a security reason.
But libtiff source code in opencv dose not show a version.
What is libtiff version of OpenCV 2.3.1?
Or is there any list of 3rd party libraries`s version for opencv ?
I realize how to figure out it.
I do share the information.
check it out from
opencv-2.3.1\3rdparty\tiffvers.h
Version is written in that file.

Compiling OpenCV-contrib for IOS (especially the SFM-Module)

I've tried to install openCV_contrib for IOS, therefore I execute
python opencv/platforms/ios/build_framework.py "framework_dest"
on my Mac (I need Xcode for compiling openCV for IOS) but all the times, i got the message:
-- Checking SFM deps... FALSE
-- Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
I need the SFM module, hence I tried installing Glog and Gflags at several ways: using
brew install glog gflags
and brew outputs, that those packages are successfully installed respective already installed.
Later I tried to compile both from GitHub on my own, but with no success, I'm still not able to compile SFM for IOS.
On Linux I could compile openCV including the SFM module, but I can't compile it for IOS, because Xcode is not available for Linux.
I don't know, what to do! Do some of you know how to install glog/gflags on Mac or do you know how to build the IOS-Framework of OpenCV on Linux or maybe how to build the IOS-Framework on my Mac using the binaries created with cmake .. && make in my Linux (because there SFM is compiled)?
There have to be some solution, because Mac is based on Linux, so if it works on Linux, why doesn't it work on my Mac?!
Thanks!

Resources