Method and system for automatically starting and stopping camera unit
A technology of camera unit and automatic switch, which is applied in the field of electronic information, can solve the problems of wasting power, and achieve the effect of saving time and saving mobile phone power
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] see figure 1 , the present invention discloses a method for automatically switching on and off a camera on a mobile device based on images and accelerometers, allowing people to save the tedious operation of clicking buttons when using some camera-based mobile phone applications, and achieve more convenient and quick switching The camera is more comfortable to use and saves the user's time.
[0051] like figure 1 As shown, the method for automatically switching the camera unit of the present invention includes the following steps:
[0052] [Step 101] The user first starts the application program on the mobile phone, the program can automatically turn on the camera on the mobile phone, and start to capture the images captured by the camera in real time.
[0053] [Step 102] The program acquires the first frame of image data P 1 , and initialize the count value I to 0 at the same time.
[0054] [Step 103] The program acquires the current screen image P at each next tim...
Embodiment 2
[0060] This embodiment discloses a method for automatically switching on and off the camera unit, and the method includes the following steps:
[0061] [Step S100] Start the application program of the electronic device, the application program automatically starts the camera unit of the electronic device, and starts to capture the image captured by the camera unit in real time;
[0062] [Step S200] Acquiring the captured image at a set time interval, and judging whether the electronic device is in an idle state according to the acquired image, and automatically shutting down the camera unit if it is;
[0063] [Step S300] After the camera unit is turned off, the application program starts to acquire the acceleration vector of the accelerometer on the three-dimensional coordinate system, and calculates its amplitude G; if G exceeds a preset threshold value GT, the application program Turn on the camera automatically, go to step 200.
[0064] In said step S200, the method for ju...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 