-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.py
More file actions
25 lines (19 loc) · 742 Bytes
/
Main.py
File metadata and controls
25 lines (19 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os
import ImageSelect
datasetPath = os.getcwd() + "\dataset\multi_paste"
dataset = {}
index = 0
for x in os.listdir(datasetPath):
if not x.endswith("mask.png") and not x.endswith("mask.bmp"):
index += 1
dataset[index] = x
print(" "+ str(index) +". "+ str(x))
print("> Choose one of the images from the dataset below by its numbering, to check for possible existing Copy-Move fakes .")
index = input()
image = dataset[int(index)]
print("> The chosen image was "+ image +".")
print("> Choose the size of the comparison blocks. (Positive and non-zero).")
block = int(input())
if (block <= 0):
block = 4
ImageSelect.select(os.getcwd(), (datasetPath + "\\" + image), block)