工业中模板匹配有很多需求. 代码如下: read_image (Image, 'J:/测试图片/test1/1.bmp') get_image_size (Image, Width, Height) gen_rectangle1 (Rectangle, 1057.01, 1698.27, 1241.98, 1898.29) *gen_rectangle1 (Rectangle, 449.726, 813.267, 669.604, 1005.06) area_center (Rectangle,