kailashbuki / fingerprint Goto Github PK
View Code? Open in Web Editor NEWDocument fingerprint generator
Home Page: https://github.com/kailashbuki/fingerprint
License: MIT License
Document fingerprint generator
Home Page: https://github.com/kailashbuki/fingerprint
License: MIT License
Hi,
I was using your algorithm to classify different documents and while it was working well, for some reason when I apply OCR to handwritten forms (text is valid I have checked) somehow none of the hashed fingerprints match another similar form. I have attached the two forms I am comparing along with this issue. Any help on this is appreciated!
These are IRS forms (1099) and I have filled one with random data on a page and the other one is just a template. I want to see if there is a similarity in their fingerprints (which there should be), but it shows no common fingerprints.
I was trying to install using
pip install fingerprint
but it gives an error
C:\Users\andey\Documents\GithubDownloadedRepos\dejavu>pip install fingerprint
Collecting fingerprint
Using cached fingerprint-0.1.2.tar.gz (3.7 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\andey\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize;
sys.argv[0] = '"'"'C:\\Users\\andey\\AppData\\Local\\Temp\\pip-install-oibj2130\\fingerprint\\setup.py'"'"'; __file__='"'"'
C:\\Users\\andey\\AppData\\Local\\Temp\\pip-install-oibj2130\\fingerprint\\setup.py'"'"';f=getattr(tokenize, '"'"'open
'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
egg_info --egg-base 'C:\Users\andey\AppData\Local\Temp\pip-install-oibj2130\fingerprint\pip-egg-info'
cwd: C:\Users\andey\AppData\Local\Temp\pip-install-oibj2130\fingerprint\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\andey\AppData\Local\Temp\pip-install-oibj2130\fingerprint\setup.py", line 12, in <module>
long_description=open('README.md').read(),
FileNotFoundError: [Errno 2] No such file or directory: 'README.md'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
But older version
pip install fingerprint==0.1.1
works fine though.
Hi,
I was looking at your implementation of winnowing and decided to try it out on a project I am working on. I have .txt files that I am using this on to create digital fingerprints for these files. With the kgram length as 5 and a window length of 19 (therefore expected keys selected should be close to 2/(1+window length) = 10%), I am getting around 50% of my hashes as fingerprints. Out of this 50%, around 85% have a value of 0 in different positions. Do you have any idea why this could be the case?
fpg = FingerprintGenerator(input_string='asdfsdfasfadafafadsadfa')
fpg.generate_fingerprints()
Traceback (most recent call last):
File "", line 1, in
File "/home/serj/work/mirror0/virtual_env/local/lib/python2.7/site-packages/fingerprint/fingerprintgenerator.py", line 151, in generate_fingerprints
self.generate_rollinghash()
File "/home/serj/work/mirror0/virtual_env/local/lib/python2.7/site-packages/fingerprint/fingerprintgenerator.py", line 81, in generate_rollinghash
prev_hash_value += ord(first_kgram[i])(BASE*(KLENGTH-1-i))
IndexError: string index out of range
exit()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.