temp2.py 29.9 KB
import numpy as np
import matplotlib.pyplot as plt
from skimage import io
import cv2

skin = [[[241.0, 211.0, 193.0], [233.0, 198.0, 177.0], [224.0, 182.0, 161.0], [236.0, 210.0, 194.0], [237.0, 205.0, 186.0], [237.0, 196.0, 178.0], [217.0, 187.0, 186.0], [214.0, 182.0, 179.0], [209.0, 176.0, 172.0], [243.0, 202.0, 202.0], [238.0, 193.0, 189.0], [227.0, 179.0, 175.0], [214.0, 192.0, 165.0], [211.0, 187.0, 157.0], [213.0, 184.0, 145.0], [247.0, 210.0, 194.0], [239.0, 199.0, 185.0], [207.0, 171.0, 163.0], [238.0, 212.0, 210.0], [236.0, 205.0, 202.0], [233.0, 197.0, 193.0], [240.0, 188.0, 176.0], [247.0, 195.0, 190.0], [225.0, 175.0, 166.0], [232.0, 206.0, 198.0], [227.0, 202.0, 193.0], [224.0, 196.0, 186.0], [221.0, 190.0, 173.0], [221.0, 197.0, 186.0], [183.0, 186.0, 185.0], [236.0, 231.0, 226.0], [232.0, 221.0, 214.0], [223.0, 211.0, 203.0], [243.0, 227.0, 218.0], [239.0, 208.0, 191.0], [225.0, 184.0, 163.0], [209.0, 180.0, 166.0], [214.0, 187.0, 175.0], [193.0, 164.0, 150.0], [202.0, 175.0, 167.0], [163.0, 150.0, 154.0], [60.0, 37.0, 36.0], [221.0, 172.0, 164.0], [226.0, 175.0, 168.0], [222.0, 175.0, 157.0], [248.0, 212.0, 215.0], [239.0, 199.0, 201.0], [230.0, 188.0, 189.0], [244.0, 222.0, 201.0], [237.0, 213.0, 189.0], [224.0, 198.0, 174.0], [245.0, 217.0, 215.0], [234.0, 204.0, 201.0], [221.0, 189.0, 187.0], [241.0, 225.0, 217.0], [238.0, 221.0, 213.0], [239.0, 227.0, 223.0], [236.0, 199.0, 186.0], [222.0, 177.0, 162.0], [185.0, 142.0, 126.0], [238.0, 210.0, 211.0], [231.0, 197.0, 200.0], [220.0, 184.0, 184.0], [242.0, 199.0, 191.0], [242.0, 196.0, 186.0], [240.0, 204.0, 195.0], [225.0, 191.0, 174.0], [236.0, 208.0, 188.0], [217.0, 176.0, 159.0], [225.0, 193.0, 183.0], [215.0, 183.0, 174.0], [149.0, 110.0, 104.0], [250.0, 220.0, 215.0], [248.0, 214.0, 206.0], [245.0, 205.0, 197.0]],
        [[230.0, 190.0, 163.0], [213.0, 173.0, 145.0], [194.0, 154.0, 126.0], [220.0, 202.0, 215.0], [209.0, 190.0, 207.0], [228.0, 215.0, 229.0], [198.0, 180.0, 174.0], [210.0, 188.0, 183.0], [184.0, 167.0, 160.0], [223.0, 197.0, 180.0], [237.0, 216.0, 202.0], [230.0, 205.0, 189.0], [223.0, 194.0, 188.0], [229.0, 205.0, 202.0], [211.0, 178.0, 173.0], [234.0, 210.0, 223.0], [223.0, 197.0, 210.0], [246.0, 226.0, 243.0], [212.0, 183.0, 185.0], [227.0, 201.0, 205.0], [198.0, 173.0, 174.0], [242.0, 230.0, 232.0], [241.0, 225.0, 227.0], [238.0, 220.0, 220.0], [223.0, 209.0, 206.0], [80.0, 69.0, 81.0], [199.0, 180.0, 175.0], [207.0, 182.0, 188.0], [203.0, 179.0, 183.0], [209.0, 189.0, 192.0], [200.0, 177.0, 186.0], [210.0, 187.0, 198.0], [188.0, 165.0, 170.0], [206.0, 186.0, 198.0], [163.0, 114.0, 117.0], [173.0, 138.0, 148.0], [232.0, 208.0, 212.0], [236.0, 215.0, 219.0], [225.0, 196.0, 198.0], [198.0, 181.0, 174.0], [210.0, 188.0, 183.0], [185.0, 168.0, 161.0], [223.0, 189.0, 187.0], [216.0, 186.0, 182.0], [215.0, 173.0, 177.0], [237.0, 204.0, 208.0], [231.0, 200.0, 201.0], [242.0, 211.0, 215.0], [254.0, 223.0, 210.0], [252.0, 212.0, 198.0], [243.0, 202.0, 187.0], [245.0, 217.0, 213.0], [244.0, 209.0, 200.0], [247.0, 225.0, 222.0], [219.0, 186.0, 173.0], [227.0, 197.0, 189.0], [235.0, 207.0, 202.0], [237.0, 217.0, 212.0], [232.0, 208.0, 202.0], [224.0, 196.0, 188.0], [228.0, 204.0, 192.0], [148.0, 113.0, 99.0], [163.0, 128.0, 113.0], [239.0, 217.0, 218.0], [231.0, 202.0, 201.0], [215.0, 186.0, 180.0], [214.0, 188.0, 192.0], [219.0, 199.0, 206.0], [201.0, 172.0, 176.0], [231.0, 215.0, 224.0], [222.0, 199.0, 204.0], [217.0, 191.0, 195.0], [121.0, 106.0, 151.0], [183.0, 165.0, 181.0], [156.0, 136.0, 163.0]],
        [[236.0, 215.0, 204.0], [231.0, 202.0, 191.0], [242.0, 224.0, 216.0], [240.0, 211.0, 197.0], [222.0, 185.0, 166.0], [192.0, 148.0, 127.0], [238.0, 210.0, 196.0], [229.0, 200.0, 182.0], [216.0, 184.0, 164.0], [247.0, 227.0, 212.0], [243.0, 214.0, 194.0], [240.0, 202.0, 176.0], [222.0, 184.0, 166.0], [221.0, 180.0, 158.0], [226.0, 188.0, 173.0], [233.0, 196.0, 175.0], [226.0, 187.0, 165.0], [219.0, 177.0, 155.0], [238.0, 218.0, 210.0], [232.0, 202.0, 192.0], [210.0, 158.0, 146.0], [235.0, 192.0, 192.0], [247.0, 215.0, 214.0], [217.0, 164.0, 164.0], [237.0, 204.0, 188.0], [240.0, 210.0, 195.0], [234.0, 200.0, 181.0], [193.0, 150.0, 131.0], [188.0, 139.0, 117.0], [191.0, 145.0, 124.0], [212.0, 186.0, 170.0], [201.0, 171.0, 153.0], [219.0, 199.0, 186.0], [245.0, 210.0, 183.0], [230.0, 192.0, 163.0], [210.0, 173.0, 146.0], [224.0, 172.0, 132.0], [222.0, 168.0, 128.0], [220.0, 164.0, 122.0], [201.0, 177.0, 171.0], [192.0, 162.0, 152.0], [177.0, 144.0, 133.0], [244.0, 203.0, 179.0], [246.0, 212.0, 195.0], [235.0, 190.0, 165.0], [204.0, 154.0, 131.0], [218.0, 174.0, 155.0], [186.0, 129.0, 104.0], [246.0, 197.0, 180.0], [233.0, 182.0, 162.0], [79.0, 41.0, 20.0], [244.0, 189.0, 165.0], [239.0, 181.0, 155.0], [229.0, 171.0, 144.0], [225.0, 187.0, 163.0], [210.0, 167.0, 143.0], [171.0, 123.0, 102.0], [239.0, 186.0, 149.0], [250.0, 198.0, 164.0], [254.0, 213.0, 186.0], [230.0, 197.0, 182.0], [244.0, 214.0, 205.0], [209.0, 173.0, 160.0], [247.0, 212.0, 191.0], [219.0, 181.0, 160.0], [178.0, 139.0, 117.0], [237.0, 209.0, 203.0], [226.0, 189.0, 178.0], [210.0, 170.0, 156.0], [243.0, 205.0, 198.0], [246.0, 219.0, 213.0], [245.0, 209.0, 202.0], [223.0, 190.0, 176.0], [214.0, 181.0, 167.0], [231.0, 201.0, 190.0]],
        [[221.0, 188.0, 189.0], [226.0, 192.0, 201.0], [210.0, 177.0, 183.0], [253.0, 222.0, 204.0], [249.0, 216.0, 200.0], [254.0, 224.0, 212.0], [247.0, 227.0, 221.0], [240.0, 215.0, 207.0], [230.0, 202.0, 191.0], [233.0, 206.0, 194.0], [226.0, 199.0, 187.0], [195.0, 169.0, 157.0], [233.0, 210.0, 212.0], [235.0, 214.0, 216.0], [231.0, 206.0, 207.0], [245.0, 231.0, 237.0], [241.0, 220.0, 225.0], [234.0, 208.0, 213.0], [176.0, 126.0, 110.0], [191.0, 143.0, 129.0], [155.0, 106.0, 85.0], [245.0, 218.0, 217.0], [246.0, 225.0, 224.0], [244.0, 211.0, 211.0], [240.0, 208.0, 202.0], [241.0, 199.0, 196.0], [235.0, 194.0, 190.0], [203.0, 188.0, 213.0], [207.0, 194.0, 217.0], [199.0, 178.0, 209.0], [250.0, 225.0, 229.0], [237.0, 207.0, 208.0], [221.0, 190.0, 191.0], [181.0, 155.0, 145.0], [202.0, 173.0, 163.0], [160.0, 137.0, 130.0], [233.0, 198.0, 175.0], [237.0, 204.0, 185.0], [239.0, 211.0, 195.0], [181.0, 141.0, 122.0], [171.0, 132.0, 110.0], [191.0, 152.0, 134.0], [214.0, 182.0, 186.0], [190.0, 155.0, 155.0], [178.0, 144.0, 138.0], [234.0, 180.0, 159.0], [240.0, 192.0, 175.0], [219.0, 159.0, 136.0], [243.0, 222.0, 221.0], [241.0, 218.0, 216.0], [238.0, 211.0, 211.0], [242.0, 225.0, 230.0], [233.0, 208.0, 215.0], [222.0, 193.0, 199.0], [221.0, 193.0, 187.0], [228.0, 203.0, 199.0], [231.0, 213.0, 211.0], [254.0, 240.0, 248.0], [253.0, 232.0, 239.0], [251.0, 225.0, 230.0], [221.0, 194.0, 183.0], [214.0, 187.0, 174.0], [206.0, 178.0, 166.0], [230.0, 217.0, 221.0], [231.0, 214.0, 214.0], [225.0, 210.0, 213.0], [212.0, 196.0, 193.0], [210.0, 192.0, 186.0], [206.0, 187.0, 180.0], [212.0, 156.0, 137.0], [220.0, 171.0, 157.0], [195.0, 146.0, 129.0], [229.0, 202.0, 195.0], [235.0, 215.0, 209.0], [235.0, 209.0, 204.0]]]

eyebr = [[[153.0, 105.0, 78.0], [178.0, 130.0, 104.0], [124.0, 77.0, 52.0], [151.0, 113.0, 102.0], [180.0, 142.0, 127.0], [217.0, 187.0, 170.0], [67.0, 39.0, 25.0], [95.0, 67.0, 55.0], [131.0, 105.0, 99.0], [154.0, 115.0, 104.0], [178.0, 139.0, 127.0], [121.0, 85.0, 76.0], [224.0, 200.0, 174.0], [169.0, 127.0, 80.0], [204.0, 177.0, 145.0], [205.0, 165.0, 145.0], [171.0, 145.0, 136.0], [198.0, 150.0, 126.0], [128.0, 93.0, 100.0], [215.0, 178.0, 175.0], [170.0, 128.0, 129.0], [80.0, 55.0, 62.0], [118.0, 83.0, 86.0], [163.0, 119.0, 117.0], [97.0, 67.0, 42.0], [62.0, 36.0, 13.0], [130.0, 94.0, 70.0], [133.0, 109.0, 105.0], [172.0, 148.0, 140.0], [149.0, 126.0, 121.0], [179.0, 164.0, 161.0], [147.0, 132.0, 129.0], [119.0, 102.0, 98.0], [227.0, 216.0, 216.0], [168.0, 138.0, 126.0], [204.0, 175.0, 162.0], [127.0, 102.0, 94.0], [106.0, 84.0, 77.0], [147.0, 120.0, 110.0], [162.0, 123.0, 113.0], [199.0, 168.0, 158.0], [137.0, 103.0, 97.0], [172.0, 132.0, 129.0], [143.0, 106.0, 104.0], [105.0, 75.0, 76.0], [51.0, 31.0, 30.0], [81.0, 53.0, 49.0], [123.0, 85.0, 78.0], [97.0, 79.0, 60.0], [169.0, 147.0, 120.0], [131.0, 110.0, 86.0], [179.0, 144.0, 146.0], [140.0, 111.0, 116.0], [207.0, 178.0, 177.0], [142.0, 109.0, 97.0], [109.0, 78.0, 67.0], [174.0, 142.0, 129.0], [188.0, 153.0, 131.0], [203.0, 171.0, 148.0], [227.0, 197.0, 175.0], [115.0, 86.0, 91.0], [150.0, 122.0, 125.0], [75.0, 47.0, 55.0], [131.0, 105.0, 100.0], [161.0, 129.0, 122.0], [99.0, 80.0, 75.0], [187.0, 136.0, 121.0], [205.0, 155.0, 138.0], [219.0, 180.0, 162.0], [98.0, 80.0, 80.0], [73.0, 58.0, 57.0], [132.0, 107.0, 106.0], [89.0, 57.0, 51.0], [131.0, 88.0, 73.0], [169.0, 124.0, 104.0]],
        [[129.0, 93.0, 61.0], [146.0, 112.0, 79.0], [177.0, 141.0, 109.0], [148.0, 126.0, 125.0], [129.0, 106.0, 108.0], [168.0, 147.0, 145.0], [31.0, 29.0, 30.0], [56.0, 48.0, 44.0], [87.0, 74.0, 63.0], [152.0, 119.0, 95.0], [172.0, 141.0, 117.0], [193.0, 167.0, 145.0], [129.0, 103.0, 99.0], [104.0, 80.0, 75.0], [163.0, 137.0, 129.0], [146.0, 116.0, 128.0], [169.0, 141.0, 151.0], [196.0, 173.0, 184.0], [130.0, 103.0, 100.0], [162.0, 135.0, 134.0], [192.0, 171.0, 172.0], [150.0, 115.0, 110.0], [125.0, 89.0, 83.0], [179.0, 148.0, 144.0], [128.0, 106.0, 91.0], [146.0, 127.0, 113.0], [171.0, 154.0, 140.0], [122.0, 100.0, 91.0], [156.0, 137.0, 130.0], [193.0, 185.0, 183.0], [181.0, 160.0, 171.0], [38.0, 24.0, 28.0], [138.0, 111.0, 117.0], [162.0, 132.0, 150.0], [182.0, 155.0, 172.0], [210.0, 189.0, 201.0], [131.0, 101.0, 99.0], [101.0, 78.0, 77.0], [173.0, 138.0, 137.0], [31.0, 29.0, 30.0], [56.0, 48.0, 44.0], [87.0, 74.0, 63.0], [157.0, 123.0, 109.0], [145.0, 107.0, 92.0], [171.0, 137.0, 126.0], [95.0, 79.0, 93.0], [64.0, 49.0, 62.0], [128.0, 108.0, 119.0], [154.0, 122.0, 118.0], [184.0, 149.0, 143.0], [130.0, 100.0, 100.0], [145.0, 120.0, 115.0], [173.0, 148.0, 142.0], [211.0, 183.0, 175.0], [127.0, 91.0, 72.0], [155.0, 119.0, 100.0], [193.0, 162.0, 146.0], [165.0, 142.0, 136.0], [186.0, 160.0, 153.0], [208.0, 181.0, 172.0], [151.0, 130.0, 124.0], [125.0, 104.0, 100.0], [178.0, 157.0, 150.0], [161.0, 131.0, 130.0], [119.0, 91.0, 90.0], [203.0, 177.0, 175.0], [136.0, 109.0, 104.0], [117.0, 91.0, 84.0], [162.0, 139.0, 136.0], [149.0, 107.0, 108.0], [165.0, 125.0, 128.0], [187.0, 153.0, 153.0], [131.0, 117.0, 125.0], [159.0, 146.0, 154.0], [193.0, 183.0, 191.0]],
        [[166.0, 125.0, 101.0], [182.0, 147.0, 125.0], [205.0, 175.0, 158.0], [204.0, 161.0, 148.0], [170.0, 119.0, 102.0], [230.0, 202.0, 188.0], [143.0, 107.0, 97.0], [115.0, 75.0, 66.0], [176.0, 143.0, 130.0], [171.0, 125.0, 101.0], [186.0, 143.0, 118.0], [209.0, 168.0, 141.0], [107.0, 78.0, 70.0], [123.0, 92.0, 83.0], [148.0, 113.0, 99.0], [46.0, 37.0, 35.0], [71.0, 55.0, 51.0], [89.0, 70.0, 66.0], [126.0, 90.0, 104.0], [148.0, 109.0, 117.0], [220.0, 184.0, 175.0], [147.0, 97.0, 97.0], [67.0, 45.0, 45.0], [174.0, 118.0, 115.0], [73.0, 50.0, 53.0], [90.0, 65.0, 68.0], [131.0, 92.0, 85.0], [118.0, 89.0, 78.0], [100.0, 73.0, 66.0], [143.0, 111.0, 97.0], [87.0, 68.0, 56.0], [109.0, 85.0, 72.0], [41.0, 33.0, 27.0], [205.0, 169.0, 144.0], [167.0, 136.0, 111.0], [135.0, 105.0, 79.0], [138.0, 93.0, 82.0], [123.0, 77.0, 72.0], [161.0, 111.0, 90.0], [68.0, 35.0, 16.0], [128.0, 99.0, 90.0], [97.0, 68.0, 59.0], [162.0, 122.0, 104.0], [86.0, 52.0, 42.0], [194.0, 151.0, 129.0], [227.0, 194.0, 178.0], [155.0, 108.0, 92.0], [176.0, 133.0, 117.0], [173.0, 121.0, 103.0], [196.0, 147.0, 128.0], [152.0, 97.0, 79.0], [184.0, 134.0, 113.0], [155.0, 101.0, 79.0], [223.0, 170.0, 145.0], [162.0, 121.0, 102.0], [184.0, 143.0, 123.0], [211.0, 173.0, 151.0], [162.0, 104.0, 70.0], [142.0, 85.0, 56.0], [187.0, 127.0, 88.0], [100.0, 70.0, 60.0], [142.0, 112.0, 101.0], [30.0, 15.0, 10.0], [39.0, 22.0, 12.0], [119.0, 75.0, 48.0], [80.0, 47.0, 24.0], [54.0, 34.0, 38.0], [81.0, 58.0, 56.0], [117.0, 89.0, 82.0], [75.0, 41.0, 35.0], [174.0, 133.0, 126.0], [130.0, 92.0, 86.0], [117.0, 90.0, 83.0], [143.0, 115.0, 107.0], [176.0, 147.0, 139.0]],[[146.0, 114.0, 118.0], [174.0, 143.0, 147.0], [211.0, 179.0, 180.0], [109.0, 64.0, 55.0], [56.0, 26.0, 21.0], [170.0, 108.0, 95.0], [35.0, 20.0, 10.0], [196.0, 170.0, 161.0], [136.0, 114.0, 108.0], [116.0, 99.0, 94.0], [146.0, 126.0, 119.0], [89.0, 73.0, 68.0], [152.0, 113.0, 113.0], [131.0, 93.0, 94.0], [176.0, 137.0, 137.0], [113.0, 90.0, 92.0], [66.0, 51.0, 54.0], [22.0, 16.0, 17.0], [70.0, 46.0, 42.0], [103.0, 78.0, 71.0], [149.0, 120.0, 114.0], [137.0, 110.0, 106.0], [29.0, 26.0, 28.0], [174.0, 145.0, 138.0], [141.0, 115.0, 114.0], [108.0, 82.0, 83.0], [41.0, 23.0, 26.0], [49.0, 29.0, 61.0], [72.0, 50.0, 84.0], [101.0, 78.0, 112.0], [166.0, 145.0, 151.0], [79.0, 76.0, 85.0], [129.0, 116.0, 124.0], [175.0, 154.0, 145.0], [115.0, 102.0, 101.0], [93.0, 81.0, 82.0], [134.0, 114.0, 104.0], [160.0, 137.0, 125.0], [189.0, 164.0, 149.0], [14.0, 11.0, 10.0], [78.0, 56.0, 48.0], [44.0, 29.0, 24.0], [53.0, 34.0, 33.0], [66.0, 47.0, 45.0], [91.0, 69.0, 68.0], [46.0, 27.0, 34.0], [90.0, 51.0, 53.0], [132.0, 80.0, 77.0], [114.0, 93.0, 98.0], [72.0, 60.0, 69.0], [158.0, 128.0, 129.0], [89.0, 83.0, 107.0], [167.0, 140.0, 146.0], [131.0, 109.0, 119.0], [99.0, 82.0, 91.0], [130.0, 112.0, 122.0], [171.0, 147.0, 151.0], [25.0, 22.0, 25.0], [66.0, 60.0, 64.0], [125.0, 111.0, 114.0], [179.0, 158.0, 151.0], [155.0, 133.0, 127.0], [220.0, 196.0, 184.0], [134.0, 109.0, 112.0], [157.0, 133.0, 135.0], [103.0, 79.0, 80.0], [74.0, 58.0, 50.0], [91.0, 74.0, 65.0], [111.0, 93.0, 82.0], [137.0, 98.0, 82.0], [175.0, 126.0, 106.0], [204.0, 159.0, 142.0], [141.0, 116.0, 104.0], [164.0, 137.0, 123.0], [186.0, 159.0, 145.0]]]


eye = [[[48.0, 32.0, 27.0], [187.0, 159.0, 149.0], [109.0, 90.0, 84.0], [41.0, 25.0, 36.0], [150.0, 117.0, 112.0], [182.0, 177.0, 177.0], [35.0, 23.0, 23.0], [137.0, 107.0, 105.0], [88.0, 71.0, 73.0], [51.0, 19.0, 15.0], [85.0, 53.0, 47.0], [144.0, 108.0, 101.0], [52.0, 35.0, 26.0], [87.0, 67.0, 52.0], [130.0, 105.0, 83.0], [206.0, 185.0, 179.0], [71.0, 58.0, 57.0], [113.0, 93.0, 93.0], [54.0, 47.0, 68.0], [198.0, 185.0, 200.0], [103.0, 85.0, 105.0], [42.0, 22.0, 29.0], [95.0, 72.0, 80.0], [145.0, 117.0, 126.0], [121.0, 98.0, 91.0], [72.0, 57.0, 54.0], [40.0, 25.0, 22.0], [115.0, 101.0, 104.0], [145.0, 129.0, 130.0], [75.0, 67.0, 71.0], [176.0, 159.0, 159.0], [65.0, 56.0, 64.0], [133.0, 117.0, 120.0], [66.0, 56.0, 56.0], [180.0, 143.0, 139.0], [218.0, 215.0, 213.0], [33.0, 31.0, 35.0], [63.0, 55.0, 59.0], [114.0, 103.0, 106.0], [158.0, 121.0, 114.0], [30.0, 26.0, 26.0], [183.0, 173.0, 180.0], [35.0, 19.0, 24.0], [182.0, 165.0, 174.0], [145.0, 110.0, 112.0], [0.0, 0.0, 255.0], [82.0, 62.0, 64.0], [151.0, 134.0, 137.0], [31.0, 23.0, 15.0], [150.0, 139.0, 122.0], [111.0, 88.0, 71.0], [52.0, 36.0, 43.0], [185.0, 148.0, 157.0], [130.0, 99.0, 108.0], [59.0, 43.0, 39.0], [176.0, 155.0, 148.0], [119.0, 97.0, 92.0], [44.0, 49.0, 40.0], [215.0, 195.0, 181.0], [171.0, 146.0, 127.0], [32.0, 18.0, 23.0], [78.0, 60.0, 66.0], [126.0, 105.0, 112.0], [185.0, 175.0, 173.0], [60.0, 39.0, 35.0], [100.0, 83.0, 80.0], [44.0, 32.0, 38.0], [183.0, 140.0, 130.0], [205.0, 196.0, 188.0], [41.0, 36.0, 42.0], [102.0, 84.0, 88.0], [144.0, 131.0, 137.0], [193.0, 176.0, 172.0], [44.0, 27.0, 25.0], [170.0, 130.0, 123.0]],
        [[37.0, 20.0, 12.0], [99.0, 76.0, 62.0], [165.0, 135.0, 116.0], [77.0, 61.0, 64.0], [34.0, 22.0, 26.0], [134.0, 114.0, 116.0], [31.0, 30.0, 34.0], [66.0, 61.0, 62.0], [161.0, 155.0, 153.0], [50.0, 34.0, 27.0], [180.0, 163.0, 158.0], [88.0, 70.0, 60.0], [66.0, 45.0, 32.0], [179.0, 177.0, 186.0], [162.0, 131.0, 127.0], [47.0, 37.0, 59.0], [209.0, 209.0, 235.0], [169.0, 160.0, 183.0], [26.0, 17.0, 17.0], [185.0, 173.0, 176.0], [138.0, 112.0, 116.0], [39.0, 31.0, 41.0], [143.0, 130.0, 139.0], [186.0, 173.0, 182.0], [82.0, 77.0, 76.0], [123.0, 116.0, 112.0], [51.0, 54.0, 53.0], [35.0, 34.0, 36.0], [86.0, 75.0, 76.0], [167.0, 171.0, 180.0], [23.0, 16.0, 22.0], [179.0, 186.0, 211.0], [67.0, 62.0, 76.0], [40.0, 18.0, 31.0], [171.0, 130.0, 147.0], [114.0, 78.0, 92.0], [36.0, 18.0, 19.0], [185.0, 177.0, 187.0], [135.0, 115.0, 118.0], [31.0, 30.0, 34.0], [66.0, 61.0, 63.0], [161.0, 155.0, 153.0], [16.0, 9.0, 12.0], [71.0, 50.0, 52.0], [175.0, 164.0, 173.0], [48.0, 31.0, 42.0], [120.0, 99.0, 109.0], [233.0, 223.0, 231.0], [41.0, 33.0, 36.0], [135.0, 103.0, 110.0], [176.0, 142.0, 148.0], [50.0, 27.0, 23.0], [177.0, 157.0, 156.0], [125.0, 96.0, 95.0], [36.0, 22.0, 22.0], [135.0, 108.0, 103.0], [174.0, 164.0, 163.0], [51.0, 31.0, 39.0], [163.0, 149.0, 158.0], [188.0, 196.0, 207.0], [47.0, 38.0, 52.0], [133.0, 102.0, 101.0], [197.0, 194.0, 198.0], [60.0, 52.0, 53.0], [167.0, 154.0, 161.0], [199.0, 199.0, 207.0], [56.0, 46.0, 50.0], [158.0, 142.0, 148.0], [104.0, 90.0, 94.0], [0.0, 0.0, 254.0], [89.0, 73.0, 80.0], [164.0, 155.0, 167.0], [47.0, 47.0, 65.0], [82.0, 85.0, 108.0], [132.0, 130.0, 151.0]],
        [[197.0, 190.0, 191.0], [74.0, 53.0, 44.0], [159.0, 140.0, 138.0], [36.0, 12.0, 12.0], [212.0, 195.0, 200.0], [174.0, 133.0, 129.0], [27.0, 17.0, 23.0], [142.0, 114.0, 113.0], [196.0, 192.0, 192.0], [0.0, 0.0, 255.0], [129.0, 91.0, 83.0], [171.0, 141.0, 132.0], [38.0, 33.0, 44.0], [177.0, 160.0, 159.0], [138.0, 110.0, 107.0], [34.0, 21.0, 20.0], [76.0, 60.0, 57.0], [170.0, 142.0, 129.0], [87.0, 79.0, 108.0], [135.0, 118.0, 134.0], [216.0, 218.0, 223.0], [53.0, 39.0, 44.0], [95.0, 74.0, 89.0], [145.0, 129.0, 154.0], [49.0, 36.0, 45.0], [83.0, 63.0, 72.0], [130.0, 100.0, 103.0], [43.0, 41.0, 41.0], [87.0, 82.0, 80.0], [166.0, 163.0, 164.0], [37.0, 30.0, 26.0], [120.0, 101.0, 92.0], [68.0, 55.0, 49.0], [187.0, 157.0, 145.0], [81.0, 58.0, 47.0], [55.0, 37.0, 28.0], [102.0, 78.0, 84.0], [228.0, 216.0, 201.0], [51.0, 33.0, 49.0], [22.0, 16.0, 20.0], [177.0, 174.0, 183.0], [143.0, 132.0, 137.0], [49.0, 24.0, 19.0], [111.0, 84.0, 80.0], [157.0, 144.0, 143.0], [43.0, 19.0, 19.0], [156.0, 108.0, 95.0], [122.0, 77.0, 66.0], [30.0, 11.0, 8.0], [156.0, 126.0, 116.0], [193.0, 167.0, 158.0], [32.0, 15.0, 13.0], [135.0, 87.0, 69.0], [163.0, 127.0, 117.0], [48.0, 29.0, 28.0], [91.0, 67.0, 62.0], [167.0, 141.0, 130.0], [47.0, 31.0, 28.0], [193.0, 177.0, 172.0], [101.0, 67.0, 57.0], [36.0, 15.0, 14.0], [138.0, 106.0, 100.0], [194.0, 164.0, 160.0], [67.0, 40.0, 28.0], [110.0, 75.0, 59.0], [167.0, 134.0, 121.0], [39.0, 27.0, 37.0], [144.0, 126.0, 126.0], [201.0, 186.0, 187.0], [49.0, 29.0, 30.0], [157.0, 122.0, 120.0], [215.0, 193.0, 195.0], [41.0, 28.0, 26.0], [157.0, 150.0, 149.0], [73.0, 54.0, 50.0]],
        [[28.0, 14.0, 23.0], [173.0, 158.0, 167.0], [139.0, 109.0, 114.0], [147.0, 117.0, 120.0], [182.0, 172.0, 182.0], [75.0, 62.0, 68.0], [42.0, 30.0, 29.0], [124.0, 99.0, 94.0], [163.0, 139.0, 130.0], [46.0, 31.0, 25.0], [131.0, 108.0, 96.0], [166.0, 157.0, 150.0], [105.0, 82.0, 91.0], [191.0, 172.0, 179.0], [62.0, 49.0, 58.0], [39.0, 25.0, 30.0], [155.0, 142.0, 156.0], [69.0, 53.0, 59.0], [36.0, 22.0, 19.0], [65.0, 45.0, 42.0], [104.0, 79.0, 78.0], [51.0, 36.0, 37.0], [98.0, 83.0, 86.0], [147.0, 129.0, 134.0], [0.0, 0.0, 255.0], [183.0, 183.0, 192.0], [144.0, 127.0, 131.0], [17.0, 13.0, 51.0], [88.0, 71.0, 106.0], [48.0, 38.0, 76.0], [60.0, 50.0, 55.0], [165.0, 151.0, 162.0], [202.0, 191.0, 201.0], [52.0, 40.0, 37.0], [169.0, 167.0, 170.0], [146.0, 130.0, 130.0], [201.0, 204.0, 203.0], [71.0, 52.0, 45.0], [123.0, 109.0, 106.0], [29.0, 21.0, 19.0], [151.0, 134.0, 132.0], [70.0, 51.0, 47.0], [29.0, 27.0, 37.0], [71.0, 59.0, 66.0], [167.0, 170.0, 187.0], [54.0, 32.0, 37.0], [98.0, 61.0, 62.0], [198.0, 158.0, 157.0], [29.0, 20.0, 23.0], [192.0, 168.0, 175.0], [119.0, 98.0, 104.0], [142.0, 121.0, 136.0], [195.0, 173.0, 187.0], [73.0, 55.0, 68.0], [0.0, 0.0, 255.0], [135.0, 114.0, 122.0], [91.0, 73.0, 77.0], [0.0, 0.0, 255.0], [86.0, 67.0, 70.0], [151.0, 127.0, 129.0], [152.0, 122.0, 117.0], [202.0, 180.0, 175.0], [64.0, 38.0, 36.0], [49.0, 37.0, 42.0], [115.0, 88.0, 88.0], [164.0, 136.0, 134.0], [59.0, 44.0, 40.0], [91.0, 78.0, 76.0], [134.0, 126.0, 129.0], [199.0, 195.0, 201.0], [30.0, 13.0, 14.0], [142.0, 106.0, 99.0], [60.0, 53.0, 55.0], [173.0, 160.0, 158.0], [134.0, 117.0, 115.0]]]




