Metadata-Version: 2.1
Name: yolov5windowdetect
Version: 0.10
Summary: Capture window - run yolov5 - show results (Windows only)
Home-page: https://github.com/hansalemaos/yolov5windowdetect
Author: Johannes Fischer
Author-email: <aulasparticularesdealemaosp@gmail.com>
License: MIT
Keywords: yolov5,yolo,screenshot,pandas,dataframe
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Editors :: Text Processing
Classifier: Topic :: Text Processing :: General
Classifier: Topic :: Text Processing :: Indexing
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
License-File: LICENSE.rst


#### Capture window - run yolov5 - show results



```python

pip install yolov5windowdetect

```



```python

from yolov5windowdetect import Yolov5WindowDetect

winca = (

    Yolov5WindowDetect(

        pt_file=r"C:\Users\.....\best.pt",

        repo_or_dir="./yolov5",

        model="custom",

        source="local",

    )

    .get_hwnd_window(window_title_regex=r"[Bb]lue[Ss]tacks.*")

    .take_screenshot_and_run_yolov(

        confidence_thresh=0.3,

        show_results=True,

        quit_key="q",

        sleep_time=0.04,

        rununtilstopped=True,

    )

)



# window capture -> don't show results, only results as df

winca.get_hwnd_window(

    window_title_regex=r"[Bb]lue[Ss]tacks.*"

).take_screenshot_and_run_yolov(

    confidence_thresh=0.3, show_results=False, rununtilstopped=False,

).get_results_as_df()





# adb capture

winca.get_adb_window(

    adb_path=r"C:\ProgramData\adb\adb.exe", adb_serial="localhost:5555",

).take_screenshot_and_run_yolov(

    confidence_thresh=0.3, show_results=False, rununtilstopped=False,

).get_results_as_df()

```



#### Example



<div align="left">

      <a href="https://www.youtube.com/watch?v=-jXqL39Tf5w">

         <img src="https://img.youtube.com/vi/-jXqL39Tf5w/0.jpg" style="width:100%;">

      </a>

</div>

