Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
a4de511e
Commit
a4de511e
authored
Mar 18, 2012
by
Gary Bradski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cv.DestroyAllWindows() to file close
parent
5878ab6a
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
15 additions
and
0 deletions
+15
-0
camera.py
samples/python/camera.py
+1
-0
camshift.py
samples/python/camshift.py
+1
-0
chessboard.py
samples/python/chessboard.py
+1
-0
contours.py
samples/python/contours.py
+1
-0
convexhull.py
samples/python/convexhull.py
+1
-0
cv20squares.py
samples/python/cv20squares.py
+1
-0
demhist.py
samples/python/demhist.py
+1
-0
dft.py
samples/python/dft.py
+1
-0
distrans.py
samples/python/distrans.py
+1
-0
dmtx.py
samples/python/dmtx.py
+5
-0
drawing.py
samples/python/drawing.py
+1
-0
No files found.
samples/python/camera.py
View file @
a4de511e
...
...
@@ -10,3 +10,4 @@ while True:
cv
.
ShowImage
(
"camera"
,
img
)
if
cv
.
WaitKey
(
10
)
==
27
:
break
cv
.
DestroyAllWindows
()
samples/python/camshift.py
View file @
a4de511e
...
...
@@ -113,3 +113,4 @@ class CamShiftDemo:
if
__name__
==
"__main__"
:
demo
=
CamShiftDemo
()
demo
.
run
()
cv
.
DestroyAllWindows
()
samples/python/chessboard.py
View file @
a4de511e
...
...
@@ -31,3 +31,4 @@ if __name__ == "__main__":
cv
.
ShowImage
(
"win"
,
im3
);
cv
.
WaitKey
()
cv
.
DestroyAllWindows
()
samples/python/contours.py
View file @
a4de511e
...
...
@@ -133,3 +133,4 @@ if __name__ == '__main__':
# wait a key pressed to end
cv
.
WaitKey
(
0
)
cv
.
DestroyAllWindows
()
samples/python/convexhull.py
View file @
a4de511e
...
...
@@ -62,3 +62,4 @@ if __name__ == '__main__':
if
k
==
27
:
# user has press the ESC key, so exit
break
cv
.
DestroyAllWindows
()
samples/python/cv20squares.py
View file @
a4de511e
...
...
@@ -164,3 +164,4 @@ def main():
if
__name__
==
"__main__"
:
main
()
cv
.
DestroyAllWindows
()
samples/python/demhist.py
View file @
a4de511e
...
...
@@ -77,3 +77,4 @@ if __name__ == "__main__":
dh
=
DemHist
(
src_image
)
cv
.
WaitKey
(
0
)
cv
.
DestroyAllWindows
()
samples/python/dft.py
View file @
a4de511e
...
...
@@ -111,3 +111,4 @@ if __name__ == "__main__":
cv
.
ShowImage
(
"magnitude"
,
image_Re
)
cv
.
WaitKey
(
0
)
cv
.
DestroyAllWindows
()
samples/python/distrans.py
View file @
a4de511e
...
...
@@ -69,3 +69,4 @@ if __name__ == "__main__":
# Wait for a key stroke; the same function arranges events processing
cv
.
WaitKey
(
0
)
cv
.
DestroyAllWindows
()
samples/python/dmtx.py
View file @
a4de511e
...
...
@@ -5,6 +5,10 @@ import numpy
import
sys
import
math
'''
Find 2 D barcode based on up to 3 channel datamatrix
'''
def
absnorm8
(
im
,
im8
):
""" im may be any single-channel image type. Return an 8-bit version, absolute value, normalized so that max is 255 """
(
minVal
,
maxVal
,
_
,
_
)
=
cv
.
MinMaxLoc
(
im
)
...
...
@@ -166,6 +170,7 @@ for (sym, coords) in df.find(bg).items():
cv
.
ShowImage
(
"results"
,
scribble
)
cv
.
WaitKey
()
cv
.
DestroyAllWindows
()
sys
.
exit
(
0
)
...
...
samples/python/drawing.py
View file @
a4de511e
...
...
@@ -159,3 +159,4 @@ if __name__ == '__main__':
# wait some key to end
cv
.
WaitKey
(
0
)
cv
.
DestroyAllWindows
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment