24 May 2013 19:03
SVN: [11578] trunk/pywikipedia
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11578 Revision: 11578 Author: drtrigon Date: 2013-05-24 17:03:42 +0000 (Fri, 24 May 2013) Log Message: ----------- bug fix; IOError: unrecognized data stream contents when reading image file some minor code clean-up Modified Paths: -------------- trunk/pywikipedia/catimages.py trunk/pywikipedia/externals/__init__.py Modified: trunk/pywikipedia/catimages.py =================================================================== --- trunk/pywikipedia/catimages.py 2013-05-24 16:25:09 UTC (rev 11577) +++ trunk/pywikipedia/catimages.py 2013-05-24 17:03:42 UTC (rev 11578) <at> <at> -1305,7 +1305,7 <at> <at> img = cv2.imread( self.image_path_JPEG, cv.CV_LOAD_IMAGE_COLOR ) if (img == None) or (self.image_size[0] is None): raise IOError - + # !!! the 'scale' here IS RELEVANT FOR THE DETECTION RATE; # how small and how many features are detected scale = max([1., np.average(np.array(img.shape)[0:2]/maxdim)]) <at> <at> -1527,7 +1527,10 <at> <at> # Read a Data Matrix barcode(Continue reading)
RSS Feed