Python Forum

Full Version: browse a python program on intranet with other device
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
a camera is installed in a RPi and the image is displayed by a python program, which is created by Adafruit.
it is expected to export to other device by browser within internet.

I am trying use flask, could you give me some suggestion?

while(1):

	#read the pixels
	pixels = sensor.readPixels()
	pixels = [map(p, MINTEMP, MAXTEMP, 0, COLORDEPTH - 1) for p in pixels]
	
	#perdorm interpolation
	bicubic = griddata(points, pixels, (grid_x, grid_y), method='cubic')
	
	#draw everything
	for ix, row in enumerate