Image processing method and device, electronic equipment, readable storage medium and program product
By displaying the shooting screen in underwater mode and responding to touch operations to obtain fingerprints and determine zoom events, the problem of the inability of existing technology to zoom the shooting screen underwater is solved, and the function of underwater image processing is improved.
Patent Information
- Application Number
- CN202411397117.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-10-08
AI Technical Summary
Existing electronic devices cannot perform image processing underwater, and cannot perform zooming of shooting images underwater.
An image processing method is provided, which includes displaying a photographed picture in an underwater mode, acquiring continuously collected first fingerprints in response to a first touch operation, determining a zoom event based on a target number of first fingerprints, and then performing zoom processing on the photographed picture. .
It realizes zooming and processing of shooting images underwater, improving the functionality and user experience of underwater image processing.
Smart Images

Figure CN119364179A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of camera technology, and in particular to an image processing method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of electronic equipment technology, the waterproof level of electronic equipment has basically reached IP86, and the demand for underwater shooting is increasing. However, the underwater shooting of electronic equipment is still basically vacant, and it is impossible to perform underwater image processing. Summary of the invention
[0003] The embodiments of the present application provide an image processing method, device, electronic device, and computer-readable storage medium, which can realize zooming processing of captured images underwater.
[0004] In a first aspect, the present application provides an image processing method, comprising:
[0005] In underwater mode, the shooting picture is displayed;
[0006] In response to a first touch operation, acquiring a first fingerprint continuously collected a target number of times during the first touch operation, and determining a zoom event according to the first fingerprint of the target number of times;
[0007] In response to the zoom event, the captured image is zoomed.
[0008] In one embodiment, determining a zoom event according to the first fingerprint of the target number of times includes:
[0009] matching the first fingerprint with a reference fingerprint;
[0010] If the first fingerprint matches the reference fingerprint and the target number of times is greater than a number threshold, a zoom event is determined according to the first fingerprint of the target number of times.
[0011] In one embodiment, before matching the first fingerprint with the reference fingerprint, the method further includes:
[0012] Improving the preset false recognition rate of the first fingerprint to obtain the false recognition rate of the second fingerprint;
[0013] The matching the first fingerprint with the reference fingerprint includes:
[0014] The first fingerprint is matched with a reference fingerprint according to the false recognition rate of the second fingerprint.
[0015] In one embodiment, if the first fingerprint matches the reference fingerprint and the target number of times is greater than a number threshold, determining a zoom event according to the first fingerprint of the target number of times includes:
[0016] If the first fingerprint matches the reference fingerprint, and the target number of times is greater than a number threshold, determining that the target number of times of polling reaches the number of times threshold;
[0017] If the polling number is an odd number, determining that the zoom event corresponding to the polling number is a zoom-out event;
[0018] If the polling number is an even number, it is determined that the zoom event corresponding to the polling number is a magnification event.
[0019] In one embodiment, in the underwater mode, displaying the captured image includes:
[0020] In the underwater mode, a desktop interface is displayed; the desktop interface includes a fingerprint area;
[0021] In response to a second touch operation on the fingerprint area, acquiring a second fingerprint of the second touch operation;
[0022] If the second fingerprint matches the reference fingerprint, the camera application is started and the shooting picture is displayed.
[0023] In one embodiment, displaying the desktop interface in the underwater mode includes:
[0024] In the underwater mode, the preset first brightness is increased to obtain a second brightness;
[0025] The desktop interface is displayed at the second brightness.
[0026] In a second aspect, the present application further provides an image processing device, comprising:
[0027] A display module, used to display the shooting picture in the underwater mode;
[0028] a zoom event determination module, configured to, in response to a first touch operation, obtain a first fingerprint continuously collected a target number of times during the first touch operation, and determine a zoom event according to the first fingerprint of the target number of times;
[0029] The zoom processing module is used to perform zoom processing on the captured image in response to the zoom event.
[0030] In a third aspect, the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0031] In underwater mode, the shooting picture is displayed;
[0032] In response to a first touch operation, acquiring a first fingerprint continuously collected a target number of times during the first touch operation, and determining a zoom event according to the first fingerprint of the target number of times;
[0033] In response to the zoom event, the captured image is zoomed.
[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0035] In underwater mode, the shooting picture is displayed;
[0036] In response to a first touch operation, acquiring a first fingerprint continuously collected a target number of times during the first touch operation, and determining a zoom event according to the first fingerprint of the target number of times;
[0037] In response to the zoom event, the captured image is zoomed.
[0038] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0039] In underwater mode, the shooting picture is displayed;
[0040] In response to a first touch operation, acquiring a first fingerprint continuously collected a target number of times during the first touch operation, and determining a zoom event according to the first fingerprint of the target number of times;
[0041] In response to the zoom event, the captured image is zoomed.
[0042] The above-mentioned image processing method, device, electronic device, computer-readable storage medium and computer program product, in the underwater mode, display the captured picture, respond to the first touch operation, obtain the first fingerprint of the target number of times continuously collected during the first touch operation, then, according to the first fingerprint of the target number of times, the zoom event can be accurately determined, and in response to the zoom event, the zoom processing of the captured picture can be accurately realized, thereby realizing the zoom processing of the captured picture underwater. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] 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.
[0044] Figure 1 is a schematic flow chart of an image processing method in one embodiment;
[0045] Figure 2 is a structural diagram of an image processing method in one embodiment;
[0046] Figure 3 is a schematic flow chart of an image processing method in another embodiment;
[0047] Figure 4 is a schematic flow chart of an image processing method in another embodiment;
[0048] Figure 5 is a structural block diagram of an image processing device in one embodiment;
[0049] Figure 6 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0050] 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.
[0051] In one embodiment, Figure 1 As shown, an image processing method is provided. This embodiment uses the method applied to an electronic device as an example for illustration. The electronic device may be a terminal or a server. It is understandable that the method may also be applied to a system including a terminal and a server, and implemented through the interaction between the terminal and the server. Among them, the terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server may be an independent physical server, a server cluster or a distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.
[0052] In this embodiment, the image processing method includes the following steps:
[0053] Step S102: In the underwater mode, the shooting picture is displayed.
[0054] The underwater mode is a mode in which the electronic device performs image processing in water.
[0055] Optionally, when the electronic device detects that it is in water, it enters underwater mode.
[0056] Optionally, the electronic device enters the underwater mode in response to a trigger operation of the underwater mode.
[0057] Optionally, in the underwater mode, the electronic device responds to a trigger operation of the camera application, opens the camera application, and displays the captured image.
[0058] Optionally, when the electronic device enters the underwater mode, the underwater mode thread is started, and the shooting picture is displayed in the underwater mode thread. The fingerprint can be recognized more efficiently through the underwater mode thread.
[0059] Step S104, in response to the first touch operation, obtaining first fingerprints continuously collected a target number of times during the first touch operation, and determining a zoom event according to the first fingerprints of the target number of times.
[0060] The first touch operation is an operation for determining a zoom event. The target number is the number of first fingerprints collected during the first touch operation. The first fingerprint is a fingerprint collected during the first touch operation. The zoom event is an event for zooming in and out of a captured image. Optionally, the zoom event includes a zoom-out event or a zoom-in event.
[0061] Optionally, the captured image includes a fingerprint area, and the electronic device responds to a first touch operation on the fingerprint area by acquiring a first fingerprint continuously collected a target number of times during the first touch operation at a target sampling frame rate, wherein the target sampling frame rate can be set as needed.
[0062] The electronic device obtains a preset first sampling frame rate, increases the first sampling frame rate, and obtains a target sampling frame rate. For example, the electronic device increases the preset first sampling frame rate, that is, shortens the frame rate time of the first sampling frame rate by 2 / 3, so that the fingerprint image can be collected faster and the fingerprint recognition performance can be improved.
[0063] Optionally, when the target number of times is greater than a number threshold, a zoom event is determined according to the first fingerprint of the target number of times. The number threshold can be set as needed, such as 10.
[0064] Step S106, in response to the zoom event, zoom the captured image.
[0065] Optionally, if the zoom event is a zoom-out event, the captured image is zoomed out in response to the zoom-out event.
[0066] Optionally, if the zoom event is a magnification event, the captured image is magnified in response to the magnification event.
[0067] Optionally, the electronic device zooms the captured image to obtain the zoomed captured image; and in response to the third touch operation, the zoomed captured image is photographed to obtain a target image or a target video. The third touch operation is an operation for photographing the zoomed captured image.
[0068] Optionally, in response to the third touch operation on the fingerprint area, the electronic device shoots the zoomed shot to obtain a target image or a target video.
[0069] The above-mentioned image processing method, in the case of underwater mode, displays the shooting picture, responds to the first touch operation, obtains the first fingerprint of the target number of continuous collections during the first touch operation, then, according to the first fingerprint of the target number of times, the zoom event can be accurately determined, and in response to the zoom event, the zoom processing of the shooting picture can be accurately realized, thereby realizing the zoom processing of the shooting picture underwater. In addition, the electronic device can perform more accurate image processing on some close-up objects underwater to obtain clearer and higher quality shooting images.
[0070] In one embodiment, determining a zoom event according to a first fingerprint of a target number of times includes: matching the first fingerprint with a reference fingerprint; if the first fingerprint matches the reference fingerprint and the target number of times is greater than a number threshold, determining a zoom event according to the first fingerprint of the target number of times.
[0071] The reference fingerprint is a fingerprint used for reference when matching fingerprints. Optionally, the reference fingerprint can be stored locally in the electronic device or in a cloud server.
[0072] Optionally, the electronic device matches the first fingerprint with a reference fingerprint, determines a first similarity between the first fingerprint and the reference fingerprint, and determines a matching result between the first fingerprint and the reference fingerprint based on the first similarity.
[0073] If the first similarity is greater than or equal to the first similarity threshold, it is determined that the first fingerprint matches the reference fingerprint; if the first similarity is less than the first similarity threshold, it is determined that the first fingerprint does not match the reference fingerprint. The first similarity threshold can be set as needed.
[0074] Optionally, if the first fingerprint and the reference fingerprint do not match, a prompt message is displayed. The prompt message is used to indicate that the first fingerprint does not match.
[0075] Optionally, before matching the first fingerprint with the reference fingerprint, the method further includes: improving a preset first fingerprint false recognition rate to obtain a second fingerprint false recognition rate; matching the first fingerprint with the reference fingerprint includes: matching the first fingerprint with the reference fingerprint according to the second fingerprint false recognition rate.
[0076] Among them, FAR (FALSE ACCETANCE RATA) is the false recognition rate, that is, the probability that the fingerprint of the non-reference fingerprint owner matches the reference fingerprint. The lower the false recognition rate, the lower the probability that the fingerprint of the non-reference fingerprint owner matches the reference fingerprint, that is, the safer the fingerprint unlocking is. The first fingerprint false recognition rate is the fingerprint false recognition rate preset by the electronic device in normal mode. The second fingerprint false recognition rate is the fingerprint false recognition rate of the electronic device in underwater mode.
[0077] It is understandable that when an electronic device is underwater, the fingerprint recognition rate is less than 50%, usually only 10%. In order to improve the fingerprint recognition success rate and increase the preset first fingerprint false recognition rate, the fingerprint recognition success rate can be controlled to above 99%, and image processing can be performed more accurately, greatly improving the user experience.
[0078] Optionally, after scaling the captured image, the method further includes: the electronic device obtains the scaling ratio of the captured image, adjusts the second fingerprint false recognition rate based on the scaling ratio, and obtains a new second fingerprint false recognition rate; when a new third fingerprint is obtained, the third fingerprint is matched with the reference fingerprint according to the new second fingerprint false recognition rate.
[0079] It is understandable that different zoom ratios correspond to different fingerprint false recognition rates, and the fingerprint false recognition rate can be adjusted in real time according to different zoom ratios to improve the success rate of image acquisition.
[0080] Optionally, after scaling the captured image, the method further includes: if the captured image is reduced in size, the second fingerprint false recognition rate is adjusted to obtain the second fingerprint false recognition rate corresponding to the reduced size; if the captured image is enlarged in size, the second fingerprint false recognition rate is adjusted to obtain the second fingerprint false recognition rate corresponding to the enlarged size.
[0081] It is understandable that the enlargement processing and the reduction processing correspond to different fingerprint false recognition rates, and the enlargement processing and the reduction processing can be distinguished more accurately to improve the success rate of image acquisition and perform image processing more accurately.
[0082] Optionally, if the first fingerprint matches the reference fingerprint and the target number is greater than the number threshold, a zoom event is determined based on the first fingerprint of the target number, including: if the first fingerprint matches the reference fingerprint and the target number is greater than the number threshold, determining the number of pollings at which the target number of polls reaches the number threshold; if the polling number is an odd number, determining that the zoom event corresponding to the polling number is a zoom-out event; if the polling number is an even number, determining that the zoom event corresponding to the polling number is a zoom-in event.
[0083] Wherein, the polling number is the number of times the target polling number reaches the number threshold value. For example, the number threshold value is 10, if the target number is 15, then the polling number of times the target polling number reaches the number threshold value is 1, if the target number is 23, then the polling number of times the target polling number reaches the number threshold value is 2, if the target number is 58, then the polling number of times the target polling number reaches the number threshold value is 5.
[0084] Exemplarily, the number threshold is 10. If the target number is 15, the target number of polls reaches the number threshold for polling, which is 1. A zoom-out event is determined, and the captured image is zoomed out. If the target number is 23, the target number of polls reaches the number threshold for polling, which is 2. A zoom-in event is determined, and the captured image is zoomed in. If the target number is 58, the target number of polls reaches the number threshold for polling, which is 5. A zoom-out event is determined, and the captured image is zoomed out.
[0085] Optionally, if the polling number is an even number, the zoom event corresponding to the polling number is determined to be a zoom-out event; if the polling number is an odd number, the zoom event corresponding to the polling number is determined to be a zoom-in event.
[0086] In this embodiment, the electronic device matches the first fingerprint with the reference fingerprint. If the first fingerprint matches the reference fingerprint and the target number of times is greater than the number threshold, the zoom event can be determined more accurately according to the first fingerprint of the target number of times.
[0087] Furthermore, the electronic device improves a preset first fingerprint false recognition rate to obtain a second fingerprint false recognition rate, and matches the first fingerprint with the reference fingerprint according to the second fingerprint false recognition rate.
[0088] Further, if the first fingerprint matches the reference fingerprint and the target number of polls is greater than the number threshold, the target number of polls is determined to reach the polling number threshold, and the zoom event is accurately determined to be a zoom-in event or a zoom-out event according to whether the polling number is an odd number or an even number.
[0089] In one embodiment, Figure 2As shown, another image processing method is provided, which includes an underwater camera sub-process and a fingerprint compression and zoom sub-process; in the underwater camera sub-process, the electronic device executes step S202 to enter the underwater mode; executes step S204 to start the underwater mode thread and display the shooting picture, which includes the fingerprint area; executes step S206 to obtain the first fingerprint in response to the pressing operation on the fingerprint area. In the fingerprint compression and zoom sub-process, the false recognition rate algorithm is designed, that is, the preset first fingerprint false recognition rate is improved to obtain the second fingerprint false recognition rate, then the electronic device executes step S208 to match according to the second fingerprint false recognition rate; if the first fingerprint matches the reference fingerprint, and the target number of times is greater than the number threshold, then the zoom event is determined according to the first fingerprint of the target number, and step S210 is executed in response to the zoom event to enlarge or reduce the shooting picture.
[0090] In one embodiment, Figure 3 As shown, the electronic device executes step S302, enters the underwater mode, and displays the shooting picture; executes step S304, improves the preset first fingerprint false recognition rate, and obtains the second fingerprint false recognition rate; executes step S306, obtains the target sampling frame rate; executes step S308, in response to the first touch operation, obtains the first fingerprint according to the target sampling frame rate; executes step S310, performs fingerprint matching according to the second fingerprint false recognition rate, and determines whether the number of consecutive successful matches between the first fingerprint and the reference fingerprint is greater than 10; if the number of consecutive unlocking times of the fingerprint is less than or equal to 10, executes step S312, and continues to preview the shooting picture; if the number of consecutive unlocking times of the fingerprint is greater than 10, that is, the fingerprint matches the reference fingerprint and the consecutive unlocking is greater than 10, then executes step S314 to scale the shooting picture.
[0091] In one embodiment, in underwater mode, a captured picture is displayed, including: in underwater mode, a desktop interface is displayed; the desktop interface includes a fingerprint area; in response to a second touch operation on the fingerprint area, a second fingerprint of the second touch operation is obtained; if the second fingerprint matches the reference fingerprint, a camera application is started and the captured picture is displayed.
[0092] The fingerprint area can be set at any position in the desktop interface, such as the center, the lower center, the left or right edge of the desktop interface, etc. The fingerprint area has no light spot.
[0093] Optionally, the electronic device sets different contrasts between the fingerprint area and other areas of the screen to display the fingerprint area on the screen. It is understandable that the conventional fingerprint area is marked with a light spot, while the fingerprint area is marked with a screen contrast difference in this embodiment, and the fingerprint information can be more accurately obtained through the fingerprint area.
[0094] Optionally, the electronic device matches the second fingerprint with the reference fingerprint, determines a second similarity between the second fingerprint and the reference fingerprint, and determines a matching result between the second fingerprint and the reference fingerprint based on the second similarity.
[0095] If the second similarity is greater than or equal to the second similarity threshold, it is determined that the second fingerprint matches the reference fingerprint; if the second similarity is less than the second similarity threshold, it is determined that the second fingerprint does not match the reference fingerprint. The second similarity threshold can be set as needed.
[0096] Optionally, if the second fingerprint does not match the reference fingerprint, a prompt message is displayed. The prompt message is used to indicate that the second fingerprint does not match.
[0097] Optionally, displaying the desktop interface in the underwater mode includes: in the underwater mode, increasing a preset first brightness to obtain a second brightness; and displaying the desktop interface at the second brightness.
[0098] Among them, the preset first brightness is the screen brightness in normal mode.
[0099] Optionally, in underwater mode, the electronic device obtains a preset first brightness, increases the first brightness to obtain a second brightness, and displays the desktop interface at the second brightness, so that the captured image information and fingerprint area location can be more clearly obtained underwater, thereby more accurately acquiring the fingerprint for image processing.
[0100] In this embodiment, in the underwater mode, a desktop interface is displayed, which includes a fingerprint area; in response to a second touch operation on the fingerprint area, a second fingerprint of the second touch operation is obtained; if the second fingerprint matches the reference fingerprint, the camera application is started and the captured picture is displayed. The operation can be accurately performed underwater to display the captured picture, thereby performing image processing more accurately.
[0101] In one embodiment, Figure 4As shown, the electronic device executes step S402 to enter the underwater mode; executes step S404 to start the underwater mode thread in the hardware abstraction layer; wherein the hardware abstraction layer (FP HAL) is the software part of the fingerprint recognition module, which is used to encapsulate the underlying functions of the fingerprint recognition module; executes step S406 to display the desktop interface at the second brightness, the desktop interface includes the fingerprint area, and the fingerprint area has no light spot; executes step S408 to obtain a second touch operation on the fingerprint area; executes step S410 to obtain a second fingerprint corresponding to the second touch operation; executes step S412 to detect whether there is a finger pressing on the fingerprint area; if it is determined that there is a finger pressing on the fingerprint area, executes step S414 to pass the finger pressing event to the camera application, and executes step S416 to open the camera application; Execute step S418 to display the camera button in the fingerprint area; when the finger presses the camera button, execute step S420 to obtain the first touch operation on the fingerprint area; execute step S422 to obtain the first fingerprint corresponding to the first touch operation; execute step S424 to detect whether there is a finger pressing on the fingerprint area; if it is determined that there is a finger pressing on the fingerprint area, execute step S426 to pass the finger pressing event to the camera application; execute step S428 to scale the shooting picture to achieve shooting; execute step S430 to exit the underwater mode; execute step S432, the hardware abstraction layer exits the picture collection polling. If the fingerprint area does not detect the finger pressing, report the finger not pressing event (none event) and continue to preview the shooting picture.
[0102] It is understandable that the above-mentioned image processing optimization solution can also be applied to voice systems, game systems and other non-sensing control scenarios, by setting the voice control similarity to control the target object, or by setting the touch to enhance the experience.
[0103] In one embodiment, an image processing method is also provided, which is applied to an electronic device, and the image processing method comprises the following steps:
[0104] Step A1: in the underwater mode, increase the preset first brightness to obtain a second brightness.
[0105] Step A2: displaying a desktop interface at a second brightness, where the desktop interface includes a fingerprint area.
[0106] Step A3: in response to a second touch operation on the fingerprint area, obtaining a second fingerprint of the second touch operation.
[0107] Step A4: If the second fingerprint matches the reference fingerprint, the camera application is started and the shooting picture is displayed.
[0108] Step A5: in response to the first touch operation, obtaining a first fingerprint continuously collected a target number of times during the first touch operation.
[0109] Step A6, improving the preset first fingerprint false recognition rate to obtain a second fingerprint false recognition rate; matching the first fingerprint with the reference fingerprint according to the second fingerprint false recognition rate.
[0110] Step A7: if the first fingerprint matches the reference fingerprint and the target number of polls is greater than the number threshold, determine the number of polls at which the target number of polls reaches the number threshold.
[0111] Step A8: if the polling number is an odd number, determine that the zoom event corresponding to the polling number is a zoom-out event; if the polling number is an even number, determine that the zoom event corresponding to the polling number is a zoom-in event.
[0112] Step A9: In response to the zoom event, zoom the captured image.
[0113] 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 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.
[0114] Based on the same inventive concept, the embodiment of the present application also provides an image processing device for implementing the above-mentioned image processing method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more image processing device embodiments provided below can refer to the limitations on the image processing method above, and will not be repeated here.
[0115] In an exemplary embodiment, Figure 5 As shown, an image processing device is provided, including: a display module 502, a zoom event determination module 504 and a zoom processing module 506, wherein:
[0116] The display module 502 is used to display the shooting picture in the underwater mode.
[0117] The zoom event determination module 504 is configured to, in response to the first touch operation, obtain first fingerprints continuously collected a target number of times during the first touch operation, and determine a zoom event according to the first fingerprints of the target number of times.
[0118] The zoom processing module 506 is used to perform zoom processing on the captured image in response to a zoom event.
[0119] The above-mentioned image processing method, in the underwater mode, displays the captured picture, responds to the first touch operation, obtains the first fingerprint of the target number of times continuously collected during the first touch operation, then, based on the first fingerprint of the target number of times, the zoom event can be accurately determined, and in response to the zoom event, the zoom processing of the captured picture can be accurately realized, thereby realizing the zoom processing of the captured picture underwater.
[0120] In one embodiment, the zoom event determination module 504 is further configured to match the first fingerprint with a reference fingerprint; if the first fingerprint matches the reference fingerprint and the target number of times is greater than a threshold number of times, a zoom event is determined based on the first fingerprint with the target number of times.
[0121] In one embodiment, the apparatus further comprises a false recognition rate setting module, which is used to increase a preset first fingerprint false recognition rate to obtain a second fingerprint false recognition rate; the zoom event determination module 504 is further used to match the first fingerprint with the reference fingerprint according to the second fingerprint false recognition rate.
[0122] In one embodiment, the zoom event determination module 504 is also used to determine the number of pollings when the target number of polls reaches the number of polling thresholds if the first fingerprint matches the reference fingerprint and the target number of polls is greater than the number of polling thresholds; if the polling number is an odd number, determine that the zoom event corresponding to the polling number is a zoom-out event; if the polling number is an even number, determine that the zoom event corresponding to the polling number is a zoom-in event.
[0123] In one embodiment, the display module 502 is also used to display a desktop interface in underwater mode; the desktop interface includes a fingerprint area; in response to a second touch operation on the fingerprint area, a second fingerprint of the second touch operation is obtained; if the second fingerprint matches the reference fingerprint, the camera application is started and the captured picture is displayed.
[0124] In one embodiment, the display module 502 is further used to increase the preset first brightness to obtain a second brightness in the underwater mode; and display the desktop interface at the second brightness.
[0125] Each module in the above-mentioned image processing 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 above.
[0126] 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. Figure 6 As 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, an image processing 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.
[0127] Those skilled in the art will understand that Figure 6 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.
[0128] In an exemplary embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: in an underwater mode, displaying a captured image; in response to a first touch operation, acquiring a first fingerprint continuously collected a target number of times during the first touch operation, and determining a zoom event based on the first fingerprint of the target number of times; and in response to the zoom event, zooming the captured image.
[0129] In one embodiment, when the processor executes the computer program, the following steps are further implemented: matching the first fingerprint with the reference fingerprint; if the first fingerprint matches the reference fingerprint and the target number of times is greater than the number threshold, determining a zoom event according to the first fingerprint of the target number of times.
[0130] In one embodiment, when the processor executes the computer program, the following steps are further implemented: improving a preset first fingerprint false recognition rate to obtain a second fingerprint false recognition rate; and matching the first fingerprint with a reference fingerprint according to the second fingerprint false recognition rate.
[0131] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the first fingerprint matches the reference fingerprint, and the target number of times is greater than the number threshold, then determining the number of pollings until the target number of polls reaches the number threshold; if the polling number is an odd number, then determining the zoom event corresponding to the polling number is a zoom-out event; if the polling number is an even number, then determining the zoom event corresponding to the polling number is a zoom-in event.
[0132] In one embodiment, the processor further implements the following steps when executing the computer program: in underwater mode, displaying a desktop interface; the desktop interface includes a fingerprint area; in response to a second touch operation on the fingerprint area, obtaining a second fingerprint of the second touch operation; if the second fingerprint matches the reference fingerprint, starting a camera application and displaying the captured image.
[0133] In one embodiment, when the processor executes the computer program, the following steps are also implemented: in the underwater mode, increasing the preset first brightness to obtain a second brightness; and displaying the desktop interface at the second brightness.
[0134] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: in an underwater mode, a captured image is displayed; in response to a first touch operation, a first fingerprint of a target number of times continuously collected during the first touch operation is acquired, and a zoom event is determined based on the first fingerprint of the target number of times; in response to the zoom event, the captured image is zoomed.
[0135] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: matching the first fingerprint with the reference fingerprint; if the first fingerprint matches the reference fingerprint and the target number of times is greater than the number threshold, determining a zoom event according to the first fingerprint of the target number of times.
[0136] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: improving the preset first fingerprint false recognition rate to obtain a second fingerprint false recognition rate; and matching the first fingerprint with the reference fingerprint according to the second fingerprint false recognition rate.
[0137] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the first fingerprint matches the reference fingerprint, and the target number of times is greater than the number threshold, then determining the number of pollings until the target number of polls reaches the number threshold; if the polling number is an odd number, then determining the zoom event corresponding to the polling number is a zoom-out event; if the polling number is an even number, then determining the zoom event corresponding to the polling number is a zoom-in event.
[0138] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in underwater mode, a desktop interface is displayed; the desktop interface includes a fingerprint area; in response to a second touch operation on the fingerprint area, a second fingerprint of the second touch operation is obtained; if the second fingerprint matches the reference fingerprint, a camera application is started and the captured picture is displayed.
[0139] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in the underwater mode, increasing the preset first brightness to obtain a second brightness; and displaying the desktop interface at the second brightness.
[0140] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the following steps: in an underwater mode, displaying a captured image; in response to a first touch operation, acquiring a first fingerprint continuously collected a target number of times during the first touch operation, and determining a zoom event based on the first fingerprint of the target number of times; and in response to the zoom event, zooming the captured image.
[0141] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: matching the first fingerprint with the reference fingerprint; if the first fingerprint matches the reference fingerprint and the target number of times is greater than the number threshold, determining a zoom event according to the first fingerprint of the target number of times.
[0142] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: improving the preset first fingerprint false recognition rate to obtain a second fingerprint false recognition rate; and matching the first fingerprint with the reference fingerprint according to the second fingerprint false recognition rate.
[0143] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the first fingerprint matches the reference fingerprint, and the target number of times is greater than the number threshold, then determining the number of pollings until the target number of polls reaches the number threshold; if the polling number is an odd number, then determining the zoom event corresponding to the polling number is a zoom-out event; if the polling number is an even number, then determining the zoom event corresponding to the polling number is a zoom-in event.
[0144] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in underwater mode, a desktop interface is displayed; the desktop interface includes a fingerprint area; in response to a second touch operation on the fingerprint area, a second fingerprint of the second touch operation is obtained; if the second fingerprint matches the reference fingerprint, a camera application is started and the captured picture is displayed.
[0145] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in the underwater mode, increasing the preset first brightness to obtain a second brightness; and displaying the desktop interface at the second brightness.
[0146] 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.
[0147] 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 signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0148] 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.
[0149] 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 construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications 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. An image processing method, characterized in that: The method comprises: In underwater mode, the shooting picture is displayed; In response to a first touch operation, acquiring a first fingerprint continuously collected a target number of times during the first touch operation, and determining a zoom event according to the first fingerprint of the target number of times; In response to the zoom event, the captured image is zoomed.
2. The method according to claim 1, characterized in that The step of determining a zoom event according to the first fingerprint of the target number of times includes: matching the first fingerprint with a reference fingerprint; If the first fingerprint matches the reference fingerprint and the target number of times is greater than a number threshold, a zoom event is determined according to the first fingerprint of the target number of times.
3. The method according to claim 2, characterized in that Before matching the first fingerprint with the reference fingerprint, the method further includes: Improving the preset first fingerprint false recognition rate to obtain a second fingerprint false recognition rate; The matching the first fingerprint with the reference fingerprint includes: The first fingerprint is matched with a reference fingerprint according to the false recognition rate of the second fingerprint.
4. The method according to claim 2, characterized in that: If the first fingerprint matches the reference fingerprint and the target number of times is greater than a number threshold, determining a zoom event according to the first fingerprint of the target number of times includes: If the first fingerprint matches the reference fingerprint, and the target number of times is greater than a number threshold, determining that the target number of times of polling reaches the number of times threshold; If the polling number is an odd number, determining that the zoom event corresponding to the polling number is a zoom-out event; If the polling number is an even number, it is determined that the zoom event corresponding to the polling number is a magnification event.
5. The method according to claim 1, characterized in that In the underwater mode, displaying the shooting picture includes: In the underwater mode, a desktop interface is displayed; the desktop interface includes a fingerprint area; In response to a second touch operation on the fingerprint area, acquiring a second fingerprint of the second touch operation; If the second fingerprint matches the reference fingerprint, the camera application is started and the shooting picture is displayed.
6. The method according to claim 5, characterized in that In the underwater mode, displaying the desktop interface includes: In the underwater mode, the preset first brightness is increased to obtain a second brightness; The desktop interface is displayed at the second brightness.
7. An image processing device, characterized in that: The device comprises: A display module, used to display the shooting picture in the underwater mode; a zoom event determination module, configured to, in response to a first touch operation, obtain a first fingerprint continuously collected a target number of times during the first touch operation, and determine a zoom event according to the first fingerprint of the target number of times; The zoom processing module is used to perform zoom processing on the captured image in response to the zoom event.
8. 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 6 are implemented.
9. 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 6 are implemented.
10. 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 6 are implemented.
Citation Information
Patent Citations
Electronic device having plurality of fingerprint sensing modes and method for controlling the same
CN107918760A
Control method, electronic equipment and readable storage medium
CN117527952A
Integrate module checking algorithm of fingerprint1 and fingerprint2 at the same time
KR101792020B1
Method, device, and non-transitory computer-readable storage medium for fingerprint authentication
US20220207257A1
Fingerprint recognition-based interaction method, electronic device and related device
WO2020118491A1
