Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Sending Data in Unstructured File Form

from skimage.io import imread
from matplotlib import pyplot as plt
import matplotlib.cm as cm # used for Builtin colormaps, colormap handling utilities

example_file = ("http://upload.wikimedia.org/wikipedia/commons/7/7d/Dog_face.png")

image = imread(example_file,as_gray=True) #used from skimage.io library
#Load an image from file (Here Image URL is provided in 'example_file' variable.)
#here as_gray=True will convert coloring image to grayscale image


plt.imshow(image, cmap='gray')
#imshow() function performs the rendering and uses a grayscale color map
# rending is making a complete image from the data provided in the form of numpy array

plt.show()

print(example_file)
print()
print(image)
Source by kadamjay.rf.gd #
 
PREVIOUS NEXT
Tagged: #Sending #Data #Unstructured #File #Form
ADD COMMENT
Topic
Name
8+5 =