Skip to content

Commit

Permalink
Merge pull request #51 from vrchmvgx/ensure-1.0
Browse files Browse the repository at this point in the history
Ensure 1.0 is ready
  • Loading branch information
Tattoo authored Aug 25, 2020
2 parents e767080 + bd39031 commit 358eb9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ Running unit tests
Running acceptance tests
------------------------

Additionally to unit test dependencies, you also need OpenCV, Eel and Chrome/Chromium browser.
Additionally to unit test dependencies, you also need OpenCV, Eel, scrot and Chrome/Chromium browser.
OpenCV is used because this tests are testing also confidence level.
Browser is used by Eel for cross-platform GUI demo application.
scrot is used for capturing screenshots.

::
$ pip install opencv-python eel
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[bdist_wheel]
universal = 1

[metadata]
license_files = LICENSE
3 changes: 2 additions & 1 deletion src/ImageHorizonLibrary/recognition/_recognize_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def try_locate(ref_image):
else:
if self.confidence:
LOGGER.warn("Can't set confidence because you don't "
"have OpenCV (python-opencv) installed.")
"have OpenCV (python-opencv) installed "
"or a confidence level was not given.")
location = ag.locateOnScreen(ref_image)
except ImageNotFoundException as ex:
LOGGER.info(ex)
Expand Down

0 comments on commit 358eb9c

Please sign in to comment.