mouth = [[[206.0, 77.0, 107.0], [233.0, 111.0, 139.0], [168.0, 53.0, 74.0], [239.0, 133.0, 125.0], [225.0, 107.0, 101.0], [184.0, 68.0, 65.0], [190.0, 119.0, 129.0], [200.0, 189.0, 197.0], [152.0, 101.0, 108.0], [185.0, 90.0, 98.0], [214.0, 119.0, 129.0], [241.0, 168.0, 168.0], [189.0, 107.0, 67.0], [215.0, 140.0, 107.0], [220.0, 188.0, 159.0], [239.0, 123.0, 135.0], [213.0, 94.0, 114.0], [213.0, 140.0, 144.0], [222.0, 105.0, 146.0], [223.0, 161.0, 174.0], [189.0, 80.0, 119.0], [237.0, 113.0, 142.0], [219.0, 90.0, 120.0], [249.0, 171.0, 182.0], [227.0, 109.0, 122.0], [221.0, 64.0, 80.0], [227.0, 155.0, 154.0], [188.0, 126.0, 126.0], [172.0, 105.0, 108.0], [197.0, 153.0, 144.0], [205.0, 133.0, 152.0], [153.0, 107.0, 118.0], [217.0, 186.0, 193.0], [165.0, 64.0, 76.0], [203.0, 104.0, 114.0], [222.0, 165.0, 157.0], [197.0, 109.0, 124.0], [202.0, 160.0, 158.0], [113.0, 34.0, 49.0], [193.0, 103.0, 100.0], [172.0, 73.0, 74.0], [201.0, 166.0, 155.0], [214.0, 60.0, 85.0], [154.0, 48.0, 63.0], [209.0, 100.0, 112.0], [174.0, 66.0, 76.0], [212.0, 87.0, 102.0], [136.0, 37.0, 42.0], [202.0, 109.0, 99.0], [175.0, 75.0, 68.0], [151.0, 39.0, 37.0], [213.0, 64.0, 86.0], [233.0, 95.0, 116.0], [230.0, 148.0, 158.0], [224.0, 146.0, 142.0], [217.0, 104.0, 106.0], [225.0, 206.0, 198.0], [235.0, 173.0, 162.0], [207.0, 144.0, 130.0], [186.0, 112.0, 103.0], [221.0, 120.0, 134.0], [179.0, 87.0, 99.0], [225.0, 173.0, 174.0], [229.0, 142.0, 137.0], [234.0, 166.0, 160.0], [190.0, 105.0, 104.0], [217.0, 153.0, 144.0], [194.0, 72.0, 71.0], [205.0, 109.0, 104.0], [188.0, 115.0, 118.0], [209.0, 147.0, 149.0], [159.0, 85.0, 89.0], [200.0, 63.0, 93.0], [171.0, 38.0, 60.0], [213.0, 98.0, 123.0]],
        [[187.0, 104.0, 101.0], [133.0, 59.0, 50.0], [161.0, 91.0, 79.0], [178.0, 105.0, 131.0], [207.0, 122.0, 155.0], [214.0, 179.0, 196.0], [193.0, 103.0, 99.0], [186.0, 125.0, 120.0], [170.0, 62.0, 54.0], [181.0, 120.0, 113.0], [205.0, 143.0, 141.0], [151.0, 87.0, 82.0], [218.0, 105.0, 134.0], [177.0, 82.0, 103.0], [225.0, 153.0, 173.0], [232.0, 133.0, 175.0], [211.0, 88.0, 128.0], [235.0, 171.0, 203.0], [209.0, 91.0, 118.0], [188.0, 67.0, 95.0], [209.0, 131.0, 147.0], [208.0, 106.0, 144.0], [231.0, 149.0, 185.0], [173.0, 56.0, 88.0], [169.0, 111.0, 112.0], [192.0, 139.0, 143.0], [129.0, 42.0, 40.0], [193.0, 107.0, 145.0], [196.0, 149.0, 166.0], [191.0, 56.0, 112.0], [198.0, 66.0, 107.0], [145.0, 41.0, 64.0], [204.0, 127.0, 156.0], [195.0, 84.0, 126.0], [200.0, 130.0, 165.0], [211.0, 208.0, 215.0], [207.0, 115.0, 131.0], [219.0, 154.0, 170.0], [225.0, 192.0, 206.0], [193.0, 103.0, 99.0], [187.0, 125.0, 120.0], [170.0, 62.0, 54.0], [0.0, 0.0, 254.0], [140.0, 88.0, 110.0], [202.0, 177.0, 196.0], [197.0, 105.0, 128.0], [210.0, 139.0, 158.0], [229.0, 193.0, 208.0], [184.0, 90.0, 103.0], [216.0, 128.0, 139.0], [241.0, 167.0, 180.0], [237.0, 102.0, 121.0], [227.0, 136.0, 148.0], [233.0, 171.0, 180.0], [188.0, 91.0, 100.0], [166.0, 62.0, 72.0], [204.0, 127.0, 133.0], [226.0, 164.0, 187.0], [211.0, 134.0, 162.0], [196.0, 101.0, 132.0], [153.0, 86.0, 86.0], [193.0, 117.0, 114.0], [213.0, 150.0, 151.0], [201.0, 66.0, 120.0], [176.0, 51.0, 92.0], [147.0, 33.0, 64.0], [182.0, 86.0, 96.0], [105.0, 26.0, 26.0], [196.0, 118.0, 131.0], [227.0, 122.0, 158.0], [196.0, 153.0, 165.0], [181.0, 74.0, 106.0], [189.0, 89.0, 124.0], [148.0, 58.0, 87.0], [206.0, 122.0, 157.0]],
        [[185.0, 119.0, 126.0], [207.0, 146.0, 154.0], [155.0, 88.0, 92.0], [219.0, 125.0, 125.0], [190.0, 82.0, 79.0], [228.0, 169.0, 167.0], [218.0, 144.0, 147.0], [187.0, 103.0, 108.0], [231.0, 216.0, 217.0], [210.0, 109.0, 119.0], [182.0, 86.0, 96.0], [224.0, 143.0, 148.0], [209.0, 119.0, 104.0], [222.0, 138.0, 121.0], [175.0, 95.0, 88.0], [135.0, 20.0, 28.0], [173.0, 37.0, 47.0], [103.0, 9.0, 14.0], [186.0, 98.0, 113.0], [207.0, 128.0, 141.0], [146.0, 68.0, 90.0], [230.0, 124.0, 129.0], [222.0, 80.0, 81.0], [204.0, 188.0, 203.0], [194.0, 81.0, 109.0], [156.0, 67.0, 87.0], [100.0, 49.0, 62.0], [149.0, 84.0, 86.0], [118.0, 63.0, 63.0], [170.0, 112.0, 116.0], [127.0, 72.0, 64.0], [149.0, 88.0, 79.0], [96.0, 49.0, 42.0], [0.0, 0.0, 254.0], [132.0, 34.0, 29.0], [185.0, 82.0, 73.0], [184.0, 63.0, 67.0], [144.0, 38.0, 57.0], [207.0, 120.0, 108.0], [180.0, 110.0, 104.0], [160.0, 85.0, 78.0], [125.0, 60.0, 52.0], [200.0, 85.0, 98.0], [137.0, 58.0, 67.0], [189.0, 142.0, 136.0], [166.0, 65.0, 52.0], [206.0, 110.0, 95.0], [214.0, 175.0, 165.0], [192.0, 97.0, 97.0], [215.0, 123.0, 123.0], [153.0, 63.0, 60.0], [213.0, 128.0, 113.0], [183.0, 101.0, 86.0], [211.0, 178.0, 165.0], [179.0, 57.0, 49.0], [205.0, 85.0, 78.0], [133.0, 48.0, 37.0], [233.0, 115.0, 102.0], [234.0, 152.0, 136.0], [200.0, 92.0, 82.0], [214.0, 110.0, 104.0], [230.0, 149.0, 142.0], [188.0, 72.0, 67.0], [173.0, 42.0, 47.0], [84.0, 27.0, 24.0], [143.0, 100.0, 92.0], [194.0, 98.0, 106.0], [146.0, 61.0, 67.0], [224.0, 152.0, 154.0], [226.0, 135.0, 143.0], [192.0, 96.0, 105.0], [240.0, 185.0, 185.0], [186.0, 76.0, 79.0], [205.0, 106.0, 110.0], [213.0, 66.0, 69.0]],
        [[207.0, 130.0, 155.0], [187.0, 103.0, 127.0], [164.0, 80.0, 103.0], [229.0, 93.0, 151.0], [237.0, 143.0, 181.0], [136.0, 29.0, 60.0], [208.0, 42.0, 59.0], [168.0, 21.0, 30.0], [210.0, 100.0, 116.0], [195.0, 52.0, 76.0], [159.0, 30.0, 46.0], [197.0, 99.0, 113.0], [178.0, 96.0, 115.0], [196.0, 133.0, 148.0], [160.0, 56.0, 79.0], [176.0, 75.0, 118.0], [139.0, 44.0, 84.0], [199.0, 114.0, 152.0], [169.0, 84.0, 93.0], [202.0, 109.0, 121.0], [143.0, 60.0, 67.0], [204.0, 100.0, 120.0], [223.0, 120.0, 141.0], [170.0, 71.0, 89.0], [199.0, 95.0, 127.0], [209.0, 127.0, 152.0], [136.0, 64.0, 85.0], [158.0, 50.0, 123.0], [122.0, 37.0, 97.0], [81.0, 19.0, 69.0], [225.0, 153.0, 182.0], [171.0, 69.0, 93.0], [218.0, 112.0, 146.0], [162.0, 96.0, 103.0], [154.0, 65.0, 74.0], [197.0, 194.0, 196.0], [209.0, 69.0, 89.0], [211.0, 106.0, 115.0], [180.0, 36.0, 58.0], [154.0, 64.0, 71.0], [170.0, 37.0, 56.0], [129.0, 35.0, 45.0], [142.0, 79.0, 87.0], [168.0, 110.0, 121.0], [202.0, 129.0, 150.0], [190.0, 92.0, 100.0], [222.0, 127.0, 136.0], [244.0, 198.0, 192.0], [225.0, 115.0, 151.0], [226.0, 152.0, 178.0], [184.0, 99.0, 130.0], [227.0, 140.0, 190.0], [196.0, 109.0, 156.0], [241.0, 199.0, 229.0], [197.0, 124.0, 145.0], [223.0, 150.0, 169.0], [179.0, 92.0, 124.0], [0.0, 0.0, 254.0], [243.0, 183.0, 204.0], [227.0, 136.0, 162.0], [212.0, 99.0, 108.0], [183.0, 67.0, 75.0], [149.0, 33.0, 41.0], [219.0, 160.0, 170.0], [223.0, 212.0, 214.0], [201.0, 127.0, 138.0], [119.0, 74.0, 75.0], [153.0, 98.0, 105.0], [179.0, 131.0, 142.0], [176.0, 100.0, 104.0], [142.0, 67.0, 74.0], [206.0, 136.0, 138.0], [231.0, 114.0, 144.0], [197.0, 89.0, 110.0], [141.0, 63.0, 78.0]]]


