常用脚本
主要存放一些工作中常用的脚本
weixin_38185649
我想:明白事情的意义,明白工作的意义,明白生活的意义,明白人生的意义!
展开
-
相机工程模式测试
#!/usr/bin/python# -*- coding: GBK -*-import osimport timeimport datetimeimport uiautomator2 as u2import subprocessfrom threading import Timerimport numpy as npfrom PIL import ImageGrabpi = subprocess.Popen("adb devices", shell=True, stdout=sub原创 2021-07-08 19:06:25 · 357 阅读 · 1 评论 -
相机自动化拍摄脚本
import osimport time# os.system("adb shell input keyevent 26") # 点击power键亮屏# os.system("adb shell input swipe 540 1300 540 500 100") # 向上滑屏# os.system("adb shell am start -a android.media.action.STILL_IMAGE_CAMERA") # 启动cameraa = input("请输入拍照次数:")原创 2020-05-13 11:10:50 · 1182 阅读 · 0 评论