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
dfaabd88
Commit
dfaabd88
authored
Mar 15, 2012
by
Gary Bradski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added cv2.destroyAllWindows()
parent
41d2a3c8
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
33 additions
and
3 deletions
+33
-3
browse.py
samples/python2/browse.py
+1
-0
calibrate.py
samples/python2/calibrate.py
+1
-0
camshift.py
samples/python2/camshift.py
+1
-0
coherence.py
samples/python2/coherence.py
+1
-0
color_histogram.py
samples/python2/color_histogram.py
+1
-0
contours.py
samples/python2/contours.py
+1
-0
demo.py
samples/python2/demo.py
+1
-0
distrans.py
samples/python2/distrans.py
+1
-0
edge.py
samples/python2/edge.py
+1
-0
facedetect.py
samples/python2/facedetect.py
+1
-0
feature_homography.py
samples/python2/feature_homography.py
+1
-0
find_obj.py
samples/python2/find_obj.py
+1
-0
floodfill.py
samples/python2/floodfill.py
+1
-0
gabor_threads.py
samples/python2/gabor_threads.py
+1
-0
gaussian_mix.py
samples/python2/gaussian_mix.py
+1
-0
hist.py
samples/python2/hist.py
+1
-0
inpaint.py
samples/python2/inpaint.py
+1
-0
letter_recog.py
samples/python2/letter_recog.py
+1
-0
lk_homography.py
samples/python2/lk_homography.py
+1
-0
lk_track.py
samples/python2/lk_track.py
+1
-0
morphology.py
samples/python2/morphology.py
+1
-0
motempl.py
samples/python2/motempl.py
+1
-0
mouse_and_match.py
samples/python2/mouse_and_match.py
+1
-0
mser.py
samples/python2/mser.py
+1
-0
opt_flow.py
samples/python2/opt_flow.py
+1
-0
peopledetect.py
samples/python2/peopledetect.py
+1
-0
squares.py
samples/python2/squares.py
+1
-0
stereo_match.py
samples/python2/stereo_match.py
+2
-2
turing.py
samples/python2/turing.py
+1
-0
video.py
samples/python2/video.py
+1
-0
watershed.py
samples/python2/watershed.py
+2
-1
No files found.
samples/python2/browse.py
View file @
dfaabd88
...
...
@@ -45,3 +45,4 @@ if __name__ == '__main__':
cv2
.
imshow
(
'preview'
,
small
)
cv2
.
setMouseCallback
(
'preview'
,
onmouse
)
cv2
.
waitKey
()
cv2
.
destroyAllWindows
()
samples/python2/calibrate.py
View file @
dfaabd88
...
...
@@ -54,4 +54,5 @@ if __name__ == '__main__':
print
"RMS:"
,
rms
print
"camera matrix:
\n
"
,
camera_matrix
print
"distortion coefficients: "
,
dist_coefs
.
ravel
()
cv2
.
destroyAllWindows
()
samples/python2/camshift.py
View file @
dfaabd88
...
...
@@ -106,6 +106,7 @@ class App(object):
break
if
ch
==
ord
(
'b'
):
self
.
show_backproj
=
not
self
.
show_backproj
cv2
.
destroyAllWindows
()
if
__name__
==
'__main__'
:
...
...
samples/python2/coherence.py
View file @
dfaabd88
...
...
@@ -70,3 +70,4 @@ if __name__ == '__main__':
update
()
if
ch
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/color_histogram.py
View file @
dfaabd88
...
...
@@ -45,3 +45,4 @@ if __name__ == '__main__':
ch
=
0xFF
&
cv2
.
waitKey
(
1
)
if
ch
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/contours.py
View file @
dfaabd88
...
...
@@ -46,3 +46,4 @@ if __name__ == '__main__':
cv2
.
createTrackbar
(
"levels+3"
,
"contours"
,
3
,
7
,
update
)
cv2
.
imshow
(
'image'
,
img
)
0xFF
&
cv2
.
waitKey
()
cv2
.
destroyAllWindows
()
samples/python2/demo.py
View file @
dfaabd88
...
...
@@ -149,3 +149,4 @@ class App:
if
__name__
==
'__main__'
:
App
()
.
run
()
samples/python2/distrans.py
View file @
dfaabd88
...
...
@@ -53,4 +53,5 @@ if __name__ == '__main__':
update
()
if
need_update
:
update
()
cv2
.
destroyAllWindows
()
samples/python2/edge.py
View file @
dfaabd88
...
...
@@ -27,4 +27,5 @@ if __name__ == '__main__':
ch
=
cv2
.
waitKey
(
5
)
if
ch
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/facedetect.py
View file @
dfaabd88
...
...
@@ -56,4 +56,5 @@ if __name__ == '__main__':
if
0xFF
&
cv2
.
waitKey
(
5
)
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/feature_homography.py
View file @
dfaabd88
...
...
@@ -93,3 +93,4 @@ if __name__ == '__main__':
ref_img
=
img
.
copy
()
if
ch
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/find_obj.py
View file @
dfaabd88
...
...
@@ -100,3 +100,4 @@ if __name__ == '__main__':
cv2
.
imshow
(
'find_obj SURF'
,
vis_brute
)
cv2
.
imshow
(
'find_obj SURF flann'
,
vis_flann
)
0xFF
&
cv2
.
waitKey
()
cv2
.
destroyAllWindows
()
samples/python2/floodfill.py
View file @
dfaabd88
...
...
@@ -62,3 +62,4 @@ if __name__ == '__main__':
connectivity
=
12
-
connectivity
print
'connectivity ='
,
connectivity
update
()
cv2
.
destroyAllWindows
()
samples/python2/gabor_threads.py
View file @
dfaabd88
...
...
@@ -65,3 +65,4 @@ if __name__ == '__main__':
cv2
.
imshow
(
'img'
,
img
)
cv2
.
imshow
(
'result'
,
res2
)
cv2
.
waitKey
()
cv2
.
destroyAllWindows
()
samples/python2/gaussian_mix.py
View file @
dfaabd88
...
...
@@ -54,3 +54,4 @@ if __name__ == '__main__':
ch
=
0xFF
&
cv2
.
waitKey
(
0
)
if
ch
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/hist.py
View file @
dfaabd88
...
...
@@ -106,4 +106,5 @@ if __name__ == '__main__':
print
'ESC'
cv2
.
destroyAllWindows
()
break
cv2
.
destroyAllWindows
()
samples/python2/inpaint.py
View file @
dfaabd88
...
...
@@ -32,4 +32,5 @@ if __name__ == '__main__':
img_mark
[:]
=
img
mark
[:]
=
0
sketch
.
show
()
cv2
.
destroyAllWindows
()
samples/python2/letter_recog.py
View file @
dfaabd88
...
...
@@ -154,3 +154,4 @@ if __name__ == '__main__':
fn
=
args
[
'--save'
]
print
'saving model to
%
s ...'
%
fn
model
.
save
(
fn
)
cv2
.
destroyAllWindows
()
samples/python2/lk_homography.py
View file @
dfaabd88
...
...
@@ -107,6 +107,7 @@ def main():
print
__doc__
App
(
video_src
)
.
run
()
cv2
.
destroyAllWindows
()
if
__name__
==
'__main__'
:
main
()
samples/python2/lk_track.py
View file @
dfaabd88
...
...
@@ -92,6 +92,7 @@ def main():
print
__doc__
App
(
video_src
)
.
run
()
cv2
.
destroyAllWindows
()
if
__name__
==
'__main__'
:
main
()
samples/python2/morphology.py
View file @
dfaabd88
...
...
@@ -56,3 +56,4 @@ if __name__ == '__main__':
if
ch
==
ord
(
'2'
):
cur_str_mode
=
str_modes
.
next
()
update
()
cv2
.
destroyAllWindows
()
samples/python2/motempl.py
View file @
dfaabd88
...
...
@@ -78,3 +78,4 @@ if __name__ == '__main__':
prev_frame
=
frame
.
copy
()
if
0xFF
&
cv2
.
waitKey
(
5
)
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/mouse_and_match.py
View file @
dfaabd88
...
...
@@ -69,3 +69,4 @@ if __name__ == '__main__':
cv
.
imshow
(
"gray"
,
gray
)
if
(
cv
.
waitKey
()
&
255
)
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/mser.py
View file @
dfaabd88
...
...
@@ -35,3 +35,4 @@ if __name__ == '__main__':
cv2
.
imshow
(
'img'
,
vis
)
if
0xFF
&
cv2
.
waitKey
(
5
)
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/opt_flow.py
View file @
dfaabd88
...
...
@@ -80,4 +80,5 @@ if __name__ == '__main__':
if
show_glitch
:
cur_glitch
=
img
.
copy
()
print
'glitch is'
,
[
'off'
,
'on'
][
show_glitch
]
cv2
.
destroyAllWindows
()
samples/python2/peopledetect.py
View file @
dfaabd88
...
...
@@ -53,3 +53,4 @@ if __name__ == '__main__':
ch
=
0xFF
&
cv2
.
waitKey
()
if
ch
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/squares.py
View file @
dfaabd88
...
...
@@ -37,3 +37,4 @@ if __name__ == '__main__':
ch
=
0xFF
&
cv2
.
waitKey
()
if
ch
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/stereo_match.py
View file @
dfaabd88
...
...
@@ -70,4 +70,5 @@ if __name__ == '__main__':
cv2
.
imshow
(
'left'
,
imgL
)
cv2
.
imshow
(
'disparity'
,
(
disp
-
min_disp
)
/
num_disp
)
cv2
.
waitKey
()
\ No newline at end of file
cv2
.
waitKey
()
cv2
.
destroyAllWindows
()
samples/python2/turing.py
View file @
dfaabd88
...
...
@@ -62,3 +62,4 @@ if __name__ == '__main__':
cv2
.
imshow
(
'a'
,
vis
)
if
0xFF
&
cv2
.
waitKey
(
5
)
==
27
:
break
cv2
.
destroyAllWindows
()
samples/python2/video.py
View file @
dfaabd88
...
...
@@ -165,3 +165,4 @@ if __name__ == '__main__':
cv2
.
imwrite
(
fn
,
img
)
print
fn
,
'saved'
shot_idx
+=
1
cv2
.
destroyAllWindows
()
samples/python2/watershed.py
View file @
dfaabd88
...
...
@@ -53,7 +53,8 @@ class App:
self
.
markers
[:]
=
0
self
.
markers_vis
[:]
=
self
.
img
self
.
sketch
.
show
()
cv2
.
destroyAllWindows
()
if
__name__
==
'__main__'
:
import
sys
...
...
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