拼图在手动的情况下还是有很多限制,以这一题为例,共计600张图片。图片名称没有任何规律。如果手动拼图的话,总的尝试次数会非常大,而且非常耗时,所以需要依赖自动拼图的工具。图片拼接首先需要将图片全部拼接到一张图片中,并且获取每张图片的尺寸,每张图的尺寸为40x40因为共计600张图片,所以猜测总图片应该是20x30的数量排列安装montageapt-get install -y graphicsmagick-imagemagick-compatmontage拼接图片montageGraphicsMagick 1.3.28 2018-01-20 Q16 http://www.GraphicsMagick.org/Copyright (C) 2002-2018 GraphicsMagick Group.Additional copyrights and licenses apply to this software.See http://www.GraphicsMagick.org/www/Copyright.html for details.Usage: montage montage [options ...] file [ [options ...] file ...]Where options include: -adjoin join images into a single multi-image file -affine matrix affine transform matrix -authenticate
………………………………