palette_skin = np.array(skin, dtype=np.uint8).astype(int)
palette_eyebr = np.array(eyebr, dtype=np.uint8).astype(int)
palette_eye = np.array(eye, dtype=np.uint8).astype(int)
palette_mouth = np.array(mouth, dtype=np.uint8).astype(int)

palette_skin_spr = [[palette_skin[0][i*3], palette_skin[0][i*3+1], palette_skin[0][i*3+2]] for i in range(25)]
palette_skin_smr = [[palette_skin[1][i*3], palette_skin[1][i*3+1], palette_skin[1][i*3+2]] for i in range(25)]
palette_skin_fal = [[palette_skin[2][i*3], palette_skin[2][i*3+1], palette_skin[2][i*3+2]] for i in range(25)]
palette_skin_wnt = [[palette_skin[3][i*3], palette_skin[3][i*3+1], palette_skin[3][i*3+2]] for i in range(25)]

palette_eyebr_spr = [[palette_eyebr[0][i*3], palette_eyebr[0][i*3+1], palette_eyebr[0][i*3+2]] for i in range(25)]
palette_eyebr_smr = [[palette_eyebr[1][i*3], palette_eyebr[1][i*3+1], palette_eyebr[1][i*3+2]] for i in range(25)]
palette_eyebr_fal = [[palette_eyebr[2][i*3], palette_eyebr[2][i*3+1], palette_eyebr[2][i*3+2]] for i in range(25)]
palette_eyebr_wnt = [[palette_eyebr[3][i*3], palette_eyebr[3][i*3+1], palette_eyebr[3][i*3+2]] for i in range(25)]

