mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
initial commit
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
'''
|
||||
This example illustrates how to use cv2.HoughCircles() function.
|
||||
Usage: ./houghcircles.py [<image_name>]
|
||||
image argument defaults to ../cpp/board.jpg
|
||||
image argument defaults to ../data/board.jpg
|
||||
'''
|
||||
|
||||
import cv2
|
||||
@@ -15,7 +15,7 @@ print __doc__
|
||||
try:
|
||||
fn = sys.argv[1]
|
||||
except:
|
||||
fn = "../cpp/board.jpg"
|
||||
fn = "../data/board.jpg"
|
||||
|
||||
src = cv2.imread(fn, 1)
|
||||
img = cv2.cvtColor(src, cv2.COLOR_BGR2GRAY)
|
||||
|
||||
Reference in New Issue
Block a user