Traceback (most recent call last):


 "/home/riley/anaconda3/envs/dev36/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code

exec(code_obj, self.user_global_ns, self.user_ns)


 "<ipython-input-15-7d320c9e011f>", line 1, in <module>

A @ I


 "/home/riley/anaconda3/envs/dev36/lib/python3.6/site-packages/scipy/sparse/linalg/interface.py", line 426, in __matmul__

return self.__mul__(other)


 "/home/riley/anaconda3/envs/dev36/lib/python3.6/site-packages/scipy/sparse/linalg/interface.py", line 390, in __mul__

return self.dot(x)


 "/home/riley/anaconda3/envs/dev36/lib/python3.6/site-packages/scipy/sparse/linalg/interface.py", line 420, in dot

% x)
ValueError: expected 1-d or 2-d array or matrix, got array(<5x5 sparse matrix of type '<class 'numpy.float64'>'

Traceback (most recent call last):


 "/home/xting/SynthText/synthgen.py", line 615, in render_text

regions = self.filter_for_placement(xyz,seg,regions)


 "/home/xting/SynthText/synthgen.py", line 391, in filter_for_placement

res = get_text_placement_mask(xyz,seg==l,regions['coeff'][idx],pad=2)


 "/home/xting/SynthText/synthgen.py", line 219, in get_text_placement_mask

contour,hier = cv2.findContours(mask.copy().astype('uint8'),mode=cv2.RETR_CCOMP,method=cv2.CHAIN_APPROX_SIMPLE)
ValueError: too many values to unpack
