CN109819168B - Camera starting method and mobile terminal - Google Patents
Camera starting method and mobile terminal Download PDFInfo
- Publication number
- CN109819168B CN109819168B CN201910109944.5A CN201910109944A CN109819168B CN 109819168 B CN109819168 B CN 109819168B CN 201910109944 A CN201910109944 A CN 201910109944A CN 109819168 B CN109819168 B CN 109819168B
- Authority
- CN
- China
- Prior art keywords
- camera
- mobile terminal
- data
- starting
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000007613 environmental effect Effects 0.000 claims abstract description 17
- 238000004590 computer program Methods 0.000 claims description 11
- 230000003213 activating effect Effects 0.000 claims 1
- 238000002360 preparation method Methods 0.000 abstract description 5
- 238000005286 illumination Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 12
- 230000008569 process Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000009432 framing Methods 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000013075 data extraction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a starting method of a camera and a mobile terminal, wherein the mobile terminal is provided with the camera, the camera comprises a front camera and a rear camera, and the method comprises the following steps: when a camera application program is started, acquiring environmental state data of the mobile terminal; and starting the corresponding camera according to the environment state data. According to the embodiment of the invention, the corresponding camera can be automatically started according to the environmental state data of the mobile terminal, a user does not need to manually switch the camera, the shooting preparation time is shortened, and the user operation experience is improved.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a starting method of a camera and a mobile terminal.
Background
With the development of information technology, mobile terminals have more and more functions, such as a camera function. The camera of the mobile terminal is generally divided into a front camera and a rear camera, the front camera is mainly used for self-shooting, the rear camera is used for normally shooting, and due to the structural design, the appearance design and other reasons of the mobile terminal such as a mobile phone, the imaging effect of the rear camera is generally superior to that of the front camera.
At present, whether a front camera or a rear camera is started is realized by providing a button on an interface of a camera application program, a corresponding camera can be started according to the last using state, and if the user does not meet the expectation, the user needs to manually click to switch.
Disclosure of Invention
The embodiment of the invention provides a method for starting a camera, which aims to solve the problem that the camera cannot be automatically and correspondingly started according to the requirements of a user when a camera application program is started.
In order to solve the technical problem, the invention is realized as follows: a starting method of a camera is applied to a mobile terminal, the mobile terminal is provided with the camera, the camera comprises at least one camera, and the method comprises the following steps:
when a camera application program is started, acquiring environmental state data of the mobile terminal;
and starting the corresponding camera according to the environment state data.
In a first aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal has a camera, the camera includes at least one camera, and the mobile terminal includes:
the environment state data acquisition module is used for acquiring the environment state data of the mobile terminal when a camera application program is started;
and the camera starting module is used for starting the corresponding camera according to the environment state data.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the method for starting the camera.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for starting a camera described above are implemented.
When the camera application program of the mobile terminal is started, the environment state data of the mobile terminal is obtained, and the corresponding camera is started according to the environment state data. According to the embodiment of the invention, the corresponding camera can be automatically started according to the environmental state data of the mobile terminal, a user does not need to manually switch the camera, the shooting preparation time is shortened, and the user operation experience is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of an embodiment of a method for starting a camera according to the present invention;
fig. 2 is a flowchart illustrating steps of another embodiment of a method for starting a camera according to an embodiment of the present invention;
FIG. 3 is a flowchart of a normal startup of a camera application for shooting;
FIG. 4 is a flowchart of an embodiment of the present invention for starting a camera application for shooting;
fig. 5 is a block diagram of a mobile terminal apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for starting a camera according to an embodiment of the present invention is shown, and is applied to a mobile terminal, where the mobile terminal has a camera, and the camera includes a front camera and a rear camera, and the method specifically includes the following steps:
In a specific implementation, the embodiments of the present invention may be applied to a mobile terminal, for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device (such as a bracelet, glasses, a watch, and the like), and the like.
In the embodiment of the invention, the mobile terminal can be provided with a plurality of cameras, such as a front camera and a rear camera, and the imaging effect of the rear camera is generally better than that of the front camera. Of course, a front dual camera, a rear dual camera, and the like may also be used, and the embodiment of the present invention is not limited thereto.
When a camera application of the mobile terminal is started, environmental state data of the mobile terminal is acquired. The environment state data comprises current position data, walking track data, electronic compass data, first illumination brightness corresponding to a front camera viewing area, second illumination brightness corresponding to a rear camera viewing area and the like.
And 102, starting a corresponding camera according to the environment state data.
In the embodiment of the invention, the camera which is more in line with the requirement of the user at present is determined according to the environmental state data and is started, so that the user does not need to manually switch when starting the camera application program. For example, if it is determined that the user needs to start the front camera more according to the environmental status data, the front camera is started, and otherwise, the rear camera is started.
When the camera application program of the mobile terminal is started, the environment state data of the mobile terminal is obtained, and the corresponding camera is started according to the environment state data. According to the embodiment of the invention, the corresponding camera can be automatically started according to the environmental state data of the mobile terminal, a user does not need to manually switch the camera, the shooting preparation time is shortened, and the user operation experience is improved.
Referring to fig. 2, a flowchart illustrating steps of another embodiment of a method for starting a camera according to an embodiment of the present invention is shown, and is applied to a mobile terminal, where the mobile terminal has a camera, and the camera includes a front camera and a rear camera, and the method specifically includes the following steps:
In a normal process, when the camera application program is started, a default camera is started, or a corresponding camera is started according to the use state when the camera application program is quitted last time. In the embodiment of the invention, when the camera application program of the mobile terminal is started, the environment state data of the mobile terminal is acquired and is used for starting the corresponding camera according to the environment state data.
In a preferred embodiment of the present invention, the environment status data includes current position data, walking track data and electronic compass data, and the step 202 may include the following sub-steps:
judging whether the mobile terminal is within a preset geographic range or not according to the current position data; the preset geographic range is provided with a designated place;
if the mobile terminal is within a preset geographic range, determining whether a user faces the appointed place or not according to the walking track data and the electronic compass data;
when the user is determined to face the appointed place, starting the rear camera;
and starting the front camera when the user is determined to face away from the designated place.
In the embodiment of the invention, the current position data of a user is acquired, whether the mobile terminal is in a preset geographic range is judged according to the current position data, if yes, whether the user faces to a specified place in the preset geographic range is further determined according to walking track data and electronic compass data, when the user faces to the specified place, the rear camera can be started to shoot according to the condition that the user generally holds the mobile terminal, and otherwise, when the user faces away from the specified place, the front camera can be started to shoot according to the condition that the user generally holds the mobile terminal and the front camera generally faces to the specified place.
The preset geographic range may be an electronic fence, the electronic fence is a scenic spot area drawn on a map, and the specified location may be a scene in the scenic spot area. The embodiment of the invention can judge whether the user is in the scenic spot area according to the current position data of the user, if so, the walking track data of the user in the scenic spot area is further called, the electronic compass information of the mobile phone and the position information of each scenery in the scenic spot area are combined to comprehensively judge whether the user faces the scenery, and if so, the rear camera is opened. And if the back of the scenery is opposite to the scenery, opening the front camera.
For example, assume that a user enters a sight area and looks from the field door in the sight area to the west along the east-west direction. According to the position information of the scenery in the scenic spot area, a Buddha exists at a position 1 kilometer high in the north of the scenic path. And (3) taking the mobile phone out by the user to enter a camera application program, and pointing the electronic compass of the mobile phone to the north, wherein the mobile phone is positioned between the user and the Buddha image, and then directly switching to the rear camera. If the electronic compass points to the south, the mobile phone is moved to the edge side of the user and the Buddha, and then the mobile phone can be switched to the front camera to take self-shooting.
In a preferred embodiment of the present invention, the environment state data includes a first illumination brightness corresponding to a front camera viewing area, and a second illumination brightness corresponding to the rear camera viewing area is obtained, and the step 202 may include the following sub-steps:
when the first illumination brightness is larger than or equal to the second illumination brightness, starting the rear camera;
and when the first illumination brightness is smaller than the second illumination brightness, starting the front camera.
After the camera application program is started, the photosensitive sensor can be started to judge the illumination brightness of the viewing area of the front camera and the rear camera, and the side with better light can be automatically switched to use by comparing the two illumination brightness.
For example, suppose a user eats at a dim restaurant, the light around the table is poor, and the light on the table is good. The user takes out the mobile phone, and the rear camera is aligned with the dining table to prepare for shooting the table gourmet. After the camera application program is entered, the illumination brightness acquired through the photosensitive sensor shows that the light of the viewing area of the front camera is poor, the camera is automatically started to view the rear camera, and a user waits for shooting.
In a preferred embodiment of the present invention, the environmental status data includes first image data acquired by a front camera and second image data acquired by a rear camera, and the step 202 may include the following sub-steps:
extracting first image characteristic data from the first image data, and extracting second image characteristic data from the second image data;
comparing the first image characteristic data with a preset image database to determine the number of first similar images, and comparing the second image characteristic data with an on-line image database to determine the number of second similar images;
when the number of the second similar images is larger than or equal to the number of the first similar images, starting the rear camera;
and when the number of the second similar images is less than the number of the first similar images, starting the front camera.
When the camera application program is started, the front camera and the rear camera are started at the same time, images are collected by the two cameras respectively, image characteristic data are extracted from image data collected by the front camera and the rear camera respectively, and the image characteristic data can comprise characteristic data such as a head portrait, a tree, sky, ground and the like.
In the embodiment of the invention, the image characteristic data of the first image collected by the front camera is compared with the preset image database to determine the images similar to the first image collected by the front camera and count the number of the first similar images, and meanwhile, the image characteristic data of the second image collected by the rear camera is compared with the preset image database to determine the images similar to the second image collected by the rear camera and count the number of the second similar images.
When the number of the second similar images is larger than or equal to the number of the first similar images, the mobile phone user or most users prefer to shoot scenes such as sky, ground and the like, and then the rear camera can be started.
When the number of the second similar images is smaller than that of the first similar images, the mobile phone user or most users prefer to take a self-timer, and then the front-facing camera can be started.
In one example, the user opens the camera application, frames the images with the front camera and the rear camera to obtain the images, and at this time, the images can be matched with the online image database, and the tendency of using the front/rear camera is presumed according to the shooting habits of most users in the online image database, so that the switching is automatic. In addition, it is also possible to determine which camera to use for album data local to the user that has been categorized into tags.
For example, when a user lifts up a mobile phone and the rear camera is aligned with the sky, the front camera and the rear camera perform framing and imaging to obtain an image, the framing result of the rear camera is the sky and the white clouds, and the framing result of the front camera is the earth and the face. And performing feature extraction on the images of the front camera and the rear camera to obtain image feature data, comparing the image feature data with the big data of the user in the online image database, and if more users shoot sky cloudiness are found, considering that the user should tend to open the rear camera for shooting at present, and switching the camera to use the rear camera.
Similarly, if the preset image database is the local photo album of the user, and the local photo album mostly mainly includes landscapes and other object images, the user is considered not to be used for self-shooting, and the rear camera is automatically switched.
And 203, if a switching instruction of the camera is received, switching the camera according to the switching instruction.
In practical application, if it is possible that the currently-started camera is not the camera required by the user, a corresponding switching instruction may be generated according to the operation of the user, and the camera may be switched based on the switching instruction.
By applying the embodiment of the invention, the switching of the cameras can be automatically carried out, the operation of a user is simplified, and the operation experience of the user is improved.
In order that those skilled in the art may better understand the embodiments of the present invention, the advantages of the embodiments of the present invention will be described below using specific examples. Referring to fig. 3, a flowchart for a user to start a camera normally for shooting is described, but in the embodiment of the present invention, an automatic identification scheme is inserted on the basis of the above flowchart to identify the current environment of the user or the usage habits of the user, so as to start a camera that is currently most suitable for the user, so that after the user starts a camera application program, the intelligent switching between a front camera and a rear camera can be realized without manual operation of the user, and specifically, reference may be made to fig. 4.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 5, a block diagram of a mobile terminal according to an embodiment of the present invention is shown, where the mobile terminal has a camera, and the camera includes a front camera and a rear camera, and may specifically include the following modules:
an environment status data obtaining module 301, configured to obtain environment status data of the mobile terminal when a camera application is started;
and a camera starting module 302, configured to start a corresponding camera according to the environmental state data.
In a preferred embodiment of the present invention, the environment status data includes current position data, walking track data and electronic compass data, and the camera start module 302 includes:
the position judgment submodule is used for judging whether the mobile terminal is in a preset geographic range according to the current position data; the preset geographic range is provided with a designated place;
the appointed place facing sub-module is used for determining whether a user faces the appointed place or not according to the walking track data and the electronic compass data if the mobile terminal is within a preset geographic range;
the first starting submodule is used for starting the rear camera under the condition that the user is determined to face the appointed place;
and the second starting submodule is used for starting the front camera under the condition that the user is determined to face away from the specified place.
In a preferred embodiment of the present invention, the environment status data includes a first illumination brightness corresponding to the front camera view area and a second illumination brightness corresponding to the rear camera view area, and the camera startup module 302 includes:
the third starting sub-module is used for starting the rear camera when the first illumination brightness is larger than or equal to the second illumination brightness;
and the fourth starting submodule is used for starting the front camera when the first illumination brightness is smaller than the second illumination brightness.
In a preferred embodiment of the present invention, the environmental status data includes first image data acquired by a front camera and second image data acquired by a rear camera, and the camera activation module 302 includes:
the image characteristic data extraction submodule is used for extracting first image characteristic data from the first image data and extracting second image characteristic data from the second image data;
the similar image quantity counting submodule is used for comparing the first image characteristic data with a preset image database to determine the quantity of first similar images and comparing the second image characteristic data with an online image database to determine the quantity of second similar images;
the rear camera starting sub-module is used for starting the rear camera when the number of the second similar images is larger than or equal to the number of the first similar images;
and the front camera starting module is used for starting the front camera when the number of the second similar images is less than the number of the first similar images.
In a preferred embodiment of the present invention, the mobile terminal may further include:
and the camera switching module is used for switching the camera according to the switching instruction if the switching instruction of the camera is received.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
When the camera application program of the mobile terminal is started, the environment state data of the mobile terminal is obtained, and the corresponding camera is started according to the environment state data. According to the embodiment of the invention, the corresponding camera can be automatically started according to the environmental state data of the mobile terminal, a user does not need to manually switch the camera, the shooting preparation time is shortened, and the user operation experience is improved.
Fig. 6 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 70 includes, but is not limited to: radio frequency unit 71, network module 72, audio output unit 73, input unit 74, sensor 75, display unit 76, user input unit 77, interface unit 78, memory 79, processor 710, and power supply 711. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to obtain environment state data of the mobile terminal when a camera application is started; and starting the corresponding camera according to the environment state data.
When the camera application program of the mobile terminal is started, the environment state data of the mobile terminal is obtained, and the corresponding camera is started according to the environment state data. According to the embodiment of the invention, the corresponding camera can be automatically started according to the environmental state data of the mobile terminal, a user does not need to manually switch the camera, the shooting preparation time is shortened, and the user operation experience is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 71 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, the processor 710 is configured to receive downlink data from a base station and process the received downlink data; in addition, the uplink data is transmitted to the base station. Typically, the radio frequency unit 71 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 71 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user via the network module 72, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 73 may convert audio data received by the radio frequency unit 71 or the network module 72 or stored in the memory 79 into an audio signal and output as sound. Also, the audio output unit 73 may also provide audio output related to a specific function performed by the mobile terminal 70 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 73 includes a speaker, a buzzer, a receiver, and the like.
The input unit 74 is for receiving an audio or video signal. The input Unit 74 may include a Graphics Processing Unit (GPU) 741 and a microphone 742, and the Graphics processor 741 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 76. The image frames processed by the graphic processor 741 may be stored in the memory 79 (or other storage medium) or transmitted via the radio frequency unit 71 or the network module 72. The microphone 742 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 71 in case of the phone call mode.
The mobile terminal 70 also includes at least one sensor 75, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 761 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 761 and/or a backlight when the mobile terminal 70 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 75 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described in detail herein.
The display unit 76 is used to display information input by the user or information provided to the user. The Display unit 76 may include a Display panel 761, and the Display panel 761 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 77 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 77 includes a touch panel 771 and other input devices 772. The touch panel 771, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 771 (e.g., operations by a user on or near the touch panel 771 using a finger, stylus, or any suitable object or attachment). The touch panel 771 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 771 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 771, the user input unit 77 may also include other input devices 772. In particular, other input devices 772 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 771 may be overlaid on the display panel 761, and when the touch panel 771 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 761 according to the type of the touch event. Although the touch panel 771 and the display panel 761 are shown as two separate components in fig. 6 to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 771 and the display panel 761 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 78 is an interface for connecting an external device to the mobile terminal 70. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 78 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 70 or may be used to transmit data between the mobile terminal 70 and external devices.
The memory 79 may be used to store software programs as well as various data. The memory 79 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 79 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 79 and calling data stored in the memory 79, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The mobile terminal 70 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may be configured to manage charging, discharging, and power consumption.
In addition, the mobile terminal 70 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 710, a memory 79, and a computer program stored on the memory 79 and capable of running on the processor 710, where the computer program, when executed by the processor 710, implements each process of the above-mentioned camera starting method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned camera starting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (5)
1. A starting method of a camera is applied to a mobile terminal, the mobile terminal is provided with the camera, the camera comprises a front camera and a rear camera, and the method is characterized by comprising the following steps:
when a camera application program is started, acquiring environmental state data of the mobile terminal;
starting a corresponding camera according to the environment state data;
wherein, the environment state data include current position data, walking track data and electronic compass data, according to the corresponding camera of environment state data start-up, include:
judging whether the mobile terminal is within a preset geographic range or not according to the current position data; the preset geographic range is provided with a designated place;
if the mobile terminal is within a preset geographic range, determining whether a user faces the appointed place or not according to the walking track data and the electronic compass data;
when the user is determined to face the appointed place, starting the rear camera;
and starting the front camera when the user is determined to face away from the designated place.
2. The method of claim 1, further comprising:
and if a switching instruction of the camera is received, switching the camera according to the switching instruction.
3. The utility model provides a mobile terminal, mobile terminal has the camera, the camera includes leading camera and rear camera, its characterized in that, mobile terminal includes:
the environment state data acquisition module is used for acquiring the environment state data of the mobile terminal when a camera application program is started;
the camera starting module is used for starting a corresponding camera according to the environment state data;
wherein, environmental status data includes current position data, walking track data and electron compass data, camera start-up module includes:
the position judgment submodule is used for judging whether the mobile terminal is in a preset geographic range according to the current position data; the preset geographic range is provided with a designated place;
the appointed place facing sub-module is used for determining whether a user faces the appointed place or not according to the walking track data and the electronic compass data if the mobile terminal is within a preset geographic range;
the first starting submodule is used for starting the rear camera under the condition that the user is determined to face the appointed place;
and the second starting submodule is used for starting the front camera under the condition that the user is determined to face away from the specified place.
4. The mobile terminal of claim 3, wherein the mobile terminal further comprises:
and the camera switching module is used for switching the camera according to the switching instruction if the switching instruction of the camera is received.
5. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the method for activating a camera according to any one of claims 1 and 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910109944.5A CN109819168B (en) | 2019-01-31 | 2019-01-31 | Camera starting method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910109944.5A CN109819168B (en) | 2019-01-31 | 2019-01-31 | Camera starting method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109819168A CN109819168A (en) | 2019-05-28 |
CN109819168B true CN109819168B (en) | 2020-09-01 |
Family
ID=66606432
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910109944.5A Active CN109819168B (en) | 2019-01-31 | 2019-01-31 | Camera starting method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109819168B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113366819B (en) * | 2019-05-29 | 2022-08-16 | 深圳市欢太科技有限公司 | Camera starting method, related device, electronic equipment and storage medium |
CN112752012A (en) * | 2019-10-30 | 2021-05-04 | 珠海市魅族科技有限公司 | Camera starting method and device, electronic equipment and storage medium |
CN111917982B (en) * | 2020-08-06 | 2022-06-10 | Tcl通讯(宁波)有限公司 | Camera selection method and device, storage medium and mobile terminal |
CN112525340B (en) * | 2020-12-01 | 2021-12-14 | 珠海格力电器股份有限公司 | Method and device for acquiring light intensity value, storage medium and electronic equipment |
CN113840092B (en) * | 2021-11-25 | 2022-04-15 | 荣耀终端有限公司 | Camera switching method and electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002290806A (en) * | 2001-03-26 | 2002-10-04 | Minolta Co Ltd | Digital camera |
CN107105160A (en) * | 2017-04-25 | 2017-08-29 | 维沃移动通信有限公司 | A kind of method, system and mobile terminal for starting camera |
CN107517349A (en) * | 2017-09-07 | 2017-12-26 | 深圳支点电子智能科技有限公司 | Mobile terminal and Related product with camera function |
CN107613193A (en) * | 2017-08-24 | 2018-01-19 | 维沃移动通信有限公司 | A camera control method and mobile terminal |
CN108200337A (en) * | 2017-12-29 | 2018-06-22 | 广东欧珀移动通信有限公司 | photographing processing method, device, terminal and storage medium |
CN108197554A (en) * | 2017-12-28 | 2018-06-22 | 努比亚技术有限公司 | A kind of camera starts method, mobile terminal and computer readable storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104065930B (en) * | 2014-06-30 | 2017-07-07 | 青岛歌尔声学科技有限公司 | The vision householder method and device of integrated camera module and optical sensor |
CN208401903U (en) * | 2018-04-28 | 2019-01-18 | Oppo广东移动通信有限公司 | Mobile terminal |
CN108769541A (en) * | 2018-09-03 | 2018-11-06 | 信利光电股份有限公司 | A kind of control method of camera, device, equipment and storage medium |
-
2019
- 2019-01-31 CN CN201910109944.5A patent/CN109819168B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002290806A (en) * | 2001-03-26 | 2002-10-04 | Minolta Co Ltd | Digital camera |
CN107105160A (en) * | 2017-04-25 | 2017-08-29 | 维沃移动通信有限公司 | A kind of method, system and mobile terminal for starting camera |
CN107613193A (en) * | 2017-08-24 | 2018-01-19 | 维沃移动通信有限公司 | A camera control method and mobile terminal |
CN107517349A (en) * | 2017-09-07 | 2017-12-26 | 深圳支点电子智能科技有限公司 | Mobile terminal and Related product with camera function |
CN108197554A (en) * | 2017-12-28 | 2018-06-22 | 努比亚技术有限公司 | A kind of camera starts method, mobile terminal and computer readable storage medium |
CN108200337A (en) * | 2017-12-29 | 2018-06-22 | 广东欧珀移动通信有限公司 | photographing processing method, device, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109819168A (en) | 2019-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108668083B (en) | Photographing method and terminal | |
CN108848308B (en) | Shooting method and mobile terminal | |
CN110740259B (en) | Video processing method and electronic equipment | |
CN109819168B (en) | Camera starting method and mobile terminal | |
US11451706B2 (en) | Photographing method and mobile terminal | |
CN107786817B (en) | A kind of photographic method and mobile terminal | |
CN107943374B (en) | Method for starting application program in foldable terminal and foldable terminal | |
CN109005286B (en) | Display control method and folding screen terminal | |
CN111416940A (en) | Shooting parameter processing method and electronic equipment | |
CN108174103B (en) | Shooting prompting method and mobile terminal | |
CN109639969B (en) | Image processing method, terminal and server | |
CN108182271B (en) | Photographing method, terminal and computer readable storage medium | |
CN111026316A (en) | Image display method and electronic equipment | |
CN108174109B (en) | Photographing method and mobile terminal | |
CN109922294B (en) | Video processing method and mobile terminal | |
CN107592467A (en) | A kind of image pickup method and mobile terminal | |
CN108833709A (en) | Method for starting camera and mobile terminal | |
CN109618218B (en) | Video processing method and mobile terminal | |
CN110798621A (en) | Image processing method and electronic equipment | |
CN108984143B (en) | Display control method and terminal equipment | |
CN108174110B (en) | Photographing method and flexible screen terminal | |
CN110602387B (en) | Shooting method and electronic equipment | |
CN108924413B (en) | Shooting method and mobile terminal | |
CN111064888A (en) | Prompting method and electronic equipment | |
CN110865752A (en) | Photo viewing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |