Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
因为只需要识别一个矩形
for循环遍历一下就行了
def find_max(rects): max_magnitude = 0 max_rect = None for r in rects: if r.magnitude() > max_magnitude: max_magnitude = r.magnitude() max_rect = r return max_rect