Skip to content

Commit

Permalink
fix🐛: 如果文件夹中有非图片文件,会跳过该文件
Browse files Browse the repository at this point in the history
  • Loading branch information
rainpenber committed Jul 17, 2022
1 parent 675fe61 commit 2c1957a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/__pycache__
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ A Windows GUI tool to check if the image sequence has any frame missing or broke
一个Windows下运行的GUI python工具,检查漏帧或者坏帧
![ScreenShot](https://user-images.githubusercontent.com/15974476/178226416-cf153786-96c1-425d-b66e-2f293c13ee0a.png)

## Enviroment 环境
```bash
pip install PyQt5 PyQt5-tools pyinstaller
```

## Compile 编译
```bash
pyinstaller -F main.py --noconsole --noconfirm
Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def check_dir_files(self, dir_path, threshold):
# 排序
files.sort()
# 获取文件名的数字序列
serials = [self.analysis_file_serial(file) for file in files]
serials = [self.analysis_file_serial(file) for file in files if self.analysis_file_serial(file)]
min_serial = min(serials)
max_serial = max(serials)
# 检查是否连续
Expand Down

0 comments on commit 2c1957a

Please sign in to comment.