Advertisement
Guest User

Untitled

a guest
May 31st, 2017
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.43 KB | None | 0 0
  1. pixels = [ 0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.01952855,0.02923846,0.04856467,0.072212,0.06644696,0.02912007,0.01951458,0.02438573,0.02354551,0.01456486,0.01456466,0.00970991,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.01457292,0.04846238,0.12139711,0.2111201,0.29112275,0.37363431,0.36413063,0.36319773,0.35457976,0.34534506,0.29840978,0.20785904,0.1002526,0.02490406,0.01455257,0.00485496,0.00485496,0.00485496,0.00485496,0.01456487,0.07282433,0.1844964,0.39905148,0.55588662,0.70622953,0.75471354,0.79419732,0.80248896,0.83071054,0.8154026,0.79620672,0.6279248,0.34931561,0.12686204,0.04853856,0.00970991,0.00485496,0.00485496,0.00970991,0.02427478,0.07767928,0.25244458,0.43055073,0.61174622,0.71385559,0.67931632,0.61230263,0.59693844,0.56722411,0.61702123,0.74872544,0.70923402,0.40485709,0.20855865,0.04368235,0.00485496,0.00485496,0.00485496,0.00485496,0.01456487,0.06311442,0.16019559,0.31468212,0.47071671,0.48950692,0.38643489,0.26199398,0.18869461,0.17774648,0.32465334,0.6027178,0.69110392,0.41925789,0.18914112,0.01455256,0.00485496,0.00485496,0.00485496,0.00485496,0.01456487,0.03398469,0.09709906,0.21360564,0.29188825,0.23377662,0.14979076,0.04899828,0.02955598,0.05646195,0.25676193,0.61315527,0.67039745,0.38948518,0.13088283,0.01941982,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00970991,0.06311442,0.14553682,0.17466643,0.1262125,0.06805344,0.01984606,0.01013616,0.06278871,0.32539143,0.69561385,0.68430573,0.30511343,0.08654695,0.03883899,0.01941917,0.00485496,0.00485496,0.00485496,0.00485496,0.01456487,0.03398468,0.10194174,0.1261287,0.07283521,0.06799909,0.06683275,0.07134819,0.11067973,0.46340206,0.79195446,0.6415953,0.1938611,0.06787943,0.02427478,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00970991,0.02912973,0.03398468,0.04369459,0.06313161,0.06309682,0.10489584,0.11016163,0.18445811,0.64558948,0.82507121,0.51494361,0.12127154,0.04368229,0.00970991,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.01456487,0.01456487,0.02426247,0.03397239,0.04410855,0.06721242,0.30649315,0.76169151,0.75296428,0.31590806,0.07767928,0.02912973,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00970991,0.00970991,0.00485496,0.00485496,0.01013616,0.06371149,0.47642234,0.80142893,0.55346366,0.17963301,0.05340418,0.01456454,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00970991,0.01943678,0.21895995,0.56865946,0.76609118,0.40781525,0.15050361,0.02912973,0.00970991,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00970991,0.01458057,0.078783,0.37480127,0.57308921,0.557983,0.29129719,0.12622883,0.02427478,0.00970991,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00970991,0.03378799,0.16075832,0.40379797,0.57138252,0.46492616,0.23303784,0.11651892,0.02427478,0.00970991,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.01456628,0.03578797,0.14128121,0.26948722,0.3941365,0.28158731,0.1407937,0.08738919,0.03398469,0.01941982,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496,0.00971008,0.01941865,0.01537016,0.04514671,0.08738913,0.06796937,0.02912973,0.02427478,0.00970991,0.00485496,0.00485496,0.00485496,0.00485496,0.00485496]
  2. pixels = np.array(pixels)
  3. img = Image.fromarray(pixels.reshape((20,20)), mode='LA')
  4. img = img.resize((140, 140), Image.LANCZOS)
  5. img.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement