Image processing method and apparatus, and computer device, computer storage medium and computer program product
Patent Information
- Application Number
- PCT/CN2025/128433
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-12-02
- Filing Date
- 2025-10-17
- Publication Date
- 2026-08-27
Smart Images

Figure CN2025128433_27082026_PF_FP_ABST
Abstract
Description
Image processing methods, apparatus, computer equipment, computer storage media and computer program products
[0001] Cross-reference to related applications
[0002] This application is based on and claims priority to Chinese Patent Application No. 2024117671577, filed on December 2, 2024, the entire contents of which are incorporated herein by reference. Technical Field
[0003] 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, computer equipment, computer storage medium, and computer program product. Background Technology
[0004] In related technologies, to enable image acquisition devices to capture clearer object images, a light-emitting diode (LED) with a fixed field of view can be incorporated into the image acquisition device. During image acquisition, the LED can be used to illuminate the object being captured. However, the fixed field of view of the LED results in a fixed size of the light field it creates. Consequently, the LED cannot effectively illuminate objects located in different spatial positions, leading to poor illumination and low image quality. Summary of the Invention
[0005] This application provides an image processing method, apparatus, computer equipment, computer storage medium, and computer program product that can improve the supplementary lighting effect, thereby improving the image acquisition quality.
[0006] This application provides an image processing method, which is performed by a computer device and includes the following steps:
[0007] 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.
[0008] Based on the target distance value and the field of view of each of the surface light source layers, a target surface light source layer is selected from at least two surface light source layers; wherein, the target distance value is negatively correlated with the field of view of the target surface light source layer;
[0009] The target surface light source layer is controlled to provide supplemental lighting to 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.
[0010] This application provides an image processing apparatus, the apparatus comprising:
[0011] The acquisition unit is configured 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.
[0012] The processing unit is configured to select 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 angle of each of the surface light source layers; wherein the target distance value is negatively correlated with the field of view angle of the target surface light source layer;
[0013] The processing unit is further configured to control the target surface light source layer to provide supplementary lighting to the target object, and to call the image acquisition component to acquire an image of the target object after supplementary lighting, thereby obtaining an image of the target object.
[0014] This application provides a computer device, which includes an input interface and an output interface, and further includes:
[0015] Processor and computer storage media;
[0016] 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.
[0017] This application provides a computer storage medium storing one or more instructions adapted for loading and executing the aforementioned image processing method by a processor.
[0018] This application provides 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.
[0019] In the image processing method provided in this application embodiment, the image acquisition device 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 it is necessary to acquire an image of a target object, the target distance value between the target object and the image acquisition device and the field of view angle of each surface light source layer can be combined to select a target surface light source layer from at least two surface light source layers. The target distance value is negatively correlated with the field of view angle of the target surface light source layer. The field of view angle of the selected target surface light source layer can meet the supplementary lighting requirements of the target object. In this way, when controlling the target surface light source layer to supplement the target object, the supplementary lighting effect can be improved, thereby improving the image quality of the target object image obtained by calling the image acquisition component to acquire the image of the target object after supplementary lighting.
[0020] The image processing method provided in this application provides that by configuring surface light source layers with different field of view in the image acquisition device and illuminating the surface light source layers with different field of view in combination with the spatial position of the object (i.e. the target distance value between the object and the image acquisition device), it is possible to achieve supplementary lighting adaptation at different distances, thereby achieving effective supplementary lighting for objects in different spatial positions, improving the supplementary lighting effect, and thus improving the image acquisition quality. Attached Figure Description
[0021] 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.
[0022] Figure 1a is a schematic diagram of the structure of an image acquisition device provided in an embodiment of this application;
[0023] Figure 1b is a schematic diagram of the structure of a light-emitting diode provided in an embodiment of this application;
[0024] Figure 1c is a schematic diagram of a brightness transformation curve provided in an embodiment of this application;
[0025] Figure 1d is a schematic diagram of an image exhibiting uneven brightness according to an embodiment of this application;
[0026] Figure 1e is a schematic diagram illustrating the attenuation of brightness with distance according to an embodiment of this application;
[0027] Figure 1f is a schematic diagram comparing brightness attenuation at different distances according to an embodiment of this application;
[0028] Figure 1g is a schematic diagram of the arrangement of multiple surface light source layers provided in an embodiment of this application;
[0029] Figure 1h is a schematic diagram of an optical compensation module provided in an embodiment of this application;
[0030] Figure 1i is a schematic diagram of the supplementary lighting effect of an optical compensation module provided in an embodiment of this application;
[0031] Figure 2 is a schematic flowchart of an image processing method provided in an embodiment of this application;
[0032] Figure 3a is a schematic diagram of determining a target distance value using multiple distance sensors according to an embodiment of this application;
[0033] Figure 3b is a schematic diagram of another method for determining target distance values using multiple distance sensors, provided in an embodiment of this application.
[0034] Figure 3c is a schematic diagram of selecting a target surface light source layer based on a mapping information table according to an embodiment of this application;
[0035] Figure 4 is a flowchart illustrating an image processing method according to another embodiment of this application;
[0036] Figure 5a is a schematic diagram of the supplementary lighting effect of an optical compensation module provided in another embodiment of this application;
[0037] Figure 5b is a schematic diagram of the workflow of a palm payment device provided in an embodiment of this application;
[0038] Figure 6 is a schematic diagram of the structure of an image processing device provided in an embodiment of this application;
[0039] Figure 7 is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0041] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0042] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0043] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works 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 be part of an overall module or unit that includes the functionality of that module or unit.
[0044] Unless otherwise defined, all technical and scientific terms used in the embodiments of this application have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the embodiments of this application is for the purpose of describing the embodiments of this application only and is not intended to limit this application.
[0045] In the implementation of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.
[0046] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0047] 1) Target object refers to the entity such as people, objects, animals, scenes or specific areas that are captured by the image acquisition device during the image acquisition process.
[0048] 2) Image acquisition equipment refers to a device that converts optical signals (light) in a real scene into digital or analog image signals that can be stored and processed. The image acquisition equipment is equipped with an image acquisition component and at least two surface light source layers. The image acquisition component may include a lens, an image sensor, and a signal processing module. The image acquisition component is the basic core for realizing the conversion of optical signals into image signals.
[0049] 3) Surface light source layer: This refers to a light source structure or component that is continuously planar and provides uniform light coverage during image acquisition. By emitting light from a continuous planar surface, the contrast between light and dark on the surface of the target object can be reduced, and local overexposure or underexposure can be avoided. It is used in scenes where high uniformity of supplementary lighting is required, and is a form of light source that improves the supplementary lighting effect.
[0050] 4) Field of view refers to the range of spatial angles that an image acquisition device can cover and perceive. The field of view can include the device field of view and the light source field of view. The device field of view refers to the range of spatial angles of the real scene that the image acquisition device can capture through the lens. The light source field of view is the range of spatial angles that the light emitted by the supplementary light source (such as a surface light source layer) can cover.
[0051] 5) Image quality refers to the comprehensive ability of an image to meet the needs of use in visual presentation. It can be determined by five dimensions: resolution, contrast, color accuracy, noise control, and dynamic range. Each dimension will affect the visual effect and information transmission efficiency of the image.
[0052] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. In the embodiments of this application, the image acquisition device refers to a device capable of image acquisition (i.e., taking pictures).
[0053] For example, image acquisition devices can include, but are not limited to, any of the following: palmprint recognition devices, facial recognition devices, camera devices, etc. Among them, palmprint recognition devices are devices that perform identity verification based on palmprint recognition technology, and can include, but are not limited to: attendance devices or door lock devices based on palmprint recognition, palm-swipe payment devices, etc.; palm-swipe payment devices are devices that use palm biometric technology for payment, which can collect the user's palmprint image and then process the payment after verifying the user's identity based on the palmprint image.
[0054] A facial recognition device is a device that identifies an individual based on facial biometric technology. It can collect a user's facial image and then perform subsequent business processing (such as payment processing, unlocking processing, etc.) after identifying the user's identity based on the facial image.
[0055] Camera equipment refers to terminal devices with shooting functions, such as cameras, smartphones, computers (such as tablets, laptops, desktop computers, etc.), smart wearable devices (such as smartwatches, smart glasses), smart voice interaction devices, smart home appliances (such as smart TVs), vehicle terminals or aircraft, etc.
[0056] Referring to Figure 1a, which is a schematic diagram of the structure of an image acquisition device provided in an embodiment of this application, the image acquisition device can be configured with an image acquisition module (such as a camera) and an optical compensation module (white light and red light supplementary lighting system). The image acquisition module is the light source emitting end, and the optical compensation module is the camera receiving end.
[0057] The optical compensation module may include an LED with a fixed field of view (FOV). For example, the FOV can be greater than 110°. The FOV of an LED refers to the illumination angle of the LED after it emits light. It is used to indicate 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.
[0058] When the image acquisition module acquires an image of the target object (i.e., the object to be imaged), an LED can be lit to illuminate the target object, thus providing supplemental lighting. An LED is a solid-state semiconductor device that converts electrical energy into visible light. The distance between the target object and the LED can be any value between 5 cm and 15 cm.
[0059] Referring to Figure 1b, which is a schematic diagram of a light-emitting diode (LED) according to an embodiment of this application, an LED is formed by embedding a semiconductor wafer (i.e., a semiconductor chip) on a reflector and then sealing it with resin to form a lens that guides light emission. When connected to a DC power supply, the current flowing through the wafer causes the wafer to generate electromagnetic waves (or light) of a certain frequency (or color); different semiconductor materials can cause the LED to emit light of different colors.
[0060] Research has revealed that LED lights have a field of view problem: As shown in Figure 1c, which is a schematic diagram of a brightness transformation curve provided in an embodiment of this application, the central part of the light field constructed by the LED light is brighter, while the edge of the light field is darker. Furthermore, as the deflection angle of the edge of the light field relative to the center position of the light field increases, the brightness ratio between the edge and the center position of the light field decreases (as shown in the curve in Figure 1c). Consequently, as the field of view of the LED light increases, the edge brightness of the light field constructed by the LED light decreases more significantly.
[0061] When acquiring images of a target object that is relatively close (meaning the distance is less than the first distance threshold), the distance between the target object and the image acquisition device is relatively short. In order to completely cover the entire target object, the LED light needs to have a large field of view. However, a large field of view can easily result in the center of the light field constructed by the LED light being bright enough, while the brightness at the edge of the light field is very low. This can easily lead to uneven brightness of the supplementary light, resulting in poor image acquisition quality and a lot of uneven brightness in the acquired image.
[0062] As shown in Figure 1d, which is a schematic diagram of an image with uneven brightness provided in an embodiment of this application, Figure 1d shows the user's palm (i.e. the target object). When the distance between the palm and the image acquisition device is relatively close, the image of the palm acquired has uneven brightness. As shown in Figure 1d, the palm has brighter parts and darker parts. Brighter parts refer to brightness greater than a first brightness threshold, and darker parts refer to brightness less than a second brightness threshold. The second brightness threshold is less than the first brightness threshold.
[0063] Furthermore, since the field of view of LED lights is fixed, the size of the light field is also fixed. Therefore, when the target object moves longitudinally or laterally in the light field, it is impossible to make adaptive adjustments to the light field based on the position of the target object. This can easily exacerbate the impact of uneven brightness on the image acquisition quality.
[0064] Furthermore, when using LED lights with a large field of view, although they can effectively serve near-end shooting (i.e., when capturing images of nearby targets, they can completely cover the entire target object), due to their large field of view, the brightness at the edge of the light field is significantly reduced, and the brightness at the center of the light field decreases inversely with the square of the distance. For example, as shown in Figure 1e, which is a schematic diagram of brightness attenuation with distance provided by an embodiment of this application, the greater the distance, the greater the brightness at the center of the light field decreases. For example, as shown in Figure 1f, which is a schematic diagram of brightness attenuation comparison at different distances provided by an embodiment of this application, in this case, when the LED light is used to supplement the light for distant target objects (i.e., target objects that are far from the image acquisition device, where "far" means the distance is greater than the second distance threshold, and the second distance threshold is greater than or equal to the first distance threshold), the brightness is easily insufficient, resulting in poor supplementary lighting effect and thus affecting the image acquisition quality.
[0065] Increasing the power of the LED lights to improve the brightness of the far-end illumination will result in significant light loss, leading to low light energy utilization (i.e., low illumination efficiency) and high overall power consumption. While using LED lights with a smaller field of view to concentrate the light energy can solve the problem of insufficient far-end illumination intensity (i.e., brightness), the light field created by the LED lights in this case is too small to cover the near-end target object (i.e., the target object closest to the image acquisition device). This results in insufficient illumination of the entire target object, leading to poor illumination and affecting image acquisition quality, resulting in uneven brightness in the acquired image.
[0066] In order to solve the above problems and 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 brand-new image acquisition device based on this design scheme.
[0067] In some embodiments, 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 surface light source layer being 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 (IR) camera, an RGB camera (R representing red, G representing green, B representing blue), etc.
[0068] A surface light source layer is a light source component that provides supplemental lighting to the target object being imaged 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 a surface light source layer is more parallel, allowing the light to illuminate the target object to a certain extent evenly, thereby improving the uniformity of the supplemental lighting brightness, thus enhancing the supplemental lighting effect, improving the image acquisition quality, and avoiding uneven brightness in the acquired image.
[0069] 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 to differentiate between near-end target object illumination and far-end target object illumination. This allows for adaptive adjustments to the light field based on the target object's position when the target object moves longitudinally or laterally within the light field, further reducing the impact of uneven brightness on image acquisition quality.
[0070] For example, when it is necessary to acquire images of a target object at a relatively close location, in order to have a large supplementary lighting range that can completely cover the entire target object and fully illuminate the image acquisition area, a surface light source layer with a large field of view among multiple surface light source layers can be used to supplement the target object, thereby improving the uniformity of supplementary lighting and thus improving the supplementary lighting effect and image acquisition quality.
[0071] When it is necessary to acquire images of a target object at a relatively far location, since the target object only occupies a small area in the center of the image acquisition area, and the brightness at the center of the light field decreases inversely with the square of the distance due to the distance, the brightness at the center of the light field decreases more as the distance increases. Therefore, in order to ensure that the supplementary lighting brightness of the target object is sufficient, the surface light source layer with a smaller field of view among multiple surface light source layers can be used to supplement the target object. This can reduce light loss while ensuring the uniformity of the supplementary lighting, thereby improving the supplementary lighting efficiency (i.e., improving the light energy utilization rate) and reducing the power consumption of the whole machine.
[0072] Based on the above description, the structure of each surface light source layer in the image acquisition device proposed in the embodiments of this application will be described below: In some embodiments, each surface light source layer may include: a plurality of light-emitting components arranged in a specified form (such as a matrix form), where the light-emitting components may be, for example, LED light sources.
[0073] In some embodiments, each surface light source layer may include: at least one light-emitting component and a light guide plate, wherein at least one light-emitting component may be arranged around (i.e., the periphery) 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, and it may be an optical grade acrylic / PC sheet (also known as polycarbonate sheet, polyester sheet or Kapron sheet).
[0074] In some embodiments, the image acquisition device has a top surface, which refers to the object-oriented device surface of the image acquisition device when acquiring an image of any object; when each surface light source layer is configured in the image acquisition device, the light guide plate in each surface light source layer can be parallel to the top surface of the image acquisition device, and 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 (i.e., the target object).
[0075] Each light guide plate contains at least one scattering point at its bottom. At least one scattering point (or light guide point) can be printed on the bottom surface of the light guide plate (optical grade acrylic sheet) using high-tech materials with extremely high refractive index and no light absorption, such as laser engraving, V-shaped cross grid engraving, and ultraviolet (UV) screen printing technology.
[0076] In this process, any 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 at least one light-emitting component emits light towards the corresponding light guide plate (i.e., the light guide plate in the same light source layer), and the 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 and illuminates the target object.
[0077] In some embodiments, the principle is 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 is evident 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 light utilization efficiency; under the same area and brightness conditions, the luminous efficiency is high and the power consumption is low.
[0078] In other words, a light guide plate made of optical-grade acrylic sheet can receive light emitted from the light-emitting component, allowing the light to propagate along the plate through total internal reflection within the plate. When the light propagates to preset scattering points on the light guide plate, the scattering points break the conditions of total internal reflection (corresponding to the destruction of reflection conditions), causing the light that originally propagated along the interior to diffuse at various angles and eventually exit from the front of the light guide plate. By designing scattering points of different densities and sizes (such as denser at the edges and sparser in the center), the attenuation during light propagation can be compensated, enabling uniform light emission from the front of the light guide plate.
[0079] It is evident that the core purpose of scattering points is to break total internal reflection, guide light to emerge from the front, and achieve uniform light emission through differentiated distribution. Simultaneously, it reduces ineffective light leakage from the sides and bottom of the light guide plate, indirectly improving light utilization efficiency. Therefore, for the same area and brightness requirements, the light guide plate, due to its higher light utilization efficiency, can reduce the power consumption of the light-emitting components, achieving high luminous efficiency and low power consumption.
[0080] In some embodiments, each of the surface light source layers mentioned above 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, or it can be the surface opposite to the top surface.
[0081] As shown in Figure 1g, which is a schematic diagram of the arrangement of multiple surface light source layers according to an embodiment of this application, Figure 1g shows surface light source layer 1, surface light source layer 2, surface light source layer 3, ..., surface light source layer N. The closer the surface light source layer is to the top surface, the higher its spatial height (i.e., layer) in the image acquisition device, and the larger its field of view; the farther the surface light source layer is from the top surface, the lower its spatial height (i.e., layer) in the image acquisition device, and the smaller its field of view. It should be noted that this is only an exemplary illustration of the structural relationship between the various surface light source layers and is not intended to limit the scope. That is, in other embodiments, the various surface light source layers may be arranged in other ways.
[0082] In some embodiments, the bottom of the bottom surface light source layer (i.e., the surface light source layer located at the bottom layer) may further include a reflective film. The 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.
[0083] In some embodiments, 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; and 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 into the light guide plate of at least one surface light source layer, and the corresponding light is emitted from the top of the light guide plate of at least one surface light source layer and illuminates the target object. It is evident that by providing 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 the efficiency of light utilization.
[0084] Taking two surface light source layers as an example, the structural schematic diagram of the optical compensation module of the image acquisition device in this case can be seen in Figure 1h. Figure 1h is a structural schematic diagram of an optical compensation module provided in an embodiment of this application, which can be provided with a support frame, a light-emitting component, an upper light guide plate, a lower light guide plate, and a reflective film. Of course, it is understood that in other embodiments, the support frame may not be provided on both sides of the bottom surface light source layer, such as fixing each surface light source layer by spot welding. This application embodiment does not limit this.
[0085] Based on the above description, in order to enable the image acquisition device to capture clear images, the embodiments of this application systematically design the optical compensation module in the image acquisition device. This design ensures that the optical compensation module can provide complete coverage of objects at closer locations (i.e., achieve large field-of-view supplementary lighting) and also effectively compensate for the brightness of objects at farther locations (i.e., achieve higher illuminance requirements), as shown in Figure 1i. Figure 1i is a schematic diagram of the supplementary lighting effect of an optical compensation module provided in this embodiment. Figure 1i shows two surface light source layers and the image acquisition component. At close range (close range means distance less than a first distance threshold), the supplementary lighting can cover the entire object, and at far range (close range means distance greater than a second distance threshold), the supplementary lighting intensity can be sufficient. Furthermore, to avoid the problem of localized shadows in the image caused by uneven brightness of the light-emitting components themselves in the optical compensation module, a homogenization design is added to the optical compensation module to improve the brightness uniformity of the light field.
[0086] Based on the aforementioned image acquisition device, this application also proposes an image processing method. In some embodiments, the image processing method can be executed by a computer device, which can be a terminal or a server; or, 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.), or other devices configured with an image acquisition device; 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, content delivery networks (CDNs), and big data and artificial intelligence platforms, etc.
[0087] The following describes the implementation process of the image processing method proposed in this application embodiment, using a computer device as the execution subject and referring to the method flowchart shown in Figure 2. As shown in Figure 2, the image processing method can generally include the following steps S201-S203:
[0088] S201, Obtain 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.
[0089] In practical use, when it is necessary to acquire images of a target object, the target distance value between the target object and the image acquisition device can be obtained. Here, the target object refers to the object to be image acquired.
[0090] For example, in palmprint recognition scenarios (such as palm-swipe payment scenarios), the target object can be the palmprint of the target user. In this scenario, the target user refers to the user who wants to perform palmprint recognition (such as the user who wants to perform palm-swipe payment).
[0091] For example, in a facial recognition scenario, the target object can be the face of the target user, where the target user refers to the user for whom facial recognition is to be performed. Similarly, in a shooting scenario, the target object can be any subject being photographed, such as a person, object, or gesture.
[0092] In some embodiments, the image acquisition device may be configured with at least one distance sensor to determine the target distance value 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, the distance sensor may include, but is not limited to, one or more of the following: an infrared modulated spectral reflectance intensity detection device, an infrared time-of-flight detection device, a radar sensor, etc.
[0093] When the image acquisition device is equipped with a distance sensor, the 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.
[0094] When the image acquisition device is equipped with at least two distance sensors, the implementation of step S201 can be as follows: call each distance sensor in the image acquisition device to detect the distance value between the target object and the image acquisition device, and obtain at least two initial distance values. Each distance sensor detects one initial distance value, that is, there is a one-to-one correspondence between the initial distance values and the distance sensors.
[0095] In some embodiments, 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.
[0096] The implementation method of 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 implementation methods:
[0097] Implementation method 1: At least two initial distance values can be sorted in descending (or ascending) order to obtain a distance value sequence, and the median value of the distance value sequence can be used as the target distance value between the target object and the image acquisition device.
[0098] The median value of the distance value sequence refers to the initial distance value in the middle position of the distance value sequence. Suppose that the distance value sequence includes 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 distance value sequence. If K is even, the middle position can be the K / 2th position, and the median value is the K / 2th initial distance value in the distance value sequence.
[0099] For example, referring to Figure 3a, which is a schematic diagram of determining the target distance value by means of multiple distance sensors according to an embodiment of this application, distance sensor 1 can detect an initial distance value of 50 between the target object and the image acquisition device, distance sensor 2 can detect an initial distance value of 52 between the target object and the image acquisition device, and distance sensor 3 can detect an initial distance value of 48 between the target object and the image acquisition device.
[0100] 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 to obtain 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.
[0101] Implementation method 2: The mean (or weighted mean) of at least two initial distance values can be calculated, that is, the average of at least two initial distance values can be determined to obtain the target distance value between the target object and the image acquisition device.
[0102] The weighted average can be achieved by: obtaining the weight of each distance sensor, which can be preset based on actual needs or experience; using the weight of each distance sensor to weight the initial distance value detected by the corresponding distance sensor to obtain at least two weighted distance values; and performing an average operation on each weighted distance value to determine the average value of multiple weighted distance values, thereby obtaining the target distance value between the target object and the image acquisition device.
[0103] 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. In some embodiments, 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.
[0104] In some embodiments, if the spatial relationship indicates that the target object is parallel to the top surface, any initial distance value can be used as the target distance value between the target object and the image acquisition device. In some embodiments, if the spatial relationship indicates that the target object is tilted to the top surface, the target object can be projected onto the two-dimensional plane containing the top surface to obtain a planar graphic; the geometric center point of the planar graphic 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 (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.
[0105] The following example uses three initial distance values detected by three distance sensors. A schematic diagram of determining the target distance value based on this implementation method can be shown in Figure 3b. Figure 3b is another schematic diagram of determining the target distance value by multiple distance sensors provided by an embodiment of this application.
[0106] In Figure 3b, the initial distance values between the target object and the image acquisition device can be detected by distance sensor 1, distance sensor 2 and distance sensor 3 respectively, thereby obtaining the initial distance values corresponding to distance sensor 1, distance sensor 2 and distance sensor 3 respectively.
[0107] The spatial relationship between the target object and the top surface of the image acquisition device is determined based on three initial distance values. When the spatial relationship indicates parallelism, any initial distance value can be used as the target distance value between the target object and the image acquisition device.
[0108] When the spatial relationship indicates an inclination, the target object is projected onto the two-dimensional plane where the top surface is located to obtain a planar graphic. The geometric center point of this graphic is then mapped back to the target object to obtain the mapping point. The distance between the mapping point and the image acquisition device is then obtained as the target distance value.
[0109] This application embodiment 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 improve the accuracy of the target distance value.
[0110] 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.
[0111] 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.
[0112] In some embodiments, S202 can be implemented by selecting a target surface light source layer from at least two surface light source layers according to a target selection rule based on the target distance value and the field of view of each surface light source layer.
[0113] Among them, the target distance value is negatively correlated with the field of view of the target surface light source layer. 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 the larger field of view is to be selected (that is, the surface light source layer with the 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 the smaller field of view is to be selected (that is, the surface light source layer with the smaller field of view has a higher selection priority).
[0114] In some embodiments, a mapping information table can be pre-constructed based on target selection rules. The mapping information table may include multiple distance ranges and parameter groups mapped to each distance range. Any parameter group includes at least the luminescence state of each surface light source layer, which is used to indicate whether the surface light source layer emits light.
[0115] In some embodiments, any parameter group may further include: emission parameters of each surface light source layer; the 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 rule can be exemplarily shown in Table 1 below:
[0116] Table 1
[0117] Based on this, the implementation of step S202 may include: obtaining a mapping information table constructed based on the target selection rules, finding a distance range containing the target distance value from the mapping information table as the target distance range, and obtaining the parameter group mapped by 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.
[0118] The target surface light source layer can be the surface light source layer state corresponding to the emission state used to indicate the emission in the target parameter group. For example, see Figure 3c, which is a schematic diagram of selecting the target surface light source layer based on a mapping information table according to an embodiment of this application.
[0119] Taking the mapping information table shown in Table 1 above as an example, the object shown in Figure 3c is the target object. If the target distance value is 50, it 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, the 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.
[0120] In some embodiments, 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).
[0121] Based on this, the 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.
[0122] In some embodiments, a neural network model with surface light source layer prediction capability can be pre-constructed based on Artificial Intelligence (AI) technology. In some embodiments, training data and data labels can be acquired. 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. The data labels are used to indicate the surface light source layers that need to be illuminated. The preset model is invoked 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 preset model are optimized to obtain a neural network model with surface light source layer prediction capability.
[0123] Based on this, the 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.
[0124] S203, control the target surface light source layer to provide supplementary lighting to the target object, and call the image acquisition component to acquire an image of the target object after supplementary lighting, thereby obtaining an image of the target object.
[0125] In some embodiments, the computer device can obtain the luminescence parameters of the target surface light source layer. These luminescence parameters can be preset default values or values calculated based on statistical analysis of the historical luminescence of the target surface light source layer (such as the luminescence duration and intensity of each historical luminescence). This application embodiment does not limit this.
[0126] In some embodiments, the computer device can control the target surface light source layer to emit light according to the light emission parameters of the target surface light source layer in order to provide supplementary lighting for the target object, and call the image acquisition component to acquire an image of the target object after supplementary lighting (such as taking a picture) to obtain an image of the target object.
[0127] In some embodiments, 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.
[0128] The following explains the business processing. The business processing can differ depending on the scenario. It can be used to purchase products, open access control systems (e.g., allowing users to pass through turnstiles in a scenic area), or query information, such as a user's account information or information with a level exceeding a threshold. These settings can be configured based on actual usage needs.
[0129] In some embodiments, if the identity verification result indicates that the target user has passed authentication, the target service can be performed on the target user; if the identity verification result indicates that the target user has failed authentication, the service operation can be refused (prohibited) on the target user. In the context of palm payment, the service operation can be a payment operation; in the context of palm attendance, the service operation can be an attendance operation; in the context of palm unlock, the service operation can be an unlock operation, and so on. It is understood that when the target object is the target user's face, 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 verification on the target user based on the target face image to obtain the identity verification result.
[0130] In the image processing method provided in this application embodiment, the image acquisition device 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 it is necessary to acquire an image of a target object, the target distance value between the target object and the image acquisition device and the field of view angle of each surface light source layer can be combined to select a target surface light source layer from at least two surface light source layers. The target distance value is negatively correlated with the field of view angle of the target surface light source layer. The field of view angle of the selected target surface light source layer can meet the supplementary lighting requirements of the target object. In this way, when controlling the target surface light source layer to supplement the target object, the supplementary lighting effect can be improved, thereby improving the image quality of the target object image obtained by calling the image acquisition component to acquire the image of the target object after supplementary lighting.
[0131] The image processing method provided in this application provides that by configuring surface light source layers with different field of view in the image acquisition device and illuminating the surface light source layers with different field of view in combination with the spatial position of the object (i.e. the target distance value between the object and the image acquisition device), it is possible to achieve supplementary lighting adaptation at different distances, thereby achieving effective supplementary lighting for objects in different spatial positions, improving the supplementary lighting effect, and thus improving the image acquisition quality.
[0132] 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 illuminate 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 illuminated 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 near-distance and long-distance supplementary lighting adaptation, thereby effectively illuminating objects in different spatial positions, improving the supplementary lighting effect, and ultimately enhancing the image acquisition quality.
[0133] Based on the method embodiment shown in Figure 2 above, this application also proposes an 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, which is a flowchart illustrating an image processing method provided by another embodiment of this application. This image processing method can generally include the following steps S401-S406:
[0134] S401, Obtain 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.
[0135] In some embodiments, the image acquisition device may also be configured with at least two sensors; when the computer device executes step S401, it may call each distance sensor in the image acquisition device to detect the distance value between the target object and the image acquisition device, and obtain at least two initial distance values. For details of S401, please refer to the description of S201.
[0136] In some embodiments, 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. If the spatial relationship indicates that the target object is parallel to the top surface, then either initial distance value can be used as the target distance value between the target object and the image acquisition device.
[0137] If the spatial relationship indicates that the target object is tilted to the top surface, 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 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. For details, please refer to the description of the third implementation method above, which will not be repeated here.
[0138] S402, Obtain the mapping information table constructed based on the target selection rules. The mapping information table includes multiple distance ranges and the parameter group mapped to each distance range.
[0139] 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.
[0140] 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.
[0141] 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.
[0142] 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 in order to provide supplementary lighting for the target object.
[0143] 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.
[0144] In some embodiments, an image acquisition component can be invoked to capture an image of the target object after supplemental lighting, obtaining an initial object image, which can then be directly used as the target object image. Alternatively, the initial object image can be quality-tested based on the brightness values of each pixel in the initial object image to obtain the image quality of the initial object image.
[0145] If the image quality meets the quality requirements, the initial object image can be 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 can be adjusted, and the target surface light source layer can be controlled to re-illuminate the target object based on the adjusted emission parameters. The image acquisition component can then be called to acquire an image of the re-illuminated target object to obtain the target object image.
[0146] Among them, ① 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. The embodiments of this application do not limit the calculation method (i.e. quality monitoring method) of brightness uniformity and exposure error.
[0147] ② Quality conditions may include, but are not limited to, at least one of the following: brightness uniformity greater than the uniformity threshold, exposure error 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.
[0148] Taking insufficient light as an example, in low light conditions, image acquisition devices cannot capture detailed signals of the target object. Due to the lack of detailed signals, details become blurred, and image quality deteriorates. Uneven lighting will cause some areas of the target object to be overexposed (loss of details in bright areas) and some areas to be underexposed (loss of details in dark areas).
[0149] In low light conditions, image acquisition devices automatically increase sensitivity to capture more light. However, high sensitivity amplifies the sensor's electronic noise, resulting in numerous speckled colors and compromising image clarity. Different lighting conditions affect color reproduction; for example, warm lighting makes the image appear yellowish, while cool lighting makes it appear bluish. Insufficient lighting weakens the color signal, leading to decreased color saturation and an inability to reproduce the true colors of objects, thus degrading image quality.
[0150] In some embodiments, after obtaining the target object image, the computer device may 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 target distance value from the image acquisition device. Furthermore, the image quality of each reference object image and the image quality of the target object image can be acquired, whereby any image quality includes at least one of the following: brightness uniformity and exposure error.
[0151] In some embodiments, the computer device can determine high-quality object images from at least one reference object image and one target object image 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 defined as an object image whose image quality meets a quality condition. After determining the high-quality object images, 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.
[0152] Wherein, any light source layer information is used to indicate: a surface light source layer that provides supplementary lighting to the corresponding object when the corresponding object image is acquired; in some embodiments, any light source layer information may further include: supplementary lighting parameters of the surface light source layer that provides supplementary lighting to the corresponding object when the corresponding object image is acquired.
[0153] It should be noted that the implementation 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 the embodiments of this application. 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 the 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. Alternatively, the parameter group mapped by 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.
[0154] As can be seen, the embodiments of this application support dynamically updating the mapping information table based on the 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 consistent with the actual working situation of the image acquisition device, thereby improving the accuracy of the mapping information table and thus improving the accuracy of selecting the surface light source layer based on the mapping information table.
[0155] In the image processing method provided in this application embodiment, the image acquisition device 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 it is necessary to acquire an image of a target object, the target distance value between the target object and the image acquisition device and the field of view angle of each surface light source layer can be combined to select a target surface light source layer from at least two surface light source layers. The target distance value is negatively correlated with the field of view angle of the target surface light source layer. The field of view angle of the selected target surface light source layer can meet the supplementary lighting requirements of the target object. In this way, when controlling the target surface light source layer to supplement the target object, the supplementary lighting effect can be improved, thereby improving the image quality of the target object image obtained by calling the image acquisition component to acquire the image of the target object after supplementary lighting.
[0156] The image processing method provided in this application provides that by configuring surface light source layers with different field of view in the image acquisition device and illuminating the surface light source layers with different field of view in combination with the spatial position of the object (i.e. the target distance value between the object and the image acquisition device), it is possible to achieve supplementary lighting adaptation at different distances, thereby achieving effective supplementary lighting for objects in different spatial positions, improving the supplementary lighting effect, and thus improving the image acquisition quality.
[0157] 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 illuminate 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 illuminated 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 near-distance and long-distance supplementary lighting adaptation, thereby effectively illuminating objects in different spatial positions, improving the supplementary lighting effect, and ultimately enhancing the image acquisition quality.
[0158] Based on the descriptions of the above-described method embodiments, this application proposes a palm-swipe payment device. Referring to Figure 5a, which is a schematic diagram of the supplementary lighting effect of an optical compensation module provided in another embodiment of this application, the optical compensation module of the palm-swipe payment device proposed in this application adopts a layered supplementary lighting scheme. It may include two surface light source layers, which 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, a large illumination range (supplementary lighting range) can effectively cover the palm, allowing the image acquisition area of the image acquisition component (such as a camera) to be fully illuminated. 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 greater and light follows the inverse square distance principle (light intensity decreases significantly with increasing distance), a surface light source layer with a small field of view can be used for supplementary lighting to ensure sufficient palm illumination brightness, thereby improving supplementary lighting efficiency and reducing overall power consumption.
[0159] In some embodiments, to achieve different lighting (supplementary lighting) effects at near and far positions, this application embodiment provides light guide plates in the upper and lower surface light source layers, and provides 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 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 laterally 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.
[0160] 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.
[0161] In some embodiments, "nearer" means the distance is less than a first distance threshold, and "farther" means the distance is greater than a second distance threshold. The second distance threshold is greater than or equal to the first distance threshold. This is just an illustration. In reality, more than or equal to 3 light guide plates can be set, and each light guide plate has a corresponding distance threshold, so as to achieve illumination for different distances and improve the quality of the captured target object image.
[0162] 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 area 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. In addition, even if the 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 the reflective film and try to pass through the upper light guide plate again. Ultimately, the light can illuminate the palm at the far end with a smaller field of view, achieving very high illumination efficiency.
[0163] In other words, the back of the light guide plate can be covered with evenly distributed scattering points; when light shines on the scattering points, the light will be scattered, and the light can be transformed into vertical upward propagation after the propagation angle changes, thus forming a light path that can illuminate the palm; in areas not covered by scattering points, the light can follow the transmission light path, thereby realizing the transmission from the lower light guide plate to the palm above the palm payment device, thus achieving good illumination (supplementary light) at both near and far ends.
[0164] 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.
[0165] In some embodiments, the palm payment device proposed in this application may include, in addition to the two-layer light source layer mentioned above, an image acquisition component, multiple distance sensors, a central processing unit, and so on. 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.
[0166] Distance sensors can be configured to detect different spatial positions of the palm above the palm payment device in order to provide supplemental lighting compensation. In some embodiments, multiple distance sensors are configured to detect whether the palm is located above the palm payment device (i.e., on the top side of the palm payment device) and the actual distance value between the palm and the palm payment device. This allows for the 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, by combining 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 in the palm payment device based on the position.
[0167] Referring to Figure 5b, which is a schematic diagram of the working process of a palm payment device provided in an embodiment of this application, the working process of the aforementioned palm payment device can be as follows: the distance value between the palm (i.e., the target object) and the palm payment device (i.e., the computer device including the image acquisition device) is detected by multiple distance sensors, and the distance value (i.e., the reading) detected by each distance sensor is sent to the central processing unit.
[0168] In some embodiments, the central processing unit can integrate the distance values sent by each distance sensor to obtain a target distance value between the palm and the palm payment device. The integration method can be referred to the foregoing description (corresponding to Embodiment 1-Implement 3), and will not be repeated here.
[0169] In some embodiments, the central processing unit can select an upper surface light source layer, a lower surface light source layer, or a combination of the upper and lower surface light source layers from two surface light source layers based on the target distance value, and call the selected surface light source layer to provide supplementary lighting for the palm, and call the image acquisition component to acquire an image of the palm after supplementary lighting to generate a target palmprint image.
[0170] In some embodiments, the image acquisition component can return the target palm print image to the central processing unit, which can then send the target palm print image to the server. The server can then verify the identity of the target user (i.e., the user to whom the target object belongs) based on the target palm print image, so as to perform a payment operation if the identity of the target user is confirmed to be correct.
[0171] As described above, in order to balance the characteristics of both near and far ends, this embodiment of the application employs a dual-layer light source design when constructing the light field of the palm payment device. It also utilizes 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 palm's spatial position, the illumination state (supplementary lighting state), illumination duration (supplementary lighting duration), and illumination intensity (supplementary lighting intensity) of the surface light source layers at different spatial heights can be controlled to adjust the entire light field in accordance with the palm's position, dynamically ensuring the uniformity of the entire supplementary lighting field's shooting area. Furthermore, this improves the accuracy of identity verification based on image acquisition devices.
[0172] In summary, the palm payment device proposed in this application includes at least the following technical features:
[0173] (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.
[0174] (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; (3) The detection of the palm position by the distance sensor can be combined with the distance to light up the surface light source layer at different positions, thereby achieving illumination adaptation (supplementary light adaptation) for near and far distances; and by cooperating with multiple distance sensors in the matrix, the working state of the surface light source layer at different field of view (such as supplementary light parameters) can be appropriately adjusted after the spatial position of the palm is detected to meet different lighting needs, and targeted supplementary light can be provided in combination with different palm positions to reduce overall power consumption and improve supplementary light efficiency.
[0175] 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, which is a schematic diagram of the structure of an image processing apparatus provided in this application embodiment. The image processing apparatus may operate the following units:
[0176] The acquisition unit 601 is configured to acquire 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.
[0177] Processing unit 602 is configured to select 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 of the surface light source layers; wherein the target distance value is negatively correlated with the field of view of the target surface light source layer;
[0178] The processing unit 602 is further configured to control the target surface light source layer to provide supplementary lighting to the target object, and to call the image acquisition component to acquire an image of the target object after supplementary lighting, thereby obtaining an image of the target object.
[0179] In one embodiment, each of the surface light source layers 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 device surface of the image acquisition device facing the target object when the target object is being imaged.
[0180] The bottom of the light guide plate includes at least one scattering point, and any one of the scattering points is used to diffusely reflect light to change the propagation angle of the light.
[0181] 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 and illuminates the target object.
[0182] In another embodiment, each of the surface light source layers 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;
[0183] 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.
[0184] 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;
[0185] The support frame is also used to: reflect the light emitted by the light-emitting component in any of the surface light source layers toward the support frame to the light guide plate of at least one surface light source layer, and the corresponding light is emitted from the top of the light guide plate of the at least one surface light source layer and illuminates the target object.
[0186] In another embodiment, the processing unit 602 is further 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 of the 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 of the selected surface light source layer.
[0187] In another embodiment, the processing unit 602 is further configured to, 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 of the surface light source layers according to the target selection rule, obtain a mapping information table constructed based on the target selection rule. The mapping information table includes multiple distance ranges and parameter groups mapped to each distance range; any parameter group includes at least the light emission state of each surface light source layer, and the light emission state is used to indicate whether the surface light source layer emits light.
[0188] 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;
[0189] 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.
[0190] In another embodiment, any of the parameter groups further includes: the luminescence parameters of each of the surface light source layers;
[0191] Correspondingly, the processing unit 602 is also configured to control the target surface light source layer to provide supplementary lighting to the target object when:
[0192] Obtain the luminescence parameters of the target surface light source layer from the target parameter set;
[0193] 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 supplemental lighting for the target object.
[0194] In another embodiment, after obtaining the target object image, the processing unit 602 may also be configured to:
[0195] 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;
[0196] 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;
[0197] 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.
[0198] 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.
[0199] In another embodiment, the image acquisition device is equipped with at least two distance sensors; correspondingly, the acquisition unit 601 is further configured to, when acquiring the target distance value between the target object and the image acquisition device:
[0200] Each distance sensor in the image acquisition device is invoked to detect the distance value between the target object and the image acquisition device, and at least two initial distance values are obtained, with each distance sensor detecting one initial distance value.
[0201] By integrating the at least two initial distance values, a target distance value between the target object and the image acquisition device is obtained.
[0202] In another embodiment, the acquisition unit 601 is further configured to integrate the at least two initial distance values to obtain the target distance value between the target object and the image acquisition device:
[0203] A consistency check is performed on the at least two initial distance values to determine the spatial relationship between the target object and the top surface of the image acquisition device; the top surface refers to the device surface of the image acquisition device facing the target object when the image is acquired.
[0204] If the spatial relationship indicates that the target object is parallel to the top surface, then any initial distance value is taken as the target distance value between the target object and the image acquisition device.
[0205] In another embodiment, the acquisition unit 601 is further configured to, after determining the spatial relationship between the target object and the top surface of the image acquisition device:
[0206] 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;
[0207] 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;
[0208] The distance value between the mapping point and the image acquisition device is obtained and used as the target distance value between the target object and the image acquisition device.
[0209] In another embodiment, the processing unit 602 is further configured to sort the at least two initial distance values in descending order to obtain a distance value sequence;
[0210] The median value of the distance value sequence is determined, and the median value of the distance value sequence is used as the target distance value between the target object and the image acquisition device.
[0211] In another embodiment, the processing unit 602 is further configured to, when invoking the image acquisition component to acquire an image of the target object after supplemental lighting, obtain an image of the target object:
[0212] 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;
[0213] 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;
[0214] If the image quality meets the quality requirements, then the initial object image is used as the target object image;
[0215] If the image quality does not meet the quality conditions, the luminescence parameters of the target surface light source layer are adjusted, and the target surface light source layer is controlled to re-illuminate the target object based on the adjusted luminescence parameters. The image acquisition component is then invoked to acquire an image of the re-illuminated target object to obtain an image of the target object.
[0216] 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 configured to:
[0217] The target user is identified based on the target palm print image, and the identification result is obtained.
[0218] According to another embodiment of this application, the various units in the image processing apparatus shown in FIG6 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 can achieve the same operation without affecting the technical effect of the embodiments of this application. The above-mentioned units are based on logical function division. 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.
[0219] According to another embodiment of this application, the image processing apparatus shown in FIG6 and the image processing method of the present application embodiment can be implemented by running a computer program (including one or more instructions) capable of performing the steps involved in any of the above methods 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). The computer program can be recorded on, for example, a computer-readable storage medium, loaded into the aforementioned computing device via the computer-readable storage medium, and run therein.
[0220] 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.
[0221] 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 illuminate 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 illuminated 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 near-distance and long-distance supplementary lighting adaptation, thereby effectively illuminating objects in different spatial positions, improving the supplementary lighting effect, and ultimately enhancing the image acquisition quality.
[0222] Based on the description of the above method and device embodiments, this application also provides a computer device. Please refer to FIG7, which is a schematic diagram of the structure of a computer device provided in this application embodiment. The computer device includes at least a processor 701, an input interface 702, an output interface 703, and a computer storage medium 704.
[0223] 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 computer programs, which include 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, also known as the Central Processing Unit (CPU), is the computing and control core of the computer device. It is adapted to implement one or more instructions, and to load and execute one or more instructions to achieve corresponding method flows or functions.
[0224] In one embodiment, the processor 701 described in this application can be used to perform a series of image acquisition processes, 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; selecting a target surface light source layer from the at least two surface light source layers according to a target selection rule based on the target distance value and the field of view angles of each surface light source layer; 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; controlling the target surface light source layer to provide supplementary lighting to the target object, and calling the image acquisition component to acquire an image of the target object after supplementary lighting, thereby obtaining an image of the target object, etc.
[0225] 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; in some embodiments, it can also be at least one computer storage medium located remotely from the aforementioned processor.
[0226] 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; in some embodiments, one or more instructions in a computer storage medium may be loaded and executed by a processor as follows:
[0227] 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.
[0228] 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.
[0229] The target surface light source layer is controlled to provide supplemental lighting to 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.
[0230] 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;
[0231] 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.
[0232] 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 and illuminates the target object.
[0233] 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.
[0234] 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.
[0235] 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;
[0236] 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, and the corresponding light is emitted from the top of the light guide plate of the at least one surface light source layer and illuminates the target object.
[0237] 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:
[0238] 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.
[0239] 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;
[0240] 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.
[0241] In another embodiment, any of the parameter groups further includes: the luminescence parameters of each surface light source layer;
[0242] Accordingly, when controlling the target surface light source layer to provide supplemental lighting to the target object, one or more instructions can be loaded and executed by the processor:
[0243] Obtain the luminescence parameters of the target surface light source layer from the target parameter set;
[0244] 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 supplemental lighting for the target object.
[0245] In another implementation, after obtaining the target object image, the one or more instructions can be loaded and executed by the processor:
[0246] 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;
[0247] 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;
[0248] 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.
[0249] 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.
[0250] 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:
[0251] 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.
[0252] The at least two initial distance values are integrated to obtain the target distance value between the target object and the image acquisition device.
[0253] 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:
[0254] 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 target object when acquiring an image of any object.
[0255] 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.
[0256] 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:
[0257] 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;
[0258] 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;
[0259] 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.
[0260] In another implementation, when the image acquisition component is invoked to acquire an image of the target object after supplemental lighting, and an image of the target object is obtained, the one or more instructions can be loaded and executed by the processor:
[0261] 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;
[0262] 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;
[0263] If the image quality meets the quality requirements, then the initial object image is used as the target object image;
[0264] 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.
[0265] 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:
[0266] The target user is identified based on the target palm print image to obtain the identification result.
[0267] Based on the identity recognition results, business processing is performed on the target user.
[0268] 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 illuminate 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 illuminated 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 near-distance and long-distance supplementary lighting adaptation, thereby effectively illuminating objects in different spatial positions, improving the supplementary lighting effect, and ultimately enhancing the image acquisition quality.
[0269] 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, the method being executed by a computer device, the method comprising: 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 of the surface light source layers, a target surface light source layer is selected from at least two surface light source layers; wherein, the target distance value is negatively correlated with the field of view of the target surface light source layer; The target surface light source layer is controlled to provide supplemental lighting to 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 of claim 1, wherein, Each of the surface light source layers 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 device surface of the image acquisition device facing the target object when performing image acquisition on the target object. The bottom of the light guide plate includes at least one scattering point, and any one of the scattering points is used to diffusely reflect the 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 and illuminates the target object.
3. The method of claim 2, wherein, Each of the surface light source layers 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 of claim 3, wherein, 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 of the surface light source layers toward the support frame to the light guide plate of at least one surface light source layer, and the corresponding light is emitted from the top of the light guide plate of the at least one surface light source layer and illuminates the target object.
5. The method of any one of claims 1-4, wherein, The step of selecting the 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 angle of each of the surface light source layers includes: Based on the target distance value and the field of view of each of the surface light source layers, 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 selected surface light source layer.
6. The method of claim 5, wherein, 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 of the surface light source layers, 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. 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.
7. The method of claim 6, wherein, The parameter group further includes: the light emission parameters of each of the surface light source layers; The control of the target surface light source layer to provide supplemental lighting to 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 to supplement the target object.
8. The method of claim 6 or 7, wherein, 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.
9. The method of any one of claims 1-8, wherein, The image acquisition device is equipped with at least two distance sensors; The process of obtaining 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 value between the target object and the image acquisition device, and at least two initial distance values are obtained, with each distance sensor detecting one initial distance value. By integrating the at least two initial distance values, a target distance value between the target object and the image acquisition device is obtained.
10. The method of claim 9, wherein, 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: A consistency check is performed on the at least two initial distance values to determine the spatial relationship between the target object and the top surface of the image acquisition device; the top surface refers to the device surface of the image acquisition device facing the target object when the image is acquired. If the spatial relationship indicates that the target object is parallel to the top surface, then any initial distance value is taken as the target distance value between the target object and the image acquisition device.
11. The method of claim 10, wherein, After determining the spatial relationship between the target object and the top surface of the image acquisition device, the method 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 value between the mapping point and the image acquisition device is obtained and used as the target distance value between the target object and the image acquisition device.
12. The method of any one of claims 9-11, wherein, 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: Sort the at least two initial distance values in descending order to obtain a distance value sequence; The median value of the distance value sequence is determined, and the median value of the distance value sequence is used as the target distance value between the target object and the image acquisition device.
13. The method of any one of claims 1-12, wherein, 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 conditions, the luminescence parameters of the target surface light source layer are adjusted, and the target surface light source layer is controlled to re-illuminate the target object based on the adjusted luminescence parameters. The image acquisition component is then invoked to acquire an image of the re-illuminated target object to obtain an image of the target object.
14. The method of any one of claims 1-13, wherein, 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, and the identification result is obtained.
15. An image processing apparatus, the apparatus comprising: The acquisition unit is configured 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. The processing unit is configured to select 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 angle of each of the surface light source layers; wherein the target distance value is negatively correlated with the field of view angle of the target surface light source layer; The processing unit is further configured to control the target surface light source layer to provide supplementary lighting to the target object, and to call the image acquisition component to acquire an image of the target object after supplementary lighting, thereby obtaining an image of the target object.
16. A computer device comprising an input interface and an output interface, further comprising: 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-14.
17. A computer storage medium storing one or more instructions adapted for loading by a processor and executing the image processing method as claimed in any one of claims 1-14.
18. A computer program product comprising one or more instructions; wherein, 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-14.