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

Detecting very tiny defect on a bottle using opencv3 C++

I have an image in greyscale and it has a tiny defect, I am a beginner in computer vision. I tried the normal steps which are: get image from high quality grey-scale cam. default opencv histogram. binary threshold (getting the mask). removing…
user7909075
0
votes
0 answers

Fill Broken and Damaged Texts - OPENCV

I am trying to extract the text from an image using openCV and tesseract. Since, we need to pass a clean image to tesseract to fetch the text properly with accuracy. But I am facing an issue related to preprocessing of an image using opencv. How…
Amul Mittal
  • 54
  • 1
  • 9
0
votes
0 answers

Blur to remove the noise after or before grayscale conversion?

From the book 'Learning OpenCV 3 Computer Vision with Python - Second Edition', page 50 For blurring, let's use medianBlur(), which is effective in removing digital video noise, especially in color images. For edge-finding, let's use…
Norhther
  • 545
  • 3
  • 15
  • 35
0
votes
1 answer

OpenCV polylines throws assertion failure even when arg type is what it's supposed to be

Several threads report this problem, but all of them show fixing the type of the point list (to int32, i.e. CV_32S) as the solution. The point list below has the appropriate type. >>> ti = np.zeros((400,400,3), np.uint8) # Test…
Riker
  • 85
  • 6
0
votes
0 answers

is it necessary to uninstall python 3.7 to run python 2.7?

I am using the visual studio for opencv. using python. I have downloaded the code from here. my friend corrected the code and run on his desktop computer. but When I run that code on my laptop. it give me syntax error. i have uninstall python3.7 and…
Fahad Mairaj
  • 1,021
  • 2
  • 7
  • 7
0
votes
1 answer

Python OpenCV- Problems reading files on Windows

I need to read a folder with a lot of .bmp files, and put all of the images on a lits of images. I do not know how to handle the adress. I was doing some thing like this: adress = "c:/Users/My Name/Desktop/assignment/*.bmp" imageArray =…
guib
  • 115
  • 5
0
votes
1 answer

triangle mask with opencv

i have this image i want to create a tranigle mask to get only this zone but with the following code i get this result Moments mu = moments(red,true); Point center; center.x = mu.m10 / mu.m00; center.y = mu.m01 / mu.m00; circle(red, center,…
0
votes
1 answer

pad extended area in opencv with white pixels

I am was trying to crop minAreaRect and I got the following result, with black padding to cover up missing parts. I want to replace that black padding with white pixels. Here is the Image
Dhiraj Kadam
  • 13
  • 1
  • 3
0
votes
2 answers

Calculate minimum distance of point in image mask to a set of points

I have an image mask (differenceM) like this: For every single white pixel (pixel value != 0), I want to calculate the minimum distance from that pixel to a set of points. The set of points are points on the external contour which will be stored as…
Reine_Ran_
  • 662
  • 7
  • 25
0
votes
1 answer

How can I convert a raw image to RGB in Android using OpenCV?

I need to make some processing on each raw frame and displaying it in the preview. Here's the code I'm using (in Kotlin): fun Image.toLinearRgb(): Mat { val bayer16Bit = Mat(height, width, CvType.CV_16UC1, planes[0].buffer) val bayer8Bit =…
Julys Pablo
  • 145
  • 1
  • 1
  • 8
0
votes
1 answer

Opencv3 Error : Contours is not a numpy array, neither a scalar

I am trying to match individual shape image within group of shape image. I am able to find the contours but then its not able to match the shapes from group of shapes image. This is the error I am facing:- TypeError …
0
votes
0 answers

How to convert video into millisecond frames instead of converted from basic framerate using OpenCV

Hi I am currently trying to convertvideos into millisecond frames using opencv python. The things is, right now I know how to convert the video based on it's frame rates, instead of millisecond. I don't know how to tweak the code in order to …
0
votes
1 answer

cv2.face.LBPHFaceRecognizer_create() is not working for python 3.7

Following code is working for python 2.7 and 3.6. But it is not working for 3.7 recognizer = cv2.face.LBPHFaceRecognizer_create()
0
votes
1 answer

Apply function to masked region

I have an image like that: I have both the mask and the original image. I would like to calculate the colour temperature of ONLY the ducks region. Right now, I'm iterating through each row and column of the image below and getting pixels where…
Reine_Ran_
  • 662
  • 7
  • 25
0
votes
1 answer

Duplicate image in a folder logic

I'm trying to find the count of duplicate images in a folder. I want to print unique image with the count(how many duplicates does it have). How can I do it? My Present code: for i in image_path_list: image2 = cv2.imread(i) image2 =…
chetan parmar
  • 73
  • 1
  • 7