Coder Social home page Coder Social logo

ashutoshraj / signaturerecognition Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 3.0 91 KB

Signature Verification without using CNN

License: GNU General Public License v2.0

Python 100.00%
signature-verification image-recognition opencv3 python signature gabor-filters computer-vision

signaturerecognition's People

Contributors

ashutoshraj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

signaturerecognition's Issues

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

strokeOrient method

Which algorithm you use in strokeOrient method and StrokeFequency Library ?

Regarding wrong Output

Hello, I had tried to run your code but for some of the images, the output is coming wrong. Can you please let me know what preprocessing steps are required on images for correct output ?

Unable to run on a Xserver less machine

Hello I seem to hit an error from _tkinter.TclError: no display name and no $DISPLAY environment variable despite the fact I'm running with the --visual=False. What can I be missing?

Error While running the code

gabor_filter = np.array(np.zeros((180 / angleInc, filt_rows, filt_cols)))
TypeError: 'float' object cannot be interpreted as an integer

While running the code with default values, this error shows up and prevents program to run further
I tried resolving it by using
gabor_filter = np.array(np.zeros((int(180/angleInc), (filt_rows), (filt_cols)), dtype = int))

but this shows another error

for o in range(0, 180 / angleInc):
TypeError: 'float' object cannot be interpreted as an integer

I looked for a solution online and found this

Replacing this part

for o in range(0,180/angleInc):`
    rot_filt = scipy.ndimage.rotate(reffilter,-(o*angleInc + 90),reshape = False)
    gabor_filter[o] = rot_filt

by this

angle_for_iter = (0,180/angleInc)
start_angle, last_angle = angle_for_iter
start_angle = int(start_angle)
last_angle = int(last_angle)
	
for o in range(start_angle, last_angle):
    rot_filt = scipy.ndimage.rotate(reffilter,-(o*angleInc + 90),reshape = False)
    gabor_filter[o] = rot_filt

after this is done we get an error in match

matches = sorted(bf.match(des1, des2), key=lambda match: match.distance)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\core\src\batch_distance.cpp:275: error: (-215:Assertion failed) type == src2.type() && src1.cols == src2.cols && (type == CV_32F || type == CV_8U) in function 'cv::batchDistance'

and i am stuck at this

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.