86 lines
1.5 KiB
Python
86 lines
1.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Created on Fri Feb 21 14:28:59 2025
|
|
|
|
@author: ym
|
|
"""
|
|
|
|
import os
|
|
import numpy as np
|
|
from pathlib import Path
|
|
|
|
import sys
|
|
sys.path.append(r"D:\DetectTracking")
|
|
from contrast.utils.event import ShoppingEvent
|
|
from tracking.utils.read_data import read_weight_sensor, extract_data_realtime, read_tracking_output_realtime
|
|
from tracking.utils.read_data import read_process
|
|
|
|
|
|
|
|
def read_tracker_data(filepath):
|
|
pass
|
|
|
|
|
|
def read_tracking_output_data(filepath):
|
|
pass
|
|
|
|
|
|
def read_process_data(filepath):
|
|
path
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
evtPaths = r"\\192.168.1.28\share\测试视频数据以及日志\全实时测试\V12\2025-2-21\persist"
|
|
evtPaths = Path(evtPaths)
|
|
|
|
for evtpath in evtPaths.iterdir():
|
|
|
|
## 1. 读取重力数据
|
|
if evtpath.name.find("Weight")>=0 and evtpath.name.find(".txt")>0:
|
|
weight_data = read_weight_sensor(evtpath)
|
|
|
|
if not evtpath.is_dir():
|
|
continue
|
|
|
|
## 2. 读取事件data数据
|
|
for fpath in evtpath.iterdir():
|
|
|
|
fname = fpath.name
|
|
if fname.find("tracker.data"):
|
|
pass
|
|
|
|
if fname.find("tracking_output.data"):
|
|
pass
|
|
|
|
|
|
if fname.find("process.data") >=0:
|
|
pass
|
|
|
|
|
|
fpath = str(fpath)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main() |