Flask was originally created as a parody of similar web frameworks, implementing every bad design decision from other frameworks that the author could think of. He was quite surprised to learn that some people actually liked it, and asked him for the source code so that they could expand it.
http://tvtropes.org/pmwiki/pmwiki.php/MisaimedFandom/Other
xD
#heheszki #humorinformatykow #flask
nie mogę znaleźć nigdzie jak zrobić konwersje numpy.ndarray do png, bez zapisywania pliku
numpy.ndarray generuje odczyt webcama za pomocą cv2 i potem wyswietlam png na stronie, działa ale zapisuje na dysk i potem odczytuje... jak to w locie zrobic?
ret, capture = self.cap.read()
if (ret):
imsave('gromfactory/test.png', capture)
y = open('gromfactory/test.png', 'rb').read()
return y
cały przykład: http://pastebin.com/5bhCtPdX
#python #flask