[go: up one dir, main page]

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

On demand duplicate check during runtime with a 'growing' BKTree #183

Open
sla-te opened this issue Nov 5, 2022 · 0 comments
Open

On demand duplicate check during runtime with a 'growing' BKTree #183

sla-te opened this issue Nov 5, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@sla-te
Copy link
sla-te commented Nov 5, 2022

What I would like to achieve I about the following:

EXISTING_HASHES: set = set()
def is_duplicate(img_bytes: bytes):
    if get_hash(img_bytes) in EXISTING_HASHES:
        return True
    return False

def main():
    image_bytes = get_new_image()
    if is_duplicate(image_bytes)
        return

    with open(file) as f:
       f.write(image_bytes)
        
@sla-te sla-te changed the title Implementing the libary with a 'growing' imageset (runtime) On demand duplicate check during runtime with a 'growing' BKTree Nov 5, 2022
@tanujjain tanujjain added the enhancement New feature or request label Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants