Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# opencv-tutorial

**Please note: This repository is now archived and will no longer be updated or maintained.**

This is an introduction to object-oriented Programming (OOP) to OpenCV.

Check-out the online documentation: https://opencv-tutorial.readthedocs.io
Check-out the online documentation: https://opencv-tutorial.readthedocs.io
4 changes: 3 additions & 1 deletion docs/intro/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ and then loop back. The loop finishes when **q** is pressed::
while True:
# Capture frame-by-frame
ret, frame = cap.read()
if not ret:
break

# Our operations on the frame come here
gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)
Expand Down Expand Up @@ -344,4 +346,4 @@ Mouse callback::
cb(evt, x, y, flags, param)

cv.createTrackbar('name', 'win', 0, max, cb)
cv.getTrackbarPos('name', 'win')
cv.getTrackbarPos('name', 'win')
4 changes: 3 additions & 1 deletion docs/intro/intro2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
while True:
# Capture frame-by-frame
ret, frame = cap.read()
if not ret:
break

# Our operations on the frame come here
gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)
Expand All @@ -17,4 +19,4 @@

# When everything done, release the capture
cap.release()
cv.destroyAllWindows()
cv.destroyAllWindows()