opencv - Merging with background while thresholding -


i doing project on license plate recognition system. facing problem in segmenting license plate characters. have tried cvadaptivethreshold() different window sizes, otsu , niblacks algorithm.

but in of cases license plate characters merge background. sample images , outputs given below,

enter image description here

enter image description here

  1. in first image license plate characters connected white line in bottom hence using thresholding algorithm couldn't extract characters, how can extract characters images... ??

  2. in second image noise in background merges foreground, connects characters together.. how can segment characters in these types of images..??

  3. is there segmentation algorithms can segment characters in second image.. ?



  1. preprocessing: find big black areas on image , mark background. example treshold. way might use findcontours (contourarea size on result). way know areas can colour black after step 1.

  2. use otsu (top image, right column, blue title background).

  3. colour know background black.
  4. use opening/closing or erode/dilate (not sure work better) rid of small lines , refine results alternatively make edge detection , merge areas "close together", second 3 in example. check if areas close distance between bounding box of contours.

ps: don't think should blur image, since seems pretty small already.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -