Skip to content

Update 2_2_视频入门.md #6

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ThirdSection/2_2_视频入门.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ while True:
break
# 我们在框架上的操作到这里
gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)
# 显示结果帧e
# 显示结果帧
cv.imshow('frame', gray)
if cv.waitKey(1) == ord('q'):
break
Expand Down Expand Up @@ -104,7 +104,7 @@ while cap.isOpened():
print("Can't receive frame (stream end?). Exiting ...")
break
frame = cv.flip(frame, 0)
# 写翻转的框架
# 写翻转后的帧
out.write(frame)
cv.imshow('frame', frame)
if cv.waitKey(1) == ord('q'):
Expand All @@ -117,4 +117,4 @@ cv.destroyAllWindows()

### 其他资源

#### 练习题
#### 练习题