palette_eye_spr = [[palette_eye[0][i*3], palette_eye[0][i*3+1], palette_eye[0][i*3+2]] for i in range(25)]
palette_eye_smr = [[palette_eye[1][i*3], palette_eye[1][i*3+1], palette_eye[1][i*3+2]] for i in range(25)]
palette_eye_fal = [[palette_eye[1][i*3], palette_eye[2][i*3+1], palette_eye[2][i*3+2]] for i in range(25)]
palette_eye_wnt = [[palette_eye[3][i*3], palette_eye[3][i*3+1], palette_eye[3][i*3+2]] for i in range(25)]

palette_mouth_spr = [[palette_mouth[0][i*3], palette_mouth[0][i*3+1], palette_mouth[0][i*3+2]] for i in range(25)]
palette_mouth_smr = [[palette_mouth[1][i*3], palette_mouth[1][i*3+1], palette_mouth[1][i*3+2]] for i in range(25)]
palette_mouth_fal = [[palette_mouth[2][i*3], palette_mouth[2][i*3+1], palette_mouth[1][i*3+2]] for i in range(25)]
palette_mouth_wnt = [[palette_mouth[3][i*3], palette_mouth[3][i*3+1], palette_mouth[3][i*3+2]] for i in range(25)]

'''
print(palette_skin_spr)
plt.imshow(palette_skin_spr)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_skin_smr)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_skin_fal)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_skin_wnt)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()'''

plt.imshow(palette_eyebr_spr)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_eyebr_smr)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_eyebr_fal)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_eyebr_wnt)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

################################################################
plt.imshow(palette_eye_spr)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_eye_smr)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_eye_fal)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_eye_wnt)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()


################################################################
plt.imshow(palette_mouth_spr)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_mouth_smr)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_mouth_fal)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()

plt.imshow(palette_mouth_wnt)
plt.xticks([]) # x축 눈금
plt.yticks([]) # y축 눈금
plt.show()