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
1
vote
0 answers

Opencv Train Cascade error

I am trying to train a haar cascade using opencv_traincascade executable in opencv 3.1.0. For the moment I want to do this using only one positive even though the result is inconsistent, in order to be sure that I am passing the right parameters to…
John Smith
  • 777
  • 2
  • 14
  • 37
1
vote
0 answers

How to select an object and track it forever?

I am trying to track ants, it is really hard because ants change its form and I am using grayscale video. It means, mosse and camshit didnt work on my project. I have to track 1 special one(not a random), because I need to take its position and make…
mmt
  • 53
  • 8
0
votes
0 answers

Haar Cascade error while trying to make annotations

i am currently trying to make a Haar cascade xml on my laptop.I am beginner in this type of programming.I have a problem related to making annotations.Also if you guys have further advices i would be glad to receive them, i am trying to do it from 0…
Kelo Kelo
  • 1
  • 1
0
votes
1 answer

OpenCV faceDetecter yaml model loading error

I have an error loading a .yaml model to FacemarkLBF from openCV. cv_landmarks = cv::face::FacemarkLBF::create(); std::cout << "Loading OpenCV model for landmark detection." <<…
hanaa
  • 385
  • 6
  • 30
0
votes
0 answers

Getting correct rotations and translations from homography

I've seen several threads talking about this topic, but I still don't clompletely understand it. The problem is that I have 4 solutions obtained from decomposehomography() and I don't know what solutions to discard. I have read that 2 of them are…
Aquas
  • 61
  • 6
0
votes
1 answer

Asynchronous list of Videos to be stream using opencv in python

Trying to Run the list of videos through OpenCV using python while going through the blog I was able to run for Webcam but I am trying run it for list of cameras for which I am not able to make it work, import threading import cv2 import time class…
varul jain
  • 334
  • 8
  • 23
0
votes
1 answer

How to detect width of object in picture

I must write the program to detect width of object. I understand that without reference object it will be expressed in pixels but it's enough for me. The background will always be white. I have problem what i should to do right now. I will be sow…
0
votes
1 answer

Calculate Pitch and Roll and YAW by 4 points detected from a square in Opencv

I have a rectangle picture like this image : But after that I took a photo from the camera like this : I detected 4 corners of my rectangle by approxPolyDP. The points that I detected are these values: 308,25 38,99 147,477 412,466 Now how can I…
0
votes
1 answer

I want to find dominant colour in an Image in Opencv C++

I am new to openCV and searching from past two weeks but all the answers are either in python or not that accurate. I am just looking to find maximum count of a colour in any image. I have tried converting to HSV plane and then by looping over image…
0
votes
0 answers

how to ignore transparant area of the image

I have an image with 4 channels BGRA. I want to check my image if there is value in the 4th channel. Then I want to get values from the area that have value in the 4th channel. I want to get the same image within values from the area that have value…
hede
  • 1
  • 2
0
votes
1 answer

"ValueError: not enough values to unpack" when calling cv2.findContours()

I got this script from internet when i run it i got some errors regarding this lines can any one help ? i dont know where is the error exactly i was searching on internet for one day to get a similar error. import cv2 import numpy as np def…
xCCIE
  • 53
  • 5
0
votes
1 answer

Algorithms for a line follower robot (with camera) capable following very sharp turns and junction

I want to write code (python,opencv) for a line follower robot equipped with a camera and Raspberry Pi. I want to make to robot go has fast as possible The course has few very sharp turns like this: I'm assuming that using ROI (region of interest)…
RubZ
  • 13
  • 4
0
votes
1 answer

TypeError: 'cv2.face_EigenFaceRecognizer' object is not callable

I ran into an error which i do not know where and what is causing it. Please i need help. def train(self,images,lables, recogType=0): self.images = images self.lables = np.array(lables) 'arg =…
Barrow
  • 29
  • 6
0
votes
1 answer

how to use cv::Mat imgbuf created by pointer to video data

I am reading the raw video data from the read buffer using cv::Mat imgbuf(Size(640, 480), CV_8UC3, &mem[0], (640*3)); This variable imgbuf I am passing to face detection algorithm which detects the face & draws the rectangle around the face.…
Gagandeep
  • 33
  • 1
  • 2
  • 6
0
votes
0 answers

How to Read the BGR format RAW Image data from the Read buffer using opencv

I have one Read buffer which has BGR 8 bit raw Image data, I want to read it by using opencv Mat function, I tried below code but I am not getting proper Image frame, It seems like my program not reading Read buffer properly I tried this code …
Gagandeep
  • 11
  • 6