Upload 2 files
Browse files- batch_process_images.py +1 -1
- segmentation_editor.py +1 -1
batch_process_images.py
CHANGED
|
@@ -272,7 +272,7 @@ def batch_process_images(input_dir, output_dir="batch_segmented_images"):
|
|
| 272 |
|
| 273 |
def main():
|
| 274 |
# Set input directory to the extracted pages
|
| 275 |
-
input_dir = "
|
| 276 |
output_dir = "batch_segmented_images"
|
| 277 |
|
| 278 |
if not os.path.exists(input_dir):
|
|
|
|
| 272 |
|
| 273 |
def main():
|
| 274 |
# Set input directory to the extracted pages
|
| 275 |
+
input_dir = os.path.join(os.path.dirname(__file__), "extracted_pages")
|
| 276 |
output_dir = "batch_segmented_images"
|
| 277 |
|
| 278 |
if not os.path.exists(input_dir):
|
segmentation_editor.py
CHANGED
|
@@ -315,7 +315,7 @@ class SegmentationEditor:
|
|
| 315 |
cv2.destroyAllWindows()
|
| 316 |
|
| 317 |
def main():
|
| 318 |
-
input_dir = "
|
| 319 |
output_dir = "edited_segmented_images"
|
| 320 |
|
| 321 |
if not os.path.exists(input_dir):
|
|
|
|
| 315 |
cv2.destroyAllWindows()
|
| 316 |
|
| 317 |
def main():
|
| 318 |
+
input_dir = os.path.join(os.path.dirname(__file__), "extracted_pages")
|
| 319 |
output_dir = "edited_segmented_images"
|
| 320 |
|
| 321 |
if not os.path.exists(input_dir):
|