mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Various Python samples updated for Python 2/3 compatibility.
This commit is contained in:
@@ -6,13 +6,16 @@ Usage: ./houghcircles.py [<image_name>]
|
||||
image argument defaults to ../data/board.jpg
|
||||
'''
|
||||
|
||||
# Python 2/3 compatibility
|
||||
from __future__ import print_function
|
||||
|
||||
import cv2
|
||||
import numpy as np
|
||||
import sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
print __doc__
|
||||
print(__doc__)
|
||||
try:
|
||||
fn = sys.argv[1]
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user