我有两个像素坐标列表
(confirmed pixel[(60, 176), (60, 174), (63, 163), (61, 176)] &
white_pixel [(64, 178), (60, 174), (61, 176)])
我想比较两者,如果发现任何相同的值,例如
(61176)
和
(60174)
,它将返回
真的
,表示至少需要匹配一个值。
我怎么能这样
如果
陈述?
确认的像素=白色像素不起作用
全部的
两个列表中的值必须相同才能返回true
if confirmed_pixel == white_pixel and len(confirmed_pixel) != 0 and len(white_pixel) != 0:
print("True")
continue