Exposure parameter determination method and device, electronic equipment and storage medium
By obtaining gesture detection images and combining scene spokes and gesture detection results, the exposure parameters are adjusted to solve the problem of exposure unstable in the environment of highlights, shadows or background colors in existing technologies, and improve the detection accuracy.
Patent Information
- Application Number
- CN202310913236.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-24
- Publication Date
- 2025-01-24
AI Technical Summary
When handling gesture detection, it is difficult to maintain the stability of exposure parameters in an environment with similar highlights, shadows or background colors, resulting in a decrease in detection accuracy.
By obtaining the gesture detection image, determine the radiation degree and gesture detection results of the image scene, determine the image brightness control information in combination with this information, and finally adjust the exposure parameters.
It effectively avoids the instability of the gesture detection algorithm and the oscillation problem of the exposure parameters, provides images with stable brightness and high quality, and improves the accuracy of gesture detection.
Smart Images

Figure CN119364175A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an exposure parameter determination device, an electronic device and a storage medium. Background Art
[0002] Gesture detection requires setting the appropriate camera exposure according to different gesture positions. The exposure algorithm of related technologies uses the average brightness of the scene as a control indicator to adjust the exposure parameters, but in some specific environments, such as when the hand has highlights, shadows, or is similar in color to the background, the detection accuracy is low. Summary of the invention
[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0004] The present disclosure provides an exposure parameter determination device, an electronic device and a storage medium.
[0005] The present disclosure adopts the following technical solutions.
[0006] In some embodiments, the present disclosure provides an exposure parameter determination, including:
[0007] Acquire a gesture detection image, and determine the image scene irradiance and a gesture detection result according to the gesture detection image, wherein the gesture detection result includes a gesture detection point and / or a gesture detection frame;
[0008] Determining image brightness control information according to the image scene irradiance and the gesture detection result;
[0009] The image exposure parameters are determined according to the image brightness control information.
[0010] In some embodiments, the present disclosure provides an exposure parameter determination device, comprising:
[0011] An acquisition module, used to acquire a gesture detection image, and determine the image scene irradiance and a gesture detection result according to the gesture detection image, wherein the gesture detection result includes a gesture detection point and / or a gesture detection frame;
[0012] A first processing module, configured to determine image brightness control information according to the image scene irradiance and the gesture detection result;
[0013] The second processing module is used to determine the image exposure parameters according to the image brightness control information.
[0014] In some embodiments, the present disclosure provides an electronic device, comprising: at least one memory and at least one processor;
[0015] The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the above method.
[0016] In some embodiments, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and when the program code is executed by a processor, the processor is prompted to perform the above method.
[0017] The exposure parameter determination method provided by the embodiment of the present disclosure obtains a gesture detection image, and determines the image scene irradiance and gesture detection results based on the gesture detection image, wherein the gesture detection results include gesture detection points and / or gesture detection frames; determines image brightness control information based on the image scene irradiance and the gesture detection results; and determines image exposure parameters based on the image brightness control information. The embodiment of the present disclosure can avoid the oscillation problem of gesture exposure caused by the instability of the gesture detection algorithm and the different brightness of the image in the gesture area, and provide the gesture detection algorithm with a stable brightness and high-quality image. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0019] Figure 1 This is one of the flow charts for determining exposure parameters in an embodiment of the present disclosure.
[0020] Figure 2 This is the second flowchart of exposure parameter determination in the embodiment of the present disclosure.
[0021] Figure 3 It is a structural schematic diagram of an exposure parameter determination device according to an embodiment of the present disclosure.
[0022] Figure 4 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0024] It should be understood that the various steps described in the method embodiments of the present disclosure can be performed in sequence and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0025] The term "including" and its variations used in this document are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description. The term "responsive to" and related terms refer to a signal or event being affected to a certain extent by another signal or event, but not necessarily completely or directly affected. If event x occurs "responsive to" event y, x may be directly or indirectly responsive to y. For example, the occurrence of y may eventually lead to the occurrence of x, but there may be other intermediate events and / or conditions. In other cases, y may not necessarily lead to the occurrence of x, and x may occur even if y has not yet occurred. In addition, the term "responsive to" can also mean "at least partially responsive to".
[0026] The term "determine" broadly covers a variety of actions, which may include obtaining, calculating, computing, processing, deriving, investigating, searching (e.g., searching in a table, database, or other data structure), ascertaining, and similar actions, and may also include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory) and similar actions, as well as parsing, selecting, choosing, establishing, and similar actions, etc. The relevant definitions of other terms will be given in the following description. The relevant definitions of other terms will be given in the following description.
[0027] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0028] It should be noted that the modification of “one” mentioned in the present disclosure is illustrative rather than restrictive, and those skilled in the art should understand that it should be understood as “one or more” unless otherwise clearly indicated in the context.
[0029] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0030] It should be noted that the gesture exposure scheme in the related art that uses the average brightness of the image in the gesture detection frame as the brightness control index will cause fluctuations in exposure parameters as the hand moves between the bright desktop and the dark keyboard or screen background, which is reflected as brightness oscillation of the overall image, thus affecting the stability of the gesture detection algorithm. In addition, the exposure algorithm that uses the average brightness of the image in the gesture detection frame as the control index is difficult to cope with gesture detection in special scenes such as high dynamics. In such scenes, the gesture detection algorithm often exhibits unstable exposure.
[0031] The solution provided by the embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0032] like Figure 1 As shown, Figure 1 Detailed description of the invention is a flowchart of exposure parameter determination according to an embodiment of the present invention, comprising the following steps.
[0033] Step S01: acquiring a gesture detection image, and determining an image scene irradiance and a gesture detection result according to the gesture detection image, wherein the gesture detection result includes a gesture detection point and / or a gesture detection frame;
[0034] In some embodiments, Figure 1 and Figure 2 As shown, firstly, the gesture detection image and the corresponding exposure parameters are obtained. The exposure parameters include exposure time (Time) and exposure gain (Gain). At the same time, the gesture confidence, gesture detection frame ROI (Region Of Interest) and gesture detection point (including coordinate information) detected in the gesture detection image of the current frame are obtained through the gesture detection algorithm. Then, the average brightness Intensity of the current frame is counted. The statistical methods include global sampling, regional sampling and downsampling, etc., which are not specifically limited here. The image scene irradiance lrradiance = Intensity / (Time*Gain), which is used as the brightness control index.
[0035] Step S02: determining image brightness control information according to the image scene irradiance and the gesture detection result;
[0036] In some embodiments, a brightness control index decision is made based on the image scene irradiance and the gesture detection point. Specifically, if the gesture detection point is a null value, the image brightness control information is determined based on the gesture detection frame and the image scene irradiance obtained by the gesture detection algorithm; if the gesture detection point is not a null value, the image brightness control information is determined based on the irradiance of the gesture detection point in the current frame, the irradiance of the gesture detection point in the previous frame, and the image scene irradiance.
[0037] Step S03: Determine image exposure parameters according to the image brightness control information.
[0038] In some embodiments, after determining the image brightness control information, the current frame image brightness control information and the previous frame image brightness control information are subjected to weighted fusion time domain smoothing filtering to obtain the processed current frame image brightness control information. Then, according to the processed current frame image brightness control information and the preset image exposure table, the current frame image exposure parameters are adjusted, and gesture detection is performed based on the adjusted image.
[0039] The exposure parameter determination method provided by the embodiment of the present disclosure obtains a gesture detection image, and determines the image scene irradiance and gesture detection results based on the gesture detection image, wherein the gesture detection results include gesture detection points and / or gesture detection frames; determines image brightness control information based on the image scene irradiance and the gesture detection results; and determines image exposure parameters based on the image brightness control information. The embodiment of the present disclosure can avoid the oscillation problem of gesture exposure caused by the instability of the gesture detection algorithm and the different brightness of the image in the gesture area, and provide the gesture detection algorithm with a stable brightness and high-quality image.
[0040] In some embodiments, determining the image scene irradiance and the gesture detection result according to the gesture detection image includes:
[0041] Determine the gesture detection result according to a gesture detection algorithm;
[0042] The image scene irradiance is determined according to the image exposure parameter of the gesture detection image and the average brightness of the image scene.
[0043] In some embodiments, determining the image scene irradiance according to the image exposure parameter of the gesture detection image and the image scene average brightness includes:
[0044] The image scene irradiance is obtained by dividing the image scene average brightness by the image exposure parameter.
[0045] In some embodiments, determining the image brightness control information according to the image scene irradiance and the gesture detection result includes:
[0046] Image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection point.
[0047] In some embodiments, determining the image brightness control information according to the image scene irradiance and the irradiance of the gesture detection point includes:
[0048] When the gesture detection point is not empty, image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection point.
[0049] In some embodiments, determining the image brightness control information according to the image scene irradiance and the irradiance of the gesture detection point includes:
[0050] When the gesture detection point does not flicker and / or the confidence of the gesture detection point is greater than a preset threshold, image brightness control information is determined according to the irradiance of the image scene and the irradiance of the gesture detection point.
[0051] In some embodiments, the gesture detection point does not flicker, that is, the gesture detection point in the current frame and the gesture detection point in the previous frame are not null values.
[0052] In some embodiments, determining the image brightness control information according to the image scene irradiance and the irradiance of the gesture detection point includes:
[0053] The image scene irradiance and the gesture detection point irradiance are weighted and calculated to obtain image brightness control information.
[0054] In some embodiments, determining the image brightness control information according to the image scene irradiance and the gesture detection result includes:
[0055] Image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection frame.
[0056] In some embodiments, determining the image brightness control information according to the image scene irradiance and the irradiance of the gesture detection frame includes:
[0057] When the gesture detection point is empty and the gesture detection frame is not empty, or,
[0058] When the gesture detection point is not empty, the confidence of the gesture detection point is less than a preset threshold, and the irradiance of the gesture detection point is greater than a preset threshold, image brightness control information is determined according to the irradiance of the image scene and the irradiance of the gesture detection frame.
[0059] In some embodiments, determining the image brightness control information according to the image scene irradiance and the irradiance of the gesture detection frame includes:
[0060] The image scene irradiance and the gesture detection frame irradiance are weighted and summed to obtain image brightness control information.
[0061] In some embodiments, determining the image brightness control information according to the image scene irradiance and the gesture detection result includes:
[0062] When the gesture detection point is empty and the gesture detection frame is empty, or,
[0063] When the gesture detection point is not empty, image brightness control information is determined according to the image scene irradiance.
[0064] In some embodiments, determining the image brightness control information according to the image scene irradiance includes:
[0065] When the gesture detection point is not empty, and
[0066] When the gesture detection point flickers, or when the gesture detection point does not flicker and the irradiance of the gesture detection point is less than a preset threshold, the image brightness control information is determined according to the image scene irradiance.
[0067] In some embodiments, the gesture detection point does not flicker, that is, the gesture detection point in the current frame and the gesture detection point in the previous frame are not null values.
[0068] In some embodiments, the irradiance of the gesture detection point is obtained by adding the pixels of each gesture detection point and dividing the sum by the image exposure parameter.
[0069] In some embodiments, after determining the image brightness control information, the method further includes:
[0070] The brightness control information of the current frame image and the brightness control information of the previous frame image are subjected to weighted fusion time domain smoothing filtering processing to obtain the processed brightness control information of the current frame image.
[0071] In some embodiments, determining the image exposure parameter according to the image brightness control information includes:
[0072] The exposure parameters of the current frame image are determined according to the processed current frame image brightness control information and a preset image exposure table.
[0073] In some embodiments, Figure 2As shown, first determine whether the gesture detection point passed in by the gesture detection algorithm is a null value. If the detection point is a null value, then continue to determine whether the gesture detection box ROI passed in by the gesture detection algorithm is a null value; if the ROI is a null value, then directly use the image scene irradiance (scene lrra) as the brightness control index. If the ROI is not a null value, then use the weighted sum of the scene lrra and the lrra in the ROI area (the sum of all pixel values in the ROI area divided by Gain*Time) as the brightness control index. The weighted sum can be (a*scene lrra+b*ROIlrra) / (a+b).
[0074] In some embodiments, if the detection point is not a null value, the irradiance statistics of the detection point are performed, Keylrra = the sum of all detection point pixel values / (Gain*Time). Then, it is determined whether the detection point exists sometimes and sometimes not. This is because the unstable gesture detection may cause the hand to not be detected in adjacent frames. At this time, since the detection point is not null, it is only necessary to determine whether there is a value in the previous frame, that is, to determine whether Keylrra-KeylrraLast is equal to Keylrra. If it is equal, it flickers, and the scene lrra is used as a brightness control indicator; if the detection point does not flicker at 01, it is determined whether the detection point is reliable (to avoid false detection). If the confidence is greater than or equal to the preset threshold (for example, 0.85), the weighted sum of the scene lrra and Keylrra is used as the brightness control indicator; if the confidence is less than the preset threshold, it is determined whether the hand is overexposed, that is, whether Keylrra is greater than the preset threshold (for example, set to 240 / (Gain*Time)). If it is greater than the threshold, it means that the hand is overexposed. The weighted sum of the scene lrra and the lrra in the ROI area is used as the brightness control index (in this case, the ROI weight needs to be increased. For example, the original weight is b, which can be set to 3b at this time). If it is not overexposed, the scene lrra is used as the brightness control index.
[0075] In some embodiments, the brightness control index metering result, i.e., the image brightness control information, can be obtained through the above brightness control index decision judgment. At this time, the lrra brightness control index of the current frame is updated and recorded for use in the next frame for time domain filtering. At the same time, the lrra of the previous frame and the lrra of the current frame are weighted fused and time domain smoothed to obtain the final brightness control index.
[0076] In some embodiments, after obtaining the final brightness control index lrra, lrra*Gain*Time of the current frame is compared with the exposure Target to obtain the difference, and the exposure parameters are updated according to the difference using a preset exposure table.
[0077] It can be seen that the gesture detection algorithm and the automatic exposure algorithm are jointly optimized, and the scene irradiance is used instead of the average brightness to avoid the influence of exposure parameter fluctuations on the average brightness. The prior information obtained by gesture detection, including the gesture detection frame and the key detection point information of the hand joints predicted by the gesture algorithm, is combined to optimize the automatic exposure metering method. Through algorithm logic judgment and time domain filtering processing, the stability of the gesture exposure algorithm itself is enhanced, the gesture exposure oscillation caused by the gesture detection algorithm is avoided, and the stability and correctness of the gesture detection algorithm are improved.
[0078] The embodiment of the present disclosure can solve the problem of brightness jump oscillation between frames by performing time domain smoothing filtering on the brightness control index.
[0079] like Figure 3 As shown, the embodiment of the present disclosure also provides an exposure parameter determination device, including:
[0080] An acquisition module 1 is used to acquire a gesture detection image, and determine the image scene irradiance and a gesture detection result according to the gesture detection image, wherein the gesture detection result includes a gesture detection point and / or a gesture detection frame;
[0081] A first processing module 2, used to determine image brightness control information according to the image scene irradiance and the gesture detection result;
[0082] The second processing module 3 is used to determine the image exposure parameters according to the image brightness control information.
[0083] In some embodiments, the acquisition module is specifically used to:
[0084] Determine the gesture detection result according to a gesture detection algorithm;
[0085] The image scene irradiance is determined according to the image exposure parameter of the gesture detection image and the average brightness of the image scene.
[0086] In some embodiments, the acquisition module is specifically used to:
[0087] The image scene irradiance is obtained by dividing the image scene average brightness by the image exposure parameter.
[0088] In some embodiments, the first processing module is specifically used to:
[0089] Image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection point.
[0090] In some embodiments, the first processing module is specifically used to:
[0091] When the gesture detection point is not empty, image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection point.
[0092] In some embodiments, the first processing module is specifically used to:
[0093] When the gesture detection point does not flicker and / or the confidence of the gesture detection point is greater than a preset threshold, image brightness control information is determined according to the irradiance of the image scene and the irradiance of the gesture detection point.
[0094] In some embodiments, the first processing module is specifically used to:
[0095] The image scene irradiance and the gesture detection point irradiance are weighted and calculated to obtain image brightness control information.
[0096] In some embodiments, the first processing module is specifically used to:
[0097] Image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection frame.
[0098] In some embodiments, the first processing module is specifically used to:
[0099] When the gesture detection point is empty and the gesture detection frame is not empty, or,
[0100] When the gesture detection point is not empty, the confidence of the gesture detection point is less than a preset threshold, and the irradiance of the gesture detection point is greater than a preset threshold, image brightness control information is determined according to the irradiance of the image scene and the irradiance of the gesture detection frame.
[0101] In some embodiments, the first processing module is specifically used to:
[0102] The image scene irradiance and the gesture detection frame irradiance are weighted and summed to obtain image brightness control information.
[0103] In some embodiments, the first processing module is specifically used to:
[0104] When the gesture detection point is empty and the gesture detection frame is empty, or,
[0105] When the gesture detection point is not empty, image brightness control information is determined according to the image scene irradiance.
[0106] In some embodiments, the first processing module is specifically used to:
[0107] When the gesture detection point is not empty, and
[0108] When the gesture detection point flickers, or when the gesture detection point does not flicker and the irradiance of the gesture detection point is less than a preset threshold, the image brightness control information is determined according to the image scene irradiance.
[0109] In some embodiments, the irradiance of the gesture detection point is obtained by adding the pixels of each gesture detection point and dividing the sum by the image exposure parameter.
[0110] In some embodiments, after determining the image brightness control information, the first processing module is further specifically configured to:
[0111] The brightness control information of the current frame image and the brightness control information of the previous frame image are subjected to weighted fusion time domain smoothing filtering processing to obtain the processed brightness control information of the current frame image.
[0112] In some embodiments, after determining the image brightness control information, the first processing module is further specifically configured to:
[0113] The exposure parameters of the current frame image are determined according to the processed current frame image brightness control information and a preset image exposure table.
[0114] For the embodiments of the device, since they basically correspond to the method embodiments, the relevant parts refer to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separation modules may or may not be separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present embodiment. Those of ordinary skill in the art can understand and implement without paying creative work.
[0115] The method and device of the present disclosure are described above based on the embodiments and application examples. In addition, the present disclosure also provides an electronic device and a computer-readable storage medium, which are described below.
[0116] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device (such as a terminal device or a server) 800 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in the figure is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present disclosure.
[0117] The electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0118] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 800 with various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
[0119] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0120] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0121] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0122] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0123] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.
[0124] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate 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 a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0125] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0126] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0127] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0128] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0129] According to one or more embodiments of the present disclosure, a method for determining an exposure parameter is provided, comprising:
[0130] Acquire a gesture detection image, and determine the image scene irradiance and a gesture detection result according to the gesture detection image, wherein the gesture detection result includes a gesture detection point and / or a gesture detection frame;
[0131] Determining image brightness control information according to the image scene irradiance and the gesture detection result;
[0132] The image exposure parameters are determined according to the image brightness control information.
[0133] According to one or more embodiments of the present disclosure, a method is provided for determining the gesture detection result according to a gesture detection algorithm;
[0134] The image scene irradiance is determined according to the image exposure parameter of the gesture detection image and the average brightness of the image scene.
[0135] According to one or more embodiments of the present disclosure, a method is provided, wherein determining the irradiance of the image scene according to the image exposure parameter of the gesture detection image and the average brightness of the image scene comprises:
[0136] The image scene irradiance is obtained by dividing the image scene average brightness by the image exposure parameter.
[0137] According to one or more embodiments of the present disclosure, a method is provided, wherein determining image brightness control information according to the image scene irradiance and the gesture detection result includes:
[0138] Image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection point.
[0139] According to one or more embodiments of the present disclosure, a method is provided, wherein determining image brightness control information according to the image scene irradiance and the irradiance of a gesture detection point includes:
[0140] When the gesture detection point is not empty, image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection point.
[0141] According to one or more embodiments of the present disclosure, a method is provided, wherein determining image brightness control information according to the image scene irradiance and the irradiance of a gesture detection point includes:
[0142] When the gesture detection point does not flicker and / or the confidence of the gesture detection point is greater than a preset threshold, image brightness control information is determined according to the irradiance of the image scene and the irradiance of the gesture detection point.
[0143] According to one or more embodiments of the present disclosure, a method is provided, wherein determining image brightness control information according to the image scene irradiance and the irradiance of a gesture detection point includes:
[0144] The image scene irradiance and the gesture detection point irradiance are weighted and calculated to obtain image brightness control information.
[0145] According to one or more embodiments of the present disclosure, a method is provided, wherein determining image brightness control information according to the image scene irradiance and the gesture detection result includes:
[0146] Image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection frame.
[0147] According to one or more embodiments of the present disclosure, a method is provided, wherein determining image brightness control information according to the image scene irradiance and the irradiance of the gesture detection frame includes:
[0148] When the gesture detection point is empty and the gesture detection frame is not empty, or,
[0149] When the gesture detection point is not empty, the confidence of the gesture detection point is less than a preset threshold, and the irradiance of the gesture detection point is greater than a preset threshold, image brightness control information is determined according to the irradiance of the image scene and the irradiance of the gesture detection frame.
[0150] According to one or more embodiments of the present disclosure, a method is provided, wherein determining image brightness control information according to the image scene irradiance and the irradiance of the gesture detection frame includes:
[0151] The image scene irradiance and the gesture detection frame irradiance are weighted and summed to obtain image brightness control information.
[0152] According to one or more embodiments of the present disclosure, a method is provided, wherein determining image brightness control information according to the image scene irradiance and the gesture detection result includes:
[0153] When the gesture detection point is empty and the gesture detection frame is empty, or,
[0154] When the gesture detection point is not empty, image brightness control information is determined according to the image scene irradiance.
[0155] According to one or more embodiments of the present disclosure, a method is provided, wherein determining image brightness control information according to the image scene irradiance includes:
[0156] When the gesture detection point is not empty, and
[0157] When the gesture detection point flickers, or when the gesture detection point does not flicker and the irradiance of the gesture detection point is less than a preset threshold, the image brightness control information is determined according to the image scene irradiance.
[0158] According to one or more embodiments of the present disclosure, a method is provided, wherein the irradiance of the gesture detection point is obtained by adding the pixels of each gesture detection point and dividing the sum by the image exposure parameter.
[0159] According to one or more embodiments of the present disclosure, a method is provided, which, after determining the image brightness control information, further includes:
[0160] The brightness control information of the current frame image and the brightness control information of the previous frame image are subjected to weighted fusion time domain smoothing filtering processing to obtain the processed brightness control information of the current frame image.
[0161] According to one or more embodiments of the present disclosure, a method is provided, wherein determining an image exposure parameter according to image brightness control information comprises:
[0162] The exposure parameters of the current frame image are determined according to the processed current frame image brightness control information and a preset image exposure table.
[0163] According to one or more embodiments of the present disclosure, there is provided an exposure parameter determination device, comprising:
[0164] An acquisition module, used to acquire a gesture detection image, and determine the image scene irradiance and a gesture detection result according to the gesture detection image, wherein the gesture detection result includes a gesture detection point and / or a gesture detection frame;
[0165] A first processing module, configured to determine image brightness control information according to the image scene irradiance and the gesture detection result;
[0166] The second processing module is used to determine the image exposure parameters according to the image brightness control information.
[0167] According to one or more embodiments of the present disclosure, there is provided an electronic device, including: at least one memory and at least one processor;
[0168] The at least one memory is used to store program codes, and the at least one processor is used to call the program codes stored in the at least one memory to execute any one of the above methods.
[0169] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store program code, and when the program code is executed by a processor, the processor is prompted to execute the above method.
[0170] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0171] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0172] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for determining exposure parameters, characterized in that: include: Acquire a gesture detection image, and determine the image scene irradiance and a gesture detection result according to the gesture detection image, wherein the gesture detection result includes a gesture detection point and / or a gesture detection frame; Determining image brightness control information according to the image scene irradiance and the gesture detection result; The image exposure parameters are determined according to the image brightness control information.
2. The method according to claim 1, characterized in that The step of determining the image scene irradiance and the gesture detection result according to the gesture detection image includes: Determine the gesture detection result according to a gesture detection algorithm; The image scene irradiance is determined according to the image exposure parameter of the gesture detection image and the average brightness of the image scene.
3. The method according to claim 2, characterized in that The determining the image scene irradiance according to the image exposure parameter of the gesture detection image and the image scene average brightness includes: The image scene irradiance is obtained by dividing the image scene average brightness by the image exposure parameter.
4. The method according to claim 1, characterized in that The determining of image brightness control information according to the image scene irradiance and the gesture detection result includes: Image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection point.
5. The method according to claim 4, characterized in that The determining of the image brightness control information according to the image scene irradiance and the irradiance of the gesture detection point includes: When the gesture detection point is not empty, image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection point.
6. The method according to claim 5, characterized in that The determining of the image brightness control information according to the image scene irradiance and the irradiance of the gesture detection point includes: When the gesture detection point does not flicker and / or the confidence of the gesture detection point is greater than a preset threshold, image brightness control information is determined according to the irradiance of the image scene and the irradiance of the gesture detection point.
7. The method according to claim 6, characterized in that The determining of the image brightness control information according to the image scene irradiance and the irradiance of the gesture detection point includes: The image scene irradiance and the gesture detection point irradiance are weighted and calculated to obtain image brightness control information.
8. The method according to claim 1, characterized in that The determining of image brightness control information according to the image scene irradiance and the gesture detection result includes: Image brightness control information is determined according to the image scene irradiance and the irradiance of the gesture detection frame.
9. The method according to claim 8, characterized in that The determining of the image brightness control information according to the image scene irradiance and the irradiance of the gesture detection frame includes: When the gesture detection point is empty and the gesture detection frame is not empty, or, When the gesture detection point is not empty, the confidence of the gesture detection point is less than a preset threshold, and the irradiance of the gesture detection point is greater than a preset threshold, image brightness control information is determined according to the irradiance of the image scene and the irradiance of the gesture detection frame.
10. The method according to claim 9, characterized in that The determining of the image brightness control information according to the image scene irradiance and the irradiance of the gesture detection frame includes: The image scene irradiance and the gesture detection frame irradiance are weighted and summed to obtain image brightness control information.
11. The method according to claim 1, characterized in that: The determining of image brightness control information according to the image scene irradiance and the gesture detection result includes: When the gesture detection point is empty and the gesture detection frame is empty, or, When the gesture detection point is not empty, image brightness control information is determined according to the image scene irradiance.
12. The method according to claim 11, characterized in that The determining of image brightness control information according to the image scene irradiance includes: When the gesture detection point is not empty, and When the gesture detection point flickers, or when the gesture detection point does not flicker and the irradiance of the gesture detection point is less than a preset threshold, the image brightness control information is determined according to the image scene irradiance.
13. The method according to claim 4, characterized in that The irradiance of the gesture detection point is obtained by adding the pixels of each gesture detection point and dividing the sum by the image exposure parameter.
14. The method according to claim 1, characterized in that After the image brightness control information is determined, the method further includes: The brightness control information of the current frame image and the brightness control information of the previous frame image are subjected to weighted fusion time domain smoothing filtering processing to obtain the processed brightness control information of the current frame image.
15. The method according to claim 14, characterized in that The step of determining the image exposure parameters according to the image brightness control information includes: The exposure parameters of the current frame image are determined according to the processed current frame image brightness control information and a preset image exposure table.
16. An exposure parameter determination device, characterized in that: include: An acquisition module, used to acquire a gesture detection image, and determine the image scene irradiance and a gesture detection result according to the gesture detection image, wherein the gesture detection result includes a gesture detection point and / or a gesture detection frame; A first processing module, configured to determine image brightness control information according to the image scene irradiance and the gesture detection result; The second processing module is used to determine the image exposure parameters according to the image brightness control information.
17. An electronic device comprising: at least one memory and at least one processor; The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute the method according to any one of claims 1 to 15.
18. A computer-readable storage medium, the computer-readable storage medium being used to store program code, wherein when the program code is executed by a computer device, the computer device is prompted to execute the method according to any one of claims 1 to 15.
Citation Information
Cited By
Exposure adjusting method and device for augmented reality glasses
CN120916065A
Exposure adjustment method and apparatus for extended reality glasses
CN120916065B