|
|
|
|
@ -6,7 +6,9 @@ Photo De-Duplication |
|
|
|
|
``` |
|
|
|
|
cd dedup |
|
|
|
|
python -m venv C:\Users\$env:USERNAME\Common\env_dedup |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
Check to see if C:\Users\$env:USERNAME\Common\env_dedup\Scripts OR bin folder exists in Windows... |
|
|
|
|
``` |
|
|
|
|
& C:\Users\$env:USERNAME\Common\env_dedup\Scripts\Activate.ps1 |
|
|
|
|
``` |
|
|
|
|
If you get an error like: "running scripts is disabled on this system" |
|
|
|
|
@ -14,17 +16,20 @@ It means your PowerShell execution policy is too restrictive. You can temporaril |
|
|
|
|
``` |
|
|
|
|
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass |
|
|
|
|
``` |
|
|
|
|
Check to see if C:\Users\$env:USERNAME\Common\env_dedup\Scripts OR bin folder exists in Windows... |
|
|
|
|
After that repeat the Activate Script command: |
|
|
|
|
``` |
|
|
|
|
If that does not work, then TRY: |
|
|
|
|
& C:\Users\$env:USERNAME\Common\env_dedup\bin\Activate.ps1 |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
Here are the packages that need to be installed by pip: |
|
|
|
|
``` |
|
|
|
|
pip install xxhash opencv-python |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
## Usage Windows: |
|
|
|
|
Again, verify if the folder exists Scripts or bin: |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
& C:\Users\$env:USERNAME\Common\env_dedup\Scripts\Activate.ps1 |
|
|
|
|
python dedup.py 0.jpg 1.jpg |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|