-
Notifications
You must be signed in to change notification settings - Fork 14
Python-HW #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Python-HW #3
Conversation
| import os | ||
| os.environ["TF_CPP_MIN_LOG_LEVEL"]="3" | ||
| import cv2 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這裡不需要用到cv2哦~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那時候要測試用,忘記刪掉了XD
| ret, cap_frame = self.cap.read() | ||
| if ret == True: | ||
| out = resize(cap_frame, image_h=int(image_h), image_w=int(image_w)) | ||
| frames.append(out) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(建議)
Line 31 可以去掉括弧
Line 34 image_h 在前面定義了就是int的型態,在這邊可以把等號及後面拿掉哦。
styler/video.py
Outdated
|
|
||
| print(len(frames)) | ||
| self.frames = frames # 5-3 let object have the result | ||
| return frames[:] # return your results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line44 return frames 即可
test is the final version of python-training-course