Automatic zooming method and apparatus

  • US 10,317,777 B2
  • Filed: 03/27/2015
  • Issued: 06/11/2019
  • Est. Priority Date: 03/27/2015
  • Status: Active Grant
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.

View all claims
    ×
    ×

    Thank you for your feedback

    ×
    ×