Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
BSH_Project3
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hanbin9775
2021-05-18 00:59:08 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
688725e2614999c8c2a767c65381f4c68312884e
688725e2
1 parent
affc44f1
Readme fixed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
README.md
README.md
View file @
688725e
...
...
@@ -33,7 +33,7 @@
```
ffmpeg -i [추출한 동영상 파일 이름].mp4
-vf "select=eq(pict_type\,I),scale=
1280:720" // scale을 해당 영상의 크기에 맞춰
, keyframe으로 추출
-vf "select=eq(pict_type\,I),scale=
640:360" // scale을 해당 영상의 크기의 1/2로
, keyframe으로 추출
-vsync 0 [추출한 frame 저장할 디렉토리]/%06d.png
```
...
...
@@ -60,7 +60,7 @@ Path("./dataset/DIV2K/DIV2K_train_LR_bicubic/X2").mkdir(parents=True, exist_ok=T
from tqdm import tqdm
for image in tqdm(images):
hr = cv2.imread(image, cv2.IMREAD_COLOR)
lr = cv2.resize(hr, dsize=(
640, 36
0), interpolation=cv2.INTER_CUBIC)
lr = cv2.resize(hr, dsize=(
320, 18
0), interpolation=cv2.INTER_CUBIC)
cv2.imwrite("./dataset/DIV2K/DIV2K_train_HR/" + Path(image).name, hr)
cv2.imwrite("./dataset/DIV2K/DIV2K_train_LR_bicubic/X2/" + Path(image).stem + "x2.png", lr)
...
...
Please
register
or
login
to post a comment