Merge pull request #5128 from ageitgey:ag-prevent-demos-from-autorunning

This commit is contained in:
Vadim Pisarevsky 2015-08-05 17:25:34 +00:00
commit b76d351419
3 changed files with 118 additions and 113 deletions

View File

@ -95,6 +95,8 @@ def onmouse(event,x,y,flags,param):
cv2.circle(img,(x,y),thickness,value['color'],-1) cv2.circle(img,(x,y),thickness,value['color'],-1)
cv2.circle(mask,(x,y),thickness,value['val'],-1) cv2.circle(mask,(x,y),thickness,value['val'],-1)
if __name__ == '__main__':
# print documentation # print documentation
print __doc__ print __doc__

View File

@ -10,6 +10,7 @@ import cv2
import numpy as np import numpy as np
import sys import sys
if __name__ == '__main__':
print __doc__ print __doc__
try: try:

View File

@ -9,6 +9,8 @@ import numpy as np
import sys import sys
import math import math
if __name__ == '__main__':
try: try:
fn = sys.argv[1] fn = sys.argv[1]
except: except: