建模相关功能的修改
This commit is contained in:
1 parent
e1a7647fcb
commit
04852e95cd
7 files changed
+280
-7
No files matched your search
+58
-2
@@ -28,10 +28,17 @@ def find_and_maximize_window(window_title):
|
||||
pid = win32gui.GetWindowText(hwnd).split('screen')[0].split(' ')[0].split('-')[0].split('*')[0].split('_')[0]
|
||||
time.sleep(3)
|
||||
#截屏
|
||||
if pid != "":
|
||||
if pid.isdigit():
|
||||
common.saveScreenImg(pid)
|
||||
time.sleep(3)
|
||||
ag.hotkey('alt', 'f4')
|
||||
|
||||
if "point" in win32gui.GetWindowText(hwnd):
|
||||
pid = win32gui.GetWindowText(hwnd).split('screen')[0].split(' ')[0].split('-')[0].split('*')[0].split('_')[0]
|
||||
time.sleep(5)
|
||||
if pid != "":
|
||||
print("开始导出导出点云文件")
|
||||
exportPointColud(pid)
|
||||
|
||||
return '0', 0, 0, 0, 0
|
||||
|
||||
@@ -59,6 +66,53 @@ def find_and_maximize_window(window_title):
|
||||
# ag.typewrite(distance)
|
||||
# ag.press('enter')
|
||||
|
||||
#导出点云文件数据
|
||||
def exportPointColud(pid):
|
||||
#移动到alignment
|
||||
ag.moveTo(177,33)
|
||||
ag.click()
|
||||
time.sleep(0.5)
|
||||
#移动到Point cloud
|
||||
ag.moveTo(850,85)
|
||||
ag.click()
|
||||
time.sleep(0.5)
|
||||
#移动到弹出的框中的路径中,重写
|
||||
ag.moveTo(739,186)
|
||||
ag.click()
|
||||
repeat_backspace(18)
|
||||
time.sleep(0.5)
|
||||
ag.typewrite("D:\\xyz")
|
||||
ag.press('enter')
|
||||
#输入文件的名称
|
||||
time.sleep(0.5)
|
||||
ag.moveTo(594,571)
|
||||
ag.click()
|
||||
repeat_backspace(15)
|
||||
time.sleep(0.5)
|
||||
ag.typewrite(str(pid)+"_point")
|
||||
#保存按钮1
|
||||
time.sleep(0.5)
|
||||
ag.moveTo(1104,635)
|
||||
ag.click()
|
||||
time.sleep(0.5)
|
||||
#保存按钮2
|
||||
ag.moveTo(797,512)
|
||||
ag.click()
|
||||
time.sleep(2)
|
||||
print("结束导出导出点云文件")
|
||||
#退出
|
||||
ag.hotkey('ctrl', 's') # save project
|
||||
print("点击保存按钮")
|
||||
time.sleep(5)
|
||||
ag.hotkey('alt', 'f4') # close project
|
||||
print("点击关闭按钮")
|
||||
|
||||
#加入pid+"_1"的队列
|
||||
redisLocal.lpush('model:auto_distance', pid+"_3")
|
||||
#去掉pid+"_0"的队列
|
||||
redisLocal.lrem('model:auto_distance', 0, pid+"_1")
|
||||
|
||||
|
||||
def get_defineDistances(pid, left, top, right, bottom):
|
||||
psid = libs.getPSid(pid)
|
||||
distances = libs_db.get_floor_sticker_distances(psid) #config.ps_floor_sticker.get(psid, config.ps_floor_sticker['default'])
|
||||
@@ -149,7 +203,9 @@ def defind_distance(pid, left, top, right, bottom):
|
||||
time.sleep(5)
|
||||
|
||||
def main():
|
||||
|
||||
# time.sleep(6)
|
||||
# exportPointColud()
|
||||
# exit()
|
||||
while True:
|
||||
time.sleep(1)
|
||||
title = "wait"
|
||||
|
||||
Reference in new issue
Block a user