Patent ID: 9497310
Filing Date: 2016-11-15
CPC Classification: G06F,G06T,H04M,H04N

Claim Text:
1. A method for enabling mute through flip functionality on a mobile phone such that flipping the mobile phone onto a supporting surface switches a situational pattern of the mobile phone into a mute pattern that turns off an incoming ring tone and a vibrate alert of the mobile phone, the method comprising: detecting the situational pattern of the mobile phone when a mobile phone receives a call; if the situational pattern is in a ringing pattern, controlling a front-facing camera, placed on a plane where the main operation interface of the mobile phone is located, to acquire image data based on a preset time; transmitting the image data to a mobile phone base band chip using a frame synchronization signal generated from the front-facing camera to trigger the front-facing camera to transmit the image data to the mobile phone base band chip; and using the mobile phone base band chip to determine whether the image data is all-black and caching a determination result; if a current image data is determined to be all-black and the determination result indicates that image data acquired in a previous time is not all-black, concluding that the current image data corresponds to the supporting surface and switching the situational pattern of the mobile phone from the ringing pattern into the mute pattern, and controlling the front-facing camera to stop acquiring image data; wherein determining whether the image data is all-black comprises determining whether each pixel in the image data is black; and when detecting that one of the pixels is not black, determining that the image data is not all-black; wherein determining whether each pixel in the image data is black comprises: if a transmitting format of the image data is YUV, then determining whether all of the pixels of the image data satisfy Y=0, U=128 and V=128 one by one; if yes, then determining that the respective pixel is black; if the transmitting format of the image data is RGB, then determining whether all of the pixels of the image data satisfy R=0, G=0 and B=0 one by one; if yes, then determining that the respective pixel is black; and when all the pixels included in the image data are determined to be black, then determining that the image data is all-black.