-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated reademe with executable information and verbose description that I will probably change later, added executables for nonprogrammers so they can quickly run the program, edited main.py so that it does not print out stuff i meant to delete
- Loading branch information
Showing
7 changed files
with
45 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import cv2 as cv | ||
from pathlib import * | ||
import os | ||
from tqdm import tqdm, trange | ||
|
||
|
||
|
||
path = str(Path(input("Enter path to folder with images: "))) + "/" | ||
waitKey = int(input(("Enter waitkey: "))) | ||
|
||
fileListSorted = list(sorted(Path(path).iterdir(), key=os.path.getctime)) | ||
|
||
if "DELETETHIS.txt" in [file.name for file in fileListSorted]: #i love list comprehensions. | ||
raise Exception("Delete the 'DELETETHIS.txt' file!") | ||
|
||
while True: | ||
for file in tqdm(fileListSorted): | ||
img = cv.imread(str(file)) | ||
height, width = img.shape[0],img.shape[1] | ||
factor = 1 - width/1920 | ||
if factor == 0: | ||
factor = 1 | ||
img = cv.resize(img, (int(width*factor),int(height*factor)) ) | ||
cv.imshow("Display ", img) | ||
import cv2 as cv | ||
from pathlib import * | ||
import os | ||
from tqdm import tqdm, trange | ||
|
||
|
||
|
||
path = str(Path(input("Enter path to folder with images: "))) + "/" | ||
waitKey = int(input(("Enter waitkey: "))) | ||
|
||
fileListSorted = list(sorted(Path(path).iterdir(), key=os.path.getctime)) | ||
|
||
if "DELETETHIS.txt" in [file.name for file in fileListSorted]: #i love list comprehensions. | ||
raise Exception("Delete the 'DELETETHIS.txt' file!") | ||
|
||
while True: | ||
for file in tqdm(fileListSorted): | ||
img = cv.imread(str(file)) | ||
height, width = img.shape[0],img.shape[1] | ||
factor = 1 - width/1920 | ||
if factor == 0: | ||
factor = 1 | ||
img = cv.resize(img, (int(width*factor),int(height*factor)) ) | ||
cv.imshow("Display ", img) | ||
cv.waitKey(waitKey) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mediapipe==0.10.8 | ||
numpy==1.26.2 | ||
opencv_contrib_python==4.8.1.78 | ||
opencv_python==4.8.1.78 | ||
tqdm==4.66.1 |