Skip to content

Commit 7e59da5

Browse files
committed
fixed None extraction bug
1 parent 51f6f33 commit 7e59da5

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Further ideas can be implemented, for example a sobel based method is already av
1111
To install the package use the following pip command:
1212

1313
```
14-
pip install git+https://github.com/cansik/sharp-frame-extractor.git@1.6.2
14+
pip install git+https://github.com/cansik/sharp-frame-extractor.git@1.6.3
1515
```
1616

1717
### Usage

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name=NAME,
9-
version='1.6.2',
9+
version='1.6.3',
1010
packages=required_packages,
1111
url='https://github.com/cansik/sharp-frame-extractor',
1212
license='MIT License',

sharp_frame_extractor/SharpFrameExtractor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ def extract(self, video_file, output_path, window_size_ms, target_frame_count: i
8989
self.min_sharpness,
9090
buffer_size),)) as pool:
9191
for res in tqdm.tqdm(pool.imap_unordered(extract, windows), total=len(windows), desc="frame extraction"):
92+
if res is None:
93+
continue
9294
name, sharpness = res
9395
results.append(name)
9496

0 commit comments

Comments
 (0)