Skip to content

Conversation

@Timmy0425
Copy link

@Timmy0425 Timmy0425 commented Feb 26, 2018

test is the final version of python-training-course

import os
os.environ["TF_CPP_MIN_LOG_LEVEL"]="3"
import cv2

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這裡不需要用到cv2哦~

Copy link
Author

@Timmy0425 Timmy0425 Mar 16, 2018

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)
Copy link
Owner

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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line44 return frames 即可

@Timmy0425 Timmy0425 changed the title Test Python-HW Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants