- Updated `config.json` to modify `yanghao_recommend_interval_seconds` for better timing control. - Refactored logging in `douyin_detection.py` to enhance readability and error handling. - Improved pixel loading and error management in image processing functions across multiple modules. - Enhanced GUI elements in `gui_app.py` to support new configuration options and improve user experience.
26 lines
830 B
Python
26 lines
830 B
Python
from douyin_fudai import fudai_analyse
|
|
|
|
try:
|
|
from version import print_version_banner
|
|
except Exception:
|
|
print_version_banner = None
|
|
|
|
class fudai_guaji:
|
|
def __init__(self):
|
|
self.analyser = fudai_analyse()
|
|
|
|
def guaji(self, y_pianyi=0):
|
|
"""y_pianyi 对应y轴高度的偏移值"""
|
|
device_id = self.analyser.operation.select_device()
|
|
if device_id:
|
|
self.analyser.fudai_choujiang(device_id, y_pianyi, True, 5)
|
|
return True
|
|
self.analyser.operation.delay(10)
|
|
self.guaji(y_pianyi)
|
|
|
|
if __name__ == '__main__':
|
|
if print_version_banner is not None and callable(print_version_banner):
|
|
print_version_banner("douyin_guaji")
|
|
choujiang = fudai_guaji()
|
|
choujiang.guaji(0) # 运行只需改这里的0,对应是你手机纵轴y的偏移值
|