Check out example codes for "Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers)". It will help you in understanding the concepts better.

Code Example 1

Add astype('uint8'):
	plt.imshow(results.astype('uint8'))

Code Example 2

np.array(img,np.int32)
or 
If you want to show it, you can use img/255

Learn ReactJs, React Native from akashmittal.com