diff --git a/saved_screenshots/image.jpeg b/saved_screenshots/image.jpeg new file mode 100644 index 00000000..a3cbda10 Binary files /dev/null and b/saved_screenshots/image.jpeg differ diff --git a/scrapegraphai/sreenshot_scraping/__init__.py b/scrapegraphai/screenshot_scraping/__init__.py similarity index 100% rename from scrapegraphai/sreenshot_scraping/__init__.py rename to scrapegraphai/screenshot_scraping/__init__.py diff --git a/scrapegraphai/sreenshot_scraping/screenshot_preparation.py b/scrapegraphai/screenshot_scraping/screenshot_preparation.py similarity index 98% rename from scrapegraphai/sreenshot_scraping/screenshot_preparation.py rename to scrapegraphai/screenshot_scraping/screenshot_preparation.py index 2a194799..ee9252e7 100644 --- a/scrapegraphai/sreenshot_scraping/screenshot_preparation.py +++ b/scrapegraphai/screenshot_scraping/screenshot_preparation.py @@ -172,6 +172,8 @@ def select_area_with_ipywidget(image): interact(update_plot, top_bottom=top_bottom_slider, left_right=left_right_slider, image_size=image_size_bt) + + return left_right_slider, top_bottom_slider def crop_image(image, LEFT=None, TOP=None, RIGHT=None, BOTTOM=None, save_path: str = None): @@ -210,4 +212,4 @@ def crop_image(image, LEFT=None, TOP=None, RIGHT=None, BOTTOM=None, save_path: # image=asyncio.run(take_screenshot("https://unix.stackexchange.com/questions/690233/piping-yes-when-running-scripts-from-curl", save_path="saved_screenshots/image.jpeg")) -# print(select_area_with_opencv(image)) \ No newline at end of file +# print(select_area_with_ipywidget(image)) \ No newline at end of file diff --git a/scrapegraphai/sreenshot_scraping/text_detection.py b/scrapegraphai/screenshot_scraping/text_detection.py similarity index 100% rename from scrapegraphai/sreenshot_scraping/text_detection.py rename to scrapegraphai/screenshot_scraping/text_detection.py