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
0
votes
1 answer

Dlib feature arrays as input for CNN and prediction

I am attempting to create a face recognition application by using CNN and dlib feature extractor. What I want to do is to extract the features from a bunch of photos of the same person, then send the arrays to my CNN which will produce a 2 class…
extra8
  • 67
  • 11
0
votes
0 answers

Trouble pre-processing image to make text clearer in preparation for extraction

I have some images of some ceramic plates. The one shown below is an example of the worst possible from the batch. I am having trouble preprocessing it before using tesseract on it to the get the text (if it's possbile at all). If someone could give…
0
votes
0 answers

contour detection and manipulating the contour

Original Image before finding contoursFinding the diameter of the inner circle after the contour detection I have an image, and I am using openCv and python to detect the contour as shown in the attached image. The object under examination is an…
Developer
  • 11
  • 4
0
votes
1 answer

OpenCV Calibration

I am little confused about world coordinates. How can we find the origin of world coordinate system. Origin of camera coordinate system is behind the image plan on the optical axis at a distance of focal length. but how can we find the origin of…
grn
  • 1
0
votes
1 answer

Issue converting KeyPoints to and from JSON and then using FlannBasedMatcher

I'm saving my KeyPoints and Descriptors in a JSON file. Later when I retrieve them, I am trying to use them in a FlannBasedMatcher. However, I think something is going wrong in the conversion because I am getting the following error. cv2.error:…
Anters Bear
  • 1,816
  • 1
  • 15
  • 41
0
votes
0 answers

OpenCV Videowriter not working on Ubuntu 16.04

My desktop OS is Ubuntu 16.04 I am making a video from images using OpenCV videowriter. My image size is x=1920,y=1080 same as my screen size So my image shape is (y,x,3) Everything is correct as per me but I am getting wrong output with just static…
sdasara
  • 97
  • 7
0
votes
0 answers

sift detectandcompute get different size keypoint and descriptor,what is wrong?

Ptr detector = xfeatures2d::SIFT::create(); vector key_points_1, key_points_2; Mat dstImage1, dstImage2; detector->detectAndCompute(srcImage1, Mat(), key_points_1, dstImage1); I want to extract a image sift…
0
votes
0 answers

Why did a gray imaged transformed to 3 channels flip the object and background colors

The fashion mnist data included in Keras.datasets contained 2 sets of arrays (train and test) of shape (60000, 28, 28) and (10000, 28, 28) respectively. I want to fit the train dataset of shape (28, 28) to a pre-trained Keras model which requires…
Nemo
  • 1,124
  • 2
  • 16
  • 39
0
votes
4 answers

No such file or directory: 'B.npz' while compiling 'pose_estimation.py' to draw 3d cube using Opencv

I want to draw 3D coordinate axis (X, Y, Z axes) on a chessboard’s first corner using Opencv and python. But when I run this following code, import cv2 import numpy as np import glob def draw(img, corners, imgpts): corner =…
Afzal
  • 71
  • 2
  • 12
0
votes
0 answers

compile the following opencv python source code

The following link contains the source code to create some 3D effects in images using Opencv & python. But the problem is I can't summarize the fractional codes. I need whole source code so that I can run it. If someone can gather the whole code…
Afzal
  • 71
  • 2
  • 12
0
votes
1 answer

"Reason: image not found" when importing opencv

I get this error whenever I used to check if the opencv package is installed on python3 properly. I get this error regarding .so file which I had pasted during installation. python3 Python 3.7.3 (default, Mar 27 2019, 09:23:39) [Clang 10.0.0…
Jasch
  • 19
  • 1
  • 6
0
votes
1 answer

rows, cols, _ = frame.shape AttributeError: ‘NoneType’ object has no attribute ‘shape

Hello everyone i have error when i want to execute the following code a, anyone can help me in this while True: _, frame = cap.read() # frame = cv2.resize(frame, None, fx=0.8, fy=0.8) rows, cols, _ = frame.shape keyboard[:] = (26,…
XMAN
  • 3
  • 3
0
votes
0 answers

what is the fastest way to extract all frames from video in python?

I have about 100 video that I want to extract the frames from them and store them as images for latter processing and what I noticed is simple way using OpenCV VideoCapture is very slow so my question: what is the fastest way to read all video…
mark
  • 351
  • 1
  • 3
  • 16
0
votes
0 answers

How to remove the content of handwriting in a picture?

I'm doing image cutting, but handwritten content always interferes with me.The handwritten content made me can not separate different rows. Always it makes me separate the two rows into the same row. So i want to know how can i solve this problem.
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