-
Notifications
You must be signed in to change notification settings - Fork 1
Implement ignorable a11y image flags #22
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
Conversation
I'm not too worried about this since it's more of a feature than a bug with perceptual hashing.
This is straightforward, nothing to say about it.
I'm not sure if this one is clear enough. This is used to set which algorithms are used with
Nothing to say about this one either. I'm interested in having @gautierchomel take on this as well. |
Yes
OK, I just think it should be somehow made clear to users of the tool that this might cause mistakes in the evaluation |
We can cover that in the README, I've opened a separate branch for that. |
I would rename that one into Right now we have different algorithms used for |
Based on our latest call with @chocolatkey:
I'll continue working on the README branch with these new decisions in mind. |
Are they then added to the Link object in the output manifest? I think this would be a weird side effect. If I understand correctly, I feel like we're conflating the hashes that are used for processing and the ones that the user wants to output in the manifest for future consumption. Here are some ideas:
|
No, that would require using the But in order to compare (and potentially ignore) images, you need to compute these hashes. That's why I feel that a single flag ( It becomes a way to indicate what should be computed across the board.
I don't think that's a good idea because some implementers will want to use a perceptual hash in addition to a cryptographic one.
We already have two different algorithms for cryptographic hashes and another two for perceptual hashes. The list might become longer over time and implementers who have stored hashes with one of these algorithms (let's say pHash-DCT) might want to keep using it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be merged after implementing changes requested in #22 (comment)
Closes #15
New
manifest
command help output:Something to note is that since the phash algorithm is being included by default for the ignorable image directory, there is a possibility of collision as the hash is not exact. This is illustrated in the test I created in the go-toolkit that compared these two images: https://github.com/readium/go-toolkit/blob/develop/pkg/analyzer/testdata/frame1.png vs. https://github.com/readium/go-toolkit/blob/develop/pkg/analyzer/testdata/frame2.png