当前位置:网站首页>Some updates about a hand slider (6-18, JS reverse)

Some updates about a hand slider (6-18, JS reverse)

2022-06-24 23:01:00 If you succeed, you have to be benevolent

Preface : Three months apart I'm back again , I will never be tortured by bisher again

It has been almost a year since the last slide of a certain hand , The process is the same as before ( You can turn over the previous articles ), The specific changes are as follows :
1、 The scale of the picture

relativeX = int(round(int(distance) * 0.46, 0) - 3)
relativeY = round(int(disY) * 0.46)

2、 Track detected

   // The scaling method used here ( I didn't add some random values , Those who are interested can improve themselves )
    m_distance = 246
    m_list = [[0, 19, 19], [0, 21, 67], [10, 22, 89], [18, 22, 95], [36, 22, 104], [61, 22, 114], [123, 22, 125],
              [163, 22, 132], [195, 22, 140], [228, 22, 154], [268, 22, 158], [329, 22, 174], [384, 22, 186],
              [409, 22, 193], [427, 22, 201], [449, 22, 208], [463, 22, 223], [478, 22, 227], [492, 22, 241],
              [507, 22, 242], [518, 22, 252], [528, 22, 257], [539, 22, 266], [547, 22, 273], [557, 23, 286],
              [568, 23, 291], [583, 23, 306], [590, 23, 318], [597, 23, 321], [601, 23, 335], [608, 23, 337],
              [612, 23, 352], [623, 23, 359], [637, 23, 374], [641, 23, 384], [644, 23, 387], [652, 23, 393],
              [655, 23, 401], [663, 23, 408], [666, 23, 419], [670, 23, 428], [673, 23, 437], [681, 23, 441],
              [684, 23, 450], [684, 23, 457], [692, 23, 465], [695, 23, 482], [699, 23, 490], [699, 23, 504],
              [702, 23, 529], [706, 23, 537], [710, 23, 555], [713, 23, 562], [713, 23, 578], [721, 23, 584],
              [728, 24, 611], [728, 24, 627], [731, 24, 633], [735, 24, 643], [739, 24, 649], [742, 24, 657],
              [742, 24, 667], [746, 24, 675], [750, 24, 681], [753, 24, 688], [757, 24, 697], [757, 24, 704],
              [764, 24, 713], [768, 24, 721], [771, 24, 733], [775, 24, 740], [782, 24, 746], [786, 24, 753],
              [789, 24, 764], [797, 24, 769], [800, 24, 785], [804, 24, 796], [807, 24, 809], [811, 24, 818],
              [815, 24, 827], [815, 24, 842], [818, 24, 848], [822, 24, 868], [829, 24, 874], [829, 24, 889],
              [833, 24, 897], [836, 24, 913], [840, 24, 920], [844, 24, 931], [844, 24, 945], [847, 24, 961],
              [851, 24, 978], [855, 24, 985], [858, 24, 994], [858, 24, 1008], [862, 24, 1033], [865, 24, 1066],
              [869, 24, 1081], [873, 24, 1097], [873, 24, 1233]]
    x = distance / m_distance
    one_list = []
    for i in m_list:
        list_ = []
        for j in i:
            list_.append(round(j * x))
        one_list.append(list_)
    str1 = ''
    for k in one_list:
        str1 += str(k[0]) + "|" + str(k[1]) + "|" + str(k[2]) + ","
    print(" The trajectory :", str1[:-1])
    return str1[:-1]

And then there was none , It's gone. It's gone , The next article on sliders might be 140, Bye-bye !
 Insert picture description here

原网站

版权声明
本文为[If you succeed, you have to be benevolent]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241707197239.html