ozymaxx/sketchfe

problem extracting features of straight lines

Closed this issue · 0 comments

The following error happens while extracting features of straight lines:

/usr/local/lib/python2.7/dist-packages/sketchfe/Sketch.py:44: RuntimeWarning: divide by zero encountered in divide
coords = coords * ( 1 / sdev )
/usr/local/lib/python2.7/dist-packages/sketchfe/Sketch.py:44: RuntimeWarning: invalid value encountered in multiply
coords = coords * ( 1 / sdev )
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1489, in call
return self.func(*args)
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 536, in callit
func(*args)
File "/home/ozymaxx/Desktop/soccersearch/QueryCanvas.py", line 146, in recognizeLatestSymbol
(symcls,orn) = self.recognizer.recognize(self.latestSymbol)
File "/home/ozymaxx/Desktop/soccersearch/SymbolRecognizer.py", line 64, in recognize
features = self.fextractor.extract(symbol).tolist()
File "/usr/local/lib/python2.7/dist-packages/sketchfe/FeatureExtractor.py", line 50, in extract
featim5 = self.extractFeatureImage( theta, n_sketch, grid_width, grid_height, 0, True, sigma, hsize )
File "/usr/local/lib/python2.7/dist-packages/sketchfe/FeatureExtractor.py", line 99, in extractFeatureImage
image[ transformed[ind, 1].astype(np.int64), transformed[ind, 0].astype(np.int64) ] = 1.0 #WHY X is second coordinate?
IndexError: index -9223372036854775808 is out of bounds for axis 0 with size 24