A board image processing device for recognizing a reference position of a board on which a wiring pattern is formed, wherein at least one of one or more characteristic sections contained in the wiring pattern is set as a fiducial mark representing the reference position, the image processing device comprising: a first image acquisition section configured to acquire first image data obtained by imaging a region of the board in which the fiducial mark is contained; a first detecting section configured to detect a position of the fiducial mark by scanning the first image data by using a first template showing a shape of the fiducial mark; a first position recognition section configured to recognize the reference position of the board based on a result of detection performed by the first detecting section; a mark acquisition section configured to, in a case where the position of the fiducial mark is not detected by the scanning performed by the first detecting section, acquire a different characteristic section that is different from the fiducial mark as an alternative mark instead of the fiducial mark; a second image acquisition section configured to acquire second image data obtained by imaging a region of the board in which the alternative mark is contained; a second detecting section configured to detect the position of the alternative mark by scanning the second image data by using a second template showing a shape of the alternative mark; and a second position recognition section configured to recognize the reference position of the board based on a result of the detection performed by the second detecting section and a positional relationship between the fiducial mark and the alternative mark, wherein the mark acquisition section is configured to display a portion or the entirety of the board for an operator and accept designation of the alternative mark and an input of the positional relationship between the fiducial mark and the alternative mark by the operator; and/or wherein the mark acquisition section has a candidate table obtained by associating multiple candidate marks of the characteristic sections, which are usable as the alternative mark, with a positional relationship between the fiducial mark and each of the multiple candidate marks, and wherein the mark acquisition section is configured to acquire, as the alternative mark, one of the multiple candidate marks selected based on the positional relationship between the fiducial mark and each of the multiple candidate marks. a first image acquisition section configured to acquire first image data obtained by imaging a region of the board in which the fiducial mark is contained; a first detecting section configured to detect a position of the fiducial mark by scanning the first image data by using a first template showing a shape of the fiducial mark; a first position recognition section configured to recognize the reference position of the board based on a result of detection performed by the first detecting section; a mark acquisition section configured to, in a case where the position of the fiducial mark is not detected by the scanning performed by the first detecting section, acquire a different characteristic section that is different from the fiducial mark as an alternative mark instead of the fiducial mark; a second image acquisition section configured to acquire second image data obtained by imaging a region of the board in which the alternative mark is contained; a second detecting section configured to detect the position of the alternative mark by scanning the second image data by using a second template showing a shape of the alternative mark; and a second position recognition section configured to recognize the reference position of the board based on a result of the detection performed by the second detecting section and a positional relationship between the fiducial mark and the alternative mark, wherein the mark acquisition section is configured to display a portion or the entirety of the board for an operator and accept designation of the alternative mark and an input of the positional relationship between the fiducial mark and the alternative mark by the operator; and/or wherein the mark acquisition section has a candidate table obtained by associating multiple candidate marks of the characteristic sections, which are usable as the alternative mark, with a positional relationship between the fiducial mark and each of the multiple candidate marks, and wherein the mark acquisition section is configured to acquire, as the alternative mark, one of the multiple candidate marks selected based on the positional relationship between the fiducial mark and each of the multiple candidate marks.