mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
migration: github.com/opencv/opencv
This commit is contained in:
@@ -11,7 +11,7 @@ def load_sample(name=None):
|
||||
try:
|
||||
img0 = cv.LoadImage(name, cv.CV_LOAD_IMAGE_COLOR)
|
||||
except IOError:
|
||||
urlbase = 'https://raw.github.com/Itseez/opencv/master/samples/c/'
|
||||
urlbase = 'https://raw.github.com/opencv/opencv/master/samples/c/'
|
||||
file = name.split('/')[-1]
|
||||
filedata = urllib2.urlopen(urlbase+file).read()
|
||||
imagefiledata = cv.CreateMatHeader(1, len(filedata), cv.CV_8UC1)
|
||||
|
||||
Reference in New Issue
Block a user