From d561df12160d1b21c684d002a6c66336e267fb67 Mon Sep 17 00:00:00 2001 From: Huffer342-WSH <718007138@qq.com> Date: Sat, 11 Nov 2023 23:39:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0README=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0Python=E8=84=9A=E6=9C=AC=EF=BC=8C=E7=94=A8=E4=BA=8E?= =?UTF-8?q?=E5=88=A0=E9=99=A4pds=E7=94=9F=E6=88=90=E7=9A=84=E5=A4=87?= =?UTF-8?q?=E4=BB=BD=E9=97=AE=E5=92=8C=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 41 +++++++++++++++++++++++++++++++++++++++++ clear_projrct.py | 13 +++++++++++++ project/kkk.rcf | 0 3 files changed, 54 insertions(+) create mode 100644 README.md delete mode 100644 project/kkk.rcf diff --git a/README.md b/README.md new file mode 100644 index 0000000..ed61f92 --- /dev/null +++ b/README.md @@ -0,0 +1,41 @@ +# 多媒体视频处理魔盒 + +## 概述 + +### 开发平台 + +- **EDA**: Pango Design Suite 2022.2-SP1-Lite +- **FPGA型号**: PGL50H-6FBG484 + +### 工程结构 + +``` +├─application //上位机 +├─bitstream files //比特流文件备份 +├─doc //文档 +├─project //pango工程目录 +│ ├─compile +│ ├─constraint_check +│ ├─generate_bitstream //生成的比特流文件 +│ ├─ipcore //IP核 +│ ├─place_route +│ ├─report_timing +│ ├─Route Constraint Editor +│ └─synthesize +├─sources //源文件 +│ ├─constraints //约束 +│ ├─designs //可综合源文件 +│ │ ├─adjust_color //调整颜色模块 +│ │ ├─ddr //ddr模块 +│ │ ├─hdmi //HDMI输入输出 +│ │ ├─image_filiter //图像滤波 +│ │ ├─others //其它 +│ │ ├─ov5640 //摄像头配置、输入、混合 +│ │ ├─reset //复位 +│ │ ├─rotate //图像旋转、缩放、位移 +│ │ ├─udp_osd //UDP通信、OSD显示 +│ │ └─zoom //图像缩放(二次线性插值) +│ └─simulations //仿真文件 +└─utils //辅助工具 +``` + diff --git a/clear_projrct.py b/clear_projrct.py index 0171411..56ab133 100644 --- a/clear_projrct.py +++ b/clear_projrct.py @@ -11,14 +11,27 @@ def delete_files_in_directory(directory, target_folders): try: if os.path.isfile(file_path): os.unlink(file_path) + print(f"Deleted {file_path}.") elif os.path.isdir(file_path): shutil.rmtree(file_path) + print(f"Deleted {file_path}.") except Exception as e: print(f"Failed to delete {file_path}. Error: {e}") +def delete_run_log_files(directory="."): + for root, dirs, files in os.walk(directory): + for file_name in files: + if file_name == "run.log": + file_path = os.path.join(root, file_name) + try: + os.remove(file_path) + print(f"Deleted: {file_path}") + except Exception as e: + print(f"Failed to delete {file_path}. Error: {e}") if __name__ == "__main__": current_directory = os.getcwd() target_folders = ["bak", "logbackup"] delete_files_in_directory(current_directory, target_folders) + delete_run_log_files(current_directory) print("Deletion completed.") diff --git a/project/kkk.rcf b/project/kkk.rcf deleted file mode 100644 index e69de29..0000000