Skip to content

Conversation

@JSharpClone
Copy link

No description provided.

while(self.cap.isOpened):
ret, frame = self.cap.read()
if ret == False:
break
Copy link
Owner

Choose a reason for hiding this comment

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

(建議) Line32 也可以寫成 if not ret: ,因為通常較少用 == 來比較物件跟 True/False boolean

ret, frame = self.cap.read()
if ret == False:
break
frames.append(cv2.resize(frame, (512, 512)))
Copy link
Owner

Choose a reason for hiding this comment

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

Line34 這邊希望使用的是 utils.py 裡的 resize()哦。可以看下 utils.py 的版本有對這份應用做一些特殊處理(擷取中心位置之後才 resize)所以跟直接 cv2.resize 結果可能有些出入

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