Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Browsing all 2088 articles
Browse latest View live
↧

OpenCV GaussianBlur filter Difference Python VS C++

Is there any difference between the Gaussian Blur between C++ and Python? According to my code, for example, i have an image before the Gaussian, with the same values in C++ and in Python. But right...

View Article


How can apply this fuzzy histogram hyperbolazation to OPENCV

Hello, I found a paper that talks about image enhacement using CLAHE and fuzzy histogram hyperbolazation (FHH). Link: http://www.inase.org/library/2015/vienna/bypaper/BICHE/BICHE-09.pdf ![FHH![image...

View Article


how extraction image of other image

Hello I would like to know how I can segment images with openCV, that is, first stage extract my area of ​​interest while maintaining its colors, for example I put a tree that I want to extract its...

View Article

How to remove the black border around rotated & masked image in result?...

Hi, How do I remove the black border around mainlogo.png in Result image? import cv2 import numpy as np import imutils img1 = cv2.imread('ralph.jpg') overlay_img1 = np.ones(img1.shape, np.uint8)*255...

View Article

opencv, Geometric Transformations of Images

hi i sezai, while working on OpenCV today. I get a mistake in one subject. "Geometric Transformations of Images" OpenCV version 3.1.0 codes this way. import cv2 img = cv2.imread('sudoku.png')...

View Article


Finding contours of a plant root

I have an image which has roots like this: ![image description](/upfiles/15291321643701899.png) I want to crop each root individually out. I initially thought of heavy dilation followed by erosion and...

View Article

to get th coordinates of sift keypoints

this is my code to detect and display keypoints (im using opencv 3.1.0 and python 2.7 ) import cv2 import numpy as np img = cv2.imread('info-tabs3.jpg') gray= cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) sift...

View Article

comparing two images

here is my code i have used BF matcher : import numpy as np import cv2 filename1 = 'BMW.jpg' filename2 = 'BMW_logo.jpg' img1 = cv2.imread(filename1) # queryImage img2 = cv2.imread(filename2) #...

View Article


Why is it so hard to install OpenCV for python on Mac?

I use Ubuntu at home, I was able to get up and running with OpenCV for python3 with one command sudo apt-get install python3-opencv Similarly on windows at work, I think it was something like pip3...

View Article


does cv2.imwrite support float16 (half)?

import cv2 as cv import random import numpy as np # Reading an existing exr file img = cv.imread('Tree.exr', cv.IMREAD_UNCHANGED) print (img.dtype) \\ this prints float32 img_h = np.float16(img) \\...

View Article

TypeError: integer argument expected, got float line 35

import cv2 import numpy as np img = cv2.imread('Bluelinegap50blur.jpg') gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) edges = cv2.Canny(img, 50, 200) # find lines rho = 1 theta = np.pi / 180 threshold =...

View Article

NamedWindow followed by imshow and waitkey opens several windows which...

Hello! I am using Python 2.7.15 and OpenCV version 3.4.1 on Windows 10. When I run this program I want a preview window to show up with an image of the webcam stream so I can fix my face in front of...

View Article

Line and Square removal using getStructuringElement and morphologyEx

I would like to remove horizontal and vertical lines from image contains text. My approach is to use `getStructuringElement` then pass it to `cv2.morphologyEx`. This Approach works fine when the...

View Article


python silent output

hello, I'm a beginner with opencv and maybe the solution is obvious but I devellope a little script in python and i need to do some screenshot on udp stream, all this part is ok but a lot of output...

View Article

to get the coordinates of matched features ?

I'm working on ubuntu-16 and python 2.7 opencv 3. I want to extract the (x,y)coordinates of the matched keypoints of two iamges. i could get the features plotted but i could not exract the points . i...

View Article


OpenCV+Python 'expert' required

Hi, Love this forum but I wanted to locate someone who was interested in a commercial project located around the IP21 post code. Doesn't have to be that close. We want to recognise 3 types of 'blob'...

View Article

Apply a mask to an image and test is a color is inside the grid in the mask

I have an image and a binary mask (two sperate files), in the link below, how do I test if the purple color in the image is inside one of the grid cells in the binary mask? Also, I need to name or...

View Article


Determine the color of certain pixels in a video

I'm using Python 3.6. I am a beginner with OpenCV. I'm trying to determine the color of 4 pixels at certain coordinates in each frame of a video. When all 4 pixels are white, I have to print the time...

View Article

Auto adjusting contrast and brightness with OpenCV Python

Hello, I am looking for a Python version of the following C++ OpenCV script (or another script) that would be able to auto-adjust the brightness and contrast of a photo....

View Article

opencv hough trans.

Hi, I'm sezai. hough Trans using the opencv library in Python. I'm driving. My problem is that there are 6 coins in the image, and only I want to find these 6 circle, while other circles around it...

View Article
Browsing all 2088 articles
Browse latest View live