Patent ID: 9721327
Date: 2017-08-01
CPC Classifications: G06K,G06T

Claim:
1. A method for automatically adjusting a picture according to contents thereof at a terminal equipment, comprising the following steps: a. using the terminal equipment comprising a processor and a memory comprising a plurality of program instructions executable by the processor to analyze contents of the picture and extract key information of the picture; b. using the processor to execute the plurality of program instructions to calculate the key information to obtain weight and respectively calculate a sum of key information weight in each of four directions; c. using the processor to execute the plurality of program instructions to compare the sums of key information weight of the four directions to find out the direction with the maximum weight; d. using the processor to execute the plurality of program instructions to adjust the pictures according to the direction with the maximum weight; wherein the key information includes human faces, characters, picture textural characteristics and colors, so weight calculated on the basis of the key information includes human face information weight, character information weight, picture textural characteristic weight and color information weight, the human face information weight is classified into single-face information weight and multiple-face information weight, the multi-face information weight is calculated by using the processor to execute the plurality of program instructions to average a cosine value of each face, the character information weight is classified into a character weight of a certain character in the picture and a character weight of multiple characters in the picture, the character weight of multiple characters in the picture is calculated by using the processor to execute the plurality of program instructions to average character weight of the several character information in each of four directions; and wherein the processor is used to execute the plurality of program instructions to preset weight coefficients of the weight including human faces, characters, picture textural characteristics and color characteristics, respectively multiply the calculated weight of the human faces, characters, picture textural characteristics and color characteristics by a coefficient designed by using the processor to execute the plurality of program instructions, add together to obtain sum of the weight finally compare the weight in four directions and adjust the picture.