2024-04-29 17:52:00 +00:00
|
|
|
Outline:
|
|
|
|
|
2024-04-29 17:53:54 +00:00
|
|
|
start for loop, iterating through files (https://www.geeksforgeeks.org/how-to-iterate-over-files-in-directory-using-python/)
|
2024-04-29 17:52:00 +00:00
|
|
|
|
|
|
|
use opencv to grab bottom right corner of image (https://stackoverflow.com/a/58984370)
|
|
|
|
|
|
|
|
convert the output to greyscale then binary
|
|
|
|
|
|
|
|
use pytesseract image-to-string on output to find page number (saving this to a variable inside the loop)
|
|
|
|
|
|
|
|
rename the input file to the page number variable
|
|
|
|
|
|
|
|
end loop
|
|
|
|
|