fixed #1492
This commit is contained in:
parent
d7031606c2
commit
a6602dd75c
@ -10,7 +10,7 @@ if __name__ == "__main__":
|
||||
im = cv.LoadImage(filename, cv.CV_LOAD_IMAGE_GRAYSCALE)
|
||||
im3 = cv.LoadImage(filename, cv.CV_LOAD_IMAGE_COLOR)
|
||||
else:
|
||||
url = 'https://code.ros.org/svn/opencv/trunk/opencv/samples/c/left01.jpg'
|
||||
url = 'http://code.opencv.org/svn/opencv/trunk/opencv/samples/cpp/left01.jpg'
|
||||
filedata = urllib2.urlopen(url).read()
|
||||
imagefiledata = cv.CreateMatHeader(1, len(filedata), cv.CV_8UC1)
|
||||
cv.SetData(imagefiledata, filedata, len(filedata))
|
||||
|
Loading…
Reference in New Issue
Block a user