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

match all orientations #1127

Merged
merged 5 commits into from
Feb 19, 2024
Merged

Conversation

brccabral
Copy link
Contributor

Hi,
I was able to solve the problem with rotated/mirrored images.
Had to add cache blocks for all 8 orientation in the sqlite, but it is working fine.
Let me know if you need any edit.
Cheers,
Bruno

@arsenetar
Copy link
Owner

I think the general idea here is good. I do think this should be an option instead of always matching all orientations as some users may not want to match images with different orientations.

@brccabral
Copy link
Contributor Author

I think the general idea here is good. I do think this should be an option instead of always matching all orientations as some users may not want to match images with different orientations.

Hi @arsenetar , added option for rotated images

arsenetar and others added 3 commits July 3, 2023 22:27
- Update NullJob to subclass Job
- Remove unnecessary size pre-read in _getMatches() as file sizes are
  already loaded during file scan via stat call
- Skip ref check if contents scan as the scan already prevents this from
  happening, some of the other scans do things differently and need to
  be reviewed before removing this post step completely
- Add guard on partial hashing to just hash the whole file if smaller
  than the offset and size and use the value for both the partial digest
  and digest
I have updated my fork and moved my changes from before.
@arsenetar arsenetar merged commit 85a4557 into arsenetar:master Feb 19, 2024
@ne1188
Copy link

ne1188 commented May 1, 2024

This change massively slows down the scan, even when the "match all orientations" option is not enabled.
The calculation of the blocks for all orientations is always done, predictably slowing down the scan by a factor of 8? or so.

A close to 10x slowdown is too much. I reverted this change on my local copy.

@glubsy
Copy link
Contributor

glubsy commented May 4, 2024

@ne1188 thanks for reporting, please open an issue ticket referencing this PR

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

Successfully merging this pull request may close these issues.

5 participants