i'm using matlab 2013a (win7 64bit).
install opencv on C:\OpenCV-2.4.7
how we connect Open Cv libraries into MATLAB's ?
Quick start -->
http://groups.inf.ed.ac.uk/calvin/calvin_upperbody_detector/downloads/README.html
e.g.
from the bash command line execute:
LD_LIBRARY_PATH="path_to_opencv_lib:$LD_LIBRARY_PATH"
I'm using mexopencv. It easy to use and well documented. But if you want to get the real OpenCV MATLAB wrapper, you can only get it from the GitHub and not with the .exe
The OpenCV Matlab module
Related
I have the next problem, I'm developing a cuda application for the jetson TX2 board. All the development it's done in a ubuntu machine and then I run the program remotely in the jetson.
I'm using CUDA 10.0 and the PCL library 1.9.1 that was built from sources in the jetson with CUDA and QT5 features. I also compiled from sources in the jetson the VTK library and boost 1.65. Everything compiles fine but every time I try to run my program in the jetson I get the next error:
error while loading shared libraries: libcufft.so.9.0
Because I'm using CUDA 10 I don't have this library and in code I don't any reference to cufft so I guess that a library I'm using is creating this dependency. What I want to know is if there is some way to know what part of the code or what library could be creating this dependency in order to remove the error.
I have tried the command LDD but this command tell me that the program needs the cufft.so.9.0 library but not tell me which part of the code could be creating this dependency.
Next I summarize all the libraries I'm using:
PCL 1.9.1
VTK 8.0
Eigen
Libflann 1.9
Patate library
I'm also using Nvidia nsight eclipse.
Thank you!
I want to use Opencv library for image processing which supports for python 2.7 and tensorflow library for ANN which supports for python 3.5 in the same project.But when I try to include opencv library after including tensor flow library in to pycharm,it shows an error.Is there any way to handle this problem?I have installed both python2.7 and python3.5 in my computer using anaconda.
Yes, you can use both. Any errors you get are due to a bad installation of either Tensorflow of OpenCV. Best would be to find out what the exact problem is and post a new question to describe that.
Also: it would be a good idea to use Docker to get an image with OpenCV and tensorflow already installed. This is one I like: https://github.com/pkmital/CADL/tree/master/#docker-installation. It really removes the dependency and installation problems!
I'm trying to create a standalone executable in c++ using the octave libraries (http://www.gnu.org/software/octave/doc/interpreter/Standalone-Programs.html#Standalone-Programs). I've been following this process: How do I create a simple Octave distributable without installing Octave.
My problem- When I use my own script in feval, I get "error: feval: function 'my_m_file' not found."
How do I get feval to find my script? It is currently in the same directory as my executable. Thanks,
Melissa
You can use octave::feval(). I recently had this problem in version 6.1.0 .
I'm trying to compile a C++ program that uses OpenCV to score the similarity of two images:
Image Histogram Compare
When I g++ compile the file:
'opencv2/imgcodecs.hpp' file not found
#include "opencv2/imgcodecs.hpp"
I updated the opencv formula on Mac OS X. I re-ran brew install, but I still get this error.
mdfind imgcodecs.hpp -name
returns nothing - the file is nowhere on my system.
Does anyone know my imgcodecs is not included, and how to include it? I'm really novice at C and OpenCV, and enormously grateful for any help.
I notice that you are looking at tutorial code on the master branch (aka 3.0.0). It uses an imgcodecs module that is not present in earlier versions of OpenCV (e.g. 2.4.9).
Check which version of OpenCV you have (it seems not 3.0.0) and use a matching version of tutorial code (e.g. OpenCV 2.4.9 Histograms_Matching/EqualizeHist_Demo.cpp)
I am trying to build and use a piece of C++ code that uses OpenCV. I am working on Linux, working in Code::Blocks (and the code was originally also developed on a Linux platform using C::B).
I followed this to install OpenCV (Ubuntu 12.04 & OpenCV 2.4.3). The project compiles fine, but when I try to execute it, it crashes on launch, with the following message about how it can not find the library:
(file_address): error while loading shared libraries: libopencv_core.so.2.3:
cannot open shared object file: No such file or directory
Process returned 127 (0x7F) execution time : 0.017 s Press ENTER to continue.
I set all the parameters for the linker according to several Code::Blocks install tutorials.
I also checked in /usr/local/lib/ for my libraries (it is the folder I gave to Code::Blocks' compiler); and while I do have a libopencv_core.so, a libopencv_core.so.2.4 and a libopencv_core.2.4.3, I do not have a libopencv_core.so.2.3.
So I'm wondering what the issue is. Is it about backwards compatibility, i.e. do I have to install the exact same version of OpenCV used to develop the original code? (This would be a bit concerning, since I am trying to make a widely-usable library).
Could I force it to use libopencv_core.so.2.4 instead?
EDIT: I managed to make it work by removing everything and reinstalling with a simple apt-get. Sometimes it's the simplest method that works the best! From now on I'll try to apt-get before following installation tutorials. ;)
Have a nice day!