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

Is there a better way to trap key, Cttl-c and kill in threaded Python OpenCV program?

I have a python 3.7 and OpenCV 3 programming running on windows 10 and raspberry pi. The program has three threads. The first thread is a main loop, the second thread is a camera, and the third thread is writing videos and images. I searched many…
PeterB
  • 156
  • 1
  • 5
0
votes
0 answers

Speeding up blob analysis

I am developing an OpenCV application under Python. Several of the processing steps involve blob analysis (connected components labeling) after binarization. All is fine, except sometimes, when image noise is present, the number of blobs explodes…
user1196549
0
votes
0 answers

python gives different result run through command and browser

I am using python 2.7 and opencv 3.1 on aws linux for image processing. when i run python script through command and if i run python script through php exec command on browser, in both cases its give different output result. below are the different…
kmanoj24
  • 1
  • 1
0
votes
0 answers

Converting Bitmap To Mat through Utils.bitmapToMat changes its color

I'm using the following code to convert Android Bitmap into OpenCv Mat, however it is changing its colors: public synchronized static Mat BitmapToMat(Bitmap image) { Mat mat = new Mat(); org.opencv.android.Utils.bitmapToMat(image, mat); …
peter bence
  • 782
  • 3
  • 14
  • 34
0
votes
0 answers

how to use Kmean centers, for testing new data?

this is what I'm going to do! ( maybe this method is wrong in the first place, tell me if I'm wrong) I have a data set of 300 images, I extract 36 features from each image and create a feature matrix 300*36 , then I use K-mean clustering to …
Amir
  • 155
  • 3
  • 16
0
votes
1 answer

python cv2.imread return none on 6th image

I am trying to import and read all images in a folder. However, when I have more than 5 images, cv2.imread returns none for the 6th image. I have tried using different file names, different files, etc, but I can't get it to work. import cv2 import…
tbonts
  • 1
  • 1
0
votes
2 answers

estimateRigidTransform missing from 3.5+

I have moved from 3.4 to 4.0 and cv2 is missing the estimateRigidTransform function. The documentation shows it is still there in the C++ library but it is not in cv2. Has it been renamed or am I missing something stupid when im building it? I…
jonathanbyrn
  • 719
  • 6
  • 13
0
votes
0 answers

convert image selected from gallery to gray scale in iOS

I am writing a program to convert an image selected from photo library to gray scale in iOS, but when I tested it, the imageView show nothing but darkness. What's wrong with my code? Here is a part of my code. And I'm pretty sure that there is…
0
votes
1 answer

Assertion Failure with cv::Size

I'm new to OpenCV and I stuck with the problem while declaring a Mat instance. #include int main(int argc, char *argv[]) { cv::Mat before = cv::imread("./irene.jpg", CV_LOAD_IMAGE_COLOR); cv::imshow("before", before); …
cadenzah
  • 928
  • 3
  • 10
  • 23
0
votes
0 answers

Getting attribute error while trying load multiple images from a directory using OpenCv

I am trying to load four images into my python file from a directory for further processing. import cv2 as cv import pandas as pd import matplotlib.pyplot as plt import glob import numpy as np cv_img=[] acne_string=[] trust_score=[] def avg(lst):…
Danish Xavier
  • 1,225
  • 1
  • 10
  • 21
0
votes
1 answer

Inverse of Fourier transform gives "data type not supported" error

I am trying to implementing the inverse of Fourier transform. Here's my code: import numpy as np import cv2 as cv import math import cmath from matplotlib import pyplot as plt image="test2.bmp" img=cv.imread(image,cv.IMREAD_GRAYSCALE) #foruior…
H_E_A_D
  • 101
  • 1
  • 1
  • 8
0
votes
1 answer

Check for bounding box availability in only certain areas of the image/video frame

I am trying to detect cars in a certain area of live video stream. For that I used Tensorflow's object detection API. Now, the detection is fair enough and almost all the cars in the live video stream are detected as "car" with bounding boxes around…
0
votes
1 answer

How to convert videostream data to cv::gpumat?

I need to convert videostream data to cv::gpumat. Initially I tried copying to cv::Mat and then use upload to load it to gpumat. This process is very slow(20ms for a 640*480 frame). I need a method to convert from openni videostream to gpumat…
user27665
  • 673
  • 7
  • 27
0
votes
0 answers

Trying to get blobs using Emgu on Raspberry Pi

I have a.NetCore app. I am using Emgu CV framework for image processing. I am targetting the Rapsberry Pi using the Raspbian OS. I am capturing images from the camera. I am comparing previous and current images. Working out the difference. Applying…
Andrew Simpson
  • 6,883
  • 11
  • 79
  • 179
0
votes
0 answers

Bug in opencv 3 C++ feature specification in blobdetector?

I am trying to detect a defect on a bottle's body. It was very strange that circles are located on the white and light dark circles, not only on the black even though I specified black. While browsing the net I saw this topic by an expert who…
user7909075