1
This commit is contained in:
22
config.json
22
config.json
@@ -1,20 +1,20 @@
|
|||||||
{
|
{
|
||||||
"groups": [
|
"groups": [
|
||||||
{
|
{
|
||||||
"name": "配置组1",
|
"name": "电脑2",
|
||||||
"serial_port": "COM10",
|
"serial_port": "COM12",
|
||||||
"serial_baudrate": 9600,
|
"serial_baudrate": 9600,
|
||||||
"camera_index": 0,
|
"camera_index": 1,
|
||||||
"camera_width": 1920,
|
"camera_width": 1920,
|
||||||
"camera_height": 1080,
|
"camera_height": 1080,
|
||||||
"move_velocity": 470,
|
"move_velocity": 315,
|
||||||
"active": false
|
"active": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "火炬游戏",
|
"name": "服务器",
|
||||||
"serial_port": "COM11",
|
"serial_port": "COM11",
|
||||||
"serial_baudrate": 9600,
|
"serial_baudrate": 9600,
|
||||||
"camera_index": 1,
|
"camera_index": 0,
|
||||||
"camera_width": 1920,
|
"camera_width": 1920,
|
||||||
"camera_height": 1080,
|
"camera_height": 1080,
|
||||||
"move_velocity": 470,
|
"move_velocity": 470,
|
||||||
@@ -22,12 +22,12 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"preview_width": 1000,
|
"preview_width": 1920,
|
||||||
"preview_height": 700,
|
"preview_height": 1080,
|
||||||
"preview_columns": 2,
|
"preview_columns": 1,
|
||||||
"preview_rows": 2,
|
"preview_rows": 1,
|
||||||
"show_preview": true,
|
"show_preview": true,
|
||||||
"preview_multi_window": false,
|
"preview_multi_window": false,
|
||||||
"preview_use_all_groups": true
|
"preview_use_all_groups": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -22,7 +22,7 @@ def create_launcher():
|
|||||||
"""创建启动器界面"""
|
"""创建启动器界面"""
|
||||||
root = tk.Tk()
|
root = tk.Tk()
|
||||||
root.title("火炬之光自动化 - 启动器")
|
root.title("火炬之光自动化 - 启动器")
|
||||||
root.geometry("400x380")
|
root.geometry("400x580")
|
||||||
root.resizable(False, False)
|
root.resizable(False, False)
|
||||||
|
|
||||||
# 标题
|
# 标题
|
||||||
|
|||||||
7
main.py
7
main.py
@@ -260,11 +260,8 @@ while True:
|
|||||||
if shizi.fuhuo(im_opencv[0]):
|
if shizi.fuhuo(im_opencv[0]):
|
||||||
print('点击复活')
|
print('点击复活')
|
||||||
mouse_gui.send_data_absolute(left + 536, top + 627, may=1)
|
mouse_gui.send_data_absolute(left + 536, top + 627, may=1)
|
||||||
|
time.sleep(0.15)
|
||||||
|
keyboard.release()
|
||||||
|
|
||||||
time.sleep(0.15)
|
|
||||||
keyboard.release()
|
|
||||||
continue
|
continue
|
||||||
if shizi.tuichu(im_opencv[0]) and detections['next'] is None and len(detections['daojv']) == 0 and len(detections['gw']) == 0 and boss_pd:
|
if shizi.tuichu(im_opencv[0]) and detections['next'] is None and len(detections['daojv']) == 0 and len(detections['gw']) == 0 and boss_pd:
|
||||||
print("识别到可以退出挑战!!!!!!!!!!!!!!!!!!")
|
print("识别到可以退出挑战!!!!!!!!!!!!!!!!!!")
|
||||||
|
|||||||
Reference in New Issue
Block a user