Shooting control method and device, electronic equipment, storage medium and program product
By obtaining shooting instructions in the optical fingerprint recognition area of the touch display of the smartphone, the problem that the smartphone cannot shoot underwater is solved, and the flexibility of underwater shooting is achieved and the feasibility of shooting scenes is expanded.
Patent Information
- Application Number
- CN202411191525.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-27
AI Technical Summary
Smartphones cannot capture underwater scenes normally underwater because the conductor characteristics of the water cause the capacitive signal on the entire surface of the capacitive touch display to change, and the touch position of the finger cannot be detected, limiting the flexibility of shooting control.
By acquiring shooting instructions in the optical fingerprint recognition area of the touch display screen, underwater shooting is realized, using the optical fingerprint recognition area to detect the user's touch position, and controlling the target shooting component to take pictures or videos.
It improves the flexibility of shooting control, allows images or videos to be taken underwater, solves the problem that smartphones cannot be used normally underwater, and expands the feasibility of shooting scenes.
Smart Images

Figure CN119211700A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of shooting control technology, and in particular to a shooting control method, device, electronic device, storage medium and program product. Background Art
[0002] Currently, smartphones all use capacitive touch screens. The principle of capacitive touch screens detecting touch positions is as follows: when a conductor such as a user's finger touches the capacitive touch screen, the smartphone detects changes in the capacitance signal to determine the touch position.
[0003] By detecting the touch position, the smartphone can be controlled. For example, after the camera is started, it detects that the shutter button displayed on the capacitive touch display is clicked, which triggers the smartphone to shoot. However, this shooting control method has the problem of poor flexibility. Summary of the invention
[0004] Based on this, it is necessary to provide a shooting control method, device, electronic device, storage medium and program product to address the above technical problems, which can improve the flexibility of shooting control.
[0005] In a first aspect, the present application provides a shooting control method, comprising:
[0006] When it is detected that a touch screen display of an electronic device enters water and a target shooting component of the electronic device is started, obtaining a shooting instruction through an optical fingerprint recognition area on the touch screen display;
[0007] In response to the shooting instruction, the target shooting component is controlled to perform image shooting or video shooting.
[0008] In a second aspect, the present application further provides a shooting control device, comprising:
[0009] An acquisition module, configured to acquire a shooting instruction through an optical fingerprint recognition area on the touch display screen of the electronic device when it is detected that the touch display screen of the electronic device enters water and a target shooting component of the electronic device is started;
[0010] The control module is used to control the target shooting component to perform image shooting or video shooting in response to the shooting instruction.
[0011] In a third aspect, the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented.
[0012] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect above are implemented.
[0013] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect above.
[0014] The shooting control method, device, electronic device, storage medium and program product described above, when detecting that the touch display screen of the electronic device enters water and the target shooting component of the electronic device is started, obtains the shooting instruction through the optical fingerprint recognition area on the touch display screen, and then, in response to the shooting instruction, controls the target shooting component to shoot images or videos. The touch display screen may be a capacitive touch display screen. Taking the electronic device as a smart phone as an example, based on the position detection principle of the capacitive touch display screen, once the smart phone enters water, the user cannot normally touch the operation controls on the touch display screen (such as the shutter control corresponding to the camera, etc.). This is because the characteristics of water itself as a conductor will cause the capacitance signal of the entire touch display screen to change (increase), thereby The change in the capacitance signal caused by the user's finger touching the screen will be submerged, resulting in the inability to detect the touch position of the finger. Therefore, the user cannot use the relevant functions of the smartphone normally underwater. For example, the user cannot use the smartphone to shoot underwater scenes while diving, and cannot put the smartphone into a stream to shoot underwater scenes, etc., but can only use the smartphone to shoot in the air. The shooting method is relatively limited, and the flexibility of shooting control is poor. In the embodiment of the present application, after the touch display screen of the electronic device enters the water, when it is necessary to shoot images or videos, the shooting instruction can be obtained by using the optical fingerprint recognition area on the touch display screen. For example, the user's touch position can be detected by the optical fingerprint recognition area, thereby realizing underwater shooting and improving the flexibility of shooting control. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 is a flow chart of a shooting control method in one embodiment;
[0017] Figure 2 A schematic diagram of a process of an electronic device detecting whether a touch display screen has entered water in another embodiment;
[0018] Figure 3 A schematic diagram of the change of the capacitance signal of the entire touch screen when the electronic device is gradually immersed in water;
[0019] Figure 4 A schematic diagram of a process of an electronic device detecting whether a touch display screen has entered water in another embodiment;
[0020] Figure 5 is a flow chart of a shooting control method in another embodiment;
[0021] Figure 6 It is a schematic diagram of a process of an electronic device obtaining a shooting instruction through an optical fingerprint recognition area in another embodiment;
[0022] Figure 7 is a flow chart of a shooting control method in another embodiment;
[0023] Figure 8 is a structural block diagram of a shooting control device in one embodiment;
[0024] Fig. 9 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0026] Currently, smartphones all use capacitive touch screens. The principle of capacitive touch screens detecting touch positions is: when a conductor such as a user's finger touches the capacitive touch screen, changes in the capacitance signal are detected to determine the touch position.
[0027] By detecting the touch position, the electronic device can be controlled. For example, after the camera is started, it detects that the shutter button displayed on the capacitive touch display is clicked, which triggers the electronic device to take a picture.
[0028] However, based on the position detection principle of the capacitive touch display, currently, once the smartphone enters water, the user cannot normally touch the operating controls on the touch display (such as the shutter controls corresponding to the camera, etc.). This is because the characteristics of water itself as a conductor will cause the capacitance signal of the entire touch display to change (increase), thereby submerging the change in the capacitance signal caused by the user's finger touching the screen, resulting in the inability to detect the touch position of the finger. Therefore, the user cannot normally use the relevant functions of the smartphone underwater. For example, the user cannot use the smartphone to shoot underwater scenery while diving, cannot put the smartphone into a stream to shoot underwater scenery, etc., but can only use the smartphone to shoot in the air. The shooting method is relatively limited and the flexibility of shooting control is poor.
[0029] In view of this, embodiments of the present application provide a shooting control method, device, electronic device, storage medium and program product, which can improve the flexibility of shooting control.
[0030] The shooting control method provided in the embodiment of the present application can be applied to an electronic device, where the electronic device includes a touch display screen, which can be a capacitive touch display screen.
[0031] The electronic devices may be, but are not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.
[0032] In an exemplary embodiment, Figure 1 As shown, a shooting control method is provided, which is described by taking the method applied to an electronic device as an example, and includes the following steps 101 to 102:
[0033] Step 101: When the electronic device detects that the touch screen of the electronic device enters water and the target shooting component of the electronic device is activated, the electronic device obtains a shooting instruction through the optical fingerprint recognition area on the touch screen.
[0034] The electronic device can detect in real time whether the touch screen of the electronic device enters the water, or the electronic device can also periodically detect whether the touch screen enters the water according to a preset time period.
[0035] In one possible implementation, a barometer (air pressure sensing chip) is provided in the electronic device, and the electronic device can detect the air pressure inside the electronic device through the barometer. Since the electronic device is squeezed underwater, the air pressure increases. Therefore, if the value of the barometer increases, it is determined that the touch screen of the electronic device has entered the water.
[0036] In another possible implementation, the electronic device can also detect whether the touch screen of the electronic device has entered water through a moisture detection mode. The electronic device is provided with a USB (Universal Serial Bus) interface, and the USB interface is provided with a moisture detection pin. When the moisture detection pin detects a voltage change after the USB interface enters water, it is determined that the touch screen of the electronic device has entered water.
[0037] Other possible implementations of an electronic device detecting whether a touch display screen has entered water will be described in the following embodiments.
[0038] It is understandable that in a scenario where an electronic device is required to shoot underwater, the electronic device may have already started the target shooting component by detecting the touch operation before the touch screen of the electronic device enters the water. Optionally, the electronic device may start the target shooting component according to relevant instructions after the touch screen of the electronic device enters the water.
[0039] In an embodiment of the present application, the target shooting component may be a front shooting component or a rear shooting component configured in an electronic device, and the target shooting component may be a conventional shooting lens or a microscope lens for achieving a high magnification, wherein the magnification of the microscope lens is greater than the magnification of the conventional shooting lens.
[0040] In this way, when the electronic device detects that the touch screen of the electronic device enters the water and the target shooting component is activated, it enters the underwater shooting mode. After entering the underwater shooting mode, the electronic device obtains the shooting instruction through the optical fingerprint recognition area on the touch screen, and the shooting instruction may include an image shooting instruction or a video shooting instruction. In the embodiment of the present application, an optical fingerprint recognition module is provided below the touch screen, and the optical fingerprint recognition area refers to the area above the optical fingerprint recognition module in the touch screen.
[0041] In one possible implementation, the electronic device may detect the user's touch position through the optical fingerprint recognition area. For example, if it is determined that the user's touch position is in the optical fingerprint recognition area, it is determined that the user has entered a shooting instruction. Other possible implementations of the electronic device obtaining a shooting instruction through the optical fingerprint recognition area will be described in the following embodiments.
[0042] Step 102: The electronic device controls the target shooting component to shoot images or videos in response to the shooting instruction.
[0043] After the electronic device detects the shooting instruction, it controls the target shooting component to shoot images or videos according to the instructions of the shooting instruction, thereby realizing underwater shooting.
[0044] In this way, in the above embodiment, after the touch display screen of the electronic device enters water, when it is necessary to take images or videos, the shooting instructions can be obtained through the optical fingerprint recognition area on the touch display screen. For example, the user's touch position can be detected through the optical fingerprint recognition area, thereby realizing underwater shooting and improving the flexibility of shooting control.
[0045] It should be noted that, in the embodiment of the present application, the touch display screen entering the water includes the touch display screen completely entering the water or the touch display screen partially entering the water. When the touch display screen partially enters the water, the screen area of the touch display screen entering the water includes the shutter control corresponding to the target shooting component, that is, the touch display screen entering the water mentioned in the embodiment of the present application means that the shutter control at least enters the water, so it is necessary to enter the underwater shooting mode provided by the embodiment of the present application; if the touch display screen of the electronic device does not enter the water, or even if the touch display screen partially enters the water, but the shutter control corresponding to the target shooting component does not enter the water, the default shooting mode (that is, the shooting mode when the electronic device is in the air) can still be used, and the user controls the target shooting component to shoot by touching the shutter control, thereby achieving reliable compatibility with the default shooting mode.
[0046] In one embodiment, based on Figure 1 In the embodiment shown, in this embodiment, when the electronic device detects that the touch screen of the electronic device enters water and the target shooting component is started, that is, when the electronic device enters the underwater shooting mode, the shooting control method may further include the following step A1:
[0047] Step A1: The electronic device disables the operation controls displayed on the touch screen, where the operation controls at least include the operation controls corresponding to the target shooting component.
[0048] It is understandable that when the target shooting component is started, a variety of operation controls will usually be displayed on the touch display screen. For example, the multiple operation controls may include operation controls corresponding to the target shooting component, and of course may also include operation controls corresponding to other functional components in the electronic device.
[0049] Exemplarily, when the target shooting component is started, if the electronic device is in single-screen mode, the operation controls displayed on the touch display may include operation controls corresponding to the target shooting component such as magnification adjustment controls and flash control controls; if the electronic device is in multi-screen operation mode, in addition to displaying the operation controls corresponding to the target shooting component, the touch display may also display operation controls corresponding to other functional components.
[0050] When the electronic device enters the underwater shooting mode, the operation controls displayed on the touch screen are disabled. As described above, the operation controls corresponding to the target shooting component can be disabled, and the operation controls corresponding to other functional components except the target shooting component can also be disabled.
[0051] Several possible implementations of disabling operation controls displayed on a touch display screen of an electronic device are exemplarily introduced below.
[0052] In one possible implementation, after the electronic device detects that the touch display screen has entered water and the target shooting component is activated, the electronic device may stop detecting the change in the capacitance value signal in other areas of the touch display screen except the optical fingerprint recognition area, that is, stop detecting the touch position in the other areas, thereby disabling the operation controls displayed on the touch display screen in the above-mentioned other areas.
[0053] In another possible implementation, after the electronic device detects that the touch display screen has entered water and the target shooting component is activated, the electronic device may also normally detect the touch position in the other area according to the touch position detection method of the electronic device in the air. However, after detecting that the touch position corresponds to a certain operation control, it is prohibited to respond to the operation instruction corresponding to the operation control, thereby disabling the operation controls displayed on the touch display screen in the above-mentioned other areas.
[0054] In other possible implementations, after the electronic device detects that the touch display screen has entered water and the target shooting component is started, the electronic device may also implement the purpose of disabling the operation controls displayed on the touch display screen by performing the following step A2:
[0055] Step A2: The electronic device at least hides the shutter control corresponding to the target shooting component included in the operation control.
[0056] After the electronic device enters the underwater shooting mode, it can at least hide the shutter control to avoid the shutter control from misleading the user.
[0057] Of course, while hiding the shutter control, the electronic device can also hide other operation controls displayed on the display screen. The other operation controls can be operation controls corresponding to the target shooting component other than the shutter control, such as the magnification adjustment control and flash control light in the above examples. The other operation controls can also include operation controls corresponding to other functional components in the electronic device.
[0058] It is understandable that the first position of the optical fingerprint recognition area on the touch display screen and the second position of the shutter control on the touch display screen may be the same, or they may be different. In the embodiment of the present application, when the first position and the second position are different, the electronic device can hide the shutter control. Optionally, the electronic device can also display prompt information for the optical fingerprint recognition area on the touch display screen, and the prompt information is used to prompt the optical fingerprint recognition area to control the shooting of the target shooting component. In this way, after the user sees the prompt information, he touches the optical fingerprint recognition area to input an image shooting instruction or a video shooting instruction.
[0059] Optionally, when the first position and the second position are the same, the electronic device may also hide the shutter control, or, in some possible implementations, the electronic device may not hide the shutter control. When the shutter control is not hidden, the electronic device may disable the shutter control by prohibiting the response to the operation instruction corresponding to the shutter control. Then, from the user operation perspective, the user still touches the shutter control to control the shooting during underwater shooting. However, the electronic device actually obtains the shooting instruction through the optical fingerprint recognition area, so the user is not aware of the switching of the shooting mode, which improves the user experience.
[0060] In this way, in the embodiment of the present application, the underwater shooting function is realized by moving the shooting control button from the shutter control to the optical fingerprint recognition area, and after entering the underwater shooting mode, only the shutter is retained in the optical fingerprint recognition area, and all the operation controls displayed on the touch screen are disabled, which can avoid the electronic device from misdetecting operation instructions underwater and improve the accuracy of shooting control.
[0061] In one embodiment, based on any of the above embodiments, see Figure 2 This embodiment relates to another method for an electronic device to detect whether a touch screen display screen has entered water. Figure 2 As shown, the shooting control method also includes Figure 2 Step 201 and step 202 are shown:
[0062] Step 201: The electronic device obtains the mutual capacitance value of each capacitor node in the touch display screen.
[0063] As described above, the touch display screen of the embodiment of the present application can be a capacitive touch display screen. The capacitive touch display screen has parallel X wires and Y wires on two different conductive substrates (generally glass or high-temperature resistant polyester film) or on the front and back surfaces of the same conductive substrate. The wires are perpendicular to each other but are not on the same surface. A capacitor node is formed at the intersection of each X wire and Y wire.
[0064] The overall capacitance value characteristics of the touch screen when the electronic device is in the air and the overall capacitance value characteristics of the touch screen when the electronic device is in water will change as a whole. This is because the characteristics of water itself as a conductor will cause the overall capacitance value signal of the touch screen to change. Therefore, in the embodiment of the present application, the electronic device can obtain the mutual capacitance value of each capacitance node in the touch screen in real time or periodically to determine the change in the overall capacitance value characteristics of the touch screen.
[0065] Step 202: The electronic device detects whether the touch screen enters water according to the mutual capacitance values.
[0066] The electronic device may also obtain the mutual capacitance value of each capacitor node when the electronic device is in the air without being touched (referred to herein as the no-touch mutual capacitance value for distinction), and then compare the mutual capacitance value of each capacitor node obtained in step 201 with the mutual capacitance value of each capacitor node when the electronic device is in the air without being touched, to obtain a change in the overall capacitance value characteristic of the touch display screen, and determine whether the touch display screen has entered water based on the change in the overall capacitance value characteristic.
[0067] For example, compared to when the electronic device is in the air, when the touch screen is partially immersed in water, the mutual capacitance values of the capacitor nodes included in the screen area immersed in water will increase as a whole, while the mutual capacitance values of the capacitor nodes included in the screen area exposed above the water surface will show a large number of negative values; and when the touch screen is completely immersed in water, the mutual capacitance values of the capacitor nodes in the touch screen will be raised as a whole.
[0068] For example, see Figure 3 , Figure 3 This is a schematic diagram of the change process of the capacitance signal of the entire touch screen when the electronic device is gradually immersed in water. Figure 3 In the touch screen, each circle "○" represents a capacitor node, and the capacitor node is indicated as "+" (i.e. Figure 3 in' ') represents a positive capacitance signal (), and the capacitance node is indicated as "-" (i.e. Figure 3 in' ') represents a negative capacitance signal.
[0069] In view of this, please combine Figure 4 , step 202 may include Figure 4 Step 401 and step 402 are shown:
[0070] Step 401: If each mutual capacitance value is greater than a first capacitance threshold value corresponding to the mutual capacitance value, the electronic device determines that the touch display screen is completely immersed in water.
[0071] Each capacitor node has a corresponding first capacitance threshold value, and the first capacitance threshold value is determined according to the no-touch mutual capacitance value of the capacitor node when the touch display screen is in the air. Exemplarily, the first capacitance threshold value may be equal to the no-touch mutual capacitance value of the capacitor node when the touch display screen is in the air, and the no-touch mutual capacitance value is a positive value. In this way, if the electronic device determines that the mutual capacitance value of each capacitor node is greater than the no-touch mutual capacitance value of the capacitor node when the touch display screen is in the air, it is determined that the mutual capacitance value of each capacitor node in the touch display screen is increased as a whole, thereby determining that the touch display screen is completely immersed in water.
[0072] Step 402: If a partial mutual tolerance value among the mutual tolerance values is greater than a first tolerance threshold corresponding to the partial mutual tolerance value, and other mutual tolerance values among the mutual tolerance values except the partial mutual tolerance value are less than a second tolerance threshold, and the screen area corresponding to the partial mutual tolerance value and the touch display screen includes a shutter control, it is determined that the touch display screen partially enters the water.
[0073] If a part of the mutual capacitance values among the mutual capacitance values are greater than the corresponding first capacitance threshold, it can be understood that the capacitance node corresponding to the part of the mutual capacitance values corresponds to a screen area in the touch display screen. If the screen area includes a shutter control (that is, the shutter control has entered the water), and the other mutual capacitance values except the above part of the mutual capacitance values are less than the corresponding second capacitance threshold, then it is determined that the touch display screen is partially entered into the water, and the first capacitance threshold is greater than the second capacitance threshold. For example, the first capacitance threshold is a positive value greater than 0, the second capacitance threshold is 0, and the other mutual capacitance values are less than the second capacitance threshold, which indicates that the other mutual capacitance values are negative values.
[0074] In a possible implementation, before step 402, if the electronic device detects that some of the mutual capacitance values are greater than a first capacitance threshold corresponding to the partial mutual capacitance values, other mutual capacitance values except the partial mutual capacitance values are less than a second capacitance threshold, and the screen area corresponding to the partial mutual capacitance values and the touch display screen does not include a shutter control, the electronic device continues to detect whether the electronic device is gradually entering water.
[0075] Exemplarily, the electronic device obtains the mutual capacitance values of each capacitor node multiple times in real time or periodically, and compares the overall capacitance value characteristics of the touch display screen obtained each time with the overall capacitance value characteristics of the touch display screen obtained last time. When it is detected that the change in the overall capacitance value characteristics of the touch display screen is: the area of the screen area corresponding to some mutual capacitance values greater than the first capacitance threshold among the mutual capacitance values gradually increases, while the mutual capacitance values of the capacitor nodes in the remaining screen area of the touch display screen are negative values, and the area of the remaining screen area of the touch display screen gradually decreases, it is determined that the electronic device is gradually entering water.
[0076] If the electronic device detects that it is gradually entering water, the electronic device continues to obtain the mutual capacitance value of each capacitor node to detect whether the shutter control has entered the water. Otherwise, the detection process is exited, thereby avoiding the waste of computing resources.
[0077] In this way, compared with the method of detecting whether an electronic device has entered water by using a barometer, adding a barometer sensing chip to the mainboard of the electronic device will increase the cost of the electronic device, and the barometer may not be able to determine whether the electronic device is underwater or due to changes in altitude, changes in air pressure, etc., which may cause false triggering of the underwater shooting mode. The embodiment of the present application detects changes in the overall capacitance value characteristics of the touch display screen, does not increase the cost of the electronic device, and can accurately determine whether the electronic device has entered water.
[0078] Compared to the method of detecting whether an electronic device has entered water through a moisture detection pin, if water enters the USB interface, the moisture detection pin will also trigger the underwater shooting mode in the air environment. The embodiment of the present application can avoid this situation by detecting changes in the overall capacitance value characteristics of the touch display screen, thereby improving the accuracy of water entry detection of the electronic device.
[0079] In one embodiment, based on any of the above embodiments, see Figure 5 The shooting control method of the embodiment of the present application also includes Figure 5 Step 501 shown:
[0080] Step 501, when the electronic device enters water, if the electronic device detects a preset tapping action for the electronic device, the target shooting component is started.
[0081] For example, if the target shooting component of the electronic device is not started before the touch screen of the electronic device enters the water, then after the electronic device enters the water, the user cannot start the target shooting component by clicking the camera icon. In view of this, in an embodiment of the present application, after the touch screen of the electronic device enters the water, if the electronic device detects a preset tapping action for the electronic device, the target shooting component is started. The preset tapping action can be double-clicking the shell of the electronic device, thereby conveniently realizing the start of the underwater target shooting component. The operation is simple, which is conducive to improving the user experience.
[0082] In one embodiment, based on any of the above embodiments, see Figure 6 , this embodiment relates to a process of how an electronic device obtains a shooting instruction by touching an optical fingerprint recognition area on a display screen.
[0083] like Figure 6 As shown, the electronic device can perform Figure 6 Steps 601 and 602 shown in the figure implement the process of obtaining a shooting instruction by touching the optical fingerprint recognition area on the display screen:
[0084] Step 601: The electronic device detects the user's touch position through the optical fingerprint recognition area and obtains the user's touch action.
[0085] As mentioned above, an optical fingerprint recognition module is arranged under the touch display screen. The optical fingerprint recognition area refers to the area above the optical fingerprint recognition module in the touch display screen. After the user touches the optical fingerprint recognition area and the optical fingerprint recognition module recognizes the fingerprint data, the electronic device determines that the user's touch position is the same as the first position of the optical fingerprint recognition area on the touch display screen, that is, the user touches the optical fingerprint recognition area, and the electronic device then determines that the shooting instruction is an image shooting instruction or a video shooting instruction according to the touch action.
[0086] In an embodiment of the present application, an A+G Sensor may be provided in the electronic device. The A+G Sensor is a sensor composed of an accelerometer and a gyroscope, which can measure the acceleration and angular velocity of the object being measured. The electronic device can detect the user's touch action through the A+G Sensor. The touch action includes a click action or a long press action. The long press action refers to the continuous touch duration of the user exceeding a duration threshold. The duration threshold can be flexibly set during implementation, for example, set to 3S.
[0087] Step 602: The electronic device determines a shooting instruction according to the touch position and the touch action.
[0088] In a possible implementation of step 602, if the touch action is a click action, the electronic device determines that the shooting instruction is an image shooting instruction; if the touch action is a long press action, the electronic device determines that the shooting instruction is a video shooting instruction.
[0089] In another possible implementation of step 602, if the touch action is a long press action, the electronic device determines that the shooting instruction is an image shooting instruction; if the touch action is a click action, the electronic device determines that the shooting instruction is a video shooting instruction.
[0090] In this way, the electronic device can determine the shooting instruction according to the touch position and the touch action, and can quickly detect the shooting instruction to achieve underwater shooting.
[0091] Optionally, after the target shooting component of the electronic device is started, before the optical fingerprint recognition area on the touch display screen is used to obtain the shooting instruction, the electronic device may first display a preview interface on the touch display screen, and the preview image displayed in the preview interface may be a default magnification, and the default magnification is, for example, 1.0. In an embodiment of the present application, the user can adjust the magnification in the preview interface by pressing the side key (volume key) of the electronic device, for example, the magnification can be adjusted in steps of 0.5. If the user presses the volume "+" key for the first time at the default magnification, the magnification is adjusted to 1.5, the user presses the volume "+" key for the second time, the magnification is adjusted to 2.0, the user long presses the volume "+" key, the magnification is adjusted to the maximum magnification that can be supported, and so on; if the user presses the volume "-" key for the first time at the default magnification, the magnification is adjusted to 0.5, and so on.
[0092] In this way, under the premise that the above-mentioned embodiment realizes underwater photography, the user of the embodiment of the present application can also adjust the magnification in the preview interface through the side key (volume key) of the electronic device, thereby further improving the flexibility of shooting control.
[0093] The above embodiment introduces an exemplary process of obtaining a shooting instruction by touching the optical fingerprint recognition area on the touch display screen. In other possible implementations, the electronic device may also combine touch detection with a side key (such as a volume key) of the electronic device to obtain a shooting instruction.
[0094] Optionally, in step 602, after the electronic device determines that the user has touched the optical fingerprint recognition area, if the electronic device detects that the touch action is a preset action (such as a click action or a long press action), it determines that the shooting instruction is an image shooting instruction, and if the electronic device detects that the user presses the side button (volume button) of the electronic device, it determines that the shooting instruction is a video shooting instruction.
[0095] Optionally, in step 602, after the electronic device determines that the user has touched the optical fingerprint recognition area, if the electronic device detects that the touch action is a preset action (such as a click action or a long press action), it determines that the shooting instruction is a video shooting instruction, and if the electronic device detects that the user presses the side button (volume button) of the electronic device, it determines that the shooting instruction is an image shooting instruction, and so on.
[0096] The embodiment of the present application obtains shooting instructions by combining touch detection with side keys (such as volume keys) of the electronic device. The method of obtaining shooting instructions is more flexible and can be freely combined during implementation.
[0097] In one embodiment, see Figure 7 , provides a shooting control method, comprising the following steps:
[0098] Step 701: The electronic device obtains the mutual capacitance value of each capacitor node in the touch display screen, and detects whether the touch display screen enters water according to each mutual capacitance value.
[0099] If each mutual capacitance value is greater than a first capacitance threshold value corresponding to the mutual capacitance value, it is determined that the touch display screen is completely immersed in water, and the first capacitance threshold value is determined according to the no-touch mutual capacitance value of the capacitance node when the touch display screen is in the air.
[0100] If some of the mutual capacitance values among the mutual capacitance values are greater than a first capacitance threshold corresponding to the some of the mutual capacitance values, other mutual capacitance values except the some of the mutual capacitance values among the mutual capacitance values are less than a second capacitance threshold, and the screen area corresponding to the some of the mutual capacitance values and the touch display screen includes a shutter control, it is determined that part of the touch display screen has entered water, and the first capacitance threshold is greater than the second capacitance threshold.
[0101] Step 702: When the touch display screen enters water, if the electronic device detects a preset tapping action for the electronic device, a target shooting component is started.
[0102] Step 703: The electronic device disables the operation controls displayed on the touch display screen.
[0103] Among them, the operation controls at least include operation controls corresponding to the target shooting component.
[0104] Optionally, at least a shutter control corresponding to the target shooting component included in the operation control is hidden.
[0105] Optionally, prompt information for the optical fingerprint recognition area is displayed on the touch display screen, and the prompt information is used to prompt the optical fingerprint recognition area to be used for shooting control of the target shooting component.
[0106] Step 704: The electronic device detects the user's touch position through the optical fingerprint recognition area and obtains the user's touch action.
[0107] Step 705: If the touch position is the same as the first position of the optical fingerprint recognition area on the touch display screen, the electronic device determines that the shooting instruction is an image shooting instruction or a video shooting instruction according to the touch action.
[0108] Optionally, if the touch action is a click action, the shooting instruction is determined to be an image shooting instruction; if the touch action is a long press action, the shooting instruction is determined to be a video shooting instruction.
[0109] Optionally, if the touch action is a long press action, the shooting instruction is determined to be an image shooting instruction; if the touch action is a click action, the shooting instruction is determined to be a video shooting instruction.
[0110] Step 706: The electronic device controls the target shooting component to shoot images or videos in response to the shooting instruction.
[0111] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0112] Based on the same inventive concept, the embodiment of the present application also provides a shooting control device for implementing the shooting control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more shooting control device embodiments provided below can refer to the limitations on the shooting control method above, and will not be repeated here.
[0113] In an exemplary embodiment, Figure 8 As shown, a shooting control device is provided, comprising:
[0114] An acquisition module 801 is used to acquire a shooting instruction through an optical fingerprint recognition area on the touch display screen of the electronic device when it is detected that the touch display screen of the electronic device enters water and a target shooting component of the electronic device is started;
[0115] The control module 802 is used to control the target shooting component to shoot images or videos in response to the shooting instruction.
[0116] In one embodiment, the device further comprises:
[0117] A disabling module is used to disable the operation controls displayed on the touch display screen, and the operation controls at least include the operation controls corresponding to the target shooting component.
[0118] In one embodiment, the acquisition module 801 is further used to acquire the mutual capacitance value of each capacitance node in the touch display screen;
[0119] The device also includes:
[0120] The detection module is used to detect whether the touch display screen enters water according to each mutual capacitance value.
[0121] In one embodiment, the touch display screen entering the water includes the touch display screen completely entering the water; or,
[0122] The touch display screen partially enters the water, and the screen area of the touch display screen that enters the water includes a shutter control corresponding to the target shooting component.
[0123] In one of the embodiments, the detection module is specifically configured to determine that the touch display screen is completely immersed in water if each of the mutual capacitance values is respectively greater than a first capacitance threshold corresponding to the mutual capacitance value, and the first capacitance threshold is determined according to the no-touch mutual capacitance value of the capacitor node when the touch display screen is in the air; if some of the mutual capacitance values in the mutual capacitance values are greater than the first capacitance threshold corresponding to the some of the mutual capacitance values, and other mutual capacitance values in the mutual capacitance values except the some of the mutual capacitance values are less than a second capacitance threshold, and the screen area corresponding to the some of the mutual capacitance values and the touch display screen includes the shutter control, it is determined that the touch display screen is partially immersed in water, and the first capacitance threshold is greater than the second capacitance threshold.
[0124] In one embodiment, the device further comprises:
[0125] The starting module is used to start the target shooting component if a preset tapping action on the electronic device is detected.
[0126] In one embodiment, the acquisition module 801 is specifically used to detect the user's touch position through the optical fingerprint recognition area and acquire the user's touch action; and determine the shooting instruction according to the touch position and the touch action.
[0127] In one embodiment, the acquisition module 801 is specifically used to determine that the shooting instruction is an image shooting instruction or a video shooting instruction according to the touch action if the touch position is the same as the first position of the optical fingerprint recognition area on the touch display screen.
[0128] In one embodiment, the acquisition module 801 is specifically used to determine that the shooting instruction is the image shooting instruction if the touch action is a click action; if the touch action is a long press action, determine that the shooting instruction is the video shooting instruction.
[0129] In one embodiment, the acquisition module 801 is specifically used to determine that the shooting instruction is the image shooting instruction if the touch action is a long press action; if the touch action is a click action, determine that the shooting instruction is the video shooting instruction.
[0130] In one of the embodiments, the disabling module is specifically used to hide at least a shutter control corresponding to the target shooting component included in the operation control.
[0131] In one embodiment, the device further comprises:
[0132] A prompt module is used to display prompt information for the optical fingerprint recognition area on the touch display screen, and the prompt information is used to prompt the optical fingerprint recognition area to be used for shooting control of the target shooting component.
[0133] Each module in the above-mentioned shooting control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0134] In an exemplary embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig. 9As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a shooting control method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.
[0135] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0136] The embodiment of the present application further provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the shooting control method.
[0137] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the shooting control method.
[0138] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0139] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital shooting controller, a programmable logic unit, a data processing logic unit based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0140] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0141] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A shooting control method, characterized in that: The method comprises: When it is detected that a touch screen display of an electronic device enters water and a target shooting component of the electronic device is started, obtaining a shooting instruction through an optical fingerprint recognition area on the touch screen display; In response to the shooting instruction, the target shooting component is controlled to perform image shooting or video shooting.
2. The method according to claim 1, characterized in that The method further comprises: The operation controls displayed on the touch display screen are disabled, wherein the operation controls at least include operation controls corresponding to the target shooting component.
3. The method according to claim 1, characterized in that The method further comprises: Obtaining the mutual capacitance value of each capacitor node in the touch display screen; According to each of the mutual capacitance values, it is detected whether the touch display screen enters water.
4. The method according to claim 3, characterized in that The touch display screen entering the water includes the touch display screen completely entering the water; or, The touch display screen partially enters the water, and the screen area of the touch display screen that enters the water includes a shutter control corresponding to the target shooting component.
5. The method according to claim 4, characterized in that The detecting, according to each of the mutual capacitance values, whether the touch display screen enters water comprises: If each of the mutual capacitance values is respectively greater than a first capacitance threshold corresponding to the mutual capacitance value, it is determined that the touch display screen is completely submerged in water, and the first capacitance threshold is determined according to the no-touch mutual capacitance value of the capacitor node when the touch display screen is in the air; If some of the mutual capacitance values among the mutual capacitance values are greater than a first capacitance threshold corresponding to the some of the mutual capacitance values, other mutual capacitance values among the mutual capacitance values except the some of the mutual capacitance values are less than a second capacitance threshold, and the screen area corresponding to the some of the mutual capacitance values and the touch display screen includes the shutter control, it is determined that part of the touch display screen has entered water, and the first capacitance threshold is greater than the second capacitance threshold.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: If a preset tapping action on the electronic device is detected, the target shooting component is started.
7. The method according to any one of claims 1 to 5, characterized in that: The obtaining of the shooting instruction through the optical fingerprint recognition area on the touch display screen includes: Detecting the user's touch position through the optical fingerprint recognition area and acquiring the user's touch action; The shooting instruction is determined according to the touch position and the touch action.
8. The method according to claim 7, characterized in that The determining the shooting instruction according to the touch position and the touch action includes: If the touch position is the same as the first position of the optical fingerprint recognition area on the touch display screen, the shooting instruction is determined to be an image shooting instruction or a video shooting instruction according to the touch action.
9. The method according to claim 8, characterized in that The determining, according to the touch action, that the shooting instruction is an image shooting instruction or a video shooting instruction includes: If the touch action is a click action, determining that the shooting instruction is the image shooting instruction; If the touch action is a long press action, the shooting instruction is determined to be the video shooting instruction.
10. The method according to claim 8, characterized in that The determining, according to the touch action, that the shooting instruction is an image shooting instruction or a video shooting instruction includes: If the touch action is a long press action, determining that the shooting instruction is the image shooting instruction; If the touch action is a click action, the shooting instruction is determined to be the video shooting instruction.
11. The method according to claim 2, characterized in that The disabling of the operation controls displayed on the touch display screen includes: At least the shutter control corresponding to the target shooting component included in the operation control is hidden.
12. The method according to claim 11, characterized in that The method further comprises: Prompt information for the optical fingerprint recognition area is displayed on the touch display screen, and the prompt information is used to prompt the optical fingerprint recognition area to be used for shooting control of the target shooting component.
13. A shooting control device, characterized in that: The device comprises: An acquisition module, configured to acquire a shooting instruction through an optical fingerprint recognition area on the touch display screen of the electronic device when it is detected that the touch display screen of the electronic device enters water and a target shooting component of the electronic device is started; The control module is used to control the target shooting component to perform image shooting or video shooting in response to the shooting instruction.
14. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
Citation Information
Cited By
Water entry detection method and electronic equipment
CN120428337A