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 ArticleHow 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  I want to crop each root individually out. I initially thought of heavy dilation followed by erosion and...
View Articleto 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 Articlecomparing 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 ArticleWhy 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 Articledoes 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 ArticleTypeError: 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 ArticleNamedWindow 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 ArticleLine 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 Articlepython 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 Articleto 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 ArticleOpenCV+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 ArticleApply 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 ArticleDetermine 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 ArticleAuto 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 Articleopencv 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