Adjustment method of image acquisition module, head-mounted display device, medium and product
Patent Information
- Application Number
- CN202510422418.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2026-10-16
AI Technical Summary
[0005]本申请的主要目的在于提供一种图像采集模块的调节方法、头戴显示设备、存储介质和计算机程序产品,旨在解决相关技术中头戴显示设备内的图像采集模块在启动过程中耗费较长时间的技术问题
[0041] Thus, this application solves the technical problem of the long startup time of the image acquisition module in the head-mounted display device in the related art. Specifically, this application calculates the frame brightness difference based on the target frame brightness and the current frame brightness corresponding to the initial gain parameter, and calculates the target gain parameter matching the target frame brightness based on the frame brightness difference and the initial gain parameter. Therefore, the target exposure time is directly determined based on the target gain parameter, and the target photosensitivity parameter is directly determined based on the target exposure time. Then, the image acquisition device is adjusted according to the target gain parameter, the target exposure time, and the target photosensitivity parameter. This allows the head-mounted display device to directly determine the target exposure time matching the target gain parameter by utilizing the change relationship between the exposure time and the gain parameter without having to iterate the exposure time multiple times. This reduces the number of iterations required for the head-mounted display device to calculate the target exposure time, thereby achieving the technical effect of reducing the startup time of the image acquisition module and improving the real-time interactive experience of the user when wearing the head-mounted display device.
Smart Images

