Questions tagged [opencv3.1]

Use this tag only for questions that are specific to version 3.1 of OpenCV, for general questions use the [opencv] tag.

OpenCV is an open source computer vision library

Version 3.1 released in December 2015. Its documentation can be found here.

For more information, see .

340 questions
2
votes
1 answer

Piping pi's opencv video to ffmpeg for Youtube streaming

This is a small python3 script reading off picam using OpenCV : #picamStream.py import sys, os from picamera.array import PiRGBArray from picamera import PiCamera import time import cv2 # initialize the camera and grab a reference to the raw…
2
votes
1 answer

OpenCV : Vehicle axle detection

I tried to detect vehicle axles in an image. Here are the steps that I followed. Read the image and changed to grayscale. Applied median. Applied canny edge detection. Applied Hough circles. For canny the threshold1, threshold2 parameters are…
Rangooski
  • 825
  • 1
  • 11
  • 29
2
votes
1 answer

OpenCV and TBB error x64

I have the following configuration: OpenCV 3.2.0-dev Windows 10.0.14393 AMD64 CMake: 3.7.1 CMake generator: MinGW Makefiles GCC MinGW 6.3.0 Intel TBB 2017 Update 4 I'm trying to install OpenCV with TBB. I…
BossShell
  • 379
  • 3
  • 14
2
votes
1 answer

How to use cv2.FileStorage

I used to FileStorage class in opencv c++ and it's very useful but i can't find how to use it in opencv python. Please help me. Thanks
Tung Ha
  • 141
  • 2
  • 7
2
votes
0 answers

Operators for cv::UMat

I noticed that there are some code incompatibilities between cv::Mat and cv::UMat -- right now I'm stuck with some missing operators. I found functions for element-wise operations with other matrices, but what is the best way to e.g. just scale the…
iko79
  • 1,127
  • 10
  • 23
2
votes
0 answers

How to run opencv contribute-modules example in matlab?

I followed example from github: https://github.com/opencv/opencv_contrib/tree/master/modules/matlab I want to run it in matlab : I = imread('cameraman.tif'); If = cv.dft(I, cv.DFT_COMPLEX_OUTPUT); The class cv has no property or method…
Agata
  • 141
  • 2
  • 14
2
votes
0 answers

Trying to build OpenCV sfm on Windows: Ceres_DIR-NOTFOUND

I tried to build OpenCV with sfm module, following this tutorial: https://translate.google.com/translate?hl=en&sl=auto&tl=en&u=http%3A%2F%2Fqiita.com%2FChaoticActivity%2Fitems%2F3888e886925ef0f84926&sandbox=1. My operating system is Windows 7…
2
votes
1 answer

OpenCV Error: Assertion failed (L.channels() == 1 && I.channels() == 1) in connectedComponents_sub1

I got the following error in OpenCV (python) and have googled a lot but have not been able to resolve. I would be grateful if anyone could provide me with some clue. OpenCV Error: Assertion failed (L.channels() == 1 && I.channels() == 1) in…
007
  • 63
  • 1
  • 1
  • 9
2
votes
0 answers

Error in configuration process,projects files may be invalid error when building Opencv 3.1.0 and Opencv_Extra_module for Android from source?

I am building Opencv 3.1.0 and Opencv_Extra_module for Android from source using the following procedures using CMake and mingw start cmake-gui and select the opencv source code folder and the folder where binaries will be built (the 2 upper forms…
Yirga
  • 881
  • 1
  • 12
  • 31
2
votes
1 answer

Gamma Correction with pow

I would use gamma correction to a image. So, I have to pow every pixel intensity of my source image with a G = 0.6. I have problem cause the destination image is completely wrong. Maybe I have a casting problem when I take pixel from source…
Vito
  • 746
  • 2
  • 9
  • 25
2
votes
2 answers

Why does the HoughLinesP output a 3D array, instead of a 2D array?

I was working with the function (Python, Numpy, OpenCV3) over an image, and this is the sample output I have - [[[539 340 897 538]] [[533 340 877 538]] [[280 460 346 410]] [[292 462 353 411]] [[540 343 798 492]]] Its size is (5,1,4) I am…
sj22
  • 101
  • 2
  • 10
2
votes
1 answer

Missing face.hpp in OpenCV 3.1.0 after successful build with opencv_contrib modules

I am doing a project in C++ using OpenCV and stuck with adding face recognition module I have built without errors the Extra modules of OpenCV (opencv_contrib) using the following make commands $ cmake -D CMAKE_BUILD_TYPE=RELEASE…
2
votes
1 answer

Is recommended to release CvCameraViewFrame inputFrame?

I am working in an Android app that uses JavaCameraView. So in my activity I implement CvCameraViewListener2. My implementation of onCameraFrame() looks like this: @Override public Mat onCameraFrame(CvCameraViewFrame inputFrame) { final Mat…
Fran Bolado
  • 83
  • 2
  • 6
2
votes
0 answers

Efficenty of Video Processing on Raspberry Pi and OpenCV

The goal is a small video analysis program with the Raspberry Pi 3 B with camera and a TV for gymnastics. So the program will capture the input of the camera, buffer it a set length (let's say 5 seconds) and give it then out to the screen. Now in…
2
votes
1 answer

Why is OpenCV3.1 NormalBayesClassifier's error rate so high in this example?

I'm trying to use OpenCV3.1's NormalBayesClassifier on a simple problem that I can easily generate training data for. I settled on classifying input numbers as even or odd. Obviously this can be computed directly with 100% accuracy, but the point is…
Daniel A. Thompson
  • 1,904
  • 1
  • 17
  • 26