Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web based test suite #92

Open
jonasob opened this issue Dec 11, 2014 · 0 comments
Open

Web based test suite #92

jonasob opened this issue Dec 11, 2014 · 0 comments

Comments

@jonasob
Copy link
Member

jonasob commented Dec 11, 2014

It would be incredibly useful to have a web page which can perform some basic sanity checks on images and URLs. When I don't get a match that I would expect, or get a wrong match, I usually follow roughly the same sequence of events, and this could probably be automated greatly:

Given two image URLs, one original, and one which you expect should match that original:

a) Calculate blockhash of both with JS and C blockhash, signal error if >4 bit difference between JS and C
b) Lookup original in DB by hash, signal error if it's not found (not possible to match something against an original which doesn't exist)
c) hamming distance between the original and copy, signal error if >10 bits (wouldn't match)
d) Lookup copy hash in DB, signal error if not found (at this point, it should be found if original is there and <10 bits distance)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant