Image processing method, device, apparatus and storage medium
By configuring surface light source layers with different field of view in the image acquisition device, and combining them with the design of light guide plates and reflective films, the problem of LED lights with fixed field of view being unable to effectively supplement light was solved, achieving efficient supplementary lighting for objects in different spatial positions and improving the quality of image acquisition.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2024-12-02
- Publication Date
- 2026-06-02
AI Technical Summary
In existing image acquisition equipment, LED lights with a fixed field of view cannot effectively illuminate objects in different spatial positions, resulting in poor lighting effects and image acquisition quality.
A surface light source layer with different field of view is used. The appropriate surface light source layer is selected according to the distance between the target object and the device for supplementary lighting. Combined with the design of light guide plate and reflective film, the light is evenly illuminated.
It achieves effective supplemental lighting for objects in different spatial locations, improves the supplemental lighting effect and image acquisition quality, and reduces light energy loss.
Smart Images

Figure CN122138055A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, specifically to the field of image processing technology, and in particular to an image processing method, apparatus, device, and storage medium. Background Technology
[0002] Currently, to enable image acquisition devices to capture relatively clear images of objects, a fixed-field-of-view LED (Lighting Emitting Diode) is typically built into the device. This LED can then be used to illuminate the corresponding object during image acquisition. However, because the LED's field of view is fixed, the size of the light field it creates is also fixed. This prevents the LED from effectively illuminating objects in different spatial positions, thus affecting the lighting effect and image acquisition quality. For example, when the field of view is small and the object is close to the image acquisition device, the light field created by the LED may not completely cover the object, resulting in insufficient illumination of the entire object and impacting both the lighting effect and image acquisition quality. Therefore, how to effectively acquire images using image acquisition devices has become a research hotspot. Summary of the Invention
[0003] This application provides an image processing method, apparatus, device, and storage medium that can improve the supplementary lighting effect, thereby improving the image acquisition quality.
[0004] On one hand, embodiments of this application provide an image processing method, the method comprising:
[0005] The target distance value between the target object and the image acquisition device is obtained. The image acquisition device is configured with an image acquisition component and at least two surface light source layers, and different surface light source layers have different field of view angles.
[0006] Based on the target distance value and the field of view of each surface light source layer, a target surface light source layer is selected from the at least two surface light source layers according to the target selection rule; wherein, the target selection rule is used to indicate that the smaller the target distance value, the larger the field of view of the surface light source layer is selected first.
[0007] The target surface light source layer is controlled to perform supplemental lighting on the target object, and the image acquisition component is invoked to acquire an image of the target object after supplemental lighting, thereby obtaining an image of the target object.
[0008] On the other hand, embodiments of this application provide an image processing apparatus, the apparatus comprising:
[0009] The acquisition unit is used to acquire the target distance value between the target object and the image acquisition device. The image acquisition device is configured with an image acquisition component and at least two surface light source layers, and different surface light source layers have different field of view angles.
[0010] The processing unit is configured to select a target surface light source layer from the at least two surface light source layers based on the target distance value and the field of view of each surface light source layer, according to a target selection rule; wherein the target selection rule indicates that the smaller the target distance value, the larger the field of view of the surface light source layer is selected first.
[0011] The processing unit is also used to control the target surface light source layer to perform supplementary lighting processing on the target object, and to call the image acquisition component to acquire an image of the target object after supplementary lighting, so as to obtain an image of the target object.
[0012] In one embodiment, each surface light source layer includes: at least one light-emitting component and a light guide plate, the light guide plate being parallel to the top surface of the image acquisition device; the top surface refers to the object-oriented device surface of the image acquisition device when acquiring an image of any object;
[0013] The bottom of the light guide plate contains at least one scattering point, and any scattering point is used to diffusely reflect light to change the propagation angle of the light.
[0014] When the at least one light-emitting component is lit, the at least one light-emitting component emits light towards the corresponding light guide plate. After being diffusely reflected by the scattering points in the corresponding light guide plate, the light is emitted from the top of the corresponding light guide plate to illuminate the object.
[0015] In another embodiment, each surface light source layer is parallel to the top surface of the image acquisition device to form a multi-layer structure, and the field of view of each surface light source layer gradually decreases along the direction from the top surface to the bottom surface of the image acquisition device.
[0016] The bottom of the bottom surface light source layer also includes a reflective film, which is used to reflect all the light in the corresponding light guide plate out of the top of the corresponding light guide plate after the light-emitting component in the bottom surface light source layer emits light towards the corresponding light guide plate.
[0017] In another embodiment, the image acquisition device further includes at least one support frame located on both sides of the bottom surface light source layer to support each surface light source layer located above the bottom surface light source layer;
[0018] The support frame is also used to: reflect the light emitted by the light-emitting component in any layer of the light source toward the support frame to the light guide plate of at least one surface light source layer, so that the corresponding light is emitted from the top of the light guide plate of the at least one surface light source layer to illuminate the object.
[0019] In another embodiment, when the processing unit selects the target surface light source layer from the at least two surface light source layers according to the target distance value and the field of view of each surface light source layer, it may specifically be used to:
[0020] Obtain a mapping information table constructed based on target selection rules. The mapping information table includes multiple distance ranges and parameter groups mapped to each distance range. Each parameter group includes at least the emission state of each surface light source layer, and the emission state is used to indicate whether the surface light source layer emits light.
[0021] From the mapping information table, find the distance range containing the target distance value as the target distance range, and obtain the parameter group mapped by the target distance range as the target parameter group;
[0022] Based on the luminescence state of each surface light source layer in the target parameter group, the target surface light source layer is determined from the at least two surface light source layers.
[0023] In another embodiment, any of the parameter groups further includes: the luminescence parameters of each surface light source layer;
[0024] Accordingly, when the processing unit controls the target surface light source layer to perform supplementary lighting processing on the target object, it can specifically be used for:
[0025] Obtain the luminescence parameters of the target surface light source layer from the target parameter set;
[0026] Based on the luminescence parameters of the target surface light source layer, the target surface light source layer is controlled to emit light in order to provide supplementary lighting for the target object.
[0027] In another embodiment, after obtaining the target object image, the processing unit can also be used for:
[0028] Acquire at least one reference object image historically acquired by the image acquisition device, wherein the reference object image is obtained by acquiring an image of an object that is at a distance of the target distance value from the image acquisition device;
[0029] The image quality of each reference object image and the image quality of the target object image are obtained, wherein any image quality includes at least one of the following: brightness uniformity and exposure error;
[0030] Based on the image quality of each reference object image and the image quality of the target object image, a high-quality object image is determined among the at least one reference object image and the target object image. The high-quality object image refers to an object image whose image quality meets the quality conditions.
[0031] If the number of high-quality object images is greater than the number threshold, the mapping information table is updated based on the light source layer information corresponding to each high-quality object image; wherein, any light source layer information is used to indicate: the surface light source layer that provides supplementary lighting to the corresponding object when the corresponding object image is acquired.
[0032] In another embodiment, the image acquisition device is equipped with at least two distance sensors; correspondingly, when the acquisition unit is used to acquire the target distance value between the target object and the image acquisition device, it can specifically be used for:
[0033] Each distance sensor in the image acquisition device is invoked to detect the distance between the target object and the image acquisition device, and at least two initial distance values are obtained, with one initial distance value obtained from the detection of one distance sensor.
[0034] The at least two initial distance values are integrated to obtain the target distance value between the target object and the image acquisition device.
[0035] In another embodiment, when the acquisition unit integrates the at least two initial distance values to obtain the target distance value between the target object and the image acquisition device, it may specifically be used for:
[0036] By performing a consistency check on the at least two initial distance values, the spatial relationship between the target object and the top surface of the image acquisition device is determined; the top surface refers to the device surface of the image acquisition device facing the corresponding object when performing image acquisition on any object.
[0037] If the spatial relationship indicates that the target object is parallel to the top surface, then any initial distance value is used as the target distance value between the target object and the image acquisition device.
[0038] In another embodiment, when the acquisition unit integrates the at least two initial distance values to obtain the target distance value between the target object and the image acquisition device, it can also be used for:
[0039] If the spatial relationship indicates that the target object is tilted to the top surface, then the target object is projected onto the two-dimensional plane where the top surface is located to obtain a planar graphic;
[0040] Determine the geometric center point of the planar figure and map the geometric center point back to the target object to obtain the mapping point;
[0041] The distance between the mapping point and the image acquisition device is obtained and used as the target distance between the target object and the image acquisition device.
[0042] In another implementation, when the processing unit calls the image acquisition component to acquire an image of the target object after supplemental lighting, it can specifically be used to:
[0043] The image acquisition component is invoked to capture an image of the target object after supplemental lighting, thereby obtaining an initial image of the object;
[0044] Based on the brightness values of each pixel in the initial object image, the quality of the initial object image is detected to obtain the image quality of the initial object image;
[0045] If the image quality meets the quality requirements, then the initial object image is used as the target object image;
[0046] If the image quality does not meet the quality requirements, the emission parameters of the target surface light source layer are adjusted. Based on the adjusted emission parameters, the target surface light source layer is controlled to re-illuminate the target object. The image acquisition component is then invoked to acquire an image of the re-illuminated target object, thereby obtaining an image of the target object.
[0047] In another implementation, the target object is the palm print of the target user, and the target object image is the target palm print image; correspondingly, after obtaining the target palm print image, the processing unit can also be used to:
[0048] The target user is identified based on the target palm print image to obtain the identification result.
[0049] Based on the identity recognition results, business processing is performed on the target user.
[0050] In another aspect, embodiments of this application provide a computer device, the computer device including an input interface and an output interface, the computer device further including:
[0051] Processor and computer storage media;
[0052] The processor is adapted to implement one or more instructions, and the computer storage medium stores one or more instructions, which are adapted to be loaded by the processor and executed by the aforementioned image processing method.
[0053] In another aspect, embodiments of this application provide a computer storage medium storing one or more instructions adapted for loading and executing the aforementioned image processing method by a processor.
[0054] In another aspect, embodiments of this application provide a computer program product comprising one or more instructions; when one or more instructions in the computer program product are executed by a processor, they implement the image processing method mentioned above.
[0055] The image acquisition device in this embodiment is configured with an image acquisition component and at least two surface light source layers. Different surface light source layers have different field of view angles. When image acquisition of a target object is required, the target distance between the target object and the image acquisition device, along with the field of view angles of each surface light source layer, can be considered. Following the principle that the smaller the target distance, the larger the field of view angle of the surface light source layer, the higher the target light source layer will be selected. This ensures that the field of view angle of the selected target surface light source layer meets the supplementary lighting requirements of the target object. This improves the supplementary lighting effect when controlling the target surface light source layer to perform supplementary lighting on the target object, thereby improving the image quality of the target object image obtained by calling the image acquisition component to acquire the image of the supplemented target object. Therefore, this embodiment, by configuring surface light source layers with different field of view angles in the image acquisition device and illuminating surface light source layers with different field of view angles based on the spatial position of the object (i.e., the distance between the object and the image acquisition device), can achieve supplementary lighting adaptation for both near and far distances, thereby effectively supplementing lighting for objects in different spatial positions, improving the supplementary lighting effect, and ultimately enhancing the image acquisition quality. Attached Figure Description
[0056] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0057] Figure 1a This is a schematic diagram of the structure of an image acquisition device provided in an embodiment of this application;
[0058] Figure 1b This is a schematic diagram of the structure of a light-emitting diode provided in an embodiment of this application;
[0059] Figure 1c This is a schematic diagram of a brightness transformation curve provided in an embodiment of this application;
[0060] Figure 1d This is a schematic diagram illustrating an image exhibiting uneven brightness, as provided in an embodiment of this application.
[0061] Figure 1e This is a schematic diagram illustrating how brightness decreases with distance, provided in an embodiment of this application.
[0062] Figure 1f This is a schematic diagram illustrating the comparison of brightness attenuation at different distances, provided in an embodiment of this application.
[0063] Figure 1g This is a schematic diagram of the arrangement of multiple surface light source layers provided in an embodiment of this application;
[0064] Figure 1h This is a schematic diagram of the structure of an optical compensation module provided in an embodiment of this application;
[0065] Figure 1i This is a schematic diagram illustrating the supplementary lighting effect of an optical compensation module provided in an embodiment of this application;
[0066] Figure 2 This is a schematic flowchart of an image processing method provided in an embodiment of this application;
[0067] Figure 3a This is a schematic diagram illustrating how multiple distance sensors determine the distance value of a target, as provided in an embodiment of this application.
[0068] Figure 3b This is a schematic diagram illustrating another method for determining target distance values using multiple distance sensors, as provided in an embodiment of this application.
[0069] Figure 3c This is a schematic diagram of selecting a target surface light source layer based on a mapping information table, provided in an embodiment of this application.
[0070] Figure 4 This is a schematic flowchart of an image processing method provided in another embodiment of this application;
[0071] Figure 5a This is a schematic diagram illustrating the supplementary lighting effect of an optical compensation module according to another embodiment of this application;
[0072] Figure 5b This is a schematic diagram of the workflow of a palm payment device provided in an embodiment of this application;
[0073] Figure 6 This is a schematic diagram of the structure of an image processing device provided in an embodiment of this application;
[0074] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0075] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0076] In this application embodiment, the image acquisition device refers to a device capable of image acquisition (i.e., taking pictures); for example, it may include, but is not limited to, any of the following: palmprint recognition device, face recognition device, camera device, etc. Specifically: ① A palmprint recognition device is a device for identity verification based on palmprint recognition technology, which may include, but is not limited to: attendance devices or door lock devices based on palmprint recognition, palm payment devices, etc.; a palm payment device is a device that uses palm biometric technology for payment, which can collect the user's palmprint image and then verify the user's identity before processing the payment. ② A face recognition device is a device for identity verification based on face biometric technology, which can collect the user's face image and then verify the user's identity before performing subsequent business processing (such as payment processing, unlocking processing, etc.). ③ A camera device refers to a terminal device with shooting function, such as a camera, smartphone, computer (such as tablet, laptop, desktop computer, etc.), smart wearable device (such as smartwatch, smart glasses), smart voice interaction device, smart home appliance (such as smart TV), vehicle terminal or aircraft, etc.
[0077] See Figure 1a As shown, common image acquisition devices typically include an image acquisition module (such as a camera) and an optical compensation module (white and red light supplementary lighting system). This optical compensation module may include an LED with a fixed field of view (FOV). The FOV of an LED refers to the angle at which the LED illuminates the light source after it emits light; it indicates the deflection angle of the edge of the LED's light field relative to the center of the light field. The larger the FOV, the larger the deflection angle, and the larger the light field constructed by the LED. When the image acquisition module is acquiring an image of an object, the LED can be lit to illuminate the object, thus providing supplementary lighting. An LED (Light Emitting Diode) is a solid-state semiconductor device that converts electrical energy into visible light. See also... Figure 1b As shown, an LED is a lens that guides light emission by embedding a semiconductor chip onto a reflector and then sealing it with resin. When connected to a DC power source, the current flowing through the chip causes it to generate electromagnetic waves (or light) of a certain frequency (or color); different semiconductor materials can cause LEDs to emit different colors of light.
[0078] Research has revealed a field-of-view issue with LED lights: generally, the central portion of the light field created by an LED light is brighter, while the edges are darker. Furthermore, the greater the deflection angle of the light field edge relative to the center, the smaller the brightness ratio between the edge and center of the light field (e.g., ...). Figure 1cAs shown in the curve (in the graph), the larger the field of view of the LED light, the more pronounced the decrease in brightness at the edges of the light field constructed by the LED light. Therefore, when acquiring images of nearby objects, due to the close distance between the object and the image acquisition device, a large field of view is required for the LED light to completely cover the entire object. However, a large field of view can easily result in sufficient brightness at the center of the light field constructed by the LED light, while the brightness at the edges of the light field is very low. This can easily lead to uneven illumination, resulting in poor image acquisition quality and a lot of uneven brightness in the acquired image, such as... Figure 1d As shown. Furthermore, since the field of view of an LED light is fixed, the size of the light field is also fixed. Therefore, when an object moves longitudinally or laterally within the light field, it is impossible to adjust the light field to match the object's position. This can easily exacerbate the impact of uneven brightness on the image acquisition quality.
[0079] Furthermore, when using LED lights with a large field of view, although they can effectively serve close-range shooting (i.e., when capturing images of nearby objects, they can completely cover the entire object), due to their large field of view, the brightness at the edges of the light field is significantly reduced, and the brightness attenuation at the center of the light field follows an inverse relationship with the square of the distance (e.g., ...). Figure 1e As shown in the brightness attenuation diagram, the greater the distance, the greater the brightness at the center of the light field (e.g., Figure 1f As shown in the diagram, in this case, when LED lights are used to supplement the lighting of distant objects (i.e., objects far from the image acquisition device), insufficient brightness is easily encountered, resulting in poor supplementary lighting effect and affecting image acquisition quality. If the power of the LED light is increased to improve the brightness of the distant supplementary lighting, it will cause significant light loss, resulting in low light energy utilization (i.e., low supplementary lighting efficiency) and high overall power consumption. When LED lights with a smaller field of view are used to concentrate the light energy, although the problem of insufficient illumination intensity (i.e., brightness) at the distant end can be solved, the light field constructed by the LED light in this case is small and cannot cover the range of the near-end object (i.e., the object closer to the image acquisition device), resulting in the inability to supplement the entire object, resulting in poor supplementary lighting effect and affecting image acquisition quality, causing the acquired image to have many uneven brightness states.
[0080] Based on this, in order to solve the above problems and to take into account both near-end and far-end characteristics, this application adopts a design scheme of multiple surface light source layers when constructing the light field design, and proposes a novel image acquisition device based on this design scheme. Specifically, the image acquisition device proposed in this application may be configured with at least: an image acquisition component and at least two surface light source layers, each of which may be located in an optical compensation module. The image acquisition component refers to a component used for image acquisition, which may include, but is not limited to, at least one of the following: an infrared camera (IR camera), an RGB camera (R represents red, G represents green, B represents blue), etc. A surface light source layer is a light source component that can provide supplementary lighting to the object to be image acquired by emitting light. Its shape can resemble a panel, such as a rectangular panel or a circular panel. Compared to the light emitted by a single LED light source, the light emitted by the surface light source layer is more parallel, allowing the light to illuminate the image acquisition object to a certain extent, thereby improving the uniformity of the supplementary lighting brightness, thus improving the supplementary lighting effect, and ultimately improving the image acquisition quality, avoiding uneven brightness in the acquired image.
[0081] In the aforementioned image acquisition device, different surface light source layers have different field of view angles; the field of view angle of any surface light source layer refers to the illumination angle of the corresponding surface light source layer after emission. By employing surface light source layers with different field of view angles, multiple surface light source layers can be used separately for near-end object illumination and far-end object illumination. This allows for adaptive adjustments to the light field based on the object's position when the object moves longitudinally or laterally within the light field, further reducing the impact of uneven brightness on image acquisition quality. For example, when capturing images of objects at close range, to ensure a large supplementary lighting range that fully covers the entire object and adequately illuminates the image acquisition area, multiple surface light source layers with larger field of view can be used to supplement the corresponding object. This improves the uniformity of supplementary lighting, thereby enhancing the supplementary lighting effect and image acquisition quality. Conversely, when capturing images of objects at distant locations, since the object occupies only a small area in the center of the image acquisition area, and due to the greater distance, the brightness at the center of the light field decreases inversely with the square of the distance. As the distance increases, the brightness at the center of the light field decreases more significantly. Therefore, to ensure sufficient supplementary lighting brightness for the object, multiple surface light source layers with smaller field of view can be used to supplement the corresponding object. This ensures uniformity of supplementary lighting while reducing light loss, thereby improving supplementary lighting efficiency (i.e., increasing light energy utilization) and reducing overall power consumption.
[0082] Based on the above description, the specific structure of each surface light source layer in the image acquisition device proposed in the embodiments of this application will be described below:
[0083] In one specific implementation, each surface light source layer may include multiple light-emitting components arranged in a specified form (such as a matrix), where the light-emitting components may be, for example, LED light sources.
[0084] In another specific implementation, each surface light source layer may include: at least one light-emitting component and a light guide plate. The at least one light-emitting component may be arranged around (i.e., the periphery) of the light guide plate. The light guide plate is a component that can be used to change the propagation angle of light, so that the light emitted by the light-emitting component is evenly distributed and illuminates the image acquisition object. It may be an optical-grade acrylic / PC sheet (also known as a polycarbonate sheet, polyester sheet, or Kapron sheet). Specifically, the image acquisition device has a top surface, which refers to the object-facing device surface of the image acquisition device when performing image acquisition on any object. When configuring the surface light source layers within the image acquisition device, the light guide plate in each surface light source layer may be parallel to the top surface of the image acquisition device, so that the light passing through the light guide plate can be emitted perpendicularly to the top surface of the image acquisition device and perpendicularly illuminate the image acquisition object.
[0085] Each light guide plate contains at least one scattering point at its bottom. Specifically, a high-tech material with extremely high refractive index and no light absorption can be used to print at least one scattering point (or light guide point) on the bottom surface of the light guide plate (optical-grade acrylic sheet) using techniques such as laser engraving, V-shaped cross-grid engraving, and UV (Ultra-Violet Ray) screen printing. Each scattering point is used to diffusely reflect light to change the propagation angle of the light. When at least one light-emitting component in any light source layer is lit, the light-emitting component emits light towards the corresponding light guide plate (i.e., the light guide plate in the same light source layer). This light is diffusely reflected by the scattering point in the corresponding light guide plate and then emitted from the top of the corresponding light guide plate to illuminate the object. The specific implementation principle is roughly as follows: the optical-grade acrylic sheet used in the light guide plate absorbs the light emitted from the light-emitting component and the light's residence on the surface of the light guide plate. When the light hits various scattering points, the reflected light diffuses in all directions, breaking the reflection conditions and escaping from the front of the light guide plate. Thus, through various light guide points of varying density and size, the light guide plate emits light uniformly. It can be seen that the purpose of the scattering points is to reflect the light exposed on the bottom surface back into the light guide plate, thereby improving the light utilization efficiency; under the same area of light emission brightness, the luminous efficiency is high and the power consumption is low.
[0086] In one optional implementation, each of the aforementioned surface light source layers can be parallel to the top surface of the image acquisition device to form a multi-layer structure, and the field of view of each surface light source layer gradually decreases along the direction from the top surface to the bottom surface of the image acquisition device; wherein, the bottom surface refers to the device surface that is parallel to the top surface among the multiple device surfaces of the image acquisition device. That is, as... Figure 1gAs shown: the closer the surface light source layer is to the top surface, the higher its spatial height (i.e., layer) and the larger its field of view in the image acquisition device; conversely, the farther the surface light source layer is from the top surface, the lower its spatial height (i.e., layer) and the smaller its field of view in the image acquisition device. It should be noted that this is merely an illustrative representation of the structural relationships between the surface light source layers and is not intended to limit the scope of the representation. In other embodiments, the surface light source layers may be arranged in other ways.
[0087] Optionally, the bottom of the bottom surface light source layer (i.e., the bottom surface light source layer) may also include a reflective film. This reflective film is used to reflect all the light emitted by the light-emitting components in the bottom surface light source layer towards the corresponding light guide plate, thus reflecting all the light from the light guide plate out of the top of the corresponding light guide plate. It can be seen that by providing a reflective film at the bottom of the bottom surface light source layer, the light emitted by the light-emitting components in the bottom surface light source layer towards the corresponding light guide plate can be prevented from escaping from the bottom of the light guide plate, thereby improving light utilization efficiency. Of course, it is understood that in other embodiments, a reflective film may not be provided at the bottom of the bottom surface light source layer, and this application does not limit this.
[0088] Optionally, the image acquisition device may further include at least one support frame, which may be located on both sides of the bottom surface light source layer to support each surface light source layer located above the bottom surface light source layer. Furthermore, the support frame may also be used to reflect light emitted by the light-emitting components in any surface light source layer toward the support frame and onto the light guide plate of at least one surface light source layer, so that the corresponding light is emitted from the top of the light guide plate of at least one surface light source layer to illuminate the object. It is evident that by setting support frames on both sides of the bottom surface light source layer, not only can the stability of the device be improved, but light leakage from both sides of the surface light source layer can also be prevented, thus improving light utilization efficiency. Taking two surface light source layers as an example, a structural schematic diagram of the optical compensation module of the image acquisition device in this case can be found [link to schematic diagram]. Figure 1h As shown. Of course, it is understood that in other embodiments, the support frames on both sides of the bottom surface light source layer may not be provided, such as fixing each surface light source layer by spot welding. This application does not limit this.
[0089] Based on the above description, in order to enable the image acquisition device to capture clear images, the embodiments of this application have systematically designed the optical compensation module in the image acquisition device. This design ensures that the optical compensation module can provide complete coverage for objects at closer locations (i.e., achieve large field-of-view illumination) and also effectively compensate for the brightness of objects at farther locations (i.e., meet higher illumination requirements). Figure 1iAs shown. Furthermore, to avoid the problem of local shadows in the image caused by uneven brightness of the light-emitting components in the optical compensation module, a homogenization design is added to the optical compensation module to improve the brightness uniformity of the light field.
[0090] Based on the aforementioned image acquisition device, this application also proposes an image processing method. In a specific implementation, the image processing method can be executed by a computer device, which can be a terminal or a server; alternatively, the image processing method can be executed jointly by a terminal and a server. The terminal mentioned here can be the aforementioned image acquisition device, or other devices with a communication connection to the image acquisition device (such as smartphones, computers, smart wearable devices, smart voice interaction devices, smart home appliances, vehicle terminals, or aircraft, etc.); the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, etc.
[0091] The following example uses computer equipment as the executing entity, combined with... Figure 2 The flowchart shown illustrates the specific implementation process of the image processing method proposed in the embodiments of this application. Please refer to... Figure 2 As shown, the image processing method can be roughly divided into the following steps S201-S203:
[0092] S201, Obtain the target distance value between the target object and the image acquisition device, which is equipped with an image acquisition component and at least two surface light source layers, with different surface light source layers having different field of view angles.
[0093] In this context, the target object refers to the object to be image acquired. For example, in a palm print recognition scenario (such as a palm-swipe payment scenario), the target object can be the palm print of the target user, where the target user refers to the user who wants to perform palm print recognition (such as a palm-swipe payment). Similarly, in a face recognition scenario, the target object can be the face of the target user, where the target user refers to the user who wants to perform face recognition. Furthermore, in a shooting scenario, the target object can be any shooting target, such as a person, object, or gesture.
[0094] In a specific implementation, the image acquisition device can be configured with at least one distance sensor to determine the target distance between the target object and the image acquisition device. Here, the distance sensor refers to a device capable of detecting (measuring) the distance between the object and the image acquisition device; for example, it may include, but is not limited to, one or more of the following: infrared modulated spectral reflectance intensity detection devices, infrared time-of-flight detection devices, radar sensors, etc.
[0095] When the image acquisition device is equipped with a distance sensor, the specific implementation of step S201 may be: calling the distance sensor in the image acquisition device to detect the distance value between the target object and the image acquisition device, and then using the distance value detected by the distance sensor as the target distance value between the target object and the image acquisition device.
[0096] When the image acquisition device is equipped with at least two distance sensors, the specific implementation of step S201 can be as follows: Each distance sensor in the image acquisition device is invoked to detect the distance value between the target object and the image acquisition device, obtaining at least two initial distance values, with each distance sensor detecting one initial distance value. Further, the at least two initial distance values can be integrated to obtain the target distance value between the target object and the image acquisition device. Therefore, by configuring at least two distance sensors in the image acquisition device, the target distance value between the target object and the image acquisition device can be comprehensively determined based on the distance detection results of at least two distance sensors, thereby achieving accurate detection of the distance value and improving the accuracy of the target distance value.
[0097] The specific implementation method for integrating at least two initial distance values to obtain the target distance value between the target object and the image acquisition device can be any of the following:
[0098] Implementation Method 1: At least two initial distance values can be sorted in descending (or ascending) order to obtain a distance value sequence. The median value of this distance value sequence is used as the target distance between the target object and the image acquisition device. The median value of the distance value sequence refers to the initial distance value in the middle position of the sequence. Let the distance value sequence include K initial distance values, where K is an integer greater than 1. If K is odd, the middle position is the (K+1) / 2th position, and the median value is the (K+1) / 2th initial distance value in the sequence. If K is even, the middle position can be the (K / 2)th position, and the median value is the (K / 2)th initial distance value in the sequence. For example, see... Figure 3aAs shown: Suppose there are a total of 3 distance sensors to detect 3 initial distance values, namely: 50, 52 and 48; sort these 3 initial distance values in descending order of distance value, and we can get the distance value sequence {52, 50, 48}. The median value of this distance value sequence is 50. Therefore, 50 can be used as the target distance value between the target object and the image acquisition device.
[0099] Implementation Method 2: The target distance between the target object and the image acquisition device can be obtained by averaging (or weighted averaging) at least two initial distance values. Specifically, the weighted averaging can be performed as follows: The weight of each distance sensor can be obtained, which can be preset based on actual needs or empirical values. The initial distance values detected by the corresponding distance sensors are weighted using their respective weights to obtain at least two weighted distance values. The average of these weighted distance values is then calculated to obtain the target distance between the target object and the image acquisition device.
[0100] Implementation Method 3: The spatial relationship between the target object and the top surface of the image acquisition device can be determined by performing a consistency check on at least two initial distance values. Specifically, if at least two initial distance values are consistent (i.e., all initial distance values are the same), the spatial relationship between the target object and the top surface of the image acquisition device can be determined to be a parallel relationship, that is, the spatial relationship is used to indicate that the target object is parallel to the top surface; if at least two initial distance values are not consistent (i.e., at least one initial distance value is different from the other initial distance values), the spatial relationship between the target object and the top surface of the image acquisition device can be determined to be an inclined relationship, that is, the spatial relationship is used to indicate that the target object is inclined to the top surface.
[0101] Furthermore, if the spatial relationship indicates that the target object is parallel to the top surface, then any initial distance value can be used as the target distance value between the target object and the image acquisition device. If the spatial relationship indicates that the target object is tilted to the top surface, then the target object can be projected onto the two-dimensional plane containing the top surface to obtain a planar figure; the geometric center point of the planar figure is determined, and this geometric center point is mapped back to the target object to obtain a mapping point; the distance value between the mapping point and the image acquisition device (this distance value can be re-detected by any distance sensor) is obtained as the target distance value between the target object and the image acquisition device. Taking the example of obtaining three initial distance values through three distance sensors, a schematic diagram of determining the target distance value based on this implementation method can be provided. Figure 3b As shown, this embodiment of the application determines the target distance value between the target object and the image acquisition device by considering the spatial relationship between the target object and the image acquisition device, which can indicate the accuracy of the target distance value.
[0102] It is understood that this is merely an illustrative explanation of how to determine the target distance value, and not an exhaustive list. For example, if the spatial relationship indicates that the target object is tilted towards the top surface, the largest initial distance value can be selected from at least two initial distance values as the target distance value. This ensures that the subsequently determined target surface light source layer can meet the requirements for supplementary lighting intensity. Alternatively, the smallest initial distance value can be selected from at least two initial distance values as the target distance value. This ensures that the subsequently determined target surface light source layer can meet the requirements for supplementary lighting range, achieving supplementary lighting for the entire target object and improving the supplementary lighting effect. Another example is that the distance between the three-dimensional geometric center of the target object and the image acquisition device can be directly obtained based on the distance sensor, and used as the target distance value between the target object and the image acquisition device, and so on.
[0103] S202, based on the target distance value and the field of view of each surface light source layer, select the target surface light source layer from at least two surface light source layers according to the target selection rules.
[0104] Among them, the target selection rule can be used to indicate that the smaller the target distance value, the more likely the surface light source layer with a larger field of view will be selected (that is, the surface light source layer with a larger field of view has a higher selection priority); in other words, the target selection rule can be used to indicate that the larger the target distance value, the more likely the surface light source layer with a smaller field of view will be selected (that is, the surface light source layer with a smaller field of view has a higher selection priority).
[0105] In one specific implementation, a mapping information table can be pre-constructed based on target selection rules. This mapping information table can include multiple distance ranges and parameter groups mapped to each distance range. Each parameter group includes at least the emission state of each surface light source layer, which indicates whether the surface light source layer emits light. Optionally, each parameter group may also include: emission parameters of each surface light source layer; these emission parameters may include, but are not limited to, at least one of the following: emission duration and emission intensity, etc. For example, taking two surface light source layers (represented as surface light source layer 1 and surface light source layer 2, where the field of view of surface light source layer 1 is greater than that of surface light source layer 2) as an example, the mapping information table constructed based on the target selection rules can be exemplarily shown in Table 1 below:
[0106] Table 1
[0107]
[0108] Based on this, a specific implementation of step S202 may include: obtaining a mapping information table constructed based on target selection rules, and from the mapping information table, finding a distance range containing target distance values as the target distance range, and obtaining the parameter group mapped to the target distance range as the target parameter group, thereby determining the target surface light source layer from at least two surface light source layers based on the light emission state of each surface light source layer in the target parameter group. Specifically, the target surface light source layer may be the surface light source layer state corresponding to the light emission state used to indicate light emission in the target parameter group. See, for example... Figure 3c As shown in Table 1 above, if the target distance value is 50, which belongs to the distance range of (30, 60), then the parameter group corresponding to the distance range of (30, 60) can be determined as the target parameter group. Since the light emission state 1 (i.e. the light emission state of surface light source layer 1) included in the target parameter group is used to indicate that the corresponding surface light source layer emits light, and the light emission state 2 (i.e. the light emission state of surface light source layer 2) is used to indicate that the corresponding surface light source layer does not emit light, surface light source layer 1 can be determined as the target surface light source layer from the two surface light source layers based on the light emission state of each surface light source layer in the target parameter group.
[0109] In another specific implementation, a working distance range can be pre-configured for each surface light source layer based on target selection rules. This working distance range refers to the distance range that must be satisfied between the object and the image acquisition device when the surface light source layer is lit. Specifically, the smaller the field of view of the surface light source layer, the larger its maximum working distance range. That is, the maximum working distance range of a surface light source layer with a small field of view can be greater than that of a surface light source layer with a large field of view. For example, the working distance range of a surface light source layer with a field of view of 90° is (80, 120), and the working distance range of a surface light source layer with a field of view of 120° is (30, 60).
[0110] Based on this, the specific implementation of step S202 may include: obtaining the working distance range of each surface light source layer preset based on the target selection rule; traversing each surface light source layer and determining whether the target distance value is within the working distance range of the currently traversed surface light source layer; if it is, then taking the currently traversed surface light source layer as the target surface light source layer and continuing to traverse until each surface light source layer has been traversed; if it is not, then prohibiting the currently traversed surface light source layer from being taken as the target surface light source layer and continuing to traverse until each surface light source layer has been traversed.
[0111] In another specific implementation, a neural network model with surface light source layer prediction capability can be pre-built based on AI (Artificial Intelligence) technology. Specifically, training data and data labels can be obtained. The training data may include, but is not limited to: sample distance values, field of view angles of each surface light source layer, and target selection rules. Data labels are used to indicate the surface light source layers that need to be illuminated. The pre-set model is called to predict the surface light source layers that need to be illuminated from at least two surface light source layers according to the sample distance values and field of view angles of each surface light source layer in the training data, and according to the target selection rules, to obtain sample prediction results. Based on the difference between the sample prediction results and the data labels, the model parameters of the pre-set model are optimized to obtain a neural network model with surface light source layer prediction capability.
[0112] Based on this, the specific implementation of step S202 may include: obtaining a neural network model with the ability to predict surface light source layers, calling the neural network model to predict the surface light source layer to be lit in at least two surface light source layers according to the target distance value and the field of view of each surface light source layer, and obtaining the target prediction result, thereby selecting the surface light source layer indicated by the target prediction result as the target surface light source layer in at least two surface light source layers.
[0113] S203, control the target surface light source layer to perform supplementary lighting processing on the target object, and call the image acquisition component to acquire the image of the target object after supplementary lighting, so as to obtain the image of the target object.
[0114] In a specific implementation, the computer device can acquire the emission parameters of the target surface light source layer. These emission parameters can be preset default values or values calculated based on statistical analysis of the historical emission patterns of the target surface light source layer (such as the emission duration and intensity of each historical emission). This application embodiment does not limit this. Furthermore, the computer device can control the target surface light source layer to emit light according to the emission parameters of the target surface light source layer to perform supplementary lighting processing on the target object, and call the image acquisition component to acquire an image of the supplemented-light target object (such as taking a picture) to obtain an image of the target object.
[0115] Optionally, when the target object is the palm print of the target user, the target object image is the target palm print image. In this case, after obtaining the target palm print image, the computer device can also perform identity recognition on the target user based on the target palm print image, obtain the identity recognition result, and perform business processing on the target user based on the identity recognition result. Specifically, if the identity recognition result indicates that the target user has passed identity verification, the target business can be executed on the target user; if the identity recognition result indicates that the target user has not passed identity verification, the business operation on the target user can be refused (prohibited). Among them, in the palm payment scenario, the business operation can be a payment operation; in the palm attendance scenario, the business operation can be an attendance operation; in the palm unlock scenario, the business operation can be an unlock operation, and so on. It is understandable that when the target object is the face of the target user, the target object image is the target face image. In this case, after obtaining the target face image, the computer device can also perform identity recognition on the target user based on the target face image, and obtain the identity recognition result.
[0116] The image acquisition device in this embodiment is configured with an image acquisition component and at least two surface light source layers. Different surface light source layers have different field of view angles. When image acquisition of a target object is required, the target distance between the target object and the image acquisition device, along with the field of view angles of each surface light source layer, can be considered. Following the principle that the smaller the target distance, the larger the field of view angle of the surface light source layer, the higher the target light source layer will be selected. This ensures that the field of view angle of the selected target surface light source layer meets the supplementary lighting requirements of the target object. This improves the supplementary lighting effect when controlling the target surface light source layer to perform supplementary lighting on the target object, thereby improving the image quality of the target object image obtained by calling the image acquisition component to acquire the image of the supplemented target object. Therefore, this embodiment, by configuring surface light source layers with different field of view angles in the image acquisition device and illuminating surface light source layers with different field of view angles based on the spatial position of the object (i.e., the distance between the object and the image acquisition device), can achieve supplementary lighting adaptation for both near and far distances, thereby effectively supplementing lighting for objects in different spatial positions, improving the supplementary lighting effect, and ultimately enhancing the image acquisition quality.
[0117] Based on the above Figure 2 The method embodiments shown in this application also propose a more specific image processing method; in this application embodiment, the image processing method is still described using a computer device as an example. Please refer to... Figure 4 As shown, the image processing method can be roughly divided into the following steps S401-S406:
[0118] S401, Obtain the target distance value between the target object and the image acquisition device, which is equipped with an image acquisition component and at least two surface light source layers, with different surface light source layers having different field of view angles.
[0119] In a specific implementation, the image acquisition device may also be configured with at least two sensors. When the computer device executes step S401, it can call each distance sensor in the image acquisition device to detect the distance value between the target object and the image acquisition device, obtaining at least two initial distance values. Further, by performing a consistency check on the at least two initial distance values, the spatial relationship between the target object and the top surface of the image acquisition device can be determined. If the spatial relationship indicates that the target object is parallel to the top surface, then any initial distance value can be used as the target distance value between the target object and the image acquisition device. If the spatial relationship indicates that the target object is tilted to the top surface, then the target object can be projected onto the two-dimensional plane where the top surface is located to obtain a planar figure; the geometric center point of the planar figure is determined, and the geometric center point is mapped back to the target object to obtain a mapping point; the distance value between the mapping point and the image acquisition device is obtained as the target distance value between the target object and the image acquisition device, thereby improving the accuracy of the target distance value.
[0120] S402, Obtain a mapping information table constructed based on the target selection rules. The mapping information table includes multiple distance ranges and parameter groups mapped to each distance range.
[0121] Each parameter group includes at least the luminescence state of each surface light source layer and the luminescence parameters of each surface light source layer. The luminescence state of any surface light source layer is used to indicate whether the surface light source layer emits light.
[0122] S403, from the mapping information table, find the distance range containing the target distance value as the target distance range, and obtain the parameter group mapped by the target distance range as the target parameter group.
[0123] S404, Based on the luminescence state of each surface light source layer in the target parameter group, determine the target surface light source layer from at least two surface light source layers.
[0124] S405: Obtain the luminescence parameters of the target surface light source layer from the target parameter group, and control the target surface light source layer to emit light according to the luminescence parameters of the target surface light source layer, so as to perform supplementary lighting processing on the target object.
[0125] S406, call the image acquisition component to acquire an image of the target object after supplemental lighting, and obtain the image of the target object.
[0126] In practical implementation, the image acquisition component can be called to capture an image of the illuminated target object, obtaining an initial object image, which can then be directly used as the target object image. Alternatively, the initial object image can be quality-checked based on the brightness values of each pixel, yielding its image quality. If the image quality meets the quality criteria, the initial object image can be used as the target object image. If the image quality does not meet the criteria, the emission parameters of the target surface light source layer can be adjusted. Based on the adjusted emission parameters, the target surface light source layer can be controlled to re-illuminate the target object, and the image acquisition component can be called to acquire an image of the re-illuminated target object, obtaining the target object image.
[0127] ① The image quality of the initial object image may include at least one of the following: brightness uniformity and exposure error. Here, exposure error refers to the degree of exposure error (i.e., incorrect exposure), and exposure error may include at least one of overexposure and underexposure. This application embodiment does not limit the specific calculation method (i.e., quality monitoring method) of brightness uniformity and exposure error. ② The quality conditions may include, but are not limited to, at least one of the following: brightness uniformity is greater than the uniformity threshold, exposure error is less than the error threshold, etc. ③ After calling the image acquisition component to acquire an image of the target object after relighting, the re-acquired object image can be directly used as the target object image. Alternatively, it can be determined again whether the image quality of the re-acquired object image meets the quality conditions. If it does, the re-acquired object image is used as the target object image. Otherwise, the luminous parameters of the target surface light source layer are adjusted, and relighting and image acquisition are performed until the image quality of the re-acquired object image meets the quality conditions, thus obtaining the target object image.
[0128] Optionally, after obtaining the target object image, the computer device can also acquire at least one reference object image historically acquired by the image acquisition device. This reference object image is obtained by acquiring an image of an object at a distance from the target object from the image acquisition device. Furthermore, the computer device can acquire the image quality of each reference object image and the image quality of the target object image. Each image quality includes at least one of the following: brightness uniformity and exposure error. Further, based on the image quality of each reference object image and the image quality of the target object image, the computer device can determine a high-quality object image from at least one reference object image and the target object image. A high-quality object image refers to an object image whose image quality meets the specified quality conditions. After determining the high-quality object image, the computer device can directly update the mapping information table based on the light source layer information corresponding to each high-quality object image; alternatively, it can determine whether the number of high-quality object images exceeds a quantity threshold. If the number of high-quality object images exceeds the quantity threshold, the mapping information table can be updated based on the light source layer information corresponding to each high-quality object image.
[0129] In this embodiment, any light source layer information is used to indicate: the area light source layer that provides supplementary lighting to the corresponding object when the corresponding object image is acquired; optionally, any light source layer information may also include: the supplementary lighting parameters of the area light source layer that provides supplementary lighting to the corresponding object when the corresponding object image is acquired. It should be noted that the specific method of updating the mapping information table based on the light source layer information corresponding to each high-quality object image is not limited in this application embodiment; for example, machine learning in AI technology can be used to perform statistical analysis on the light source layer information corresponding to each high-quality object image to obtain light source layer information that matches the target distance value, and the light source layer information and the target distance value can be associated and stored in the mapping information table, or the parameter group mapped to the target distance range (i.e., the distance range containing the target distance value) in the mapping information table can be updated using the light source layer information. It can be seen that this application embodiment supports dynamically updating the mapping information table based on its historical image acquisition situation after the image acquisition device has been working for a period of time, so that the parameter groups in the mapping information table are more in line with the actual working situation of the image acquisition device, improving the accuracy of the mapping information table, thereby improving the accuracy of subsequent selection of area light source layers based on the mapping information table.
[0130] The image acquisition device in this embodiment is configured with an image acquisition component and at least two surface light source layers. Different surface light source layers have different field of view angles. When image acquisition of a target object is required, the target distance between the target object and the image acquisition device, along with the field of view angles of each surface light source layer, can be considered. Following the principle that the smaller the target distance, the larger the field of view angle of the surface light source layer, the higher the target light source layer will be selected. This ensures that the field of view angle of the selected target surface light source layer meets the supplementary lighting requirements of the target object. This improves the supplementary lighting effect when controlling the target surface light source layer to perform supplementary lighting on the target object, thereby improving the image quality of the target object image obtained by calling the image acquisition component to acquire the image of the supplemented target object. Therefore, this embodiment, by configuring surface light source layers with different field of view angles in the image acquisition device and illuminating surface light source layers with different field of view angles based on the spatial position of the object (i.e., the distance between the object and the image acquisition device), can achieve supplementary lighting adaptation for both near and far distances, thereby effectively supplementing lighting for objects in different spatial positions, improving the supplementary lighting effect, and ultimately enhancing the image acquisition quality.
[0131] Based on the descriptions of the various method embodiments above, this application proposes a palm-swipe payment device. See also... Figure 5aAs shown, the optical compensation module of the palm payment device proposed in this application adopts a layered supplementary lighting scheme, which may include two surface light source layers. These two surface light source layers are used separately for near-end palm illumination (supplementary lighting) and far-end palm illumination (supplementary lighting). This ensures that when the palm is near, there is a large illumination range (supplementary lighting range) that can well cover the palm and fully illuminate the image acquisition area of the image acquisition component (such as the camera). When the palm is far, since the palm only occupies a small area in the center of the image acquisition area, and because the distance is far, and light follows the inverse square distance principle, the illumination brightness decreases significantly with increasing distance. In order to ensure sufficient palm illumination brightness, a surface light source layer with a small field of view can be used for supplementary lighting, thereby improving the supplementary lighting efficiency and reducing the overall power consumption of the device.
[0132] Specifically, to achieve different lighting (supplementary lighting) effects at near and far positions, this embodiment of the application sets light guide plates in the upper and lower surface light source layers, and sets light-emitting components (such as LED light sources) on the outer ring of each light guide plate. When the palm is close to the device, the light-emitting components in the upper surface light source layer (i.e., the surface light source layer with a larger field of view) are lit and emit light, which propagates inside the upper light guide plate (i.e., the light guide plate in the upper surface light source layer). A certain proportion of scattering points are added to the bottom surface of the upper light guide plate. When the light shines on these scattering points, it becomes diffuse reflection and is emitted from the front of the upper cover plate (i.e., the top surface of the palm payment device), thereby changing the propagation angle of the horizontally propagating light to illuminate the palm. Since the palm is close to the top of the palm payment device, a larger lighting range and better lighting uniformity are required. Therefore, the light can be scattered and the propagation angle changed by the scattering points on the bottom surface of the upper light guide plate so that the light illuminates the palm.
[0133] When the palm is far from the palm payment device, in order to achieve better lighting effect, the light needs to be concentrated as much as possible within a small lighting field of view to achieve high lighting efficiency. Based on this, the light-emitting components (such as LED light sources) around the lower light guide plate (i.e., the light guide plate in the lower surface light source layer) can be opened to emit light. This light enters the lower light guide plate, which also contains a certain proportion of scattering points and is attached with a reflective film. This ensures that all the light propagating in the lower light guide plate can be guided in the vertical direction to achieve far-end lighting. Understandably, when light propagates upward from the lower light guide plate and passes through the upper light guide plate, the light can pass directly through the non-scattering areas because the scattering points on the upper light guide plate are not completely covered. Therefore, the light can be directly incident, thus better illuminating the palm. Furthermore, even if light hits a scattering point and is reflected back to the lower light guide plate, the light can be redirected within the lower light guide plate or reflected by a reflective film and attempt to pass through the upper light guide plate again. Ultimately, the light can illuminate the palm at a relatively small field of view (FOV), achieving very high illumination efficiency. In other words, the back of the light guide plate can be covered with evenly distributed scattering points. When light hits a scattering point, the light is scattered, and due to the change in propagation angle, it can be redirected to propagate vertically upwards, thus forming a light path that illuminates the palm. In areas not covered by scattering points, the light follows a transmitted light path, thus transmitting from the lower light guide plate to the palm above the palm-swipe payment device, achieving good illumination (supplementary lighting) for both near and far ends.
[0134] As can be seen from the above description, in order to solve the need for near and far image acquisition, the proposed palm payment device adopts a design scheme of superimposed dual-layer light source layer to achieve a wider range of product usability, so that the user's palm can be clearly captured at a closer distance, and at a greater distance, it can also provide greater supplementary illumination to the palm.
[0135] Optionally, the palm-scanning payment device proposed in this application embodiment may include, in addition to the two surface light source layers mentioned above, an image acquisition component, multiple distance sensors, a central processing unit, etc. The image acquisition component may primarily include an infrared camera (or possibly a combination of an RGB camera and an infrared camera), which, as the core module of the image acquisition device, is responsible for acquiring palm print and palm vein information to generate a palm print image. Distance sensors can be used to detect different spatial positions of the palm above the palm-scanning payment device to provide supplementary lighting compensation. Specifically, multiple distance sensors are mainly used to detect whether the palm is located above the palm-scanning payment device (i.e., on the top surface of the palm-scanning payment device), and the specific distance value between the palm and the palm-scanning payment device. This allows for a comprehensive determination of the palm's position within the image acquisition area, including but not limited to the center, upper left, lower left, upper right, and lower right, based on the distance values detected by multiple distance sensors. This facilitates subsequent management and control of the light-emitting components in each surface light source layer by the central processing unit within the palm-scanning payment device.
[0136] See Figure 5b As shown, the workflow of the aforementioned palm-scanning payment device can be roughly as follows: Multiple distance sensors detect the distance between the palm and the payment device, and the distance values (i.e., readings) detected by each sensor are sent to the central processing unit (CPU). The CPU integrates the distance values sent by each sensor to determine the target distance between the palm and the payment device. The specific integration method is described above and will not be repeated here. Further, based on the target distance value, the CPU selects the upper surface light source layer, the lower surface light source layer, or a combination of both (i.e., the upper and lower surface light sources) from the two surface light source layers. The selected surface light source layer is then used to illuminate the palm, and the image acquisition component is used to capture an image of the illuminated palm to generate a target palmprint image. The image acquisition component returns the target palmprint image to the CPU, which then sends it to the server. The server uses this image to verify the target user's identity and executes the payment operation if the user's identity is confirmed.
[0137] As described above, in order to balance the characteristics of near and far ends, this application embodiment adopts a dual-layer light source design when constructing the light field design of the palm payment device. It also uses a corresponding distance sensor to detect the spatial position of the palm (i.e., the distance between the palm and the palm payment device). After accurately detecting the spatial position of the palm, it can control the illumination state (supplementary lighting state), illumination duration (supplementary lighting duration), and illumination intensity (supplementary lighting intensity) of the surface light source layer at different spatial heights to adjust the entire light field according to the palm position, dynamically ensuring the uniformity of the entire supplementary lighting field's shooting area. Based on this,
[0138] In summary, the palm payment device proposed in this application includes at least the following technical features:
[0139] (1) The optical compensation module adopts a dual-layer design, which includes two surface light source layers. Each surface light source layer can be lit up separately or used in combination. This can meet the wide range requirements of near-end palm image acquisition and the high brightness requirements of far-end palm image acquisition. Furthermore, since the light guide plate in each surface light source layer can be controlled independently, intelligent local supplementary lighting can be achieved. Subsequently, through machine learning, the brightness of each surface light source layer can be quickly adjusted according to the exposure of the pre-acquired image to achieve uniformity compensation and improve the overall quality of the acquired image.
[0140] (2) Multiple distance sensors can be set in the optical compensation module or other modules to accurately detect the distance between the palm and the palm payment device;
[0141] (3) By combining the detection of the palm position by the distance sensor, the surface light source layer at different positions can be lit according to the distance, thereby realizing the lighting adaptation (supplementary light adaptation) for near and far distances; and by cooperating with multiple distance sensors in the matrix, after detecting the spatial position of the palm, the working state of the surface light source layer at different field of view (such as supplementary light parameters) can be appropriately adjusted to meet different lighting needs, and supplementary light can be targeted according to different palm positions, reducing overall power consumption and improving supplementary light efficiency.
[0142] Based on the descriptions of the above method embodiments, this application also discloses an image processing apparatus; the image processing apparatus may be a computer program (including one or more instructions) running on a computer device, and the image processing apparatus may execute each step in any of the above method flows. Please refer to... Figure 6 The image processing device can operate the following units:
[0143] The acquisition unit 601 acquires the target distance value between the target object and the image acquisition device. The image acquisition device is equipped with an image acquisition component and at least two surface light source layers, and different surface light source layers have different field of view angles.
[0144] Processing unit 602 is configured to select a target surface light source layer from the at least two surface light source layers based on the target distance value and the field of view of each surface light source layer, according to a target selection rule; wherein, the target selection rule is used to indicate that the smaller the target distance value, the larger the field of view of the surface light source layer is selected first.
[0145] The processing unit 602 is also used to control the target surface light source layer to perform supplementary lighting processing on the target object, and to call the image acquisition component to acquire an image of the target object after supplementary lighting, so as to obtain an image of the target object.
[0146] In one embodiment, each surface light source layer includes: at least one light-emitting component and a light guide plate, the light guide plate being parallel to the top surface of the image acquisition device; the top surface refers to the object-oriented device surface of the image acquisition device when acquiring an image of any object;
[0147] The bottom of the light guide plate contains at least one scattering point, and any scattering point is used to diffusely reflect light to change the propagation angle of the light.
[0148] When the at least one light-emitting component is lit, the at least one light-emitting component emits light towards the corresponding light guide plate. After being diffusely reflected by the scattering points in the corresponding light guide plate, the light is emitted from the top of the corresponding light guide plate to illuminate the object.
[0149] In another embodiment, each surface light source layer is parallel to the top surface of the image acquisition device to form a multi-layer structure, and the field of view of each surface light source layer gradually decreases along the direction from the top surface to the bottom surface of the image acquisition device.
[0150] The bottom of the bottom surface light source layer also includes a reflective film, which is used to reflect all the light in the corresponding light guide plate out of the top of the corresponding light guide plate after the light-emitting component in the bottom surface light source layer emits light towards the corresponding light guide plate.
[0151] In another embodiment, the image acquisition device further includes at least one support frame located on both sides of the bottom surface light source layer to support each surface light source layer located above the bottom surface light source layer;
[0152] The support frame is also used to: reflect the light emitted by the light-emitting component in any layer of the light source toward the support frame to the light guide plate of at least one surface light source layer, so that the corresponding light is emitted from the top of the light guide plate of the at least one surface light source layer to illuminate the object.
[0153] In another embodiment, when the processing unit 602 selects the target surface light source layer from the at least two surface light source layers according to the target distance value and the field of view of each surface light source layer, it may specifically be used to:
[0154] Obtain a mapping information table constructed based on target selection rules. The mapping information table includes multiple distance ranges and parameter groups mapped to each distance range. Each parameter group includes at least the emission state of each surface light source layer, and the emission state is used to indicate whether the surface light source layer emits light.
[0155] From the mapping information table, find the distance range containing the target distance value as the target distance range, and obtain the parameter group mapped by the target distance range as the target parameter group;
[0156] Based on the luminescence state of each surface light source layer in the target parameter group, the target surface light source layer is determined from the at least two surface light source layers.
[0157] In another embodiment, any of the parameter groups further includes: the luminescence parameters of each surface light source layer;
[0158] Accordingly, when the processing unit 602 controls the target surface light source layer to perform supplementary lighting processing on the target object, it can specifically be used for:
[0159] Obtain the luminescence parameters of the target surface light source layer from the target parameter set;
[0160] Based on the luminescence parameters of the target surface light source layer, the target surface light source layer is controlled to emit light in order to provide supplementary lighting for the target object.
[0161] In another embodiment, after obtaining the target object image, the processing unit 602 can also be used for:
[0162] Acquire at least one reference object image historically acquired by the image acquisition device, wherein the reference object image is obtained by acquiring an image of an object that is at a distance of the target distance value from the image acquisition device;
[0163] The image quality of each reference object image and the image quality of the target object image are obtained, wherein any image quality includes at least one of the following: brightness uniformity and exposure error;
[0164] Based on the image quality of each reference object image and the image quality of the target object image, a high-quality object image is determined among the at least one reference object image and the target object image. The high-quality object image refers to an object image whose image quality meets the quality conditions.
[0165] If the number of high-quality object images is greater than the number threshold, the mapping information table is updated based on the light source layer information corresponding to each high-quality object image; wherein, any light source layer information is used to indicate: the surface light source layer that provides supplementary lighting to the corresponding object when the corresponding object image is acquired.
[0166] In another embodiment, the image acquisition device is equipped with at least two distance sensors; correspondingly, when acquiring the target distance value between the target object and the image acquisition device, the acquisition unit 601 may specifically be used for:
[0167] Each distance sensor in the image acquisition device is invoked to detect the distance between the target object and the image acquisition device, and at least two initial distance values are obtained, with one initial distance value obtained from the detection of one distance sensor.
[0168] The at least two initial distance values are integrated to obtain the target distance value between the target object and the image acquisition device.
[0169] In another embodiment, when the acquisition unit 601 integrates the at least two initial distance values to obtain the target distance value between the target object and the image acquisition device, it may specifically be used for:
[0170] By performing a consistency check on the at least two initial distance values, the spatial relationship between the target object and the top surface of the image acquisition device is determined; the top surface refers to the device surface of the image acquisition device facing the corresponding object when performing image acquisition on any object.
[0171] If the spatial relationship indicates that the target object is parallel to the top surface, then any initial distance value is used as the target distance value between the target object and the image acquisition device.
[0172] In another embodiment, when the acquisition unit 601 integrates the at least two initial distance values to obtain the target distance value between the target object and the image acquisition device, it can also be used for:
[0173] If the spatial relationship indicates that the target object is tilted to the top surface, then the target object is projected onto the two-dimensional plane where the top surface is located to obtain a planar graphic;
[0174] Determine the geometric center point of the planar figure and map the geometric center point back to the target object to obtain the mapping point;
[0175] The distance between the mapping point and the image acquisition device is obtained and used as the target distance between the target object and the image acquisition device.
[0176] In another embodiment, when the processing unit 602 calls the image acquisition component to acquire an image of the target object after supplemental lighting, it can specifically be used to:
[0177] The image acquisition component is invoked to capture an image of the target object after supplemental lighting, thereby obtaining an initial image of the object;
[0178] Based on the brightness values of each pixel in the initial object image, the quality of the initial object image is detected to obtain the image quality of the initial object image;
[0179] If the image quality meets the quality requirements, then the initial object image is used as the target object image;
[0180] If the image quality does not meet the quality requirements, the emission parameters of the target surface light source layer are adjusted. Based on the adjusted emission parameters, the target surface light source layer is controlled to re-illuminate the target object. The image acquisition component is then invoked to acquire an image of the re-illuminated target object, thereby obtaining an image of the target object.
[0181] In another embodiment, the target object is the palm print of the target user, and the target object image is the target palm print image; correspondingly, after obtaining the target palm print image, the processing unit 602 can also be used for:
[0182] The target user is identified based on the target palm print image to obtain the identification result.
[0183] Based on the identity recognition results, business processing is performed on the target user.
[0184] According to another embodiment of this application, Figure 6The various units in the image processing apparatus shown can be individually or entirely merged into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of this application. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the image processing apparatus may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.
[0185] According to another embodiment of this application, a computer program (including one or more instructions) capable of performing the steps involved in any of the above methods can be run on a general-purpose computing device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), to construct a system such as... Figure 6 The image processing apparatus shown herein, and the image processing method for implementing the embodiments of this application, are described. The computer program may be recorded on, for example, a computer-readable storage medium, loaded onto the aforementioned computing device via the computer-readable storage medium, and run therein.
[0186] It is worth noting that, in the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can contain a portion of the overall module or unit's functionality.
[0187] The image acquisition device in this embodiment is configured with an image acquisition component and at least two surface light source layers. Different surface light source layers have different field of view angles. When image acquisition of a target object is required, the target distance between the target object and the image acquisition device, along with the field of view angles of each surface light source layer, can be considered. Following the principle that the smaller the target distance, the larger the field of view angle of the surface light source layer, the higher the target light source layer will be selected. This ensures that the field of view angle of the selected target surface light source layer meets the supplementary lighting requirements of the target object. This improves the supplementary lighting effect when controlling the target surface light source layer to perform supplementary lighting on the target object, thereby improving the image quality of the target object image obtained by calling the image acquisition component to acquire the image of the supplemented target object. Therefore, this embodiment, by configuring surface light source layers with different field of view angles in the image acquisition device and illuminating surface light source layers with different field of view angles based on the spatial position of the object (i.e., the distance between the object and the image acquisition device), can achieve supplementary lighting adaptation for both near and far distances, thereby effectively supplementing lighting for objects in different spatial positions, improving the supplementary lighting effect, and ultimately enhancing the image acquisition quality.
[0188] Based on the description of the above method and apparatus embodiments, this application also provides a computer device. Please refer to... Figure 7 The computer device includes at least a processor 701, an input interface 702, an output interface 703, and a computer storage medium 704. The processor 701, input interface 702, output interface 703, and computer storage medium 704 within the computer device can be connected via a bus or other means. The computer storage medium 704 can be stored in the computer device's memory. The computer storage medium 704 is used to store a computer program, which includes one or more instructions. The processor 701 is used to execute one or more instructions from the computer program stored in the computer storage medium 704. The processor 701 (or CPU (Central Processing Unit)) is the computing and control core of the computer device, adapted to implement one or more instructions, specifically adapted to load and execute one or more instructions to achieve a corresponding method flow or function.
[0189] In one embodiment, the processor 701 described in this application can be used to perform a series of image acquisition processes, specifically including: obtaining a target distance value between a target object and an image acquisition device, wherein the image acquisition device is configured with an image acquisition component and at least two surface light source layers, and different surface light source layers have different field of view angles; based on the target distance value and the field of view angles of each surface light source layer, selecting a target surface light source layer from the at least two surface light source layers according to a target selection rule; wherein the target selection rule is used to indicate that the smaller the target distance value, the larger the field of view angle of the surface light source layer is selected first; controlling the target surface light source layer to perform supplementary lighting processing on the target object, and calling the image acquisition component to perform image acquisition on the supplemented-light target object to obtain an image of the target object, etc.
[0190] This application embodiment also provides a computer storage medium (Memory), which is a memory device in a computer device used to store computer programs and data. It is understood that the computer storage medium here can include both the built-in storage medium in the computer device and extended storage media supported by the computer device. The computer storage medium provides storage space that stores the operating system of the computer device. Furthermore, the storage space also stores a computer program, which includes one or more instructions suitable for loading and execution by the processor 701. These instructions can be one or more program codes. It should be noted that the computer storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device; optionally, it can also be at least one computer storage medium located remotely from the aforementioned processor.
[0191] In one embodiment, a processor may load and execute one or more instructions stored in a computer storage medium to implement the corresponding steps in any of the above method embodiments; specifically, one or more instructions in the computer storage medium may be loaded and executed by the processor in the following steps:
[0192] The target distance value between the target object and the image acquisition device is obtained. The image acquisition device is configured with an image acquisition component and at least two surface light source layers, and different surface light source layers have different field of view angles.
[0193] Based on the target distance value and the field of view of each surface light source layer, a target surface light source layer is selected from the at least two surface light source layers according to the target selection rule; wherein, the target selection rule is used to indicate that the smaller the target distance value, the larger the field of view of the surface light source layer is selected first.
[0194] The target surface light source layer is controlled to perform supplemental lighting on the target object, and the image acquisition component is invoked to acquire an image of the target object after supplemental lighting, thereby obtaining an image of the target object.
[0195] In one embodiment, each surface light source layer includes: at least one light-emitting component and a light guide plate, the light guide plate being parallel to the top surface of the image acquisition device; the top surface refers to the object-oriented device surface of the image acquisition device when acquiring an image of any object;
[0196] The bottom of the light guide plate contains at least one scattering point, and any scattering point is used to diffusely reflect light to change the propagation angle of the light.
[0197] When the at least one light-emitting component is lit, the at least one light-emitting component emits light towards the corresponding light guide plate. After being diffusely reflected by the scattering points in the corresponding light guide plate, the light is emitted from the top of the corresponding light guide plate to illuminate the object.
[0198] In another embodiment, each surface light source layer is parallel to the top surface of the image acquisition device to form a multi-layer structure, and the field of view of each surface light source layer gradually decreases along the direction from the top surface to the bottom surface of the image acquisition device.
[0199] The bottom of the bottom surface light source layer also includes a reflective film, which is used to reflect all the light in the corresponding light guide plate out of the top of the corresponding light guide plate after the light-emitting component in the bottom surface light source layer emits light towards the corresponding light guide plate.
[0200] In another embodiment, the image acquisition device further includes at least one support frame located on both sides of the bottom surface light source layer to support each surface light source layer located above the bottom surface light source layer;
[0201] The support frame is also used to: reflect the light emitted by the light-emitting component in any layer of the light source toward the support frame to the light guide plate of at least one surface light source layer, so that the corresponding light is emitted from the top of the light guide plate of the at least one surface light source layer to illuminate the object.
[0202] In another implementation, when selecting a target surface light source layer from at least two surface light source layers based on the target distance value and the field of view of each surface light source layer according to the target selection rule, the one or more instructions can be loaded and executed by the processor:
[0203] Obtain a mapping information table constructed based on target selection rules. The mapping information table includes multiple distance ranges and parameter groups mapped to each distance range. Each parameter group includes at least the emission state of each surface light source layer, and the emission state is used to indicate whether the surface light source layer emits light.
[0204] From the mapping information table, find the distance range containing the target distance value as the target distance range, and obtain the parameter group mapped by the target distance range as the target parameter group;
[0205] Based on the luminescence state of each surface light source layer in the target parameter group, the target surface light source layer is determined from the at least two surface light source layers.
[0206] In another embodiment, any of the parameter groups further includes: the luminescence parameters of each surface light source layer;
[0207] Accordingly, when controlling the target surface light source layer to perform supplemental lighting on the target object, one or more instructions can be loaded and executed by the processor:
[0208] Obtain the luminescence parameters of the target surface light source layer from the target parameter set;
[0209] Based on the luminescence parameters of the target surface light source layer, the target surface light source layer is controlled to emit light in order to provide supplementary lighting for the target object.
[0210] In another implementation, after obtaining the target object image, the one or more instructions can be loaded and executed by the processor:
[0211] Acquire at least one reference object image historically acquired by the image acquisition device, wherein the reference object image is obtained by acquiring an image of an object that is at a distance of the target distance value from the image acquisition device;
[0212] The image quality of each reference object image and the image quality of the target object image are obtained, wherein any image quality includes at least one of the following: brightness uniformity and exposure error;
[0213] Based on the image quality of each reference object image and the image quality of the target object image, a high-quality object image is determined among the at least one reference object image and the target object image. The high-quality object image refers to an object image whose image quality meets the quality conditions.
[0214] If the number of high-quality object images is greater than the number threshold, the mapping information table is updated based on the light source layer information corresponding to each high-quality object image; wherein, any light source layer information is used to indicate: the surface light source layer that provides supplementary lighting to the corresponding object when the corresponding object image is acquired.
[0215] In another embodiment, the image acquisition device is equipped with at least two distance sensors; correspondingly, when acquiring the target distance value between the target object and the image acquisition device, the one or more instructions can be loaded and executed by the processor:
[0216] Each distance sensor in the image acquisition device is invoked to detect the distance between the target object and the image acquisition device, and at least two initial distance values are obtained, with one initial distance value obtained from the detection of one distance sensor.
[0217] The at least two initial distance values are integrated to obtain the target distance value between the target object and the image acquisition device.
[0218] In another implementation, when integrating the at least two initial distance values to obtain the target distance value between the target object and the image acquisition device, the one or more instructions can be loaded and executed by the processor:
[0219] By performing a consistency check on the at least two initial distance values, the spatial relationship between the target object and the top surface of the image acquisition device is determined; the top surface refers to the device surface of the image acquisition device facing the corresponding object when performing image acquisition on any object.
[0220] If the spatial relationship indicates that the target object is parallel to the top surface, then any initial distance value is used as the target distance value between the target object and the image acquisition device.
[0221] In another implementation, when integrating the at least two initial distance values to obtain the target distance value between the target object and the image acquisition device, the one or more instructions can be loaded and executed by the processor:
[0222] If the spatial relationship indicates that the target object is tilted to the top surface, then the target object is projected onto the two-dimensional plane where the top surface is located to obtain a planar graphic;
[0223] Determine the geometric center point of the planar figure and map the geometric center point back to the target object to obtain the mapping point;
[0224] The distance between the mapping point and the image acquisition device is obtained and used as the target distance between the target object and the image acquisition device.
[0225] In another implementation, when the image acquisition component is invoked to acquire an image of the target object after supplemental lighting, the one or more instructions can be loaded and executed by the processor:
[0226] The image acquisition component is invoked to capture an image of the target object after supplemental lighting, thereby obtaining an initial image of the object;
[0227] Based on the brightness values of each pixel in the initial object image, the quality of the initial object image is detected to obtain the image quality of the initial object image;
[0228] If the image quality meets the quality requirements, then the initial object image is used as the target object image;
[0229] If the image quality does not meet the quality requirements, the emission parameters of the target surface light source layer are adjusted. Based on the adjusted emission parameters, the target surface light source layer is controlled to re-illuminate the target object. The image acquisition component is then invoked to acquire an image of the re-illuminated target object, thereby obtaining an image of the target object.
[0230] In another implementation, the target object is the palm print of the target user, and the target object image is the target palm print image; correspondingly, after obtaining the target palm print image, the one or more instructions can be loaded and executed by the processor:
[0231] The target user is identified based on the target palm print image to obtain the identification result.
[0232] Based on the identity recognition results, business processing is performed on the target user.
[0233] The image acquisition device in this embodiment is configured with an image acquisition component and at least two surface light source layers. Different surface light source layers have different field of view angles. When image acquisition of a target object is required, the target distance between the target object and the image acquisition device, along with the field of view angles of each surface light source layer, can be considered. Following the principle that the smaller the target distance, the larger the field of view angle of the surface light source layer, the higher the target light source layer will be selected. This ensures that the field of view angle of the selected target surface light source layer meets the supplementary lighting requirements of the target object. This improves the supplementary lighting effect when controlling the target surface light source layer to perform supplementary lighting on the target object, thereby improving the image quality of the target object image obtained by calling the image acquisition component to acquire the image of the supplemented target object. Therefore, this embodiment, by configuring surface light source layers with different field of view angles in the image acquisition device and illuminating surface light source layers with different field of view angles based on the spatial position of the object (i.e., the distance between the object and the image acquisition device), can achieve supplementary lighting adaptation for both near and far distances, thereby effectively supplementing lighting for objects in different spatial positions, improving the supplementary lighting effect, and ultimately enhancing the image acquisition quality.
[0234] It should be noted that, according to one aspect of this application, a computer program product or computer program is also provided, comprising one or more instructions stored in a computer storage medium. A processor of a computer device reads one or more instructions from the computer storage medium and executes the one or more instructions, causing the computer device to perform the methods provided in various optional embodiments of the above-described methods. It should be understood that the above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, equivalent variations made according to the claims of this application are still within the scope of this application.
Claims
1. An image processing method, characterized in that, include: The target distance value between the target object and the image acquisition device is obtained. The image acquisition device is configured with an image acquisition component and at least two surface light source layers, and different surface light source layers have different field of view angles. Based on the target distance value and the field of view of each surface light source layer, a target surface light source layer is selected from the at least two surface light source layers according to the target selection rule; wherein, the target selection rule is used to indicate that the smaller the target distance value, the larger the field of view of the surface light source layer is selected first. The target surface light source layer is controlled to perform supplemental lighting on the target object, and the image acquisition component is invoked to acquire an image of the target object after supplemental lighting, thereby obtaining an image of the target object.
2. The method as described in claim 1, characterized in that, Each surface light source layer includes: at least one light-emitting component and a light guide plate, the light guide plate being parallel to the top surface of the image acquisition device; the top surface refers to the object-oriented device surface of the image acquisition device when acquiring an image of any object. The bottom of the light guide plate contains at least one scattering point, and any scattering point is used to diffusely reflect light to change the propagation angle of the light. When the at least one light-emitting component is lit, the at least one light-emitting component emits light towards the corresponding light guide plate. After being diffusely reflected by the scattering points in the corresponding light guide plate, the light is emitted from the top of the corresponding light guide plate to illuminate the object.
3. The method as described in claim 2, characterized in that, Each surface light source layer is parallel to the top surface of the image acquisition device to form a multi-layer structure, and the field of view of each surface light source layer gradually decreases along the direction from the top surface to the bottom surface of the image acquisition device. The bottom of the bottom surface light source layer also includes a reflective film, which is used to reflect all the light in the corresponding light guide plate out of the top of the corresponding light guide plate after the light-emitting component in the bottom surface light source layer emits light towards the corresponding light guide plate.
4. The method as described in claim 3, characterized in that, The image acquisition device also includes at least one support frame, which is located on both sides of the bottom surface light source layer to support each surface light source layer located above the bottom surface light source layer; The support frame is also used to: reflect the light emitted by the light-emitting component in any layer of the light source toward the support frame to the light guide plate of at least one surface light source layer, so that the corresponding light is emitted from the top of the light guide plate of the at least one surface light source layer to illuminate the object.
5. The method as described in claim 1, characterized in that, The step of selecting the target surface light source layer from at least two surface light source layers according to the target distance value and the field of view of each surface light source layer, and in accordance with the target selection rules, includes: Obtain a mapping information table constructed based on target selection rules. The mapping information table includes multiple distance ranges and parameter groups mapped to each distance range. Each parameter group includes at least the emission state of each surface light source layer, and the emission state is used to indicate whether the surface light source layer emits light. From the mapping information table, find the distance range containing the target distance value as the target distance range, and obtain the parameter group mapped by the target distance range as the target parameter group; Based on the luminescence state of each surface light source layer in the target parameter group, the target surface light source layer is determined from the at least two surface light source layers.
6. The method as described in claim 5, characterized in that, The parameter group further includes: the light emission parameters of each surface light source layer; The control of the target surface light source layer to perform supplemental lighting processing on the target object includes: Obtain the luminescence parameters of the target surface light source layer from the target parameter set; Based on the luminescence parameters of the target surface light source layer, the target surface light source layer is controlled to emit light in order to provide supplementary lighting for the target object.
7. The method as described in claim 5 or 6, characterized in that, After obtaining the target object image, the method further includes: Acquire at least one reference object image historically acquired by the image acquisition device, wherein the reference object image is obtained by acquiring an image of an object that is at a distance of the target distance value from the image acquisition device; The image quality of each reference object image and the image quality of the target object image are obtained, wherein any image quality includes at least one of the following: brightness uniformity and exposure error; Based on the image quality of each reference object image and the image quality of the target object image, a high-quality object image is determined among the at least one reference object image and the target object image. The high-quality object image refers to an object image whose image quality meets the quality conditions. If the number of high-quality object images is greater than the number threshold, the mapping information table is updated based on the light source layer information corresponding to each high-quality object image; wherein, any light source layer information is used to indicate: the surface light source layer that provides supplementary lighting to the corresponding object when the corresponding object image is acquired.
8. The method as described in claim 1, characterized in that, The image acquisition device is equipped with at least two distance sensors; acquiring the target distance value between the target object and the image acquisition device includes: Each distance sensor in the image acquisition device is invoked to detect the distance between the target object and the image acquisition device, and at least two initial distance values are obtained, with one initial distance value obtained from the detection of one distance sensor. The at least two initial distance values are integrated to obtain the target distance value between the target object and the image acquisition device.
9. The method as described in claim 8, characterized in that, The process of integrating the at least two initial distance values to obtain the target distance value between the target object and the image acquisition device includes: By performing a consistency check on the at least two initial distance values, the spatial relationship between the target object and the top surface of the image acquisition device is determined; the top surface refers to the device surface of the image acquisition device facing the corresponding object when performing image acquisition on any object. If the spatial relationship indicates that the target object is parallel to the top surface, then any initial distance value is used as the target distance value between the target object and the image acquisition device.
10. The method as described in claim 9, characterized in that, The step of integrating the at least two initial distance values to obtain the target distance value between the target object and the image acquisition device further includes: If the spatial relationship indicates that the target object is tilted to the top surface, then the target object is projected onto the two-dimensional plane where the top surface is located to obtain a planar graphic; Determine the geometric center point of the planar figure and map the geometric center point back to the target object to obtain the mapping point; The distance between the mapping point and the image acquisition device is obtained and used as the target distance between the target object and the image acquisition device.
11. The method as described in claim 1, characterized in that, The step of calling the image acquisition component to acquire an image of the target object after supplemental lighting, and obtaining an image of the target object, includes: The image acquisition component is invoked to capture an image of the target object after supplemental lighting, thereby obtaining an initial image of the object; Based on the brightness values of each pixel in the initial object image, the quality of the initial object image is detected to obtain the image quality of the initial object image; If the image quality meets the quality requirements, then the initial object image is used as the target object image; If the image quality does not meet the quality requirements, the emission parameters of the target surface light source layer are adjusted. Based on the adjusted emission parameters, the target surface light source layer is controlled to re-illuminate the target object. The image acquisition component is then invoked to acquire an image of the re-illuminated target object, thereby obtaining an image of the target object.
12. The method as described in claim 1, characterized in that, The target object is the palm print of the target user, and the target object image is the target palm print image; After obtaining the target palmprint image, the method further includes: The target user is identified based on the target palm print image to obtain the identification result. Based on the identity recognition results, business processing is performed on the target user.
13. An image processing apparatus, characterized in that, include: The acquisition unit acquires the target distance value between the target object and the image acquisition device. The image acquisition device is equipped with an image acquisition component and at least two surface light source layers, and different surface light source layers have different field of view angles. The processing unit is configured to select a target surface light source layer from the at least two surface light source layers based on the target distance value and the field of view of each surface light source layer, according to a target selection rule; wherein the target selection rule indicates that the smaller the target distance value, the larger the field of view of the surface light source layer is selected first. The processing unit is also used to control the target surface light source layer to perform supplementary lighting processing on the target object, and to call the image acquisition component to acquire an image of the target object after supplementary lighting, so as to obtain an image of the target object.
14. A computer device, comprising an input interface and an output interface, characterized in that, Also includes: Processor and computer storage media; The processor is adapted to implement one or more instructions, and the computer storage medium stores one or more instructions, which are adapted to be loaded by the processor and executed as described in any one of claims 1-12.
15. A computer storage medium, characterized in that, The computer storage medium stores one or more instructions, which are adapted to be loaded by a processor and executed as described in any one of claims 1-12.
16. A computer program product, characterized in that, The computer program product includes one or more instructions; when one or more instructions in the computer program are executed by a processor, they implement the image processing method as described in any one of claims 1-12.