GithubHelp home page GithubHelp logo

ahmetozlu / signature_extractor Goto Github PK

View Code? Open in Web Editor NEW
445.0 15.0 140.0 3.99 MB

A super lightweight image processing algorithm for detection and extraction of overlapped handwritten signatures on scanned documents using OpenCV and scikit-image.

License: MIT License

Python 100.00%
image-processing image-segmentation signature-verification signature-detection signature-recognition ocr ocr-engine optical-character-recognition signature-extractor handwritten-signatures

signature_extractor's Issues

constant_1 and 2 are redundant ?

Hi,
I don't understand why there are two constants when you do :
a4_small_size_outliar_constant = ((average / c1) * c2) + c3, why not a4_small_size_outliar_constant = ((average c) + c3 where c=c2/c1 ?

Thx

constant_parameters values

hey there! amazing code.
I have a question, where do you get those constant_parameter_1, 2, 3 and 4 values? ? I'm still trying to understand where those values came from.

Thanks in advance!

a better signature detection?

Excuse me,
After testing, I found that it didn't work well in many cases. Is there a better signature detection model?

Request

Please, is difficult to develope a function that return true if a signature is present and false if not?

I need to understand if a document has been signed.

Thanks a lot

strokeFilter function giving error

In StrokeFilter.py file function def strokeFilter(im, orient, freq, kx, ky): is giving error on following line

sigmax = 1 / unfreq[0] * kx sigmay = 1 / unfreq[0] * ky

Error Stack -

File "D:\OCR\signature_extractor-master\signature_verifier\verifier\__init__.py", line 12, in verify
    kp1, des1 = extractKeypoints(img1)
  File "D:\OCR\signature_extractor-master\signature_verifier\verifier\ExtractKeypoints.py", line 42, in extractKeypoints
    img = preprocessing(img)
  File "D:\OCR\signature_extractor-master\signature_verifier\verifier\Preprocessing.py", line 26, in preprocessing
    newim = strokeFilter(normim, orientim, freq, kx, ky)
  File "D:\OCR\signature_extractor-master\signature_verifier\verifier\StrokeFilter.py", line 21, in strokeFilter
    sigmax = 1 / unfreq[0] * kx
IndexError: index 0 is out of bounds for axis 0 with size 0

get position

Hi.

Is it possible to retrieve the coordinates of the form (x,y,w,h)?? What??

Error with skimage

Error: 'image' and 'label' must be the same shape
While using the label2rgb function. The labels have (x,y,3) dimensions. How is that possible?

pass pre_version as array instead of saving and reading again?

I'm thinking to skip saving pre_version image and pass to the next step
So, I'm thinking to get a function to do this but not sure how to do this.
I tried to convert it as unit8 type but the colour is not correct.
I think it's realted to the types and normalization issues.
Could you advise how to get the function to do this? Thanks

img=function(pre_version) img = cv2.threshold(img, 0, 255, cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1] cv2.imwrite("output.png", img)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.