Automatic zooming method and apparatus
First Claim
Patent Images
1. An automatic zooming method, comprising:
- determining a contour of a subject of a preview image in a preview frame on a screen of an electronic device;
determining a central point of the subject of the preview image;
determining a zoom parameter according to a size of the contour of the subject of the preview image and a size of the preview frame when the central point of the subject of the preview image overlaps a central point of the preview frame, the zoom parameter comprising at least one of a to-be-adjusted focal length of a lens of a camera of the electronic device or a zoom factor of the preview image;
zooming the camera according to the zoom parameter;
detecting a definition of the preview image;
capturing a photograph of the preview image when the definition of the preview image meets a preset threshold;
detecting whether the photograph of the preview image includes perspective distortion;
performing perspective correction on the photograph of the preview image when the photograph of the preview image includes perspective distortion; and
saving the photograph of the preview image with the perspective correction.
1 Assignment
0 Petitions
Accused Products
Abstract
An automatic zooming method and an apparatus includes determining a contour of a subject of a preview image and a central point of the subject according to the preview image in a preview frame on a screen; when the central point of the subject overlaps a central point of the preview frame, determining a zoom parameter according to a size of the contour of the subject and a size of the preview frame, where the zoom parameter includes at least one of a to-be-adjusted focal length of a camera or a zoom factor of the preview image; and zooming the camera according to the zoom parameter.
1 Citation
19 Claims
-
1. An automatic zooming method, comprising:
-
determining a contour of a subject of a preview image in a preview frame on a screen of an electronic device; determining a central point of the subject of the preview image; determining a zoom parameter according to a size of the contour of the subject of the preview image and a size of the preview frame when the central point of the subject of the preview image overlaps a central point of the preview frame, the zoom parameter comprising at least one of a to-be-adjusted focal length of a lens of a camera of the electronic device or a zoom factor of the preview image; zooming the camera according to the zoom parameter; detecting a definition of the preview image; capturing a photograph of the preview image when the definition of the preview image meets a preset threshold; detecting whether the photograph of the preview image includes perspective distortion; performing perspective correction on the photograph of the preview image when the photograph of the preview image includes perspective distortion; and saving the photograph of the preview image with the perspective correction. - View Dependent Claims (2, 3, 4, 5, 6, 18)
-
-
7. A portable electronic device, comprising:
-
a display comprising a touch-sensitive surface and a display screen; a memory comprising instructions; and a processor coupled to the memory and the display, the processor being configured to execute the instructions, the instructions causing the processor to be configured to; determine a contour of a subject of a preview image in a preview frame on the display screen; determine a central point of the subject of the preview image; determine a zoom parameter according to a size of the contour of the subject of the preview image and a size of the preview frame when the central point of the subject of the preview image overlaps a central point of the preview frame, the zoom parameter comprising at least one of a to-be-adjusted focal length of a lens of a camera of the electronic device or a zoom factor of the preview image; zoom the camera according to the zoom parameter; detect a definition of the preview image; capture a photograph of the preview image when the definition of the preview image detected meets a preset threshold; detect whether the photograph of the preview image has perspective distortion; perform perspective correction on the photograph of the preview image when the photograph of the preview image includes perspective distortion; and save the photograph of the preview image with the perspective correction. - View Dependent Claims (8, 9, 10, 11, 12, 19)
-
-
13. A non-transitory computer readable medium including at least one computer program code stored for automatic zooming on a device associated with a computing device, the program code when executed on a processor, causes the processor to be configured to:
-
determine a contour of a subject of a preview image in a preview frame on a screen; determine a central point of the subject of the preview image; determine a zoom parameter according to a size of the contour of the subject of the preview image and a size of the preview frame when the central point of the subject of the preview image overlaps a central point of the preview frame, the zoom parameter comprising at least one of a to-be-adjusted focal length of a lens of a camera of the device or a zoom factor of the preview image; zoom the camera according to the zoom parameter; detect a definition of the preview image; capture a photograph of the preview image when the definition of the preview image detected meets a preset threshold; detect whether the photograph of the preview image has perspective distortion; perform perspective correction on the photograph of the preview image when the photograph of the preview image includes perspective distortion; and save the photograph of the preview image with perspective correction. - View Dependent Claims (14, 15, 16, 17)
-
Specification