hand written signature recognition approach suggestion

asked 2019-03-13 11:03:31 -0500

dineshganti gravatar image


I have some scanned pdf documents which I am converting into jpeg. And all these documents are A4 size

Some of these documents have hand-signatures in them and I want to identify these documents.


I tried doing the following steps

  1. Used thresholding (binary)

  2. Calculating a4 constant as my pdf are a4 size(Got this idea from users code in github)

  3. Using morphology with this constant to remove the pixels less than the calculated a4 constant

4.applying inverse threshold with Otsu( THRESH_BINARY_INV | cv2.THRESH_OTSU)

but my results are very poor too many false positives or partial signatures extracted. and also other texts extracted which are not hand written


I did not yet try this but may be this will work

I can use keras to train images with signatures in the images but this is not prefered as of now(Last resort approach)


  1. Converted the image into binary
  2. use histograms as i understood from histograms the intensity of a typed charaters are different than handwritten-signatures. But I am not able to find how I can confirm that it is a signature or atleast make sure that there is a signature inside the image Note: I think I have to use contours or some kind of boundings but I am not sure how to do this.


I have failed in all the above approaches(except 2 which I havent tried yet)

Also I am thinking may be use KNN but need a starting point for it

Any ideas or suggestions much appreciated

Thanks, Dinesh.

edit retag flag offensive close merge delete


I want to identify these documents

so, r/recognize/detect ?

berak gravatar imageberak ( 2019-03-13 11:59:43 -0500 )edit

@berak I just want to detect any hand written signatures are present or not in an image.

in future i would like to extract that signature and load it in a database(Not sure how to do it as of now still learning)

Thanks Dinesh.

dineshganti gravatar imagedineshganti ( 2019-03-13 16:59:39 -0500 )edit

A quick update I also tried doing this with YOLO but its just way too intensive and actually very tough to get it set up. Thanks, Dinesh

dineshganti gravatar imagedineshganti ( 2019-03-15 08:42:58 -0500 )edit