A medicine audit apparatus comprising: an image acquisition unit that acquires a captured image obtained by imaging a medicine; a medicine recognition unit that specifies a type of the medicine by recognizing the medicine from the captured image; a quantitative value calculation unit that calculates a quantitative value for quantifying a quality of the captured image related to success or failure of the medicine recognition by the medicine recognition unit; a storage unit that stores a threshold value of a quantitative value that is a determination criterion whether the medicine recognition by the medicine recognition unit is possible; a comparison determination unit that compares the quantitative value calculated by the quantitative value calculation unit with the threshold value to determine whether the recognition of the medicine by the medicine recognition unit is possible; and a warning output unit that issues a warning in a case where the medicine recognition of the medicine recognition unit is determined to be impossible by the comparison determination unit, wherein the medicine recognition unit includes: an edge detection unit that detects an edge of the medicine from the captured image; and an engraved mark recognition unit that recognizes an engraved mark assigned on the medicine extracted based on information on the edge detected by the edge detection unit from the captured image, wherein the quantitative value is a quantitative value for quantifying the quality of the captured image related to success or failure of the edge detection by the edge detection unit, wherein the quantitative value is defined using a ratio between a sum of absolute values of spatial frequency spectra of higher frequencies than one [cycle/mm] and a sum of absolute values of spatial frequency spectra of lower frequencies than one [cycle/mm] in the spatial frequency spectra of a two-dimensional fast Fourier transform image obtained by performing processing of two-dimensional fast Fourier transform on the captured image in a radial direction, and wherein the threshold value is a value which is determined in advance according to the definition of the quantitative value, as a threshold value of a quantitative value that is a determination criterion whether the edge detection by the edge detection unit is possible. an image acquisition unit that acquires a captured image obtained by imaging a medicine; a medicine recognition unit that specifies a type of the medicine by recognizing the medicine from the captured image; a quantitative value calculation unit that calculates a quantitative value for quantifying a quality of the captured image related to success or failure of the medicine recognition by the medicine recognition unit; a storage unit that stores a threshold value of a quantitative value that is a determination criterion whether the medicine recognition by the medicine recognition unit is possible; a comparison determination unit that compares the quantitative value calculated by the quantitative value calculation unit with the threshold value to determine whether the recognition of the medicine by the medicine recognition unit is possible; and a warning output unit that issues a warning in a case where the medicine recognition of the medicine recognition unit is determined to be impossible by the comparison determination unit, wherein the medicine recognition unit includes: an edge detection unit that detects an edge of the medicine from the captured image; and an engraved mark recognition unit that recognizes an engraved mark assigned on the medicine extracted based on information on the edge detected by the edge detection unit from the captured image, an edge detection unit that detects an edge of the medicine from the captured image; and an engraved mark recognition unit that recognizes an engraved mark assigned on the medicine extracted based on information on the edge detected by the edge detection unit from the captured image, wherein the quantitative value is a quantitative value for quantifying the quality of the captured image related to success or failure of the edge detection by the edge detection unit, wherein the quantitative value is defined using a ratio between a sum of absolute values of spatial frequency spectra of higher frequencies than one [cycle/mm] and a sum of absolute values of spatial frequency spectra of lower frequencies than one [cycle/mm] in the spatial frequency spectra of a two-dimensional fast Fourier transform image obtained by performing processing of two-dimensional fast Fourier transform on the captured image in a radial direction, and wherein the threshold value is a value which is determined in advance according to the definition of the quantitative value, as a threshold value of a quantitative value that is a determination criterion whether the edge detection by the edge detection unit is possible.