williamfzc / findit

find target icon on your picture, and get its position
https://williamfzc.github.io/findit/
MIT License
109 stars 36 forks source link

bug when template pictures are too large #19

Closed williamfzc closed 4 years ago

williamfzc commented 4 years ago
  File "/usr/local/lib/python3.7/site-packages/findit/core.py", line 212, in _find_with_template
    each_result = each_engine.execute(each_template_object, target_pic_object, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/findit/engine/template.py", line 75, in execute
    engine_template_mask_pic_object
  File "/usr/local/lib/python3.7/site-packages/findit/engine/template.py", line 143, in _compare_template
    loc_val, point_list, shape = sorted(result_list, key=lambda i: i[0][1])[-1]
IndexError: list index out of range
williamfzc commented 4 years ago

add feedback now. closed