Image orientation detection
AssigneeInternational Business Machines Corporation
InventorsStephen Chu, Min Gong, Chang Sheng Li, Dong Sheng Li, Jun Chi Yan, Weipeng Zhang
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure relate to a new approach for image orientation detection. In the computer-implemented method, at least one character area in an image is sampled. The orientation of the sampled character area is determined, and the orientation of the image is determined based on the determined orientation of the sampled character area.
Claims13
A device comprising:
- a processing unit;
- a screen;
- and
- a memory coupled to the processing unit and storing instructions thereon, the instructions, when executed by the processing unit, perform a method comprising:
- sampling at least one character area in an image by:
- detecting at least one text region in the image;
- and
- sampling the at least one character area in the at least one text region by:
- obtaining, within the detected text region, an initial predefined character area;
- estimating orientation and corresponding confidence score of the obtained initial predefined character area;
- adjusting the initial predefined character area;
- re-estimating the orientation and the corresponding confidence score;
- and
- in response to the corresponding confidence score being greater than a predefined threshold, determining an adjusted character area to be used in sampling of the at least one character areas in the at least one text region;
- determining orientation of the sampled character area;
- and
- determining orientation of the image based on the determined orientation of the sampled character area;
- and
- displaying the image on the screen based on the determined image orientation.
A computer-implemented method comprising:
- sampling at least one character area in an image by:
- detecting at least one text region in the image;
- and
- sampling the at least one character area in the at least one text region by:
- obtaining, within the detected text region, an initial predefined character area;
- estimating orientation and corresponding confidence score of the obtained initial predefined character area;
- adjusting the initial predefined character area;
- re-estimating the orientation and the corresponding confidence score;
- and
- in response to the corresponding confidence score being greater than a predefined threshold, determining an adjusted character area to be used in sampling of the at least one character areas in the at least one text region;
- determining orientation of the sampled character area;
- determining orientation of the image based on the determined orientation of the sampled character area;
- and
- displaying the image on a screen based on the determined image orientation.
A computer program product being tangibly stored on a non-transitory machine-readable medium and comprising machine-executable instructions, the instructions, when executed on an electronic device, causing the electronic device to:
- sample at least one character area in an image by:
- detecting at least one text region in the image;
- and
- sampling the at least one character area in the at least one text region by:
- obtaining, within the detected text region, an initial predefined character area:
- estimating orientation and corresponding confidence score of the obtained initial predefined character area;
- adjusting the initial predefined character area;
- re-estimating the orientation and the corresponding confidence score;
- and
- in response to the corresponding confidence score being greater than a predefined threshold, determining an adjusted character area to be used in sampling of the at least one character areas in the at least one text region;
- determine orientation of the sampled character area;
- determine orientation of the image based on the determined orientation of the sampled character area;
- and
- display the image on a screen based on the determined image orientation.
Dependencies are inferred from the claim text.