Patent ID: 11914850
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 4:
5. The electronic device of claim 1, wherein the first picture comprises two human faces, and wherein when executed by the one or more processors, the computer instructions further cause the electronic device to:
determine a first length of the crop box and a first width of the crop box based on a second length of the first picture and a second width of the first picture and an aspect ratio of the crop box;
generate a third subject box and a fourth subject box based on the two human faces, wherein the third subject box is a third bounding rectangle of a first human face with a larger area in the two human faces, and wherein the fourth subject box is a fourth bounding rectangle of a second human face with a smaller area in the two human faces;
determine that a minimum picture region that comprises the two human faces is the human face region when a third length of the third subject box is not greater than the first length, a third width of the third subject box is not greater than the first width, a fourth length of a fifth subject box is not greater than the first length, and a fourth width of the fifth subject box is not greater than the first width of the crop box, wherein the fifth subject box is a minimum bounding rectangle that comprises the fourth subject box and the third subject box;
determine that the first human face is the human face region when the third length is not greater than the first length, the third width is not greater than the first width, and the fourth length is greater than the first length or the fourth width is greater than the first width;
calculate a position of the crop box to make the first composition manner the same as the second composition manner; and
further display the crop box in the first picture based on the position.