Compare commits

..

No commits in common. "fdab3a9d8192508c582352bee87e5f8c87ff1c45" and "e6948cea16fc818466708cfd66af0066bb14262e" have entirely different histories.

23 changed files with 2 additions and 135 deletions

View File

@ -16,14 +16,11 @@ parser.add_argument('-i', '--invert', action='store_true')
args = parser.parse_args()
print(args.filename, args.output, args.format,args.verbose,args.invert)
outputfilename="result.txt"
if args.output is not None:
outputfilename=args.output
im = Image.open(args.filename) # Can be many different formats.
pix = im.load()
print(im.size) # Get the width and hight of the image for iterating over
#print(pix[10,10]) # Get the RGBA Value of the a pixel of an image
print(pix[10,10]) # Get the RGBA Value of the a pixel of an image
output_pre=""
output_col_preL=""
@ -66,7 +63,7 @@ def calculateDistance(x1,y1,x2,y2):
dist = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)
return dist
with open(outputfilename, 'w') as f:
with open('result.txt', 'w') as f:
f.write(output_pre)
for x in range(im.size[0]):
f.write(output_col_preL)

View File

@ -1,10 +0,0 @@
#!/bin/bash
i=0
while [ $i -ne 10 ]
do
echo "$i"
python ../generate.py retrostyle_isolated/$i.png -f nodered -o $i.txt
i=$(($i+1))
done

Binary file not shown.

Before

Width:  |  Height:  |  Size: 636 B

View File

@ -1,12 +0,0 @@
msg.payload="\
0001111111110000\
0010000000001000\
0100011111000100\
0100100000100100\
0100100000100100\
0100100000100100\
0100011111000100\
0010000000001000\
0001111111110000\
";
return msg;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 634 B

View File

@ -1,12 +0,0 @@
msg.payload="\
0000000000000000\
0111000001110000\
0101000001001000\
0101111111100100\
0100000000000100\
0101111111111100\
0101000000000000\
0111000000000000\
0000000000000000\
";
return msg;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 B

View File

@ -1,12 +0,0 @@
msg.payload="\
0111100001110000\
0100010001001000\
0100001001100100\
0100000100010100\
0101100011110100\
0101010000000100\
0101001000000100\
0111000111111000\
0000000000000000\
";
return msg;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 651 B

View File

@ -1,12 +0,0 @@
msg.payload="\
0001110001110000\
0010010001001000\
0100010001000100\
0100110101100100\
0101001010010100\
0100110001100100\
0100000100000100\
0010001010001000\
0001110001110000\
";
return msg;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 633 B

View File

@ -1,12 +0,0 @@
msg.payload="\
0000011111111100\
0000010000000100\
0000010111111100\
0000010100000000\
0111110111100000\
0100000000100000\
0111110111100000\
0000010100000000\
0000011100000000\
";
return msg;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 648 B

View File

@ -1,12 +0,0 @@
msg.payload="\
0001110011111100\
0010010010000100\
0100010010000100\
0100110010110100\
0101000100110100\
0100111001010100\
0100000001010100\
0010000001010100\
0001111110011100\
";
return msg;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 650 B

View File

@ -1,12 +0,0 @@
msg.payload="\
0001111111110000\
0010000000001000\
0100000000000100\
0101111011100100\
0101001010010100\
0101001010010100\
0100110010100100\
0010000010101000\
0001111100110000\
";
return msg;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 630 B

View File

@ -1,12 +0,0 @@
msg.payload="\
0000000000011100\
0000000000010100\
0111111100010100\
0100000010010100\
0111110001010100\
0000001000110100\
0000000100000100\
0000000010000100\
0000000001111100\
";
return msg;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 638 B

View File

@ -1,12 +0,0 @@
msg.payload="\
0001110001110000\
0010001010001000\
0100100100100100\
0101010001010100\
0101010001010100\
0101010001010100\
0100100100100100\
0010001010001000\
0001110001110000\
";
return msg;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 647 B

View File

@ -1,12 +0,0 @@
msg.payload="\
0001100111110000\
0010101000001000\
0100101001100100\
0101001010010100\
0101001010010100\
0100111011110100\
0100000000000100\
0010000000001000\
0001111111110000\
";
return msg;