摘要 |
本发明提供一种电子装置摄像单元关闭方法及系统,该方法包括步骤:获取电子装置的摄像单元所对应的光照强度及电子装置的外部环境的光照强度;根据所述摄像单元所对应的光照强度及所述外部环境的光照强度判断摄像单元是否处于遮蔽状态;当摄像单元处于遮蔽状态时,获取电子装置的加速度值;根据所述加速度值分析电子装置是否在一个预设时间间隔内处于静止状态;及当电子装置在所述预设时间间隔内处于静止状态时,控制摄像单元关闭。; determining whether the capturing unit is in a shielding mode according to the light value corresponding to the capturing unit and the light value of the external environment; when the capturing unit is in the shielding mode, obtaining acceleration values of the electronic device; determining whether the electronic device is in a stationary state in a default time interval according to the acceleration values; and when the electronic device is in the stationary state in the default time interval, controlling the capturing unit to turn off. |