Questions tagged [opencv3.0]

OpenCV (Open Source Computer Vision) is a library for real time computer vision. (This tag is for questions about OpenCV 3.0. Use [opencv] for general questions.)

OpenCV is an open source computer vision library

Version 3.0 released in June 2015. Its documentation can be found here.

For more information, see .

2111 questions
8
votes
22 answers

attributeerror: module 'cv2.face' has no attribute 'createlbphfacerecognizer'

So i'm doing a little personal project but i keep getting this error when I try to create the recognizer. i have opencv-contrib and everything. Does anyone know whats going on? code posted below import cv2, os import numpy as np from PIL import…
Zack Shadid
  • 81
  • 1
  • 1
  • 3
8
votes
1 answer

OpenCV 3 Python - Haar Cascade Upper Body Detector doesn't work on a half body (waist up) photo?

I've been trying to detect people in photos and I've had some success with pedestrians. However, for my use case scenario, I need to be able to detect half body/upper body (waist up) or heads in photo. I tried the haar cascade for the upper body.…
Razgriz
  • 7,179
  • 17
  • 78
  • 150
8
votes
1 answer

How to get a color palette from an image using OpenCV

I'd like to extract the color palette of an image, similar to this (from here): I need it to extract specific colors, like yellow, green, and brown and display the percentage of the area covered by that color. Also, I can add more colors to…
8
votes
2 answers

Why does OpenCV recognize the object only in training images?

In order to make my iOS app recognize 1€, 2€ and 0.50€ coins I have been trying to use opencv_createsamples and opencv_traincascade to create my own classifier.xml. So, I cropped 60 images of 2€ coins from a short video like the following: Then, I…
SagittariusA
  • 5,289
  • 15
  • 73
  • 127
8
votes
3 answers

Choose luminosity (exposure) from HDR image

I'm currently stuck on a video projet from pictures. Problem : I'm extracting pictures from UE4, due to a bug, not all lights are taken into account during the rendering of the screenshot. Output are HDR images. I want to get better brighteness…
Marcassin
  • 1,386
  • 1
  • 11
  • 21
8
votes
1 answer

How to read jpeg image with Adobe RGB colorspace in OpenCV?

I am trying to read and write jpegs wth Adobe RGB colorspace in OpenCV. OpenCV assumes the jpeg has sRGB colorspace and when displaying or writing to file, the image loses some of its color intensity. I found this intensity loss was due to…
zindarod
  • 6,328
  • 3
  • 30
  • 58
8
votes
1 answer

How to get all images in folder using c++

I have a problem. I'm writing C++ with the openCV library. I want to get the number of all images in a folder and I want to load all images in the folder for process in C++.
Nungning
  • 93
  • 1
  • 2
  • 6
8
votes
1 answer

OCR on text stamped into metal plate

I am working on an OCR project whose goal is to read the stamped-in serial number off of a metal plate: I am using OpenCV to prepare the image for OCR, and using Tesseract for the OCR itself. This is the ideal process: In a picture of the entire…
justgus
  • 150
  • 2
  • 7
8
votes
3 answers

Maintaining code compatibility between OpenCV 2 and OpenCV 3

My library currently uses OpenCV 2. Now, I am trying to compile the library to use OpenCV 3. It seems that some header files were moved and some constants were renamed. For example, CV_INTER_LINEAR is not defined in OpenCV 3. As my library needs to…
mans
  • 17,104
  • 45
  • 172
  • 321
8
votes
4 answers

Face landmark extraction in OpenCV 3.0. Can anyone suggest any good open source libraries that will allow me to extract facial landmarks?

I am currently using OpenCV3.0 with the hope i will be able to create a program that does 3 things. First, finds faces within a live video feed. Secondly, extracts the locations of facial landmarks using ASM or AAM. Finally, uses a SVM to classify…
7
votes
2 answers

How to find the document edges in various coloured backgrounds using opencv python? [Document Scanning in various backgrounds]

I am currently have a document that needs to be smart scanned. For that, I need to find proper contours of the document in any background so that I can do a warped perspective projection and detection with that image. The main issue faced while…
7
votes
2 answers

OpenCV 3 error 'CV_FOURCC': identifier not found

Just built OpenCV 3 on PC with Visual Studio 2013 and now I'm trying code but sadly I can't figure out what's wrong? #include "opencv2/opencv.hpp" #include using namespace std; using namespace cv; int main() { VideoCapture…
Pranciskus
  • 487
  • 1
  • 6
  • 17
7
votes
1 answer

AttributeError: module 'cv2.cv2' has no attribute 'CV_LOAD_IMAGE_COLOR'

I have the following jpeg as a bytecode string: jpg = 'b'\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x01\x00`\x00`\x00\x00\xff\xfe\x00>CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), default quality\n\xff\xdb\x00C\x00\x08\x06\x06\x07 I want to load this…
user1592380
  • 34,265
  • 92
  • 284
  • 515
7
votes
2 answers

How to extract a specific section of an image using OpenCV in Python?

I am trying to extract a portion of an image by performing Canny edge detection. I have succesfully created a mask of that object. But when I perform a bitwise_and operation with the original image, to extract the foreground section, I am getting…
Boudhayan Dev
  • 970
  • 4
  • 14
  • 42
7
votes
1 answer

Unable to pass IplImage class as arguments

I am trying to pass the IplImage object to another program as arguments using the system library call. The code snippet is as shown below. #include #include #include #include "libuvc/libuvc.h" …
Eswar
  • 1,201
  • 19
  • 45