Questions tagged [mser]

In computer vision, maximally stable extremal regions (MSER) are used as a method of blob detection in images.

This technique is used to find correspondences between image elements from two images with different viewpoints. This method of extracting a comprehensive number of corresponding image elements contributes to the wide-baseline matching, and it has led to better stereo matching and object recognition algorithms.

63 questions
33
votes
4 answers

Exact Meaning of the parameters given to initialize MSER in OpenCV 2.4.x?

OpenCV reference manual (2.4.x) states that the constructor that initializes MSER requires the following parameters: delta, min_area, max_area, max_variation, min_diversity, max_evolution, area_threshold, min_margin, edge_blur_size. I am dealing…
Ekta
  • 507
  • 1
  • 5
  • 11
9
votes
1 answer

OpenCV 3.0.0 MSER Binary Mask

I am trying to use MSER algorithm in OpenCV 3.0.0 beta to extract text regions from an image. At the end I need a binary mask with the detected MSER regions, but the algorithm only provides contours. I tried to draw these contours but I don't get…
Marco Ancona
  • 2,073
  • 3
  • 22
  • 37
7
votes
2 answers

Merging regions in MSER for identifying text lines in OCR

I am using MSER to identify text regions in MSER. I am using the following code to extract the regions and save them as an image. Currently, each identified region is saved as a separate image. But, I want to merge regions belonging to a line of…
Amrith Krishna
  • 2,768
  • 3
  • 31
  • 65
5
votes
3 answers

Find contour of the set of points in OpenCV

I try to find objects on image by MSER-detection from OpenCV. But function cvExtractMSER return not contours, but set of points (CvSeq), that create figure: (1, 4), (2, 3), (2, 4), (3, 2), (3, 3), (3, 4), (4, 1), (4, 2), (4, 3), (4, 4), ... But I…
4
votes
1 answer

Extract text from image using MSER in Opencv python

I want to detect text in a image using mser and remove all non-text regions. Using the code below i was able to detect text: import cv2 import sys mser = cv2.MSER_create() img = cv2.imread('signboard.jpg') gray = cv2.cvtColor(img,…
Abhay Gupta
  • 786
  • 12
  • 30
4
votes
0 answers

How does it work OpenCV Mser for color images?

I am using OpenCV Mser class. For grayscale images I don't have any problems, reults are good and parameters defined in documentation influences to algorithm logically : delta - it compares (sizei−sizei−delta)/sizei−delta min_area - prune the…
Davit
  • 69
  • 5
4
votes
2 answers

How to perform matching by MSER and HOG in Matlab

I wanted to know if there is any full implementation of image-matching by MSER and HOG in Matlab. Currently I am using VLFeat but found difficulties when performing the image matching. Any help? Btw, I've tried the below code in VLFeat -Matlab…
fahmifahim
  • 79
  • 1
  • 9
3
votes
1 answer

How to implement BRISK using Python and OpenCV to detect features?

I want to implement BRISK using Python and OpenCV for Feature Detection and Description in drone images. Since BRISK is also a descriptor, I want to use its description features to match two images. How do I do it?
3
votes
1 answer

Detecting white blobs on grayscale image using MSER in opencv

I have images which are largely black with few whitish blobs on them. I want to distinguish such images from those which do not have such blobs. I tried MSER and tuned its parameters to correctly detect blobs in most of the images which have them…
3
votes
1 answer

Merge MSER detected objetcs (OpenCV, Python)

I am working on this image as source: Applying the next code... import cv2 import numpy as np mser = cv2.MSER_create() img = cv2.imread('C:\\Users\\Link\\Desktop\\test2.png') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) vis = img.copy() regions, _…
lucians
  • 2,239
  • 5
  • 36
  • 64
3
votes
1 answer

In OpenCV 3.3.1, how to use pass2Only option of MSER

OpenCV version 3.3.1 has an implementation of MSER algorithm, and one possible option is setPass2Only, but it's not specify in the documentation what is it for:…
facug91
  • 93
  • 6
3
votes
1 answer

How to crop out the detected mser region in python?

I am trying to crop out the region detected using mser. The mser.detect() function produces mser-regions and I would like to crop this region to give me the resulting output.I am using python and would really appreciate if someone can help in…
3
votes
1 answer

Improve text area detection (OpenCV, Python)

I am working on a project which ask me to detect text area in an image. This is the result I achieved until now using the code below. Original Image Result The code is the following: import cv2 import numpy as np # read and scale down image img =…
lucians
  • 2,239
  • 5
  • 36
  • 64
3
votes
1 answer

opencv MSER.detectRegions() vs findContours(): what's the difference?

I am building a generic text parsing algorithm for images. I was running: MSER.detectRegions() vs findContours(...cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) on a binary image. The results where the same. I know MSER can be done on gray-scale but…
ndor
  • 41
  • 1
  • 4
3
votes
1 answer

Matching algorithm for MSER features?

How can the following work? I am seeking for MSER feature points and then pairing them with matchFeatures function. % file1 = 'roofs1.jpg'; % file2 = 'roofs2.jpg'; file1 = 'cameraman.tif'; I1 = imread(file1); %I2 = imread(file2); I2 =…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
1
2 3 4 5