Mobile terminal, image processing method, and computer-readable recording medium
AssigneePfu Limited
InventorsHiroki Tanizaki, Mitsuru Nishikawa
Life of this patent
Estimating the term…
Abstract
A mobile terminal includes a memory, and a processor coupled to the memory, wherein the processor executes a process comprising acquiring a frame with taking a photograph, acquiring document image data of a document from the frame, detecting shine on the document image data, determining whether the shine is equal to or smaller than a shine baseline, and acquiring a frame with retaking a photograph when the shine is neither equal to nor smaller than the shine baseline.
Claims14
A mobile terminal comprising:
- a memory;
- and
- a processor coupled to the memory, wherein
- the processor executes a process comprising:
- acquiring a frame with taking a photograph;
- from the frame, acquiring document image data of a document;
- detecting a shine on the document image data;
- determining whether the shine is equal to or smaller than a shine baseline;
- and
- acquiring a frame with retaking a photograph when the shine is neither equal to nor smaller than the shine baseline,
- wherein, detecting the shine includes:
- calculating a threshold of the shine based on a background gradation value as a gradation value with highest frequency of gradation values of pixels included in the document image data and based on a gradation value with high frequency of gradation values larger than the background gradation value, and
- detecting a total number of pixels having gradation values larger than the threshold among the pixels included in the document image data as the shine, wherein the threshold is an average value of the background gradation value and the gradation value that is larger than the background gradation value.
An image processing method comprising:
- acquiring a frame with taking a photograph;
- from the frame, acquiring document image data of a document;
- detecting a shine on the document image data;
- determining whether the shine is equal to or smaller than a shine baseline;
- and
- acquiring a frame with retaking a photograph when the shine is neither equal to nor smaller than the shine baseline, wherein, detecting the shine includes:
- calculating a threshold of the shine based on a background gradation value as a gradation value with highest frequency of gradation values of pixels included in the document image data and based on a gradation value with high frequency of gradation values larger than the background gradation value, and
- detecting a total number of pixels having gradation values larger than the threshold among the pixels included in the document image data as the shine, wherein the threshold is an average value of the background gradation value and the gradation value that is larger than the background gradation value.
A non-transitory computer readable recording medium having stored therein a program, the program causing a computer to execute a process comprising:
- acquiring a frame with taking a photograph;
- from the frame, acquiring document image data of a document;
- detecting a shine on the document image data;
- determining whether the shine is equal to or smaller than a shine baseline;
- and
- acquiring a frame with retaking a photograph when the shine is neither equal to nor smaller than the shine baseline, wherein, detecting the shine includes:
- calculating a threshold of the shine based on a background gradation value as a gradation value with highest frequency of gradation values of pixels included in the document image data and based on a gradation value with high frequency of gradation values larger than the background gradation value, and
- detecting a total number of pixels having gradation values larger than the threshold among the pixels included in the document image data as the shine, wherein the threshold is an average value of the background gradation value and the gradation value that is larger than the background gradation value.
Dependencies are inferred from the claim text.