Questions tagged [opencv3.3]

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

OpenCV is an open source computer vision library

Version 3.3 released in August 2017. Its documentation can be found here. The main change was:

The main news is that we promoted DNN module from opencv_contrib to the main repository, improved and accelerated it a lot. An external BLAS implementation is not needed anymore. For GPU there is experimental DNN acceleration using Halide

Github: https://github.com/opencv/opencv/releases/tag/3.3.0

Changes: https://github.com/opencv/opencv/wiki/ChangeLog

For more information, see .

25 questions
4
votes
0 answers

How to export a trained model from tensorflow and how correctly to import in opencv dnn?

I trained the MobileNetSSD for object detection. I used object detection API from tensorflow models: https://github.com/tensorflow/models/tree/master/research/object_detection How to use (how to export) my trained model in opencv dnn? I had tried…
4
votes
1 answer

OpenCV VideoCapture digest authentication

I have an ongoing project accessing multiple IP cameras through opencv VideoCapture, working for most of them. I ve got a new Dahua PTZ camera that uses digest authentication, and the VideoCapture in OpenCV can't open it. Through WireShark i could…
Diedre
  • 515
  • 4
  • 21
3
votes
1 answer

opencv TypeError: 'int' object is not iterable

I am trying to detect a face using OpenCV. I have a file recognizer.py as follows: import cv2 faceDetect = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') cam = cv2.VideoCapture(0) rec =…
user7159290
3
votes
2 answers

OpenCV, How to pass parameters into cv2.TrackerMedianFlow_create function?

I'm trying to create MEDIANFLOW tracker with OpenCV3.3 using opencv-python with Python3.6. I need to pass some arguments into the constructor according to this page of OpenCV docs. The problem is I don't know how to pass available arguments into…
2
votes
1 answer

connectedComponents in opencv (Python) does not care from connectivity?

I have a problem with connectedComponents (or connectedComponentsWithStats) which is an opencv (3.3.0) function in Python (2.7.12). A simple code is the following : import numpy as np import cv2 img = np.zeros((4,4), dtype = np.uint8) img[1,1] =…
Adrian
  • 23
  • 5
2
votes
1 answer

cmake find_package (OpenCV) always use OpenCV 2.4 even I specify PATHS to OpenCV 3.3

I want to use OpenCV 3 through CMakeLists.txt, and the CMakeLists.txt is as following: set(OpenCV_ROOT /usr/local/opencv3) set(OpenCV_INCLUDE_DIRS ${OpenCV_ROOT}/include) set(OpenCV_LIBRARIES "${OpenCV_ROOT}/lib") message("find…
Rhapsody
  • 77
  • 1
  • 5
2
votes
0 answers

Feeding Samples to SVM in OpenCV

I'm trying to train an SVM in opencv with a list of numpy images, but I keep getting the error TypeError: samples is not a numpy array, neither a scalar for the last line of code. The error is most likely from the way I setup my data in the…
Wael Karkoub
  • 21
  • 1
  • 5
2
votes
1 answer

Can't access webcam OpenCV 3.3 Python 3

OpenCV on Python 2.7 has no problem accessing my webcam. For some reason it can't in Python 3. VideoCapture::read always returns none... I even tried compiling from source. This is my cmake (I don't think I did anything wrong): cmake -D…
ovg
  • 1,486
  • 1
  • 18
  • 30
1
vote
0 answers

OpenCV3 does not properly release camera

System Architecture: Fedora 27 OpenCV 3.4 Python 3.6 The issue produced from the following code: def capture_input(): cap = cv2.VideoCapture(0) while 1: # Take each frame ret = cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 45) …
1
vote
0 answers

loading Tensorflow model in Opencv 3.4.1 failed

i'm using opencv 3.4.1 DNN in java in order to load a "LeNet" model trained using keras and tensorflow in python. The model is saved as a tensorflow frozen model ".pb" where i'm using the following line of code to load the it: Dnn cvDnn = new…
HMaster
  • 49
  • 9
1
vote
1 answer

Why does InputOutputArray take a const Mat& reference in the constructor?

The constructor for an InputOutputArray takes a const cv::Mat&in the constructor, meaning this compiles without any warnings or errors. Why does the InputOutputArray take a const Mat reference. I understand why the InputArray takes a const…
1
vote
0 answers

Epipolar Geometry, Not Visually sane output in OpenCV

I've tried using the code given https://docs.opencv.org/3.2.0/da/de9/tutorial_py_epipolar_geometry.html to find the epipolar lines, but instead of getting the output given in the link, I am getting the following output. but when changing the line…
K.H
  • 11
  • 2
1
vote
2 answers

OpenCV frame blending only results in blue

I'm trying to average every 30 frames of a video to create a blurred timelapse. I got the video reading and video writing working, but something is wrong, because I'm only seeing the blue channel! (or one channel that is being written to…
Benjamin H
  • 5,164
  • 6
  • 34
  • 42
1
vote
0 answers

python cv2 flann match more accurate results

I am attempting to match Clash of Clans "buildings" from a screenshot. Considering some of the buildings move around, I figured a straight matchTemplate wouldn't work (please correct me if I am wrong). Consider the following image: It won't work…
big.nerd
  • 365
  • 2
  • 4
  • 11
1
vote
1 answer

openCV imwrite writing 0 kb image frames

I am running the below code to convert video into frames. Problem is it is creating Image files with 0 KB size and when I open it is not showing anything.. I don't understand what is creating the problem. Do I need to install any Image codecs? …
Ramineni Ravi Teja
  • 3,568
  • 26
  • 37
1
2