摘要:
A method and a system are provided for replacing the theme of a mobile terminal on the basis of a user's clothes color, including: setting an RGB value interval of clothes through analyzing the RGB values of all pixels of the clothes location in the obtained image and calculating the clothes RGB average, analyzing the RGB values of all pixels of every theme on a mobile terminal, calculating the theme RGB value average; when the theme RGB average is within the clothes RGB average interval, and replacing the theme of the mobile terminal by the theme corresponding to the theme RGB average. Thus, the mobile terminal becomes more interesting.
摘要:
A detection algorithm for an infrared proximity sensor of a touch screen mobile phone is provided. The working principle is that, during the call, the detection algorithm detects the magnitude of the energy received by the infrared proximity sensor in real time, judges the proximity action or departure action according to the change trend, and adjusts the proximity and departure threshold values in real time to control the mobile phone screen to turn off and on. Said algorithm can avoid influences of the component consistency, structural consistency and other outside interference factors of the mobile phone on the infrared proximity detection, and solve the problem of malfunction due to aging of the IR-LED infrared emitter tube and clearance change caused by dropping of the mobile phone. The algorithm is widely applicable.