Figure CN122934078A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wearable device technology, and more particularly to an adjustment method for an image acquisition module, a head-mounted display device, a storage medium, and a computer program product. Background Technology
[0002] VR (Virtual Reality) devices or AR (Augmented Reality) devices are head-mounted display devices that are currently developing and becoming increasingly widespread. As the core sensing hardware of head-mounted display devices, the performance of the image acquisition module directly affects the user's wearing experience when wearing the device.
[0003] In related technologies, when a head-mounted display device starts its image acquisition module, its built-in AE (Auto Exposure) system typically uses a method of synchronously adjusting the gain parameter and exposure time. That is, it achieves image brightness convergence by repeatedly iterating and calculating the values of the gain parameter and exposure time.
[0004] However, the process of adjusting the gain parameters and exposure time requires multiple trial and error iterations, which significantly prolongs the startup time of the image acquisition module and severely restricts the real-time interactive experience of the head-mounted display device. Summary of the Invention
[0005] The main objective of this application is to provide an adjustment method for an image acquisition module, a head-mounted display device, a storage medium, and a computer program product, aiming to solve the technical problem in the related art that the image acquisition module in a head-mounted display device takes a long time to start up.
[0006] To achieve the above objectives, this application proposes an adjustment method for an image acquisition module. This adjustment method is applied to a head-mounted display device including an image acquisition module, and includes:
[0007] Obtain the current configuration parameter group corresponding to the image acquisition module, wherein the current configuration parameter group includes the initial gain parameter, the initial exposure time, and the initial photosensitivity parameter;
[0008] Determine the preset first target frame brightness, and determine the first frame brightness difference value corresponding to the initial gain parameter based on the first target frame brightness;
[0009] The target gain parameter is obtained by processing the initial gain parameter based on the brightness difference of the first frame;
[0010] The initial exposure time is processed based on the target gain parameter to obtain the target exposure time, and the initial photosensitivity parameter is processed based on the target exposure time to obtain the target photosensitivity parameter;
[0011] The target gain parameter, the target exposure time, and the target photosensitivity parameter are integrated to obtain a first target configuration parameter group, and the current configuration parameter group of the image acquisition module is adjusted to the first target configuration parameter group.
[0012] In one embodiment, the step of processing the initial gain parameter based on the brightness difference of the first frame to obtain the target gain parameter includes:
[0013] The initial gain parameter is processed based on the brightness difference of the first frame to obtain the first gain parameter, and the brightness of the intermediate frame corresponding to the first gain parameter is determined.
[0014] The brightness difference of the second frame is calculated based on the brightness of the intermediate frame and the brightness of the first target frame, and a preset brightness difference threshold is determined.
[0015] If the brightness difference of the second frame is detected to be less than the brightness difference threshold, the first gain parameter is determined as the target gain parameter.
[0016] In one embodiment, the step of processing the initial exposure time based on the target gain parameter to obtain a target exposure time, and processing the initial photosensitivity parameter based on the target exposure time to obtain a target photosensitivity parameter, includes:
[0017] Determine the gain parameter ratio between the initial gain parameter and the target gain parameter, and process the initial exposure time based on the gain parameter ratio to obtain the target exposure time;
[0018] The exposure time ratio between the target exposure time and the initial exposure time is determined, and the initial photosensitivity parameters are processed based on the exposure time ratio to obtain the target photosensitivity parameters.
[0019] In one embodiment, the step of adjusting the current configuration parameter group of the image acquisition module to the first target configuration parameter group includes:
[0020] Determine the preset parameter adjustment range, and determine the gain parameter adjustment value, exposure time adjustment value, and photosensitivity parameter adjustment value based on the parameter adjustment range;
[0021] Adjust the initial gain parameter to the target gain parameter according to the gain parameter adjustment value;
[0022] Adjust the initial exposure time to the target exposure time according to the exposure time adjustment value;
[0023] Adjust the initial photosensitivity parameter to the target photosensitivity parameter according to the stated photosensitivity parameter adjustment value.
[0024] In one embodiment, after the step of obtaining the current configuration parameter group corresponding to the image acquisition module, the method further includes:
[0025] Acquire real-time ambient light parameters and determine the brightness of the second target frame that matches the real-time ambient light parameters;
[0026] The initial gain parameter is obtained by calculating the brightness difference of the third frame corresponding to the brightness of the second target frame, and the initial gain parameter is processed based on the brightness difference of the third frame to obtain the target gain parameter.
[0027] The steps are as follows: processing the initial exposure time based on the target gain parameter to obtain the target exposure time, and processing the initial photosensitivity parameter based on the target exposure time to obtain the target photosensitivity parameter.
[0028] In one embodiment, the step of determining the brightness of the second target frame that matches the real-time ambient light parameters includes:
[0029] Obtain multiple preset ambient light parameter ranges and preset frame brightness that matches each of the multiple preset ambient light parameter ranges;
[0030] Based on the real-time ambient light parameters, multiple preset ambient light parameter ranges are filtered to determine the target ambient light parameter range in which the real-time ambient light is located.
[0031] The preset frame brightness that matches the target ambient light parameter range is determined as the second target frame brightness.
[0032] In one embodiment, after the steps of processing the initial exposure time based on the target gain parameter to obtain the target exposure time, and processing the initial photosensitivity parameter based on the target exposure time to obtain the target photosensitivity parameter, the method further includes:
[0033] Read the user's head movement parameters and determine the wearing scenario that matches the head movement parameters;
[0034] When the wearing scenario is detected to be a preset dynamic scenario, the target gain parameter, the target photosensitivity parameter and the initial exposure time are integrated to obtain a second target configuration parameter group;
[0035] Adjust the current configuration parameter group of the image acquisition module to the second target configuration parameter group.
[0036] In addition, to achieve the above objectives, this application also proposes a head-mounted display device, which includes: an image acquisition module, a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the adjustment method of the image acquisition module as described above.
[0037] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the adjustment method of the image acquisition module as described above.
[0038] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the adjustment method for the image acquisition module as described above.
[0039] The image acquisition module adjustment method provided in this application embodiment is applied to a head-mounted display device including an image acquisition module. The method involves: acquiring a current configuration parameter group corresponding to the image acquisition module, wherein the current configuration parameter group includes an initial gain parameter, an initial exposure time, and an initial photosensitivity parameter; determining a preset first target frame brightness, and determining a first frame brightness difference corresponding to the initial gain parameter based on the first target frame brightness; processing the initial gain parameter based on the first frame brightness difference to obtain a target gain parameter; processing the initial exposure time based on the target gain parameter to obtain a target exposure time, and processing the initial photosensitivity parameter based on the target exposure time to obtain a target photosensitivity parameter; integrating the target gain parameter, the target exposure time, and the target photosensitivity parameter to obtain a first target configuration parameter group; and adjusting the current configuration parameter group of the image acquisition module to the first target configuration parameter group.
[0040] In this embodiment, when the head-mounted display device starts the image acquisition module, it first acquires the initial gain parameter, initial exposure time, and initial photosensitivity parameter of the image acquisition module. Then, the head-mounted display device determines the preset first target frame brightness and calculates the brightness difference of the first frame based on the current frame brightness corresponding to the initial gain parameter and the first target frame brightness. Next, the head-mounted display device processes the initial gain parameter calculation based on the brightness difference of the first frame to obtain a target gain parameter that matches the brightness of the first target frame. Then, the head-mounted display device processes the initial exposure time based on the target gain parameter to obtain a target exposure time that matches the target gain parameter, and processes the initial photosensitivity parameter based on the target exposure time to obtain a target photosensitivity parameter that matches the target exposure time. Finally, the head-mounted display device combines the obtained target gain parameter, target exposure time, and target photosensitivity parameter to obtain a first configuration parameter group, and adjusts the current configuration parameter group of the image acquisition module to the first configuration parameter group so that the image acquisition module performs image acquisition operation according to the target gain parameter, target exposure time, and target photosensitivity parameter.
[0041] Thus, this application solves the technical problem of the long startup time of the image acquisition module in the head-mounted display device in the related art. Specifically, this application calculates the frame brightness difference based on the target frame brightness and the current frame brightness corresponding to the initial gain parameter, and calculates the target gain parameter matching the target frame brightness based on the frame brightness difference and the initial gain parameter. Therefore, the target exposure time is directly determined based on the target gain parameter, and the target photosensitivity parameter is directly determined based on the target exposure time. Then, the image acquisition device is adjusted according to the target gain parameter, the target exposure time, and the target photosensitivity parameter. This allows the head-mounted display device to directly determine the target exposure time matching the target gain parameter by utilizing the change relationship between the exposure time and the gain parameter without having to iterate the exposure time multiple times. This reduces the number of iterations required for the head-mounted display device to calculate the target exposure time, thereby achieving the technical effect of reducing the startup time of the image acquisition module and improving the real-time interactive experience of the user when wearing the head-mounted display device. Attached Figure Description
[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0043] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 A flowchart illustrating the adjustment method for the image acquisition module of this application, provided in Embodiment 1.
[0045] Figure 2 This is a comparison curve of the startup time involved in an embodiment of the adjustment method of the image acquisition module of this application;
[0046] Figure 3 A flowchart illustrating the adjustment method for the image acquisition module of this application, provided in Embodiment 3;
[0047] Figure 4 This is a schematic diagram of the module structure of the adjustment device of the image acquisition module in an embodiment of this application;
[0048] Figure 5 This is a schematic diagram of the hardware operating environment involved in the adjustment method of the image acquisition module in the embodiments of this application.
[0049] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0050] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0051] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0052] It should be noted that, for ease of description, the following description will focus on head-mounted display devices equipped with cameras and ambient light sensors, or mobile terminals, data storage control terminals, PCs, and other terminals connected to electronic control units associated with head-mounted display devices. It is understood that these head-mounted display devices include, but are not limited to, Augmented Reality (AR) devices (e.g., AR glasses or AR helmets), Mixed Reality (MR) devices (e.g., MR glasses or MR helmets), Virtual Reality (VR) devices (e.g., VR glasses or VR helmets), Extended Reality (XR) devices, or some combination thereof.
[0053] Based on the aforementioned head-mounted display device, the overall concept of the adjustment method for the image acquisition module of this application is proposed.
[0054] VR or AR devices are head-mounted display devices that are currently experiencing rapid development and widespread adoption. As the core sensing hardware of these devices, the performance of the image acquisition module directly impacts the user's wearing experience. In related technologies, when a head-mounted display activates its image acquisition module, its built-in Auto Exposure (AE) system typically adjusts the gain parameter and exposure time simultaneously. This involves iteratively calculating the values of the gain parameter and exposure time to achieve image brightness convergence. However, because adjusting the gain parameter and exposure time requires multiple trial-and-error iterations, the startup time of the image acquisition module is significantly prolonged, severely limiting the real-time interactive experience of the head-mounted display.
[0055] To address the above issues, this application provides a method for adjusting an image acquisition module. This method is applied to a head-mounted display device including an image acquisition module. The method includes: acquiring a current configuration parameter group corresponding to the image acquisition module, wherein the current configuration parameter group includes an initial gain parameter, an initial exposure time, and an initial photosensitivity parameter; determining a preset first target frame brightness, and determining a first frame brightness difference corresponding to the initial gain parameter based on the first target frame brightness; processing the initial gain parameter based on the first frame brightness difference to obtain a target gain parameter; processing the initial exposure time based on the target gain parameter to obtain a target exposure time, and processing the initial photosensitivity parameter based on the target exposure time to obtain a target photosensitivity parameter; integrating the target gain parameter, the target exposure time, and the target photosensitivity parameter to obtain a first target configuration parameter group, and adjusting the current configuration parameter group of the image acquisition module to the first target configuration parameter group.
[0056] Thus, this application solves the technical problem of the long startup time of the image acquisition module in the head-mounted display device in the related art. Specifically, this application calculates the frame brightness difference based on the target frame brightness and the current frame brightness corresponding to the initial gain parameter, and calculates the target gain parameter matching the target frame brightness based on the frame brightness difference and the initial gain parameter. Therefore, the target exposure time is directly determined based on the target gain parameter, and the target photosensitivity parameter is directly determined based on the target exposure time. Then, the image acquisition device is adjusted according to the target gain parameter, the target exposure time, and the target photosensitivity parameter. This allows the head-mounted display device to directly determine the target exposure time matching the target gain parameter by utilizing the change relationship between the exposure time and the gain parameter without having to iterate the exposure time multiple times. This reduces the number of iterations required for the head-mounted display device to calculate the target exposure time, thereby achieving the technical effect of reducing the startup time of the image acquisition module and improving the real-time interactive experience of the user when wearing the head-mounted display device.
[0057] Based on the overall concept of the image acquisition module adjustment method of this application, this application embodiment provides an image acquisition module adjustment method, please refer to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the image acquisition module adjustment method of this application. In this embodiment, the image acquisition module adjustment method is applied to a head-mounted display device including an image acquisition module, such as... Figure 1 As shown, the adjustment method of the image acquisition module includes steps S10 to S50:
[0058] Step S10: Obtain the current configuration parameter group corresponding to the image acquisition module, wherein the current configuration parameter group includes the initial gain parameter, the initial exposure time and the initial photosensitivity parameter;
[0059] Step S20: Determine the preset first target frame brightness, and determine the first frame brightness difference value corresponding to the initial gain parameter based on the first target frame brightness;
[0060] It should be noted that this current configuration parameter group is the preset initial parameter set used by the camera device configured within the head-mounted display device when it starts up. This means that the current configuration parameter group includes the initial gain parameter Gain. old Initial exposure time Exp old and initial ISO old Furthermore, the brightness L of the first target frame target The ideal screen brightness value preset for technicians is used to guide the AE system within the head-mounted display device in adjusting the initial gain parameter Gain. old Adjustments are made. Furthermore, the brightness difference ΔL in the first frame is the initial gain parameter Gain. old The corresponding current frame brightness Lcurrent With the brightness L of the first target frame target The deviation between them.
[0061] In this embodiment, when the head-mounted display device starts the image acquisition module, the automatic exposure system integrated in the head-mounted display device first detects the image acquisition module to obtain the current configuration parameter set, including the initial gain parameter, the initial exposure time, and the initial photosensitivity parameter. Then, the automatic exposure system obtains the preset first target frame brightness and determines the current frame brightness corresponding to the image acquired by the image acquisition device under the initial gain parameter. The automatic exposure system then calculates the difference between the first frame brightness and the initial gain parameter based on the first target frame brightness and the current frame brightness.
[0062] For example, when AR activates the camera device, the AE system integrated within the head-mounted display first detects the camera device to include the initial gain parameter Gain. old Initial exposure time Exp old and initial ISO old The current configuration parameter group, including the initial gain parameter Gain, is read. old The maximum gain parameter supported by the camera device, and the initial exposure time Exp are determined. old Determine the minimum exposure time supported by the camera device, and determine the initial ISO sensitivity. old To be related to the initial gain parameter Gain old After binding the preset values, the AE system detects the camera device's initial gain parameter Gain. old Initial exposure time Exp old and initial ISO old The brightness L of the current frame corresponding to the image captured during the shooting process. current Simultaneously, the AE system reads the storage module configured within the head-mounted display device to obtain the preset first target frame brightness L. target The AE system then adjusts the brightness L of the current frame. current And the brightness L of the first target frame target Calculations are performed to obtain the brightness difference ΔL in the first frame:
[0063] ΔL=L target -L current .
[0064] In this way, when the head-mounted display device turns on the camera, it can perform closed-loop adjustment of the gain parameter by quantifying the frame brightness difference corresponding to the initial gain parameter, thus avoiding the situation where blind iteration leads to a waste of time in the gain parameter adjustment process.
[0065] Step S30: Process the initial gain parameters based on the brightness difference of the first frame to obtain the target gain parameters;
[0066] In this embodiment, after calculating the brightness difference of the first frame, the automatic exposure system performs an exponential function calculation on the initial gain parameter based on the brightness difference of the first frame to obtain a target gain parameter that matches the brightness of the first target frame.
[0067] For example, after calculating the brightness difference ΔL of the first frame, the AE system uses the brightness difference ΔL of the first frame and the initial gain parameter Gain as a basis. old Perform function calculations to obtain the brightness L of the first target frame. target Matching target gain parameter Gain new .
[0068] In this way, the head-mounted display device can perform closed-loop adjustment of the gain parameters based on the frame brightness difference, so that the current frame brightness of the camera device can quickly approach the target frame brightness, thereby reducing the number of times the AE system iterates the gain parameters.
[0069] In one feasible implementation, step S30 above may specifically include steps S301 to S303:
[0070] Step S301: Process the initial gain parameter according to the brightness difference of the first frame to obtain the first gain parameter, and determine the brightness of the intermediate frame corresponding to the first gain parameter;
[0071] Step S302: Calculate the brightness difference of the second frame based on the brightness of the intermediate frame and the brightness of the first target frame, and determine a preset brightness difference threshold.
[0072] Step S303: If the brightness difference of the second frame is detected to be less than the brightness difference threshold, the first gain parameter is determined as the target gain parameter.
[0073] It should be noted that the first gain parameter is based on the brightness difference ΔL of the first frame and the initial gain parameter Gain. old The calculated intermediate gain parameter is used to gradually bring the brightness of the current frame closer to that of the target frame. Furthermore, this intermediate frame brightness is the actual frame brightness of the next frame captured by the image acquisition module after adjusting the image acquisition module using the first gain parameter. Additionally, the second frame brightness difference ΔL' is the difference between the intermediate frame brightness and the first target frame brightness L. target The deviation value generated between them. In addition, the brightness difference threshold is a preset convergence judgment condition used to determine whether the calculated gain parameter meets the standard.
[0074] In this embodiment, after calculating the brightness difference of the first frame, the automatic exposure system first obtains a preset scaling factor, integral factor, and cumulative brightness error value. Then, based on the scaling factor, integral factor, and cumulative brightness error value, it performs an exponential function calculation on the initial gain parameter to obtain the first gain parameter. The automatic exposure system then detects the image acquisition module to determine the brightness of the intermediate frame corresponding to the image acquired by the image acquisition module under the first gain parameter. After that, the automatic exposure system calculates the brightness of the intermediate frame and the brightness of the first target frame to obtain the brightness difference of the second frame between the brightness of the intermediate frame and the brightness of the first target frame. At the same time, the automatic exposure system reads the storage module to obtain a preset brightness difference threshold. Finally, the automatic exposure system compares the brightness difference of the second frame with the brightness difference threshold. If the brightness difference of the second frame is less than the brightness difference threshold, the calculated first gain parameter is determined as the target gain parameter.
[0075] For example, after calculating the brightness difference ΔL of the first frame, the AE system continues to read the aforementioned storage module to obtain the preset ratio system k. p and integral coefficient k i Simultaneously, the AE system reads the storage module to obtain the cumulative brightness error value ∫ΔLdt, and then the AE system uses the proportional system k p Integral coefficient k i , cumulative brightness error ∫ΔLdt, brightness difference ΔL of the first frame relative to the initial gain parameter Gain old Perform exponential function calculations:
[0076] Gain new =Gain old ×exp(k p *ΔL+k i *∫ΔLdt);
[0077] The AE system calculates a first gain parameter that matches the brightness difference ΔL of the first frame, writes this first gain parameter to the camera device, and detects the brightness of the intermediate frame corresponding to the next frame captured by the camera device based on the first gain parameter. Then, the AE system compares the brightness of the intermediate frame with the brightness L of the aforementioned first target frame. target The system calculates the brightness difference ΔL' of the second frame. The AE system reads the storage module to obtain a preset brightness difference threshold of 5%, and compares the second frame brightness difference ΔL' with the brightness difference threshold. Finally, if the AE system detects that the second frame brightness difference ΔL' is less than 5%, it determines the calculated first gain parameter as the target gain parameter Gain to be used. new .
[0078] It should be noted that in the process of calculating the first gain parameter, exp(.) is an exponential function used to smoothly adjust the gain parameter and avoid screen flickering caused by sudden changes in the gain parameter. Similarly, the scaling system k... p The scaling factor k is used to control the adjustment intensity of the brightness difference ΔL in the first frame. p The specific value can be set by technical personnel according to actual needs; this application does not impose any restrictions on it. Similarly, the integral coefficient k... i The integral coefficient k is used to control the compensation level of the cumulative value of brightness error ∫ΔLdt. i The specific values are set by the technical personnel according to actual needs, and this application does not impose any restrictions on them.
[0079] In this way, the head-mounted display device can perform closed-loop adjustment of the gain parameter based on the frame brightness difference, so that the current frame brightness of the camera device can quickly approach the target frame brightness, thereby reducing the number of times the AE system iterates the gain parameter. At the same time, the head-mounted display device can suppress the sudden change of the gain parameter by processing the gain function with an exponential function, preventing the image from oscillating due to a large instantaneous change in the gain parameter.
[0080] Step S40: Process the initial exposure time based on the target gain parameter to obtain the target exposure time, and process the initial photosensitivity parameter based on the target exposure time to obtain the target photosensitivity parameter;
[0081] It should be noted that the target exposure time Exp new This is the ideal light acquisition duration calculated based on the linear relationship between the gain parameter and exposure time. Furthermore, the target photosensitivity parameter is ISO... new The sensor sensitivity parameters are dynamically adjusted to balance the brightness changes caused by prolonged exposure time.
[0082] In this embodiment, after calculating the target gain parameter, the automatic exposure system calculates the initial exposure time based on the initial gain parameter and the target gain parameter to obtain the target exposure time. At the same time, the automatic exposure system processes the initial photosensitivity parameter based on the initial exposure time and the target exposure time to obtain the target photosensitivity parameter.
[0083] For example, the AE system calculates the target gain parameter Gain. new Next, first read the initial exposure time Exp of the camera device. old The AE system is thus based on the target gain parameter Gain. new and initial gain parameter Gain old For the initial exposure time Exp old Processing is performed to obtain the target gain parameter Gain. new Matching target exposure time Expnew Meanwhile, the AE system is based on the initial exposure time Exp. old and target exposure time Exp new Initial ISO sensitivity old Processing is performed to obtain the target exposure time Exp new Matching target photosensitive parameters ISO new .
[0084] In this way, the head-mounted display device can directly determine the target exposure time that matches the target gain parameter by using simplified calculation logic based on the linear transformation relationship between the gain parameter and the exposure time. Based on the linear transformation relationship between the exposure time and the photosensitive parameter, it can directly determine the target photosensitive parameter that matches the target exposure time. This reduces the number of times the AE system iterates the exposure time and photosensitive parameter, and further reduces the time required to start the camera device.
[0085] In one feasible implementation, step S40 above may specifically include steps S401 to S402:
[0086] Step S401: Determine the gain parameter ratio between the initial gain parameter and the target gain parameter, and process the initial exposure time based on the gain parameter ratio to obtain the target exposure time;
[0087] Step S402: Determine the exposure time ratio between the target exposure time and the initial exposure time, and process the initial photosensitivity parameters based on the exposure time ratio to obtain the target photosensitivity parameters.
[0088] In this embodiment, after calculating the target gain parameter, the automatic exposure system first compares the target gain parameter with the initial gain parameter to determine the gain parameter ratio between the target gain parameter and the initial gain parameter. The automatic exposure system then calculates the initial exposure time and the gain parameter ratio to obtain a target exposure time that matches the target gain parameter. After that, the automatic exposure system compares the target exposure time with the initial exposure time to determine the exposure time ratio between the target exposure time and the initial exposure time. The automatic exposure system then calculates the initial photosensitivity parameter and the exposure time ratio to determine the target photosensitivity parameter that matches the target exposure time.
[0089] For example, the AE system calculates the target gain parameter Gain. new Next, first set the initial gain parameter Gain old and target gain parameter Gain new A comparison is performed to obtain the gain parameter ratio, Gain. old / Gain newAt the same time, the AE system reads the initial exposure time Exp of the camera device. old and the initial exposure time Exp old The ratio of the gain parameter is Gain old / Gain new Calculations are performed to obtain the target gain parameter Gain. new Matching target exposure time Exp new :
[0090] Exp new =Exp old *(Gain old / Gain new );
[0091] Afterwards, the AE system will set the target exposure time Exp. new and initial exposure time Exp old Perform a comparison to obtain the exposure time ratio Exp old / Exp new At the same time, AE reads the initial ISO sensitivity parameters of the camera device. old And the initial photosensitivity parameters ISO old The ratio of exposure time to Exp old / Exp new Calculations are performed to obtain the target exposure time Exp. new Matching target photosensitive parameters ISO new :
[0092] ISO new =ISO old *(Exp old / Exp new ).
[0093] In this way, the head-mounted display device can directly determine the target exposure time that matches the target gain parameter by using simplified calculation logic based on the linear transformation relationship between the gain parameter and the exposure time. Based on the linear transformation relationship between the exposure time and the photosensitive parameter, it can directly determine the target photosensitive parameter that matches the target exposure time. This reduces the number of times the AE system iterates the exposure time and photosensitive parameter, and further reduces the time required to start the camera device.
[0094] Step S50: Integrate the target gain parameter, target exposure time and target photosensitivity parameter to obtain the first target configuration parameter group, and adjust the current configuration parameter group of the image acquisition module to the first target configuration parameter group;
[0095] In this embodiment, after calculating the target exposure time and target photosensitivity parameters, the automatic exposure system first integrates the target gain parameters, target exposure time and target photosensitivity parameters to obtain a first configuration parameter group. The automatic exposure system then reads the aforementioned storage module to obtain a preset adjustment ratio, and performs progressive adjustment on the image acquisition module according to the adjustment ratio and the first configuration parameter group, so that the current configuration parameter group in the image acquisition module reaches the first configuration parameter group.
[0096] For example, the AE system calculates the target exposure time Exp. new and target photosensitive parameters ISO new Next, the target gain parameter Gain mentioned above will be... new Target exposure time Exp new Target photosensitive parameters ISO new The system integrates the parameters to obtain the first configuration parameter group. Then, the AE system reads the aforementioned storage module to obtain the preset progressive adjustment ratio of 10%. The AE system then adjusts the gain parameters, exposure time, and sensitivity parameters of the camera device by 10% per frame to adjust the current configuration parameter group of the camera device to the first configuration parameter group.
[0097] In this way, head-mounted display devices can break down large changes in parameters into smaller changes through progressive adjustment, thereby matching the rate of brightness change of the camera device with the persistence of vision of the user's eyes and avoiding any lag experienced by the user during parameter adjustment.
[0098] In one feasible implementation, the step of "adjusting the current configuration parameter group of the image acquisition module to the first target configuration parameter group" in step S50 above may specifically include steps S501 to S504:
[0099] Step S501: Determine the preset parameter adjustment range, and determine the gain parameter adjustment value, exposure time adjustment value, and photosensitivity parameter adjustment value according to the parameter adjustment range;
[0100] Step S502: Adjust the initial gain parameter to the target gain parameter according to the gain parameter adjustment value;
[0101] Step S503: Adjust the initial exposure time to the target exposure time according to the exposure time adjustment value;
[0102] Step S504: Adjust the initial photosensitivity parameter to the target photosensitivity parameter according to the photosensitivity parameter adjustment value.
[0103] In this embodiment, after the automatic exposure system integrates the target gain parameter, target exposure time, and target photosensitivity parameter to obtain the first configuration parameter group, it first reads the aforementioned storage module to obtain the preset parameter adjustment range. Then, the automatic exposure system determines the gain parameter adjustment value corresponding to each frame according to the parameter adjustment range and the target gain parameter, and adjusts the image acquisition module frame by frame according to the gain parameter adjustment value to adjust the image acquisition module from the initial gain parameter to the target gain parameter. Simultaneously, the automatic exposure system determines the exposure time adjustment value corresponding to each frame according to the parameter adjustment range and the target exposure time, and adjusts the image acquisition module frame by frame according to the exposure time adjustment value to adjust the image acquisition module from the initial exposure time to the target exposure time. At the same time, the automatic exposure system determines the photosensitivity parameter adjustment value corresponding to each frame according to the parameter adjustment range and the target photosensitivity parameter, and adjusts the image acquisition module frame by frame according to the photosensitivity parameter adjustment value to adjust the image acquisition module from the initial photosensitivity parameter to the target photosensitivity parameter.
[0104] For example, the AE system, when applying the target gain parameter Gain... new Target exposure time Exp new Target photosensitive parameters ISO new After integrating the parameters to obtain the first configuration parameter set, the AE system first reads the aforementioned storage module to obtain the preset progressive adjustment strategy and determines that the parameter adjustment range included in the progressive adjustment strategy is 10%. Then, the AE system adjusts the parameters based on the parameter adjustment range and the target gain parameter Gain. new The system calculates the gain parameter adjustment value for each frame, and then adjusts the camera's gain parameter according to this value, so that the camera's gain parameter changes by 10% per frame, starting from the initial gain parameter Gain. old Gradually move towards the target gain parameter Gain new Approximate until the target gain parameter Gain is reached. new ;
[0105] Meanwhile, the AE system adjusts parameters based on the magnitude of the adjustment and the target exposure time Exp. new The system calculates the exposure time adjustment value for each frame, and then adjusts the camera's exposure time accordingly, so that the camera's exposure time changes by 10% for each frame, from the initial exposure time Exp. old Exposure time to target Exp new Approaching, until the target exposure time Exp is reached. new ;
[0106] Meanwhile, the AE system is based on the parameter adjustment range and the target's photosensitive parameter ISO.new The system calculates the light sensitivity adjustment value for each frame, and then adjusts the camera's light sensitivity according to this value, so that the camera's light sensitivity changes by 10% per frame, starting from the initial ISO. old ISO of the target new Approaching until the target ISO value is reached. new .
[0107] In this way, head-mounted display devices can break down large changes in parameters into smaller changes through progressive adjustment, thereby matching the rate of brightness change of the camera device with the persistence of vision of the user's eyes and avoiding any lag experienced by the user during parameter adjustment.
[0108] In this embodiment, when the head-mounted display device starts the image acquisition module, the automatic exposure system integrated within the head-mounted display device first detects the image acquisition module to obtain a current configuration parameter set including initial gain parameters, initial exposure time, and initial photosensitivity parameters. Then, the automatic exposure system acquires a preset first target frame brightness and determines the current frame brightness corresponding to the image acquired by the image acquisition device under the initial gain parameters. The automatic exposure system then calculates the first frame brightness difference corresponding to the initial gain parameters based on the first target frame brightness and the current frame brightness. Finally, the automatic exposure system performs an exponential function calculation on the initial gain parameters based on the first frame brightness difference to obtain the brightness difference corresponding to the first target frame brightness. The automatic exposure system first obtains the target gain parameter for frame brightness matching. Then, it calculates the initial exposure time based on the initial gain parameter and the target gain parameter to obtain the target exposure time. Simultaneously, it processes the initial photosensitivity parameter based on the initial exposure time and the target exposure time to obtain the target photosensitivity parameter. Finally, it integrates the target gain parameter, the target exposure time, and the target photosensitivity parameter to obtain the first configuration parameter set. The automatic exposure system then reads the aforementioned storage module to obtain a preset adjustment ratio and progressively adjusts the image acquisition module according to the adjustment ratio and the first configuration parameter set to make the current configuration parameter set in the image acquisition module reach the first configuration parameter set.
[0109] Therefore, please refer to Figure 2 , Figure 2This application presents a startup time comparison curve for an embodiment of the image acquisition module adjustment method. This application solves the technical problem of long startup times for image acquisition modules in head-mounted display devices in related technologies. Specifically, this application calculates the frame brightness difference based on the target frame brightness and the current frame brightness corresponding to the initial gain parameter, and calculates a target gain parameter matching the target frame brightness based on the frame brightness difference and the initial gain parameter. This allows for direct determination of the target exposure time based on the target gain parameter and the target photosensitivity parameter based on the target exposure time. Furthermore, the image acquisition device is adjusted according to the target gain parameter, target exposure time, and target photosensitivity parameter. This enables the head-mounted display device to directly determine the target exposure time matching the target gain parameter without multiple iterations of the exposure time, by directly utilizing the relationship between the exposure time and the gain parameter. This reduces the number of iterations required for the head-mounted display device to calculate the target exposure time. Figure 2 As shown, this technology effectively reduces the startup time of the image acquisition module, thereby improving the real-time interactive experience for users wearing head-mounted display devices.
[0110] Based on the first embodiment of this application, a second embodiment of this application is proposed herein. In this second embodiment, content that is the same as or similar to the above embodiments can be referred to the above description and will not be repeated hereafter. Furthermore, after step S10, the adjustment method of the image acquisition module of this application may further include steps A10 to A30:
[0111] Step A10: Obtain real-time ambient light parameters and determine the brightness of the second target frame that matches the real-time ambient light parameters;
[0112] Step A20: Calculate the brightness difference of the third frame corresponding to the initial gain parameter based on the brightness of the second target frame, and process the initial gain parameter based on the brightness difference of the third frame to obtain the target gain parameter;
[0113] Step A30: Perform the steps of processing the initial exposure time based on the target gain parameter to obtain the target exposure time, and processing the initial photosensitivity parameter based on the target exposure time to obtain the target photosensitivity parameter.
[0114] It should be noted that this real-time ambient light parameter is the external light intensity data of the environment in which the head-mounted display is located, collected by the built-in ambient light sensor. Additionally, the brightness L of the second target frame... target This is the ideal brightness value for the image, dynamically adjusted based on real-time ambient light parameters to adapt to the current ambient lighting conditions.
[0115] In this embodiment, after detecting the current configuration parameter group of the image acquisition module, the automatic exposure system can first call the ambient light sensor configured on the head-mounted display device to detect the real-time ambient light parameters corresponding to the environment in which the head-mounted display device is located, and determine the brightness of the second target frame that matches the real-time ambient light parameters. Then, the automatic exposure system determines the brightness of the current frame corresponding to the image acquired by the image acquisition device under the initial gain parameters. The automatic exposure system calculates the brightness difference of the third frame from the brightness of the second target frame and the brightness of the current frame. Based on the brightness difference of the third frame, the automatic exposure system performs exponential function calculation on the initial gain parameters to obtain the target gain parameters that match the brightness of the second target frame. Finally, the automatic exposure system calculates the initial exposure time based on the initial gain parameters and the target gain parameters to obtain the target exposure time. At the same time, the automatic exposure system processes the initial photosensitivity parameters based on the initial exposure time and the target exposure time to obtain the target photosensitivity parameters.
[0116] For example, the AE system within a head-mounted display device determines the initial gain parameter Gain. old Initial exposure time Exp old and initial ISO old After configuring the current parameter group, the ambient light sensor configured on the head-mounted display can also be controlled to collect real-time ambient light parameters in the environment where the head-mounted display is located. The AE system then determines the second target frame brightness L that matches the real-time ambient light parameters based on a preset ambient light-brightness mapping table. target After that, the AE system reads the initial gain parameter Gain. old The maximum gain parameter supported by the camera device, and the initial exposure time Exp are determined. old Determine the minimum exposure time supported by the camera device, and determine the initial ISO sensitivity. old To be related to the initial gain parameter Gain old The preset value is bound to the camera device, and the AE system detects the initial gain parameter Gain. old Initial exposure time Exp old and initial ISO old The brightness L of the current frame corresponding to the captured image. current And based on the current frame brightness L current Second target frame brightness L target 'The brightness difference ΔL of the third frame is calculated,' the AE system is based on the proportional system k. p Integral coefficient k i The cumulative value of brightness error ∫ΔLdt, the brightness difference of the third frame ΔL”, and the initial gain parameter Gain old Perform exponential function calculations to obtain the brightness L of the second target frame. target'Matching target gain parameter Gain new Finally, the AE system reads the initial exposure time Exp from the camera device. old The AE system is thus based on the target gain parameter Gain. new and initial gain parameter Gain old For the initial exposure time Exp old Processing is performed to obtain the target gain parameter Gain. new Matching target exposure time Exp new Meanwhile, the AE system is based on the initial exposure time Exp. old and target exposure time Exp new Initial ISO sensitivity old Processing is performed to obtain the target exposure time Exp new Matching target photosensitive parameters ISO new .
[0117] In this way, the head-mounted display device can adjust the brightness of the target frame in real time according to the changes in the ambient light, so that the brightness of the camera image can be dynamically matched with the real environment.
[0118] In one feasible implementation, the step of "determining the brightness of the second target frame that matches the real-time ambient light parameters" in step A10 above may specifically include steps A101 to A103:
[0119] Step A101: Obtain multiple preset ambient light parameter ranges and preset frame brightness that matches each of the multiple preset ambient light parameter ranges;
[0120] Step A102: Based on the real-time ambient light parameters, filter multiple preset ambient light parameter ranges to determine the target ambient light parameter range in which the real-time ambient light is located;
[0121] Step A103: Determine the preset frame brightness that matches the target ambient light parameter range as the second target frame brightness.
[0122] It should be noted that the preset ambient light parameter range is a predefined range of ambient light intensity. This means that multiple preset ambient light parameter ranges can cover different environmental scenarios such as indoors, bright light, and low light. Furthermore, the preset frame brightness is the target frame brightness value bound to each preset ambient light parameter range, used to guide the head-mounted display device in adjusting the target frame brightness of the camera device.
[0123] In this embodiment, after the ambient light sensor configured on the head-mounted display device collects real-time ambient light parameters, the automatic exposure system first acquires multiple preset ambient light parameter ranges that characterize different environments, and determines the preset frame brightness that matches each of the multiple preset ambient light parameter ranges. Then, the automatic exposure system compares the real-time ambient light parameters with the multiple preset ambient light parameter ranges to filter out the target ambient light parameter range that matches the real-time ambient light parameters. Finally, the automatic exposure system determines the preset frame brightness that matches the target ambient light parameter range as the second target frame brightness that best matches the current environment.
[0124] For example, after the AE system collects real-time ambient light parameters of the environment in which the head-mounted display device is located via an ambient light sensor, the AE system first reads the aforementioned storage module to obtain a preset ambient light-brightness mapping table containing multiple preset ambient light parameter ranges and preset frame brightness matching each of the multiple preset ambient light parameter ranges. Then, the AE system queries this ambient light-brightness mapping table based on the real-time ambient light parameters to compare the real-time ambient light parameters with the multiple preset ambient light parameter ranges, thereby determining the target ambient light parameter range in which the real-time ambient light parameters are located. Finally, the AE system determines the preset frame brightness L that matches the target ambient light parameter range within the ambient light-brightness mapping table as the second target frame brightness L that matches the real-time ambient light parameters. target '.
[0125] In this way, AR glasses can use a lookup table instead of complex algorithms to quickly determine the target frame brightness that matches the real-time ambient light parameters, further reducing hardware resource consumption.
[0126] Based on the first and / or second embodiments of this application, a third embodiment of this application is proposed herein. In this third embodiment, content that is the same as or similar to the embodiments described above can be referred to the above description and will not be repeated hereafter. Based on this, please refer to... Figure 3 , Figure 3 This is a flowchart illustrating the third embodiment of the image acquisition module adjustment method of this application, as shown below. Figure 3 As shown, after step S40 above, the adjustment method of the image acquisition module of this application may further include steps B10 to B30:
[0127] Step B10: Read the user's head motion parameters and determine the wearing scenario that matches the head motion parameters;
[0128] Step B20: When the wearing scenario is detected as a preset dynamic scene, the target gain parameter, target photosensitivity parameter and initial exposure time are integrated to obtain the second target configuration parameter group;
[0129] Step B30: Adjust the current configuration parameter group of the image acquisition module to the second target configuration parameter group.
[0130] It should be noted that the head motion parameters refer to the motion data generated by the user's head when wearing the head-mounted display device, including but not limited to angular velocity and acceleration. Furthermore, the wearing scenario refers to the user's usage state categorized based on the motion parameters, which can be a static scenario (e.g., reading) or a dynamic scenario (e.g., walking, running).
[0131] In this embodiment, after calculating the target exposure time and target photosensitivity parameters, the automatic exposure system further collects head motion parameters generated by the user while wearing the head-mounted display device through the motion sensing module configured within the head-mounted display device. The automatic exposure system then determines whether the user's wearing scene is a dynamic scene or a static scene based on the head motion parameters. Subsequently, when the automatic exposure system detects that the wearing scene is a dynamic scene, it locks the initial exposure time of the image acquisition module, thereby integrating the target gain parameter, target photosensitivity parameter, and initial exposure time to obtain a second target configuration parameter set. Finally, the automatic exposure system reads the aforementioned storage module to obtain a preset adjustment ratio, and progressively adjusts the image acquisition module according to the adjustment ratio and the second configuration parameter set, so that the current configuration parameter set in the image acquisition module reaches the second configuration parameter set.
[0132] For example, the AE system calculates the aforementioned target gain parameter Gain. new Target exposure time Exp new Target photosensitive parameters ISO new Next, the motion sensing module configured within the head-mounted display device is invoked to obtain head motion parameters generated by the user while wearing the device. The AE system reads the storage module to obtain a preset motion parameter threshold and compares the head motion parameters with the threshold. If the AE system detects that the head motion parameters reach the threshold, it determines that the user's head has moved significantly, thus classifying the wearing scenario as a dynamic scene. Similarly, if the AE system detects that the head motion parameters have not reached the threshold, it determines that the user's head has not moved significantly, classifying the wearing scenario as a static scene. Then, if the AE system determines the wearing scenario to be dynamic, it adjusts the initial exposure time of the camera device. old Lock it and set the initial exposure time Exp. old Target gain parameter Gain new and target photosensitive parameters ISO newThe system integrates the data to generate a second configuration parameter group. Finally, the AE system reads the aforementioned storage module to obtain a preset progressive adjustment ratio of 10%. The AE system then adjusts the camera device's gain parameters and initial sensitivity parameters by 10% per frame to adjust the camera device's real-time configuration parameter group to this second configuration parameter group.
[0133] In this way, when the head-mounted display device detects that the user is wearing the head-mounted display device and is in a moving scene, it can eliminate the motion blur caused by head movement by locking the exposure time, thereby ensuring the clarity of the image.
[0134] This application also provides an adjustment device for an image acquisition module, please refer to... Figure 4 The adjustment device for the image acquisition module is applied to a head-mounted display device including the image acquisition module, and the device includes:
[0135] The parameter detection module 10 is used to obtain the current configuration parameter group corresponding to the image acquisition module, wherein the current configuration parameter group includes the initial gain parameter, the initial exposure time and the initial photosensitivity parameter;
[0136] The brightness difference calculation module 20 is used to determine the preset first target frame brightness and determine the first frame brightness difference corresponding to the initial gain parameter based on the first target frame brightness.
[0137] The first processing module 30 is used to process the initial gain parameter based on the brightness difference of the first frame to obtain the target gain parameter;
[0138] The second processing module 40 is used to process the initial exposure time based on the target gain parameter to obtain a target exposure time, and to process the initial photosensitivity parameter based on the target exposure time to obtain a target photosensitivity parameter.
[0139] The parameter adjustment module 50 is used to integrate the target gain parameter, the target exposure time, and the target photosensitivity parameter to obtain a first target configuration parameter group, and adjust the current configuration parameter group of the image acquisition module to the first target configuration parameter group.
[0140] In one feasible implementation, the first processing module 30 is further configured to:
[0141] The initial gain parameter is processed based on the brightness difference of the first frame to obtain the first gain parameter, and the brightness of the intermediate frame corresponding to the first gain parameter is determined.
[0142] The brightness difference of the second frame is calculated based on the brightness of the intermediate frame and the brightness of the first target frame, and a preset brightness difference threshold is determined.
[0143] If the brightness difference of the second frame is detected to be less than the brightness difference threshold, the first gain parameter is determined as the target gain parameter.
[0144] In one feasible implementation, the second processing module 40 is further configured to:
[0145] Determine the gain parameter ratio between the initial gain parameter and the target gain parameter, and process the initial exposure time based on the gain parameter ratio to obtain the target exposure time;
[0146] The exposure time ratio between the target exposure time and the initial exposure time is determined, and the initial photosensitivity parameters are processed based on the exposure time ratio to obtain the target photosensitivity parameters.
[0147] In one feasible implementation, the parameter adjustment module 50 is further configured to:
[0148] Determine the preset parameter adjustment range, and determine the gain parameter adjustment value, exposure time adjustment value, and photosensitivity parameter adjustment value based on the parameter adjustment range;
[0149] Adjust the initial gain parameter to the target gain parameter according to the gain parameter adjustment value;
[0150] Adjust the initial exposure time to the target exposure time according to the exposure time adjustment value;
[0151] Adjust the initial photosensitivity parameter to the target photosensitivity parameter according to the stated photosensitivity parameter adjustment value.
[0152] In one feasible implementation, the brightness difference calculation module 20 is further used for:
[0153] Acquire real-time ambient light parameters and determine the brightness of the second target frame that matches the real-time ambient light parameters;
[0154] The initial gain parameter is obtained by calculating the brightness difference of the third frame corresponding to the brightness of the second target frame, and the initial gain parameter is processed based on the brightness difference of the third frame to obtain the target gain parameter.
[0155] The steps are as follows: processing the initial exposure time based on the target gain parameter to obtain the target exposure time, and processing the initial photosensitivity parameter based on the target exposure time to obtain the target photosensitivity parameter.
[0156] In one feasible implementation, the brightness difference calculation module 20 is further used for:
[0157] Obtain multiple preset ambient light parameter ranges and preset frame brightness that matches each of the multiple preset ambient light parameter ranges;
[0158] Based on the real-time ambient light parameters, multiple preset ambient light parameter ranges are filtered to determine the target ambient light parameter range in which the real-time ambient light is located.
[0159] The preset frame brightness that matches the target ambient light parameter range is determined as the second target frame brightness.
[0160] In one feasible implementation, the parameter adjustment module 50 is further configured to:
[0161] Read the user's head movement parameters and determine the wearing scenario that matches the head movement parameters;
[0162] When the wearing scenario is detected to be a preset dynamic scenario, the target gain parameter, the target photosensitivity parameter and the initial exposure time are integrated to obtain a second target configuration parameter group;
[0163] Adjust the current configuration parameter group of the image acquisition module to the second target configuration parameter group.
[0164] The image acquisition module adjustment device provided in this application, employing the image acquisition module adjustment method described in the above embodiments, can solve the technical problem in related technologies where the image acquisition module in a head-mounted display device consumes a long time during startup. Compared with the prior art, the beneficial effects of the image acquisition module adjustment device provided in this application are the same as those of the image acquisition module adjustment method provided in the above embodiments, and other technical features in the image acquisition module adjustment device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0165] This application provides a head-mounted display device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the adjustment method of the image acquisition module in the first embodiment described above.
[0166] The following is for reference. Figure 5The diagram illustrates a structural schematic suitable for implementing the head-mounted display device of the embodiments of this application. The head-mounted display device in the embodiments of this application may include, but is not limited to, head-mounted display devices such as Augmented Reality (AR) devices (e.g., AR glasses or AR helmets), Mixed Reality (MR) devices (e.g., MR glasses or MR helmets), Virtual Reality (VR) devices (e.g., VR glasses or VR helmets), Extended Reality (XR) devices, or some combination thereof. Figure 5 The head-mounted display device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this application.
[0167] like Figure 5 As shown, the head-mounted display device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the head-mounted display device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. The communication device 1009 allows the head-mounted display device to communicate wirelessly or wiredly with other devices to exchange data. Although head-mounted display devices with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0168] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0169] The head-mounted display device provided in this application, employing the image acquisition module adjustment method described in the above embodiments, can solve the technical problem in related technologies where the image acquisition module in a head-mounted display device consumes a long time during startup. Compared with the prior art, the beneficial effects of the head-mounted display device provided in this application are the same as those of the image acquisition module adjustment method provided in the above embodiments, and other technical features of this head-mounted display device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0170] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0171] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0172] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the adjustment method of the image acquisition module in the above embodiments.
[0173] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0174] The aforementioned computer-readable storage medium may be included in the head-mounted display device; or it may exist independently and not assembled into the head-mounted display device.
[0175] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by the head-mounted display device, the head-mounted display device causes the following: it acquires a current configuration parameter group corresponding to the image acquisition module, wherein the current configuration parameter group includes an initial gain parameter, an initial exposure time, and an initial photosensitivity parameter; it determines a preset first target frame brightness and determines a first frame brightness difference corresponding to the initial gain parameter based on the first target frame brightness; it processes the initial gain parameter based on the first frame brightness difference to obtain a target gain parameter; it processes the initial exposure time based on the target gain parameter to obtain a target exposure time and processes the initial photosensitivity parameter based on the target exposure time to obtain a target photosensitivity parameter; it integrates the target gain parameter, the target exposure time, and the target photosensitivity parameter to obtain a first target configuration parameter group, and adjusts the current configuration parameter group of the image acquisition module to the first target configuration parameter group.
[0176] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0177] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0178] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0179] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the adjustment method of the image acquisition module described above. This solves the technical problem in related technologies where the image acquisition module in a head-mounted display device takes a long time to start up. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the adjustment method of the image acquisition module provided in the above embodiments, and will not be repeated here.
[0180] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the adjustment method for the image acquisition module as described above.
[0181] The computer program product provided in this application can solve the technical problem in related technologies that the image acquisition module in a head-mounted display device takes a long time to start up. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the image acquisition module adjustment method provided in the above embodiments, and will not be repeated here.
[0182] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A method for adjusting an image acquisition module, characterized in that, The adjustment method for the image acquisition module is applied to a head-mounted display device containing an image acquisition module, and the adjustment method for the image acquisition module includes: Obtain the current configuration parameter group corresponding to the image acquisition module, wherein the current configuration parameter group includes the initial gain parameter, the initial exposure time, and the initial photosensitivity parameter; Determine the preset first target frame brightness, and determine the first frame brightness difference value corresponding to the initial gain parameter based on the first target frame brightness; The target gain parameter is obtained by processing the initial gain parameter based on the brightness difference of the first frame; The initial exposure time is processed based on the target gain parameter to obtain the target exposure time, and the initial photosensitivity parameter is processed based on the target exposure time to obtain the target photosensitivity parameter. The target gain parameter, the target exposure time, and the target photosensitivity parameter are integrated to obtain a first target configuration parameter group, and the current configuration parameter group of the image acquisition module is adjusted to the first target configuration parameter group.
2. The adjustment method for the image acquisition module as described in claim 1, characterized in that, The step of processing the initial gain parameter based on the brightness difference of the first frame to obtain the target gain parameter includes: The initial gain parameter is processed based on the brightness difference of the first frame to obtain the first gain parameter, and the brightness of the intermediate frame corresponding to the first gain parameter is determined. The brightness difference of the second frame is calculated based on the brightness of the intermediate frame and the brightness of the first target frame, and a preset brightness difference threshold is determined. If the brightness difference of the second frame is detected to be less than the brightness difference threshold, the first gain parameter is determined as the target gain parameter.
3. The adjustment method for the image acquisition module as described in claim 1, characterized in that, The steps of processing the initial exposure time based on the target gain parameter to obtain the target exposure time, and processing the initial photosensitivity parameter based on the target exposure time to obtain the target photosensitivity parameter, include: Determine the gain parameter ratio between the initial gain parameter and the target gain parameter, and process the initial exposure time based on the gain parameter ratio to obtain the target exposure time; The exposure time ratio between the target exposure time and the initial exposure time is determined, and the initial photosensitivity parameters are processed based on the exposure time ratio to obtain the target photosensitivity parameters.
4. The adjustment method for the image acquisition module as described in claim 1, characterized in that, The step of adjusting the current configuration parameter group of the image acquisition module to the first target configuration parameter group includes: Determine the preset parameter adjustment range, and determine the gain parameter adjustment value, exposure time adjustment value, and photosensitivity parameter adjustment value based on the parameter adjustment range; Adjust the initial gain parameter to the target gain parameter according to the gain parameter adjustment value; Adjust the initial exposure time to the target exposure time according to the exposure time adjustment value; Adjust the initial photosensitivity parameter to the target photosensitivity parameter according to the stated photosensitivity parameter adjustment value.
5. The adjustment method for the image acquisition module as described in claim 1, characterized in that, After the step of obtaining the current configuration parameter group corresponding to the image acquisition module, the method further includes: Acquire real-time ambient light parameters and determine the brightness of the second target frame that matches the real-time ambient light parameters; The initial gain parameter is obtained by calculating the brightness difference of the third frame corresponding to the brightness of the second target frame, and the initial gain parameter is processed based on the brightness difference of the third frame to obtain the target gain parameter. The steps are as follows: processing the initial exposure time based on the target gain parameter to obtain the target exposure time, and processing the initial photosensitivity parameter based on the target exposure time to obtain the target photosensitivity parameter.
6. The adjustment method for the image acquisition module as described in claim 5, characterized in that, The step of determining the brightness of the second target frame that matches the real-time ambient light parameters includes: Obtain multiple preset ambient light parameter ranges and preset frame brightness that matches each of the multiple preset ambient light parameter ranges; Based on the real-time ambient light parameters, multiple preset ambient light parameter ranges are filtered to determine the target ambient light parameter range in which the real-time ambient light is located. The preset frame brightness that matches the target ambient light parameter range is determined as the second target frame brightness.
7. The adjustment method for the image acquisition module as described in claim 1, characterized in that, After the steps of processing the initial exposure time based on the target gain parameter to obtain the target exposure time, and processing the initial photosensitivity parameter based on the target exposure time to obtain the target photosensitivity parameter, the method further includes: Read the user's head movement parameters and determine the wearing scenario that matches the head movement parameters; When the wearing scenario is detected to be a preset dynamic scenario, the target gain parameter, the target photosensitivity parameter and the initial exposure time are integrated to obtain a second target configuration parameter group; Adjust the current configuration parameter group of the image acquisition module to the second target configuration parameter group.
8. A head-mounted display device, characterized in that, The head-mounted display device includes: an image acquisition module, a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the adjustment method of the image acquisition module as described in any one of claims 1 to 7.
9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the adjustment method of the image acquisition module as described in any one of claims 1 to 7.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the adjustment method of the image acquisition module as described in any one of claims 1 to 7.
