Control method, control device, computer readable storage medium and mobile terminal
By using water environment sensors and camera systems in mobile terminals, combined with water environment-camera parameter database, the camera parameters are automatically adjusted, and the problem of poor quality underwater photos is solved and high-quality underwater shooting effects are achieved.
Patent Information
- Application Number
- CN202210443632.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-25
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-04-25
AI Technical Summary
When shooting underwater, the shooting environment of existing mobile phones is different from those on water, resulting in poor quality of photos and the inability to effectively adjust camera parameters to improve imaging quality.
The mobile terminal is equipped with water environment sensors and camera systems, and the camera parameters are determined through the water environment-camera parameter database, and the camera parameters are automatically adjusted to adapt to the underwater environment, including exposure compensation, focus and filter parameters optimization.
Improve the imaging quality of underwater shooting, ensuring that users can obtain clear and bright photos when shooting underwater, and enhance the user experience.
Smart Images

Figure CN114827468B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of imaging technology, and in particular to a control method, a control device, a computer-readable storage medium and a mobile terminal. Background Art
[0002] Currently, some mobile phones are waterproof, and users can use their phones to take photos and record videos underwater. However, when users enter the underwater shooting environment, the shooting environment is very different from that above water, and the quality of the photos taken by applying the camera's above water parameters is poor. Summary of the invention
[0003] Embodiments of the present application provide a control method, a control device, a computer-readable storage medium, and a mobile terminal.
[0004] The control method of the embodiment of the present application is applied to a mobile terminal. The mobile terminal includes a water environment sensor and a camera system. The mobile terminal can operate in an underwater mode. The control method includes: in the underwater mode, turning on the camera system in response to user input; searching for camera parameters corresponding to the current sensor signal output by the water environment sensor in a water environment-camera parameter database; and applying the camera parameters to the camera system.
[0005] The control device of the embodiment of the present application includes a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor executes the control method of any of the above embodiments.
[0006] The computer-readable storage medium of the embodiment of the present application stores a computer program thereon, and when the program is executed by a processor, the control method of any of the above-mentioned embodiments is implemented.
[0007] The mobile terminal of the embodiment of the present application includes a water environment sensor, a camera system and a processor. The mobile terminal can work in an underwater mode. The processor is used to: in the underwater mode, in response to user input, turn on the camera system; search for camera parameters corresponding to the current sensor signal output by the water environment sensor in a water environment-camera parameter database; and apply the camera parameters to the camera system.
[0008] The control method, control device, computer-readable storage medium and mobile terminal of the implementation mode of the present application can determine the camera parameters through the current sensor signal and the water environment-camera parameter database when in underwater mode, thereby ensuring the imaging quality and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0010] Figure 1 is a flow chart of a control method of certain embodiments of the present application;
[0011] Figure 2 and Figure 3 is a schematic diagram of a mobile terminal according to some embodiments of the present application;
[0012] Figures 4 to 9 is a flow chart of a control method of certain embodiments of the present application;
[0013] Fig.10 is a schematic diagram of a control device of certain embodiments of the present application;
[0014] Fig.11 It is a connection diagram of a mobile terminal and a computer-readable storage medium according to an embodiment of the present application. DETAILED DESCRIPTION
[0015] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0016] See also Figure 1 The present application discloses a control method, which is applied to a mobile terminal 100, characterized in that the mobile terminal 100 includes a water environment sensor 10 and a camera system 20, and the mobile terminal 100 can work in an underwater mode. The control method includes:
[0017] 01: In underwater mode, the camera system 20 is turned on in response to user input;
[0018] 02: Searching for camera parameters corresponding to the current sensor signal output by the water environment sensor 10 in the water environment-camera parameter database;
[0019] 03: Apply camera parameters to the camera system 20.
[0020] Please also read Figure 2 and Figure 3, the present application discloses a mobile terminal 100. The mobile terminal 100 includes a water environment sensor 10, a camera system 20 and a processor 30, and the mobile terminal 100 can work in an underwater mode. The control method of the embodiment of the present application can be implemented by the mobile terminal 100 of the embodiment of the present application. Among them, step 01, step 02 and step 03 can all be implemented by the processor 30. That is to say, the processor 30 is used to: in the underwater mode, turn on the camera system 20 in response to user input; search for camera parameters corresponding to the current sensor signal output by the water environment sensor 10 in the water environment-camera parameter database; apply the camera parameters to the camera system 20.
[0021] The control method and mobile terminal 100 of the implementation mode of the present application can determine the camera parameters through the current sensor signal and the water environment-camera parameter database when in underwater mode, thereby ensuring the imaging quality and improving the user experience.
[0022] Specifically, the user can use the mobile terminal 100 underwater. In one embodiment, the mobile terminal 100 can include multiple working modes, such as a land mode and an underwater mode, and the mobile terminal 100 can automatically switch the working mode. The water environment sensor 10 can be always in an on state to obtain environmental information and determine whether the mobile terminal 100 is underwater. If it is recognized that the current environment changes from land to underwater, the mobile terminal 100 can be automatically switched from the land mode to the underwater mode, which can facilitate the user to use the mobile terminal 100 underwater.
[0023] Please refer again Figure 2 and Figure 3 , the user can use the mobile terminal 100 to take photos and videos underwater. The camera system 20 includes a camera, which can be set on the front of the mobile terminal 100, so that the user can use the camera to take selfies underwater. The camera can also be set on the back of the mobile terminal 100, so that the user can use the camera to shoot scenes underwater. The camera system 20 can also include two cameras, which are respectively set on the front and back, which is not limited here.
[0024] When the user uses the mobile terminal 100 underwater, the mobile terminal 100 enters the underwater mode, and the user can trigger the shooting virtual key or press the shooting button to turn on the camera system 20. The water environment sensor 10 can output a current sensor signal, and the current sensor signal can be used to search for camera parameters corresponding to the current sensor signal in the water environment-camera parameter database, and then apply the camera parameters to the camera system 20.
[0025] In this way, the current sensor signal can be obtained in real time by using the water environment sensor 10, and the current sensor signal can reflect the current shooting environment. Generating suitable camera parameters in combination with the current shooting environment to adjust the camera system 20 can improve the image quality of underwater shooting, and facilitate users to complete underwater shooting actions easily and quickly.
[0026] In some embodiments, the water environment-camera parameter database includes a mapping relationship between a calibration sensor signal and a calibration camera parameter. In this way, the current sensor signal can be compared with the calibration sensor signal to find the same or closest calibration sensor signal. The calibration sensor signal corresponds to the calibration camera parameter, and the calibration camera parameter corresponding to the current sensor signal can be obtained, and then the calibration camera parameter can be used as the camera parameter to apply to the camera system 20. In this way, the camera parameters can be adjusted according to the underwater environment. By setting the mapping relationship in the water environment-camera parameter database, the speed of generating camera parameters can be increased, and the image quality of underwater shooting can be improved.
[0027] In some embodiments, the water environment-camera parameter database includes a variety of algorithms, for example, the water environment-camera parameter database includes an exposure compensation algorithm. The water environment sensor 10 can output a current sensor signal, and the current sensor signal includes a current ambient light signal. The current ambient light signal can be analyzed to obtain the current ambient light information, and then the current ambient light information and the exposure compensation algorithm in the water environment-camera parameter database are used to calculate the exposure parameters, and finally the exposure parameters are applied to the camera system 20. In this way, if the current ambient light is dim, appropriate exposure parameters can be obtained according to the current ambient light information and the exposure compensation algorithm. After the camera system 20 is adjusted by applying the exposure parameters, the captured picture can be made brighter, the imaging quality of underwater shooting can be improved, and the visual effect can be guaranteed.
[0028] See also Figure 4In some embodiments, the water environment sensor 10 includes a temperature sensor, an air pressure sensor, and an ambient light sensor. The processor 30 can combine the signals generated by the three sensors and use the water environment-camera parameter database to determine whether the mobile terminal 100 is switched to the underwater mode. The water environment-camera parameter database can store data sets in each mode to determine the current working mode, and can also store data sets for the underwater mode and combine the signals generated by the three sensors to determine whether it is the underwater mode. If it is determined that the mobile terminal 100 is not in the water, the mobile terminal 100 can be kept in the land mode; if it is determined that the mobile terminal 100 is in the water, the mobile terminal 100 can be switched to the underwater mode. When the mobile terminal 100 is switched to the underwater mode, the camera system 20 can automatically turn on the photo-taking function, and the image signal processing unit of the camera system 20 can be prepared according to the signals output by the three sensors. In this way, underwater shooting can be achieved simply and quickly, and the optimal camera parameters can be output according to the signals output by the three sensors to improve the imaging quality of underwater shooting.
[0029] It is worth mentioning that in some embodiments, the mobile terminal 100 includes not only a land mode and an underwater mode, but also a day mode, a night mode, a sports mode, etc., which are not limited here. The mobile terminal 100 can be used to shoot in different modes. In this way, the working mode of the mobile terminal 100 can be switched, and shooting in different modes can improve the fun of shooting and improve the user experience.
[0030] See also Figure 5 In some embodiments, the water environment sensor 10 includes an ambient light sensor and a gyroscope, the camera parameters include focus parameters, and step 02 includes:
[0031] 021: Use the ambient light sensor to obtain the current ambient light value;
[0032] 022: Use the gyroscope to obtain the current angular velocity to obtain the jitter value;
[0033] 023: Search for focus parameters corresponding to the current ambient light value and jitter value in the water environment-camera parameter database.
[0034] In some embodiments, the control method of the embodiment of the present application can be implemented by the mobile terminal 100 of the embodiment of the present application. The mobile terminal 100 includes a water environment sensor 10, the water environment sensor 10 includes an ambient light sensor and a gyroscope, and the camera parameters include focus parameters. Step 021, step 022 and step 023 can all be implemented by the processor 30. That is, the processor 30 is used to: obtain the current ambient light value using the ambient light sensor; obtain the current angular velocity using the gyroscope to obtain the jitter value; and search for the focus parameter corresponding to the current ambient light value and the jitter value in the water environment-camera parameter database.
[0035] In the related art, it is difficult to focus when shooting underwater due to insufficient underwater light intensity, the movement of the user relative to the water, and the flow of the water itself. The present application can obtain the current ambient light value through the ambient light sensor, and use the gyroscope to obtain the current angular velocity to obtain the jitter value. The water environment-camera parameter database includes a mapping relationship between calibrated ambient light values and calibrated jitter values and calibrated focus parameters. In this way, the current ambient light value can be used to find the corresponding calibrated ambient light value, and the jitter value can be used to find the corresponding calibrated jitter value, and then the calibrated ambient light value and calibrated jitter value found can be used to determine the calibrated focus parameters. The calibrated focus parameters are applied to the camera system 20 as focus parameters. In this way, precise focus can be achieved during underwater shooting, improving the image quality of underwater shooting.
[0036] In some embodiments, the environment-touch database may include a pre-trained focus learning model. The ambient light value may include a water flow refraction light value and an ambient light and dark value. The pre-trained focus learning model may be obtained by pre-training a training set based on the three values of the pre-water flow refraction light value, the pre-ambient light and dark value, and the pre-jitter value. The focus learning model may be used to calculate the focus parameters corresponding to the current ambient light value and the jitter value. In this way, precise focus can be achieved during underwater shooting, thereby improving the image quality of underwater shooting.
[0037] See also Figure 6 In one embodiment, when a user enters the water with the mobile terminal 100, the mobile terminal 100 can be switched to the underwater mode, and the camera system 20 is turned on. The user can pre-set underwater shooting shortcut keys, which include user-defined image / video switching keys and quick shooting keys, so that the user can shoot underwater easily. After the system 20 is turned on, camera parameters can be generated according to the information of the ambient light sensor, the air pressure sensor and the gyroscope, and the camera parameters include focus parameters. The camera parameters are then applied to the camera system 20, for example: turning on the flash of the camera system 20 according to the camera parameters, controlling the image signal processing unit to process the picture according to the camera parameters, turning on the OIS optical image stabilization according to the camera parameters, turning on the exposure compensation according to the camera parameters, and realizing the automatic focus according to the camera parameters, etc., which are not limited here.
[0038] See also Figure 7 In some embodiments, the water environment sensor 10 includes an ambient light sensor, the camera parameters include filter parameters, and step 02 includes:
[0039] 024: Use the ambient light sensor to obtain the current color value and transmittance value;
[0040] 025: Search for filter parameters corresponding to the current color value and transmittance value in the water environment-camera parameter database.
[0041] In some embodiments, the control method of the embodiment of the present application can be implemented by the mobile terminal 100 of the embodiment of the present application. The mobile terminal 100 includes a water environment sensor 10, the water environment sensor 10 includes an ambient light sensor, and the camera parameters include filter parameters. Step 024 and step 025 can both be implemented by the processor 30. That is, the processor 30 is used to: obtain the current color value and transmittance value using the ambient light sensor; and search for filter parameters corresponding to the current color value and transmittance value in the water environment-camera parameter database.
[0042] Specifically, when shooting underwater, as the underwater depth increases, the red, orange and yellow spectrum in sunlight is absorbed by water, which will cause the color of the picture taken by the user to be poor or even blurred. Therefore, filter parameters that meet the current shooting environment are generated, and the filter parameters are applied to the camera system 20, which can restore the true color of the picture, make the picture clearer, and improve the imaging quality. The ambient light sensor can obtain the current color value and transmittance value. The water environment-camera parameter database includes a mapping relationship between the calibrated color value and the calibrated transmittance value and the calibrated filter parameter. In this way, the current color value can be used to find the corresponding calibrated color value, and the transmittance value can be used to find the corresponding calibrated transmittance value, and then the calibrated color value and calibrated transmittance value can be used to determine the calibrated filter parameters. The calibrated filter parameters are used as filter parameters and applied to the camera system 20. In this way, the true color of the picture can be restored when shooting underwater, making the picture clearer and improving the imaging quality.
[0043] Please refer again Figure 6 In some embodiments, due to the different water qualities in different regions, the water permeability is also different. Therefore, when shooting underwater with poor permeability, filter parameters can be generated, and the filter parameters are used to perform de-fogging and filter processing on the captured image to make the image clearer. Filter parameters are also generated to perform filter processing on the captured image to optimize the captured image. The filter processing includes but is not limited to color contrast processing, image light and dark contrast processing, depth of field processing, etc. When shooting underwater, the user can turn on the camera system 20 to use filter processing, and the mobile terminal 100 can implement filter processing on the image during real-time shooting; the user can also save the captured pixels when shooting, and select filter processing later, which is not limited here.
[0044] See also Figure 8 In some implementations, the mobile terminal 100 includes a touch screen, and the control method further includes:
[0045] 041: In underwater mode, get the current touch signal;
[0046] 042: Searching for touch setting parameters corresponding to the current touch signal in the water environment-touch database;
[0047] 043: Apply touch setting parameters to the touch screen.
[0048] In some embodiments, the control method of the embodiment of the present application can be implemented by the mobile terminal 100 of the embodiment of the present application. The mobile terminal 100 includes a touch screen. Step 041, step 042 and step 043 can all be implemented by the processor 30. That is, the processor 30 is used to: in the underwater mode, obtain the current touch signal; search for the touch setting parameters corresponding to the current touch signal in the water environment-touch database; and apply the touch setting parameters to the touch screen.
[0049] In one embodiment, the touch screen includes a capacitive screen. When a user touches the capacitive screen, a touch signal is generated in the touched area of the capacitive screen, and the touch signal includes a capacitance value signal. When the capacitive screen is used in the land mode, the generated capacitance value signal is usually within the capacitance value signal range, and the corresponding touch operation can be achieved within the capacitance value signal range. However, when the user enters the water and uses the mobile terminal 100, the capacitive screen will recognize the pressure change caused by the water flow as a touch signal, which causes the user to touch the capacitive screen with his hand, which is prone to insensitivity or even failure to touch. The mobile terminal 100 of the embodiment of the present application can be switched to an underwater mode. In the underwater mode, the user touches the touch screen to generate a current touch signal, and the corresponding touch setting parameters can be found in the water environment-touch database according to the current touch signal. Finally, the touch setting parameters are applied to the touch screen, so that the effect of identifying the user touching the touch screen underwater can be achieved, preventing the touch from being insensitive and avoiding the touch from being unresponsive.
[0050] Specifically, the water environment-touch database may include a pre-trained deep learning model, which may be trained with samples of three basic scenarios: pre-land mode touch signals, pre-simple water flow pressure change signals, and pre-underwater mode touch signals. In this way, the touch setting parameters can be obtained using the current touch signal and the pre-trained deep learning model, and the touch setting parameters are applied to the touch screen to ensure the effect of underwater touch screen, ensure that the user can use the mobile terminal 100 normally when underwater, and the user can use the camera system 20 to shoot by touch.
[0051] Please refer again Figure 6 In some embodiments, when the user holds the mobile terminal 100 and enters the water, the mobile terminal 100 can automatically switch to the underwater mode. The user touches any position of the touch screen of the mobile terminal to obtain the current touch signal, generate touch setting parameters, and apply them to the touch screen, so that the touch screen enters the underwater touch mode. In this way, the camera system 20 can be turned on by touch, meeting the user's usage needs and improving the user's usage experience.
[0052] See also Fig. 9 In some embodiments, the water environment sensor 10 includes a temperature sensor, an air pressure sensor, and an ambient light sensor, and the control method includes:
[0053] 051: Use the temperature sensor to obtain the current temperature value;
[0054] 052: Use the air pressure sensor to obtain the current air pressure value;
[0055] 053: Use the ambient light sensor to obtain the current ambient light value;
[0056] 054: When the current temperature value falls within a predetermined temperature range, the current air pressure value falls within a predetermined air pressure range, and the current ambient light value falls within a predetermined ambient light range, it is determined that the mobile terminal 100 is operating in the underwater mode.
[0057] In some embodiments, the control method of the embodiment of the present application can be implemented by the mobile terminal 100 of the embodiment of the present application. The mobile terminal 100 includes a water environment sensor 10, and the water environment sensor 10 includes a temperature sensor, an air pressure sensor, and an ambient light sensor. Step 051, step 052, step 053, and step 054 can all be implemented by the processor 30. That is, the processor 30 is used to: obtain the current temperature value using the temperature sensor; obtain the current air pressure value using the air pressure sensor; obtain the current ambient light value using the ambient light sensor; when the current temperature value falls within a predetermined temperature range, when the current air pressure value falls within a predetermined air pressure range, and when the current ambient light value falls within a predetermined ambient light range, determine that the mobile terminal 100 is working in underwater mode.
[0058] Please refer again Figure 4 In some embodiments, the mobile terminal 100 includes a preset database. The current temperature value, the current air pressure value, and the current ambient light value can be obtained, and then the pre-stored data in the preset database can be used to determine whether the mobile terminal 100 is working in the underwater mode. The preset database stores a data set of the underwater mode, and the data set includes a predetermined temperature range, a predetermined air pressure range, and a predetermined ambient light range. The predetermined temperature range, the predetermined air pressure range, and the predetermined ambient light range can be data obtained after multiple experimental analyses. When the current temperature value falls within the predetermined temperature range, when the current air pressure value falls within the predetermined air pressure range, and when the current ambient light value falls within the predetermined ambient light range, it can be determined that the mobile terminal 100 is working in the underwater mode.
[0059] The current temperature value is obtained by a temperature sensor. In one embodiment, in summer, the temperature value obtained on land is usually higher than the temperature value obtained underwater. For example, taking seawater as an example, the temperature value obtained on land in summer can be 25°C, and the temperature value obtained underwater can be 19°C. In winter, the temperature value obtained on land is usually lower than the temperature value obtained underwater. For example, taking seawater as an example, the temperature value obtained on land in winter can be -10°C. At this time, the seawater is in a state of ice-water mixture, and the temperature value obtained underwater can be 0°C. It can be seen that when the land mode is converted to the underwater mode, the temperature value obtained by the temperature sensor will change. It is worth mentioning that in the same water area, the temperature value in shallow water is different from the temperature value in deep water.
[0060] The current air pressure value is obtained through the air pressure sensor. The underwater air pressure value is different from the land air pressure value. When the land mode is converted to the underwater mode, the air pressure value obtained by the air pressure sensor will change. It is worth mentioning that in the same water area, the air pressure value in deep water is different from that in shallow water. Therefore, the air pressure sensor can also detect the water depth.
[0061] The current ambient light value is obtained through the ambient light sensor. Water is a transparent medium, but the ambient light is constantly absorbed and weakened when it propagates in water, so the underwater ambient light value is different from the land ambient light value. And because of the different water depths, the ambient light value is also different; the ambient light value is also different due to the different clarity of the water.
[0062] In this way, it can be determined that the mobile terminal 100 is operating in the underwater mode in combination with the current temperature value, the current air pressure value and the current ambient light value.
[0063] When it is determined that the mobile terminal 100 is working in underwater mode, the current underwater conditions can be preliminarily determined by using the air pressure sensor to obtain the current air pressure value and the ambient light sensor to obtain the current ambient light value. For example, the air pressure value at a depth of 1 meter is different from that at a depth of 10 meters, so the water depth can be accurately determined by the current air pressure value; the water clarity can be determined by combining the water depth and the current ambient light value. This makes it easy to generate camera parameters, ensure imaging quality, and improve user experience.
[0064] Please also read Figure 1 and Fig.10 The present application discloses a control device 200, which includes a memory 220 and a processor 240. The memory 220 stores a computer program. When the computer program is executed by the processor 240, the processor 240 executes the control method of any of the above-mentioned embodiments of the present application. For example, the computer program is used to execute the following control method:
[0065] 01: In underwater mode, the camera system 20 is turned on in response to user input;
[0066] 02: Searching for camera parameters corresponding to the current sensor signal output by the water environment sensor 10 in the water environment-camera parameter database;
[0067] 03: Apply camera parameters to the camera system 20.
[0068] Please also read Figure 1 and Fig.11 The present application discloses a computer-readable storage medium 300 on which a computer program is stored. When the program is executed by the processor 240, the control method of any of the above embodiments is implemented. For example, the mobile terminal 100 can be executed by the processor 240 to complete the following control method:
[0069] 01: In underwater mode, the camera system 20 is turned on in response to user input;
[0070] 02: Searching for camera parameters corresponding to the current sensor signal output by the water environment sensor 10 in the water environment-camera parameter database;
[0071] 03: Apply camera parameters to the camera system 20.
[0072] like Fig.11 As shown, the control method of the embodiment of the present application can be implemented by the mobile terminal 100 of the embodiment of the present application. It should be noted that the computer-readable storage medium 300 can be a storage medium built in the mobile terminal 100, or a storage medium that can be plugged into the mobile terminal 100.
[0073] In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0074] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0075] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0076] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0077] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0078] It should be understood that the various parts of the embodiments of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0079] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0080] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0081] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0082] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above implementation methods within the scope of the present application.
Claims
1. A control method, applied to a mobile terminal, characterized in that: The mobile terminal includes a water environment sensor and a camera system, the mobile terminal works in an underwater mode, the water environment sensor includes an ambient light sensor and a gyroscope, and the control method includes: In the underwater mode, turning on the camera system in response to a user input; searching a water environment-camera parameter database for camera parameters corresponding to a current sensor signal output by the water environment sensor; and applying the camera parameters to the camera system; The camera parameters include focus parameters, and the step of searching the water environment-camera parameter database for camera parameters corresponding to the current sensor signal output by the water environment sensor includes: Using the ambient light sensor to obtain the current ambient light value; Using the gyroscope to obtain the current angular velocity to obtain a jitter value; The focus parameter corresponding to the current ambient light value and the jitter value is searched in a water environment-camera parameter database.
2. The control method according to claim 1, characterized in that: The water environment sensor includes an ambient light sensor, the camera parameters include filter parameters, and the step of searching the water environment-camera parameter database for camera parameters corresponding to the current sensor signal output by the water environment sensor includes: Using the ambient light sensor to obtain the current color value and transmittance value; The filter parameter corresponding to the current color value and the transmittance value is searched in the water environment-camera parameter database.
3. The control method according to claim 1, characterized in that: The mobile terminal includes a touch screen, and the control method further includes: In the underwater mode, obtaining a current touch signal; Searching for a touch setting parameter corresponding to the current touch signal in a water environment-touch database; Apply the touch setting parameters to the touch screen.
4. The control method according to claim 1, characterized in that: The water environment sensor includes a temperature sensor, an air pressure sensor and an ambient light sensor, and the control method includes: Using the temperature sensor to obtain the current temperature value; Using the air pressure sensor to obtain the current air pressure value; Using the ambient light sensor to obtain the current ambient light value; When the current temperature value falls within a predetermined temperature range, the current air pressure value falls within a predetermined air pressure range, and the current ambient light value falls within a predetermined ambient light range, it is determined that the mobile terminal operates in the underwater mode.
5. A control device, characterized in that: The control device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the control method according to any one of claims 1 to 4 is implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the control method described in any one of claims 1 to 4 is implemented.
7. A mobile terminal, characterized in that: The mobile terminal comprises a water environment sensor, a camera system and a processor, the mobile terminal operates in an underwater mode, the water environment sensor comprises an ambient light sensor and a gyroscope, and the processor is used for: In the underwater mode, turning on the camera system in response to a user input; searching a water environment-camera parameter database for camera parameters corresponding to a current sensor signal output by the water environment sensor; and applying the camera parameters to the camera system; Wherein, the camera parameters include focus parameters, and the processor is further configured to: Using the ambient light sensor to obtain the current ambient light value; Using the gyroscope to obtain the current angular velocity to obtain a jitter value; The focus parameter corresponding to the current ambient light value and the jitter value is searched in a water environment-camera parameter database.
8. The mobile terminal according to claim 7, characterized in that: The water environment sensor includes an ambient light sensor, the camera parameters include filter parameters, and the processor is used for: Using the ambient light sensor to obtain the current color value and transmittance value; The filter parameter corresponding to the current color value and the transmittance value is searched in the water environment-camera parameter database.
9. The mobile terminal according to claim 7, characterized in that: The mobile terminal includes a touch screen, and the processor is used for: In the underwater mode, obtaining a current touch signal; Searching for a touch setting parameter corresponding to the current touch signal in a water environment-touch database; Apply the touch setting parameters to the touch screen.
10. The mobile terminal according to claim 7, characterized in that: The water environment sensor includes a temperature sensor, an air pressure sensor and an ambient light sensor, and the processor is further used for: Using the temperature sensor to obtain the current temperature value; Using the air pressure sensor to obtain the current air pressure value; Using the ambient light sensor to obtain the current ambient light value; When the current temperature value falls within a predetermined temperature range, the current air pressure value falls within a predetermined air pressure range, and the current ambient light value falls within a predetermined ambient light range, it is determined that the mobile terminal operates in the underwater mode.
