opencv3.1

Opencv detect changes between two photos taken by different time

时光总嘲笑我的痴心妄想 提交于 2019-12-05 02:54:31
问题 We have one original image / photo of the item. (ie sculpture). Time to time we are taking new photos of the item. Photo always taken same angle 90 degree to the item. but there will be some slightly movement up down / left right there will be different length of the same object ( we are taking with line camera and the object moving in front of it so time to time speed of the object changing so the final image will be longer than the original) Also lighting changes so colour and lightning

Error installing OpenCV on Ubuntu 16.04

拟墨画扇 提交于 2019-12-05 00:55:23
I have being trying to install OpenCV on Ubuntu 16.04 unsing several tutorials and i always end up with an error. This is the last one i've got following this tutorial: https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-or-15.10-OpenCV-3.1-Installation-Guide What can i do? [ 48%] Linking CXX executable ../../bin/opencv_test_viz //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.2.so.6.2: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.2.so.6.2: undefined reference to `TIFFIsTiled@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.2.so.6.2: undefined

Issue: Bag of Features Training SIFT or SURF for car detection within Video with OpenCV + Python

吃可爱长大的小学妹 提交于 2019-12-04 21:55:35
I am trying to dump keypoints of cars with SIFT or SURF and match these keypoints to a video in order to detect cars. Keypoints are more convenient to use instead of Haar Cascades because I would have to use a lot of images for example 5000 to train, which will take a lot of computation process. Keypoints from SURF or SIFT are scale invariant which will be almost the same in every car. The code for dumping keypoints into a txt file is: import cv2 import numpy as np import os import cPickle surf = cv2.xfeatures2d.SURF_create() descriptors = [] image = cv2.imread('1.jpg') kp, dsc = surf

OpenCV image recognition - setting up ANN MLP

走远了吗. 提交于 2019-12-04 15:48:37
问题 I am new in OpenCV world and neural networks but I have some coding experience in C++/Java. I created my first ANN MLP and learned it the XOR: #include <opencv2/core.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/ml/ml.hpp> #include <iostream> #include <iomanip> using namespace cv; using namespace ml; using namespace std; void print(Mat& mat, int prec) { for (int i = 0; i<mat.size().height; i++) { cout << "["; for

error with cv2.face.mindistancepredictcollector()

寵の児 提交于 2019-12-04 12:49:36
I have installed opencv 3.1.0 with extra modules, but when I try to use >>> s = cv2.face.MinDistancePredictCollector() it returns an error Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> s.MinDistancePredictCollector() AttributeError: 'module' object has no attribute 'MinDistancePredictCollector' I also checked the documentation: >>> help(cv2.face) Help on module cv2.face in cv2: NAME cv2.face FILE (built-in) FUNCTIONS StandardCollector_create(...) StandardCollector_create([, threshold]) -> retval createEigenFaceRecognizer(...) createEigenFaceRecognizer([, num

OpenCV 3.1.0: Save and load trained SVMs

那年仲夏 提交于 2019-12-03 22:45:15
At the moment I am trying to train different SVMs for the recognition of different emotions. So for example to recognize the emotion happy I train a SVM with images of happy people as positives and images where people express other emotions such as anger, fear, disgust, ... as negatives. The images are stored in a database that I have partitioned in a training section and testing section. When I have trained the SVMs, I immediatly use them to test the accuracy on the test images of the database and this works fine. But I also save the trained SVMs because I would like to use them in another

Opencv detect changes between two photos taken by different time

拥有回忆 提交于 2019-12-03 21:34:33
We have one original image / photo of the item. (ie sculpture). Time to time we are taking new photos of the item. Photo always taken same angle 90 degree to the item. but there will be some slightly movement up down / left right there will be different length of the same object ( we are taking with line camera and the object moving in front of it so time to time speed of the object changing so the final image will be longer than the original) Also lighting changes so colour and lightning also not same always. Time to time there will be a mud, different small objects on the item. I would love

compile opencv 3 on ubuntu 16.04 linking error: /usr/lib/x86_64-linux-gnu/libsoxr.so.0: undefined reference to `GOMP_parallel@GOMP_4.0'

南笙酒味 提交于 2019-12-03 13:58:56
问题 Trying to install openCV 3.1, CUDA 8.0.44 on Ubuntu 16.04 by building from the source. The following are the errors I met during the compilation. Scanning dependencies of target opencv_test_video [ 37%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/test_optflowpyrlk.cpp.o [ 37%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/test_accum.cpp.o [ 37%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/test_kalman.cpp.o [ 38%

Why can't I import opencv3 even though the package is installed?

徘徊边缘 提交于 2019-12-02 06:33:03
问题 I currently am running Python 3.5 and using Spyder from Anaconda as my IDE. I am running this on a Windows machine. When I write import cv3 at the top of my code, it returns the error ImportError: No module named 'cv3' I attempted to install opencv3 again with the command conda install -c https://conda.binstar.org/menpo opencv3 in the Command Prompt. It is apparently already installed because it returned Fetching package metabase............... Solving package specifications: . # All

OpenCV 3.1 ANN predict returns nan

蓝咒 提交于 2019-11-30 16:35:54
I am trying to implement Neural network with OpenCV ANN Library. I had a working solution, but after upgrading to OpenCV 3.1 it stopped working. So I created a simplified code for testing, but problem still remains. ANN is successfully trained, but when I try to call predict with row from trainData, it returns Mat of nan values. The code is cv::Ptr< cv::ml::ANN_MLP > nn = cv::ml::ANN_MLP::create(); nn->setActivationFunction(cv::ml::ANN_MLP::SIGMOID_SYM); nn->setTrainMethod(cv::ml::ANN_MLP::BACKPROP); nn->setBackpropMomentumScale(0.1); nn->setBackpropWeightScale(0.1); nn->setTermCriteria(cv: