Skip to content

KhalidAlsantali/Parallel-Image-Hashing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Parallel-Image-Hashing

Small project about different methods to use parallel processing to hash images. To use this, place images in a directory named "input_images" in the same directory as the python script. The python script will automatically generate a directory named "output" where the json hash files will be written to.

Parallel Image Hash uses three different techniques to achieve a speedup on image hashing.

Technique 1: Processes

Every processor on the CPU (or any number below that, as can be changed in code) takes an equal number of images and hashes them. The second fastest technique.

Technique 2: Threads

One processor uses multiple threads as set in code and each thread hashes an equal number of images. This is a concurrency technique and the speedup is achieved by essentially removing CPU downtime. The slowest technique.

Technique 3: Both threads and processes

This technique combines both techniques such that each processor has a minimum downtime and can work 100% of the runtime of the program. Slightly faster than technique 1.

Sequential technique

Sequential Image Hash is just as it sounds. One processor using one threads sequentially moving through each image and hashing it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages