Skip to content

Commit eca07ab

Browse files
committed
edit doc
edit doc
1 parent 7e89a9e commit eca07ab

File tree

4 files changed

+53
-15
lines changed

4 files changed

+53
-15
lines changed

.idea/workspace.xml

Lines changed: 32 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# -- Project information -----------------------------------------------------
1919

2020
project = 'AutoControlGUI_JE'
21-
copyright = '2021, JE-Chen'
21+
copyright = '2020 ~ 2021, JE-Chen'
2222
author = 'JE-Chen'
2323

2424

docs/source/image_detect/image_detect.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,20 @@ AutoControlGUI ImageDetect
4747
"""
4848
image_data = locate_and_click("../../../test_template.png", mouse_keycode="mouse_left", detect_threshold=0.9,
4949
draw_image=False)
50+
print(image_data)
51+
52+
| screenshot and locate
53+
54+
.. code-block:: python
55+
56+
import time
57+
from je_auto_control import screenshot
58+
from je_auto_control import locate_all_image
59+
60+
time.sleep(2)
61+
"""
62+
detect_threshold 0~1 , 1 is absolute equal
63+
draw_image, mark the find target
64+
"""
65+
image_data = locate_all_image(screenshot(), detect_threshold=0.9, draw_image=False)
5066
print(image_data)

docs/source/index.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ AutoControlGUI_JE
66
:maxdepth: 4
77

88
installation/installation.rst
9-
keyboard/keyboard.rst
9+
critical_exit/critical_exit.rst
1010
mouse/mouse.rst
11+
keyboard/keyboard.rst
1112
screen/screen.rst
1213
image_detect/image_detect.rst
13-
todo/todo.rst
1414
test/test.rst
15-
critical_exit/critical_exit.rst
15+
todo/todo.rst
16+
1617

1718
Github :
1819
https://github.com/JE-Chen/Python_JEAutoControl

0 commit comments

Comments
 (0)