High dynamic range video acquisition method and device, chip, electronic equipment and medium
By obtaining and processing pixel and brightness information of multiple HDR photos in electronic devices, generating high dynamic range videos, and dynamically adjusting the tone mapping curves, the problem of poor HDR video display in the prior art is solved, and more realistic video display effect.
Patent Information
- Application Number
- CN202310492031.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-04
- Publication Date
- 2024-11-05
AI Technical Summary
The prior art is difficult to effectively display HDR video on high dynamic range display devices, resulting in insufficient light and dark differences in the video image content and insufficient visual effects.
By obtaining pixel information and brightness information of multiple target photos in electronic devices, adjusting pixel values to generate HDR images, and performing electro-optical conversion, color gamut mapping and photoelectric conversion processing to generate high dynamic range videos, while adding brightness information to the element The data dynamically adjusts the tone mapping curve.
It realizes that the video image content displayed on a high dynamic range display device has greater light and dark differences, and the visual effect is more realistic, which improves the playback effect of HDR videos.
Smart Images

Figure CN118900349A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a high dynamic range video acquisition method, device, chip, electronic equipment and medium. Background Art
[0002] Standard Dynamic Range (SDR) is a common color display method. Compared with SDR images / videos, HDR (High Dynamic Range) images / videos can have a larger dynamic range.
[0003] As HDR photo high dynamic display technology is increasingly used, HDR videos can be displayed on high dynamic range display devices. Summary of the invention
[0004] The embodiments of the present application provide a high dynamic range video acquisition method, device, chip, electronic device and medium, which can provide support for displaying HDR video on a high dynamic range display device.
[0005] In a first aspect, an embodiment of the present application provides a high dynamic range video acquisition method, which is applied to an electronic device with a high dynamic range display function, the method comprising: when a first control of the electronic device is triggered, acquiring multiple target photos in the electronic device, wherein the target photos are high dynamic range images obtained based on pixel information of an image taken by an image acquisition device and brightness information corresponding to the taken image; acquiring a first high dynamic range video based on the multiple target photos.
[0006] In an embodiment of the present application, for an electronic device with an HDR display function (or HDR display device), the photo generated when the electronic device captures an image can be an HDR image, so that when the first control of the electronic device is triggered, an HDR video can be generated based on multiple HDR images in the electronic device. Since HDR images can have a larger dynamic range than SDR images, compared with displaying SDR videos, the electronic device can display the acquired HDR video so that the displayed video image content can have a larger difference in light and dark, and the visual effect can be more realistic.
[0007] In one embodiment, the high dynamic range video acquisition method also includes: acquiring pixel information of a first image, wherein the first image is any image captured by an electronic device, and the pixel information of the first image includes pixel values of pixels in the first image; acquiring brightness information corresponding to the first image, wherein the brightness information corresponding to the first image includes brightness values corresponding to pixels in the first image; processing the pixel information of the first image according to the first information to obtain pixel information of a second image, wherein the first information includes an adjustment coefficient of pixels in the first image, and the adjustment coefficient of any pixel in the first image is obtained according to the brightness value corresponding to the pixel and is not less than 1; performing an operation for generating a high dynamic range image according to the pixel information of the second image to obtain a first photo.
[0008] According to the brightness values corresponding to the pixels in the image captured by the HDR display device, the pixel values of the pixels in the image can be adjusted accordingly, and the adjustment coefficient is not less than 1. Based on this, the purpose of generating a corresponding HDR image (or an image with HDR display effect) according to the original SDR image can be achieved, and the generated HDR image can be closer to the real scene and can provide support for the device to display HDR video.
[0009] In one embodiment, the adjustment coefficient of any pixel in the first image is obtained according to a normalized value of the brightness value corresponding to the pixel.
[0010] This adjustment coefficient limitation can make the adjusted pixel values of different pixel points larger than those before adjustment, and the degree of increase corresponds to the original pixel value and corresponding brightness value of the pixel point, so as to ensure the display effect of the generated HDR image, and also make the adjusted pixel value within the expected reasonable range, so as to generate an HDR image.
[0011] In one embodiment, the step of performing an operation for generating a high dynamic range image based on pixel information of the second image includes: performing electro-optical conversion processing based on the pixel information of the second image to convert the second image to a linear domain to obtain pixel information of the linear domain image; performing color gamut mapping processing based on the pixel information of the linear domain image to map the linear domain image to a target color gamut of a high dynamic range to obtain pixel information of the corresponding target color gamut; performing photoelectric conversion processing based on the pixel information of the corresponding target color gamut to obtain pixel information of the high dynamic range image.
[0012] After adjusting the pixel value according to the corresponding brightness value of the pixel point, electro-optical conversion processing, color gamut mapping processing and photoelectric conversion processing can be performed in sequence to generate an HDR image.
[0013] In one embodiment, the high dynamic range video acquisition method also includes: generating target brightness information based on pixel information of the first image and at least one of the brightness information corresponding to the first image, the target brightness information including at least one of the minimum brightness, maximum brightness and average brightness corresponding to the first image; and adding the target brightness information to the metadata of the first photo.
[0014] The target brightness information generated according to the pixel information / corresponding brightness information of the SDR image can be used as metadata of the generated HDR image, so that when the corresponding HDR video is played subsequently, the tone mapping curve can be dynamically adjusted as needed to improve the HDR video playback effect.
[0015] In one embodiment, after adding the target brightness information to the metadata of the first photo, the high dynamic range video acquisition method also includes: when multiple target photos include the first photo, adjusting the tone mapping curve according to the target brightness information in the metadata of the first photo; performing tone mapping processing on the first high dynamic range video according to the adjusted tone mapping curve to obtain a processed high dynamic range video; and playing the processed high dynamic range video.
[0016] When playing HDR video, the tone mapping curve can be dynamically adjusted according to the metadata of the target brightness information of the HDR image in the HDR video, which can improve the tone mapping adjustment effect and thus improve the HDR video playback effect.
[0017] In a second aspect, an embodiment of the present application provides a high dynamic range video acquisition device, which is applied to an electronic device with a high dynamic range display function, and the device includes: a first acquisition module, which is used to acquire multiple target photos in the electronic device when a first control of the electronic device is triggered, wherein the target photo is a high dynamic range image obtained based on pixel information of an image taken by an image acquisition device and brightness information corresponding to the taken image; a second acquisition module, which is used to acquire a first high dynamic range video based on the multiple target photos.
[0018] In a third aspect, an embodiment of the present application provides an electronic chip, comprising: a processor, which is used to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute any method as in the first aspect.
[0019] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory for storing computer program instructions, a processor for executing the computer program instructions, and a communication device, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute a method as described in any one of the first aspects.
[0020] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes any method in the first aspect.
[0021] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run on a computer, the computer executes any method in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 A schematic diagram of the structure of an electronic device provided by one embodiment of the present application;
[0024] Figure 2 A schematic diagram of a process of obtaining a high dynamic range video provided by an embodiment of the present application;
[0025] Figure 3 A schematic diagram of obtaining pixel information and corresponding brightness information of an SDR image provided by an embodiment of the present application;
[0026] Figure 4 A schematic diagram of another method of obtaining pixel information and corresponding brightness information of an SDR image provided by an embodiment of the present application;
[0027] Figure 5 A schematic flow chart of a high dynamic range video display method provided for one embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0029] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0030] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0031] It should be understood that the term "at least one" used in this article refers to one or more, and "plurality" refers to two or more. The term "and / or" used in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, wherein a, b, c can be single or multiple.
[0032] It should be understood that, although the terms first, second, etc. may be used to describe the set thresholds in the embodiments of the present application, these set thresholds should not be limited to these terms. These terms are only used to distinguish the set thresholds from each other. For example, without departing from the scope of the embodiments of the present application, the first set threshold may also be referred to as the second set threshold, and similarly, the second set threshold may also be referred to as the first set threshold.
[0033] The high dynamic range video acquisition method provided in any embodiment of the present application can be applied to Figure 1 In the electronic device 100 shown. Figure 1 A schematic structural diagram of an electronic device 100 is shown.
[0034] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0035] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0036] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0037] In some embodiments, the processor 110 may be a system on chip (SOC), which may include a central processing unit (CPU) and may further include other types of processors. In some embodiments, the processor 110 may be a PWM control chip.
[0038] The processor 110 may also include necessary hardware accelerators or logic processing hardware circuits, such as ASICs, or one or more integrated circuits for controlling the execution of the technical solution program, etc. In addition, the processor 110 may have the function of operating one or more software programs, which may be stored in a storage medium.
[0039] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0040] In some embodiments, the memory of the electronic device 100 may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or may be any computer-readable medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer.
[0041] In some embodiments, the processor 110 and the memory may be combined into a processing device, or may be independent components, and the processor 110 may be used to execute program codes stored in the memory. In specific implementation, the memory may also be integrated into the processor 110, or may be independent of the processor 110.
[0042] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0043] The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
[0044] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0045] The charging management module 140 is used to receive charging input from a charger. The power management module 141 is used to connect the battery 142 , the charging management module 140 and the processor 110 .
[0046] In one embodiment, if the electronic device 100 needs to generate HDR video in a charging state and does not generate HDR video in an uncharging state, the charging management module 140 may be used to determine whether the electronic device 100 is in a charging state.
[0047] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0048] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0049] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0050] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0051] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0052] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0053] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0054] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0055] In one embodiment, when the electronic device 100 plays the HDR video, the image content of the HDR video can be displayed through the display screen 194.
[0056] The electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor. The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture a still image or a video. The object generates an optical image through the lens and projects it onto the photosensitive element.
[0057] In one embodiment, the camera 193 captures SDR images under multiple exposure conditions in the same scene, and the captured multiple images can be fused into a single SDR image. According to the pixel information of the single SDR image and the brightness information of the corresponding DD230714I01, a corresponding HDR image can be generated.
[0058] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0059] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0060] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0061] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0062] In one embodiment, the electronic device 100 can play the generated HDR video through the audio module 170.
[0063] The pressure sensor is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor can be set on the display screen 194. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. When a touch operation is applied to the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor.
[0064] The gyroscope sensor can be used to determine the motion posture of the electronic device 100. The air pressure sensor is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor to assist positioning and navigation. The magnetic sensor includes a Hall sensor. The acceleration sensor can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). Distance sensor, used to measure distance. The electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use a distance sensor to measure the distance to achieve fast focus. The proximity light sensor may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The ambient light sensor is used to sense the brightness of ambient light. The fingerprint sensor is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc. The temperature sensor is used to detect temperature.
[0065] A touch sensor is also called a "touch control device". The touch sensor can be arranged on the display screen 194. The touch sensor and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0066] The button 190 includes a power button, a volume button, etc. The button 190 may be a mechanical button or a touch button. The motor 191 may generate a vibration prompt. The motor 191 may be used for an incoming call vibration prompt or for touch vibration feedback. The indicator 192 may be an indicator light, which may be used to indicate the charging status, the change in power, or may be used to indicate messages, missed calls, notifications, etc.
[0067] The SIM card interface 195 is used to connect a SIM card. The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
[0068] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
[0069] like Figure 2 As shown, an embodiment of the present application provides a high dynamic range video acquisition method, which is applied to an electronic device with a high dynamic range display function (or HDR display device), and the method may include steps 201 to 202.
[0070] Compared with standard dynamic range (SDR), HDR display devices have the ability to display higher dynamic range, and the dynamic range they support is greater than the standard dynamic range.
[0071] In one embodiment, an electronic device with a high dynamic range display function serves as a display terminal and can support the display of HDR images and HDR videos.
[0072] Step 201, when the first control of the electronic device is triggered, multiple target photos in the electronic device are obtained, wherein the target photos are high dynamic range images obtained according to pixel information of an image taken by an image acquisition device and brightness information corresponding to the taken image.
[0073] In one embodiment, the image acquisition device may be an image acquisition device of an HDR display device, such as a camera of the HDR display device.
[0074] In one embodiment, the first control may be any control for generating a video based on multiple (eg, two or more) images. The first control may be a control in an application (eg, a camera application) installed on the electronic device.
[0075] In a feasible implementation, the user can manually trigger the first control as needed. In one embodiment, when the user needs to trigger the first control, the user can open the camera application of the electronic device so that the electronic device displays the first control in the camera application, and the user can click the first control to trigger the first control.
[0076] In another feasible implementation, the electronic device may automatically trigger the first control according to a set condition. In one embodiment, the set condition may include at least one of the electronic device being in a screen-off state, the electronic device being in a charging state, and the available power of the electronic device being not less than a preset power threshold.
[0077] In one embodiment, the multiple photos used to generate the video can be photos selected by the user as needed. In one feasible implementation, the user can first select the photos and then trigger the first control. In another feasible implementation, the user can first trigger the first control and then select the photos. The electronic device can obtain each photo selected by the user after the user selects the photo and when the first control is triggered.
[0078] In another embodiment, the multiple photos used to generate the video may be photos automatically selected by the electronic device according to set conditions. In one embodiment, the set conditions may include at least one of the relevance of the photo shooting time (such as photos taken on the same day, the same day in different years, etc.) and the relevance of the photo shooting location.
[0079] In one embodiment of the present application, the first control may be a control with a "one-click blockbuster" function in a camera application of an electronic device. In a feasible implementation, when the control is triggered by a user, the electronic device may generate a corresponding video based on multiple photos selected by the user.
[0080] In another embodiment of the present application, the first control may be a control with a "wonderful moment" function in a camera application of the electronic device. In a feasible implementation, when the control is automatically triggered, the electronic device may generate a corresponding video based on the automatically selected multiple photos.
[0081] For HDR display devices, since they have HDR display function, when shooting images, the device can generate corresponding HDR images (or images with brightness information and HDR display effects) according to the pixel information and corresponding brightness information of the shot image (i.e. SDR image, specifically the original SDR image without brightness information). The generated HDR image can be saved in the HDR display device as an HDR photo.
[0082] In one embodiment, the brightness information corresponding to the image may include relative brightness values corresponding to the pixels in the image. In another embodiment, the brightness information corresponding to the image may include absolute brightness values corresponding to the pixels in the image.
[0083] In one embodiment, the HDR display device can obtain multiple HDR photos selected by the user (i.e., the multiple target photos mentioned above) after the first control is triggered. In another embodiment, the HDR display device can automatically obtain multiple HDR images (i.e., the multiple target photos mentioned above) after the first control is triggered.
[0084] When the first control on the SDR display device is triggered, multiple photos in the SDR display device can be obtained, that is, multiple SDR images can be obtained, and then an SDR video is generated according to the multiple SDR images. Figure 2 In the illustrated embodiment, when the first control on the HDR display device is triggered, multiple photos in the HDR display device, that is, multiple HDR images, can be acquired, so that an HDR video can be generated according to the multiple HDR images in step 202.
[0085] Step 202: Acquire a first high dynamic range video according to a plurality of target photos.
[0086] In one embodiment, after the HDR video is generated, the HDR video can be directly displayed.
[0087] In another embodiment, after the HDR video is generated, a reminder message may be output (eg, through a drop-down menu, a pop-up window, etc.) to remind the user to view it, and the HDR video may be displayed when the user confirms viewing.
[0088] In one feasible implementation, the user can also select the required video template, video background music and other information according to personal preferences. Based on this, the HDR display device can generate a corresponding HDR video based on multiple HDR photos and the information selected by the user.
[0089] In an embodiment of the present application, for an electronic device with an HDR display function (or HDR display device), the photo generated when the electronic device captures an image can be an HDR image, so that when the first control of the electronic device is triggered, an HDR video can be generated based on multiple HDR images in the electronic device. Since HDR images can have a larger dynamic range than SDR images, compared with displaying SDR videos, the electronic device can display the acquired HDR video so that the displayed video image content can have a larger difference in light and dark, and the visual effect can be more realistic.
[0090] In one embodiment of the present application, the high dynamic range video acquisition method also includes: acquiring pixel information of a first image, wherein the first image is any image captured by an electronic device, and the pixel information of the first image includes pixel values of pixel points in the first image; acquiring brightness information corresponding to the first image, wherein the brightness information corresponding to the first image includes brightness values corresponding to pixel points in the first image; and generating an HDR image based on the pixel information of the first image and the brightness information corresponding to the first image.
[0091] In one embodiment, when shooting, the image acquisition device (such as a camera) of the electronic device can capture multiple (two or more) images under exposure conditions in the same scene, and the first image can be a single image obtained by merging the images under the multiple exposure conditions, and the first image is an SDR image without brightness information. Different exposure conditions (or exposure parameters) can correspond to different exposure levels.
[0092] In one embodiment of the present application, the shooting preview interface of the HDR display device may include a shutter. In response to the user clicking or touching the shutter, the HDR display device may capture multiple images, and the multiple images may correspond to multiple exposure conditions one by one.
[0093] In one possible implementation, the HDR display device may include multiple cameras, and the multiple cameras may respectively shoot with different exposure parameters to obtain multiple images. In another possible implementation, the HDR display device may continuously shoot multiple images with different exposure parameters, and the shooting time of the images is as close to synchronization as possible.
[0094] In one embodiment, the images under multiple exposure conditions may be images taken under standard exposure (or ideal exposure, such as EV0), images taken under underexposure (such as EV-), and images taken under overexposure (such as EV+). EV may represent an exposure value.
[0095] In one implementation, the exposure parameters of the camera may be adjusted so that the image has different EVs. The exposure parameters may refer to parameters that affect the camera exposure, such as aperture, shutter, exposure time, and sensitivity.
[0096] In a feasible implementation, EV+ can be further subdivided into EV+1, EV+2, etc., to distinguish different degrees of underexposure. For example, EV+1 can represent an exposure value twice that of EV0, and EV+2 can represent an exposure value twice that of EV1.
[0097] In a feasible implementation, EV- can be further subdivided into EV-1, EV-2, etc., to distinguish different degrees of overexposure. For example, EV-1 can represent an exposure value of half of EV0, and EV-2 can represent an exposure value of half of EV-1.
[0098] In one embodiment of the present application, when shooting, the camera of the electronic device can capture images under multiple exposure conditions in the same scene, and then fuse the images under the multiple exposure conditions into one image, and then perform tone mapping in a set manner on the fused image to obtain a first image. In some embodiments, the fused image can be brought into the dynamic range of the SDR display through the tone mapping operation.
[0099] In one implementation, the tone mapping of the image in a set manner may be global tone mapping of the image. In one embodiment, the global tone mapping may use a histogram, a gamma mapping, a sigmoid nonlinear function mapping, etc., which may well preserve the global contrast, but may partially lose local details.
[0100] In one implementation, the tone mapping of the image in a set manner may be local tone mapping of the image. In one embodiment, the local tone mapping is relatively complex, and the entire image may be divided into regions, and each region or several regions may be processed in a similar manner to the global tone mapping, and ultimately the relative contrast between adjacent regions may be retained.
[0101] In the case where the first image is obtained based on images under multiple exposure conditions in the same scene, in one embodiment, brightness information corresponding to the first image can be obtained based on one or more exposure conditions in the multiple exposure conditions. The obtained brightness information can better reflect the actual brightness of the first image.
[0102] If the multiple exposure conditions include EV0, EV- and EV+, then in one implementation, the brightness information corresponding to the first image can be obtained according to any one of the exposure conditions among EV0, EV- and EV+. In another implementation, the brightness information corresponding to the first image can also be obtained according to any combination of EV0, EV- and EV+.
[0103] In one embodiment, EV+ may be further subdivided into EV+1, EV+2, etc., and EV- may be further subdivided into EV-1, EV-2, etc.
[0104] If the multiple exposure conditions include EV+1 and EV+2, in one implementation, in order to restore the dark details in the captured image, the EV can be set between EV+1 and EV+2, and the brightness information corresponding to the first image can be obtained by combining EV+1 and EV+2. The EV can be set between EV+1 and EV+2 by changing the gain and exposure time.
[0105] In one embodiment of the present application, if the brightness information corresponding to the first image is obtained according to one exposure condition among multiple exposure conditions, the brightness information corresponding to the first image can be obtained according to the brightness value of the pixel point in the image captured under the exposure condition.
[0106] In one embodiment, if the dark details of the image need to be clearer, the brightness information corresponding to the first image can be obtained according to an exposure condition with a higher exposure level; if the highlight area of the image needs to be clearer without overexposure, the brightness information corresponding to the first image can be obtained according to an exposure condition with a lower exposure level; if the image needs to have a clearer light-dark contrast without overexposure or underexposure, the brightness information corresponding to the first image can be obtained according to an exposure condition with a moderate exposure level.
[0107] In another embodiment of the present application, if the brightness information corresponding to the first image is obtained according to at least two exposure conditions among the multiple exposure conditions, the images captured by the multiple exposure conditions can be fused, and the brightness information corresponding to the first image can be obtained according to the brightness values of the pixels in the fused image. Or in another embodiment, one exposure condition can be obtained according to the combination of at least two exposure conditions, and an image under the exposure condition can be captured, and then the brightness information corresponding to the first image can be obtained according to the brightness values of the pixels in the captured image.
[0108] In one implementation, the brightness value of a pixel in the image captured under the exposure condition may be used as the brightness value corresponding to the corresponding pixel in the first image, thereby obtaining the brightness information corresponding to the first image.
[0109] In one embodiment, the brightness value of the pixel point can be obtained by conversion according to the RGB value of the pixel point.
[0110] In another implementation, the brightness value of each pixel in a group of pixels (including multiple pixels) in the image captured under the exposure condition can be averaged as the brightness value of the group of pixels, and used as the brightness value corresponding to the corresponding group of pixels in the first image (that is, each pixel in the corresponding group of pixels in the first image corresponds to the same brightness value), thereby obtaining the brightness information corresponding to the first image. By grouping the pixels, the amount of data of the brightness information can be reduced, thereby reducing the size of the image file of the first image.
[0111] In one embodiment, each pixel point in a group of pixel points may be adjacent to each other in sequence.
[0112] In one embodiment of the present application, after obtaining the brightness information corresponding to the first image, the pixel information of the first image and the brightness information corresponding to the first image may be encoded by an encoder, and the encoded file may be stored as an image file of the first image. In this way, the brightness information corresponding to the SDR image may be encoded into the SDR image.
[0113] In one embodiment, the pixel information and the corresponding brightness information of the first image may be encoded by setting rules to obtain an image file of the first image. In one embodiment, the setting rules may be a PQ or HLG conversion function in HDR10, so that it can be more compatible with the HDR10 playback standard. HDR10 may be an HDR format, and 10 may represent a 10-bit color depth.
[0114] In a feasible implementation, the type of pixel information of the first image may be determined by the sensor type of the image capture device, and the type may be RGB, RGGB, RGBW, RYYB, etc. Among them, R may represent red, G may represent green, B may represent blue, W may represent white, and Y here may represent yellow.
[0115] In a feasible implementation, the image encoding format may be Raw (original format), YUV, RGB, etc., wherein Y here may represent brightness (Luminance or Luma), that is, grayscale value, and U and V may represent chrominance (Chrominance or Chroma).
[0116] In one feasible implementation, the image file format may include JPEG, HEIF, HEIC, PNG, BMP, GIF, etc.
[0117] In a feasible implementation, the brightness information can be encoded with a bit width of 8 bits, 10 bits or higher, and linear encoding, non-linear encoding (Gamma function) and other encoding methods can be used.
[0118] In one embodiment, please refer to Figure 3 After the HDR display device obtains the first image 301 by fusing the images under multiple exposure conditions, it can obtain the pixel value (ie, RGB value) of each pixel point (n in total) in the first image 301 to obtain the pixel information of the first image 301. Figure 3 As shown, the pixel value of a pixel point (denoted as pixel point 1) in the first image 301 includes R1, G1, and B1, the pixel value of another pixel point (denoted as pixel point 2) includes R2, G2, and B2, and the pixel value of another pixel point (denoted as pixel point 3) includes R3, G3, and B3.
[0119] Please refer to Figure 3 , the image denoted by number 3011 in the first image 301 may be an image of the sun, the image denoted by number 3012 may be an image of a white building, and the image denoted by number 3013 may be an image of a high-rise building. In the first image 301, the brightness of the image around the sun is higher than the brightness of the image of the white building, and the brightness of the image of the white building is higher than the brightness of the image of the lower floor area of the high-rise building.
[0120] In addition, the HDR display device may also obtain brightness information corresponding to the first image 301 according to at least one exposure condition among the multiple exposure conditions. The brightness information corresponding to the first image 301 may include a brightness value corresponding to each pixel in the first image 301. Figure 3 As shown, the brightness value corresponding to pixel 1 is L1, the brightness value corresponding to pixel 2 is L2, and the brightness value corresponding to pixel 3 is L3. Among them, the brightness corresponding to pixel 1 is higher than the brightness corresponding to pixel 2, and the brightness corresponding to pixel 2 is higher than the brightness corresponding to pixel 3.
[0121] The HDR display device may encode the pixel information of the first image 301 and the brightness information corresponding to the first image 301 according to a set image encoding format, and the encoded file is then stored as an image file of the first image 301 .
[0122] like Figure 3 As shown, after encoding, the pixel information of the first image 301 includes the pixel value (R1, G1, B1; R2, G2, B2; R3, G3, B3; ... Rn, Gn, Bn) of each pixel point in the first image 301; the brightness information corresponding to the first image 301 includes the brightness value (L1, L2, L3, ... Ln-1, Ln) corresponding to each pixel point in the first image 301.
[0123] In one embodiment, please refer to Figure 4 After the HDR display device obtains the first image 401 by fusing the images under multiple exposure conditions, it can obtain the pixel value (i.e., RGB value) of each pixel point (n in total) in each group of pixel points (m groups in total, one group of 3 pixel points) in the first image 401 to obtain the pixel information of the first image 401. Figure 4 As shown, the pixel value of one pixel in a group of pixel points (referred to as pixel group 1) in the first image 401 includes R1, G1, and B1, the pixel value of another pixel includes R2, G2, and B2, and the pixel value of another pixel includes R3, G3, and B3; the pixel value of one pixel in another group of pixel points (referred to as pixel group 2) in the first image 401 includes R4, G4, and B4, the pixel value of another pixel includes R5, G5, and B5, and the pixel value of another pixel includes R6, G6, and B6; the pixel value of one pixel in another group of pixel points (referred to as pixel group 3) in the first image 401 includes R7, G7, and B7, the pixel value of another pixel includes R8, G8, and B8, and the pixel value of another pixel includes R9, G9, and B9.
[0124] Please refer to Figure 4 , the image denoted by number 4011 in the first image 401 may be an image of the sun, the image denoted by number 4012 may be an image of a white building, and the image denoted by number 4013 may be an image of a high-rise building. In the first image 401, the brightness of the image around the sun is higher than the brightness of the image of the white building, and the brightness of the image of the white building is higher than the brightness of the image of the lower floor area of the high-rise building.
[0125] In addition, the HDR display device may also obtain brightness information corresponding to the first image 401 according to at least one exposure condition among the multiple exposure conditions. The brightness information corresponding to the first image 401 may include brightness values corresponding to each group of pixels in the first image 401. Figure 4 As shown, the brightness value corresponding to pixel group 1 is L1, the brightness value corresponding to pixel group 2 is L2, and the brightness value corresponding to pixel group 3 is L3. Among them, the brightness corresponding to pixel group 1 is higher than the brightness corresponding to pixel group 2, and the brightness corresponding to pixel group 2 is higher than the brightness corresponding to pixel group 3.
[0126] The HDR display device may encode the pixel information of the first image 401 and the brightness information corresponding to the first image 401 according to a set image encoding format, and the encoded file is then stored as an image file of the first image 401 .
[0127] like Figure 4As shown, after encoding, the pixel information of the first image 401 includes the pixel value (Y1, U1, V1; Y2, U2, V2; Y3, U3, V3; ... Yn, Un, Vn) of each pixel point in the first image 401; the brightness information corresponding to the first image 401 includes the brightness value (L1, L2, L3, ... Lm-1, Lm) corresponding to each pixel point in the first image 401.
[0128] In one embodiment of the present application, when the image file of the first image is triggered, the pixel information of the first image and the brightness information corresponding to the first image can be decoded according to the image file of the first image, and the pixel information of the first image and the corresponding brightness information can be encoded according to set rules to generate an HDR image.
[0129] In a feasible implementation, in response to a user viewing an image file, the image file is triggered, and the HDR display device can generate an HDR image according to the image file and display the generated HDR image.
[0130] In one embodiment of the present application, the high dynamic range video acquisition method also includes: acquiring pixel information of a first image, wherein the first image is any image captured by an electronic device, and the pixel information of the first image includes pixel values of pixels in the first image; acquiring brightness information corresponding to the first image, wherein the brightness information corresponding to the first image includes brightness values corresponding to pixels in the first image; processing the pixel information of the first image according to the first information to obtain pixel information of a second image, wherein the first information includes an adjustment coefficient of pixels in the first image, and the adjustment coefficient of any pixel in the first image is obtained according to the brightness value corresponding to the pixel and is not less than 1; performing an operation for generating a high dynamic range image according to the pixel information of the second image to obtain a first photo.
[0131] In one embodiment, the pixel information and the corresponding brightness information of the first image can be encoded by setting rules to generate an HDR image, and the generated HDR image can be used as a video frame of the HDR video. In one embodiment, the setting rule can be a PQ or HLG conversion function in HDR10, so that it can be more compatible with the HDR10 playback standard.
[0132] In one embodiment, pixel information and corresponding brightness information of the first image are encoded in a manner compatible with HDR10 to generate an HDR image, wherein the Bit depth used for encoding may be 10 bits, the Color Primaries may be P3, and the Transfer Function may be HLG or PQ.
[0133] In one embodiment, the pixel information of the first image includes the pixel value of each pixel point in the first image, that is, all the pixel points. In one embodiment, the pixel value of any pixel point in the first image ranges from 0 to 255.
[0134] In one embodiment, the brightness information corresponding to the first image includes the brightness value corresponding to each pixel point, that is, all the pixel points in the first image.
[0135] After obtaining the pixel information and corresponding brightness information of the first image, the pixel value of the pixel point can be adjusted according to the corresponding brightness of the pixel point to obtain a new image with brightness information (i.e., the second image mentioned above). Since the second image has brightness information, a corresponding HDR image can be generated according to the second image.
[0136] HDR display devices can add brightness information to the original SDR image by adjusting the pixel value of the pixel according to the corresponding brightness of the pixel, so that the adjusted image can have a higher dynamic range than the original image. Based on this, the conversion from SDR image to HDR image can be achieved, so that the photos viewed by the user are HDR images.
[0137] For any pixel point in the first image, an adjustment parameter for adjusting the pixel value of the pixel point can be obtained according to the brightness value corresponding to the pixel point, so that matching adjustment of the pixel value of the pixel point can be achieved.
[0138] By limiting the adjustment parameter to be no less than 1 (the specific value of the adjustment parameter depends on the corresponding brightness of the pixel), the adjusted pixel value can be made greater than the original pixel value before adjustment, thereby achieving the effect of increasing the dynamic range.
[0139] For example, for pixels with smaller corresponding brightness values, the adjusted pixel values are slightly increased compared to the original pixel values, which visually manifests as a smaller brightness improvement for the pixel points. For pixels with larger corresponding brightness values, the adjusted pixel values are significantly increased compared to the original pixel values, which visually manifests as a greater brightness improvement for the pixel points. In this way, the brighter areas in the original SDR image become brighter more obviously in the HDR image, and the darker areas in the original SDR image become less bright in the HDR image. Through this process of adaptively increasing the brightness difference between different pixels, the image displayed by the device can be more realistic in visual effect, and the image processing process is simple.
[0140] According to the brightness values corresponding to the pixels in the image captured by the HDR display device, the pixel values of the pixels in the image can be adjusted accordingly, and the adjustment coefficient is not less than 1. Based on this, the purpose of generating a corresponding HDR image (or an image with HDR display effect) according to the original SDR image can be achieved, and the generated HDR image can be closer to the real scene and can provide support for the device to display HDR video.
[0141] In one embodiment of the present application, the adjustment coefficient of any pixel in the first image is obtained according to the normalized value of the brightness value corresponding to the pixel.
[0142] In one embodiment, the brightness value corresponding to any pixel in the first image may be normalized to a value range of 0 to 1. In other embodiments, the brightness value corresponding to any pixel in the first image may be normalized to other feasible value ranges other than 0 to 1.
[0143] In one embodiment of the present application, the adjustment coefficient of any pixel in the first image may be the sum of a normalized value of the brightness value corresponding to the pixel and a set value.
[0144] In one embodiment, the set value may be 1. In other embodiments, the set value may also be other feasible values different from 1.
[0145] In a feasible implementation, the value of the set value can match the value range of the normalization process so that the adjustment coefficient of the pixel point can be within the expected coefficient value range. For example, if the value range of the normalization process is 0 to 1, the value of the set value can be 1, so that the value range of the adjustment coefficient is 1 to 2. The specific value of the adjustment coefficient depends on the size of the brightness value corresponding to the pixel point.
[0146] In one embodiment, if the brightness value corresponding to the pixel point is 0, the corresponding normalized value can be 0 and the adjustment coefficient can be 1; if the brightness value corresponding to the pixel point is 255, the corresponding normalized value can be 1 and the adjustment coefficient can be 2; if the brightness value corresponding to the pixel point is x, 0<x<255, the corresponding normalized value can be x / 255, 0<x / 255<1, and the adjustment coefficient can be x / 255+1, 1<x / 255+1<2.
[0147] When the brightness value corresponding to the pixel point is normalized to the numerical range of 0 to 1, the pixel value of the pixel point is adjusted by taking the sum of the normalized value of the brightness value corresponding to the pixel point and 1 as the adjustment coefficient. This can not only increase the dynamic range, but also achieve matching adjustment of the pixel value of the pixel point. Such processing can make the image displayed by the device more realistic in visual effect.
[0148] In one embodiment, the brightness information corresponding to the first image may be preprocessed to normalize the brightness values corresponding to the pixels in the first image, and then the pixel information of the first image may be adjusted according to the preprocessing result to obtain the pixel information of the second image.
[0149] In a feasible implementation, the adjusted pixel value of the pixel point can be calculated according to the following formula (1).
[0150] I′=I×(Gain+1)×C (1)
[0151] Wherein, I' may represent the pixel value of the pixel in the second image (i.e., the pixel value before the pixel is adjusted), I may represent the pixel value of the pixel in the first image (i.e., the pixel value after the pixel is adjusted), Gain may represent the normalized value of the brightness value corresponding to the pixel in the first image (i.e., the brightness value after preprocessing), Gain = L / Y, L may represent the brightness value corresponding to the pixel in the first image (i.e., the original brightness value), Y is a set value (e.g., Y may be 255), and C is a preset coefficient value. In one embodiment, L may represent the grayscale information corresponding to the image.
[0152] In one embodiment, That is, I may include the RGB value of the pixel before adjustment.
[0153] This adjustment coefficient limitation can make the adjusted pixel values of different pixel points larger than those before adjustment, and the degree of increase corresponds to the original pixel value and corresponding brightness value of the pixel point, so as to ensure the display effect of the generated HDR image, and also make the adjusted pixel value within the expected reasonable range, so as to generate an HDR image.
[0154] In one embodiment of the present application, the step of performing an operation for generating a high dynamic range image according to pixel information of the second image includes: performing electro-optical conversion processing according to the pixel information of the second image to convert the second image into a linear domain to obtain pixel information of the linear domain image; performing color gamut mapping processing according to the pixel information of the linear domain image to map the linear domain image to a target color gamut of a high dynamic range to obtain pixel information of the corresponding target color gamut; performing photoelectric conversion processing according to the pixel information of the corresponding target color gamut to obtain pixel information of the high dynamic range image.
[0155] In order to generate an HDR image based on an SDR image, a second image can be first obtained based on the first image. The second image is a new image with brightness information obtained based on the original SDR image. For the implementation process of generating the second image, please refer to the records of other embodiments of the present application.
[0156] After obtaining the second image, the second image can be converted to a linear domain to obtain a linear domain image. By converting the second image to a linear domain, an EOTF curve can be obtained. Among them, EOTF (Electro-Optical Transfer Function) can be a rule for converting an electrical signal into an optical signal.
[0157] In one embodiment, the second image can be converted into a linear domain according to the following formula (2) to obtain pixel information of the linear domain image.
[0158] I″= (I′ / 255) gama (2)
[0159] Wherein, I″ may represent the pixel value of a pixel in the linear domain image, I′ may represent the pixel value of a pixel in the second image, and gama is a set value (for example, 2.2, 2.4, etc.).
[0160] After obtaining the linear domain image, 3) gamut mapping can be performed on the linear domain image to map the SDR image to the color gamut corresponding to the HDR image.
[0161] In one embodiment, the color gamut corresponding to the SDR image may be sRGB or Rec.709. sRGB (standard Red Green Blue) is a color language protocol and a universal color standard. The Rec.709 color standard may be an international standard for high-definition television.
[0162] In one embodiment, taking HDR10 as an example, the color gamut corresponding to the HDR image may be BT.2020.
[0163] In one embodiment, taking the case where the color gamut corresponding to the SDR image is Rec.709, the pixel information of the SDR image is RGB information, and needs to be mapped to BT.2020 as an example, the color gamut mapping process can be implemented by the following formula (3) to obtain the pixel information corresponding to the BT.2020 color gamut.
[0164]
[0165] In formula (3), 2020 can represent the BT.2020 color gamut corresponding to HDR, and the pixel value corresponding to 2020 (E R 、E G 、E B ) can represent the pixel value of the pixel in the BT.2020 color space, 709 can represent the Rec.709 color space corresponding to SDR, and the pixel value corresponding to 709 (E R 、E G 、E B) can represent the pixel value of a pixel in the Rec.709 color space.
[0166] After completing the color gamut mapping to map the linear domain image from the color gamut corresponding to SDR to the color gamut corresponding to HDR, the obtained pixel information can be subjected to photoelectric conversion processing to obtain the pixel information of the HDR image.
[0167] In one embodiment, taking the PQ transfer function as an example, a photoelectric conversion process can be performed according to the following formula (4) to obtain pixel information of the HDR image. By performing the photoelectric conversion process, an OETF curve can be obtained. Among them, OETF (Optical-Electro Transfer Function) can be a rule for converting an optical signal into an electrical signal.
[0168]
[0169] Among them, PQ_OETF (E) can represent the pixel value of the pixel point of the HDR image obtained after the photoelectric conversion process, and the independent variable E can represent the pixel value of the pixel point in the pixel information corresponding to the target color gamut, for example, it can be the calculation result of the above formula (3), and c1, c2, c3, m1, and m2 are all set values.
[0170] Where, m1 = (2610 / 4096) × (1 / 4) = 0.1593017578125;
[0171] m2=(2523 / 4096)×128=78.84375;
[0172] c1=c3-c2+1=3424 / 496=0.8359375;
[0173] c2=2413 / 4096×32=18.8515625;
[0174] c3=2392 / 4096×32=18.6875.
[0175] As can be seen from the above, after adjusting the pixel value according to the corresponding brightness value of the pixel point, electro-optical conversion processing, color gamut mapping processing and photoelectric conversion processing can be performed in sequence to generate an HDR image. The generated HDR image can be used as an HDR video frame of the HDR video.
[0176] In one embodiment, when the pixel information and the corresponding brightness information of the first image are encoded by setting rules to generate an HDR image, the brightness information corresponding to the HDR image can also be added as metadata to the metadata of the HDR image, so that when the corresponding HDR video is subsequently played, the tone mapping curve can be dynamically adjusted according to the metadata.
[0177] In one embodiment of the present application, the high dynamic range video acquisition method also includes: generating target brightness information based on pixel information of the first image and at least one of the brightness information corresponding to the first image, the target brightness information including at least one of the minimum brightness, maximum brightness and average brightness corresponding to the first image; adding the target brightness information to the metadata of the first photo.
[0178] In one embodiment, the target brightness information may be generated according to the pixel information of the first image. In a feasible implementation, the brightness value of the pixel in the first image may be converted according to the RGB value of the pixel in the first image, and the target brightness information may be calculated accordingly.
[0179] In another embodiment, the target brightness information may be generated according to the brightness information corresponding to the first image. In a feasible implementation, the target brightness information may be calculated according to the brightness values corresponding to the pixels in the first image.
[0180] If the target brightness information is calculated based on the brightness values corresponding to the pixels in the first image, then in one embodiment, the minimum brightness corresponding to the first image can be the minimum value among the brightness values corresponding to all the pixels in the first image; the maximum brightness corresponding to the first image can be the maximum value among the brightness values corresponding to all the pixels in the first image; and the average brightness corresponding to the first image can be the average value of the brightness values corresponding to all the pixels in the first image.
[0181] The target brightness information generated according to the pixel information / corresponding brightness information of the SDR image can be used as metadata of the generated HDR image, so that when the corresponding HDR video is played subsequently, the tone mapping curve can be dynamically adjusted as needed to improve the HDR video playback effect.
[0182] In one embodiment of the present application, after adding the target brightness information to the metadata of the first photo, the high dynamic range video acquisition method also includes: when multiple target photos include the first photo, adjusting the tone mapping curve according to the target brightness information in the metadata of the first photo; performing tone mapping processing on the first high dynamic range video according to the adjusted tone mapping curve to obtain a processed high dynamic range video; and playing the processed high dynamic range video.
[0183] In one embodiment, the HDR10 Tone Mapping method may be used to perform tone mapping processing on the HDR video.
[0184] In one embodiment, when playing an HDR video, the tone mapping curve may be dynamically adjusted accordingly according to target brightness information in the metadata of each HDR image frame in the HDR video.
[0185] In another embodiment, the HDR images in the HDR video may be grouped, and a group of HDR images may include multiple frames of HDR images. When playing the HDR video, the tone mapping curve may be dynamically adjusted according to the target brightness information in the metadata of each group of HDR images in the HDR video.
[0186] When playing HDR video, the tone mapping curve can be dynamically adjusted according to the metadata of the target brightness information of the HDR image in the HDR video, which can improve the tone mapping adjustment effect and thus improve the HDR video playback effect.
[0187] In one embodiment of the present application, after step 202, the high dynamic range video acquisition method further includes: performing tone mapping processing on the first high dynamic range video according to the brightness of the HDR display device to obtain a processed high dynamic range video; and playing the processed high dynamic range video.
[0188] Scenario 1
[0189] When taking photos, a mobile phone with HDR display function captures SDR images under multiple exposure conditions in the same scene, then fuses the captured multiple SDR images into a single SDR image, and performs local tone mapping on the single SDR image to obtain pixel information of the single SDR image. The mobile phone obtains brightness information corresponding to the single SDR image according to multiple exposure conditions among the multiple exposure conditions, then encodes the pixel information of the single SDR image and the brightness information corresponding to the first image through an encoder, and stores the encoded file as the image file of the single SDR image.
[0190] When the image file of the single SDR image is triggered, the mobile phone decodes the pixel information and its corresponding brightness information according to the image file of the single SDR image, and then calculates the pixel information of the new image with brightness information based on this information and in combination with the above formula (1).
[0191] Afterwards, the mobile phone performs electro-optical conversion processing according to the pixel information of the new image to convert the second image to the linear domain to obtain pixel information of the linear domain image, and then performs color gamut mapping processing according to the pixel information of the linear domain image to map the linear domain image to the BT.2020 color gamut of HDR, and then performs photoelectric conversion processing according to the pixel information corresponding to the BT.2020 color gamut to obtain pixel information of the HDR image to obtain an HDR photo.
[0192] The mobile phone generates target brightness information based on the brightness information corresponding to the single SDR image, and adds it as metadata to the metadata of the corresponding HDR photo. The target brightness information includes the minimum brightness, maximum brightness, and average brightness corresponding to the single SDR image.
[0193] When users need to generate videos based on photos, they can open the camera app of their phone, select multiple HDR photos in the phone album, and then click the control with the "One-click Blockbuster" function in the camera app to trigger the control. When the control is triggered, the phone obtains the multiple HDR photos selected by the user and generates an HDR video based on the multiple HDR photos.
[0194] When the mobile phone plays an HDR video, the tone mapping curve is adjusted according to the target brightness information in the metadata of the HDR image in the HDR video, and the HDR video is tone mapped according to the adjusted tone mapping curve, and the processed HDR video is played.
[0195] Scenario 2
[0196] When taking photos, mobile phones with HDR display function generate HDR photos and their metadata. In addition, when generating HDR photos, the mobile phone also records the shooting time and location of the HDR photos. For the process of generating HDR photos and their metadata for mobile phones with HDR display function, please refer to the relevant instructions in the above scenario 1.
[0197] When the phone detects that the phone is in the screen-off charging state and the current available power is not less than 50% of the total power, it determines whether there are HDR photos taken recently at the same location in the phone. If so, it selects multiple HDR photos from them and triggers the control with the "Highlight Moments" function in the phone's camera application. When the control is triggered, the phone generates an HDR video based on the selected multiple HDR photos.
[0198] After the mobile phone generates the HDR video, it displays a reminder message through a drop-down menu to remind the user that the generated HDR video can be viewed on demand. If the user issues a command to confirm the video playback in response to the reminder message, the mobile phone plays the generated HDR video according to the command.
[0199] When the mobile phone plays an HDR video, the tone mapping curve is adjusted according to the target brightness information in the metadata of the HDR image in the HDR video, and the HDR video is tone mapped according to the adjusted tone mapping curve, and the processed HDR video is played.
[0200] Please refer to Figure 5 In one embodiment of the present application, a high dynamic range (HDR) video display method is provided. The method is applied to an HDR display device. The method may include the following steps 501 to 515. By executing Figure 5 The method shown can convert SDR images into HDR videos and display them on HDR display devices. It can be applied to scenarios where images are generated into videos, and can improve video display effects.
[0201] Step 501 : capturing images under multiple exposure conditions in the same scene.
[0202] Step 502, merging the captured multiple images into one image, and performing tone mapping in a set manner on the fused image to obtain pixel information of a first image, where the pixel information of the first image includes pixel values of pixel points in the first image.
[0203] In step 502, pixel information of a single image created from two or more exposure maps may be obtained.
[0204] Step 503: Acquire brightness information corresponding to the first image according to one or more exposure conditions among the multiple exposure conditions. The brightness information corresponding to the first image includes brightness values corresponding to pixels in the first image.
[0205] In one implementation, pixel brightness information corresponding to each or every several pixels in the first image may be acquired based on at least one exposure condition among two or more exposure conditions.
[0206] Step 504: Encode the pixel information of the first image and the brightness information corresponding to the first image through an encoder, and store the encoded file as an image file of the first image.
[0207] In one implementation, pixel brightness information corresponding to each or every several pixels in the first image may be encoded into the first image according to certain rules.
[0208] Step 505 , when the image file of the first image is triggered, pixel information of the first image and brightness information corresponding to the first image can be decoded according to the image file of the first image.
[0209] Step 506, processing the pixel information of the first image according to the first information to obtain the pixel information of the second image, wherein the first information includes the adjustment coefficient of the pixel points in the first image, and the adjustment coefficient of any pixel point in the first image is the sum of the normalized value of the brightness value corresponding to the pixel point and 1.
[0210] Step 507: Perform electro-optical conversion processing according to the pixel information of the second image to convert the second image into a linear domain to obtain pixel information of a linear domain image.
[0211] Step 508 : performing color gamut mapping processing according to the pixel information of the linear domain image to map the linear domain image to a target color gamut of a high dynamic range, and obtaining pixel information corresponding to the target color gamut.
[0212] Step 509 , performing photoelectric conversion processing according to the pixel information corresponding to the target color gamut to obtain pixel information of a high dynamic range image, so as to obtain a first photo.
[0213] Step 510: Generate target brightness information according to the brightness information corresponding to the first image. The target brightness information includes the minimum brightness, maximum brightness and average brightness corresponding to the first image.
[0214] Step 511: Add the generated target brightness information to the metadata of the first photo.
[0215] When converting an SDR image to an HDR image, the pixel information and corresponding brightness information of the SDR image can be encoded according to certain rules (such as HDR10, etc.), and metadata can be optionally added to generate an HDR image. The generated HDR image can be stored as a photo in the album application of the electronic device.
[0216] Step 512, when the first control of the electronic device is triggered, a plurality of target photos in the electronic device are obtained, and a first high dynamic range video is obtained according to the plurality of target photos.
[0217] Step 513: When the plurality of target photos include the first photo, the tone mapping curve is adjusted according to the target brightness information in the metadata of the first photo.
[0218] Step 514 , performing tone mapping processing on the first high dynamic range video according to the adjusted tone mapping curve to obtain a processed high dynamic range video.
[0219] When playing an HDR video, the tone mapping curve may be dynamically adjusted according to target brightness information in metadata of an HDR image in the HDR video.
[0220] DD230714I01
[0221] Step 515: play the processed high dynamic range video.
[0222] Figure 5 In the illustrated embodiment, the HDR display device may first obtain a single SDR image created by two or more exposure images to obtain pixel information of the single SDR image, and may obtain pixel brightness information corresponding to each or several pixels in the single SDR image according to the exposure conditions of the image capture scene, and then encode the pixel brightness information corresponding to each pixel in the single SDR image into the image according to certain rules to obtain an SDR image file with brightness information.
[0223] When converting an SDR image with brightness information into an HDR image, the pixel information and brightness information in the image file can be encoded according to certain rules (such as HDR10, etc.) to obtain an HDR image. In addition, the target brightness information can be optionally added to the metadata of the HDR image.
[0224] When the first control in the HDR display device is triggered, multiple HDR images used to generate HDR video in the HDR display device are obtained, and the HDR video is generated accordingly. When playing the HDR video, the tone mapping curve is dynamically adjusted according to the metadata of the target brightness information of the HDR image in the HDR video, and the HDR video is displayed based on the adjusted tone mapping curve, so as to improve the video playback effect.
[0225] An embodiment of the present application also provides a high dynamic range video acquisition device, which is applied to an electronic device with a high dynamic range display function, and the device includes: a first acquisition module, which is used to acquire multiple target photos in the electronic device when a first control of the electronic device is triggered, wherein the target photo is a high dynamic range image obtained based on pixel information of an image taken by an image acquisition device and brightness information corresponding to the taken image; a second acquisition module, which is used to acquire a first high dynamic range video based on the multiple target photos.
[0226] An embodiment of the present application also provides an electronic chip, which task processing chip is installed in an electronic device (UE), and the electronic chip includes: a processor, which is used to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute the method steps provided by any method embodiment of the present application.
[0227] An embodiment of the present application also proposes a terminal device, which includes a communication module, a memory for storing computer program instructions, and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the terminal device is triggered to execute the method steps provided by any method embodiment of the present application.
[0228] An embodiment of the present application also proposes a server device, which includes a communication module, a memory for storing computer program instructions, and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the server device is triggered to execute the method steps provided by any method embodiment of the present application.
[0229] An embodiment of the present application also provides an electronic device, which includes multiple antennas, a memory for storing computer program instructions, a processor for executing computer program instructions, and a communication device (such as a communication module that can implement 5G communication based on the NR protocol), wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method steps provided by any method embodiment of the present application.
[0230] Specifically, in one embodiment of the present application, one or more computer programs are stored in the above-mentioned memory, and the one or more computer programs include instructions. When the instructions are executed by the above-mentioned device, the above-mentioned device executes the method steps described in the embodiment of the present application.
[0231] Furthermore, the devices, apparatuses, and modules described in the embodiments of the present application may be implemented by computer chips or entities, or by products having certain functions.
[0232] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0233] In the several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
[0234] Specifically, in one embodiment of the present application, a computer-readable storage medium is further provided, in which a computer program is stored. When the computer program is run on a computer, the computer executes the method steps provided in the embodiment of the present application.
[0235] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is run on a computer, the computer executes the method steps provided in the embodiment of the present application.
[0236] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0237] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0238] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0239] The integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory, random access memory, disk or optical disk and other media that can store program code.
[0240] In the embodiments of the present application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.
[0241] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0242] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments of the present application can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0243] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the same or similar parts between the various embodiments in this application can be referred to each other. For example, the specific working process of the system, device and unit described in the embodiments of this application can refer to the corresponding process in the method embodiment of this application, and will not be repeated here.
[0244] The above description is only a specific embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A high dynamic range video acquisition method, characterized in that: Applied to an electronic device with a high dynamic range display function, the method comprises: When the first control of the electronic device is triggered, a plurality of target photos in the electronic device are acquired, wherein the target photos are high dynamic range images obtained according to pixel information of an image captured by an image acquisition device and brightness information corresponding to the captured image; A first high dynamic range video is acquired according to the multiple target photos.
2. The method according to claim 1, characterized in that The method further comprises: Acquire pixel information of a first image, wherein the first image is any image captured by the electronic device, and the pixel information of the first image includes pixel values of pixel points in the first image; Acquire brightness information corresponding to the first image, wherein the brightness information corresponding to the first image includes brightness values corresponding to pixels in the first image; Processing pixel information of the first image according to first information to obtain pixel information of the second image, wherein the first information includes adjustment coefficients of pixels in the first image, and the adjustment coefficient of any pixel in the first image is obtained according to a brightness value corresponding to the pixel and is not less than 1; An operation for generating a high dynamic range image is performed according to the pixel information of the second image to obtain a first photo.
3. The method according to claim 2, characterized in that The adjustment coefficient of any pixel in the first image is obtained according to the normalized value of the brightness value corresponding to the pixel.
4. The method according to claim 2, characterized in that The performing an operation for generating a high dynamic range image according to pixel information of the second image comprises: Performing electro-optical conversion processing according to the pixel information of the second image to convert the second image into a linear domain to obtain pixel information of a linear domain image; Performing color gamut mapping processing according to pixel information of the linear domain image to map the linear domain image to a target color gamut of a high dynamic range, and obtaining pixel information corresponding to the target color gamut; Photoelectric conversion processing is performed according to the pixel information corresponding to the target color range to obtain pixel information of a high dynamic range image.
5. The method according to claim 2, characterized in that: The method further comprises: Generate target brightness information according to at least one of pixel information of the first image and brightness information corresponding to the first image, wherein the target brightness information includes at least one of minimum brightness, maximum brightness, and average brightness corresponding to the first image; The target brightness information is added to metadata of the first photo.
6. The method according to claim 5, characterized in that After adding the target brightness information to the metadata of the first photo, the method further includes: In a case where the plurality of target photos include the first photo, adjusting the tone mapping curve according to the target brightness information in the metadata of the first photo; Performing tone mapping processing on the first high dynamic range video according to the adjusted tone mapping curve to obtain a processed high dynamic range video; The processed high dynamic range video is played.
7. A high dynamic range video acquisition device, characterized in that: Applicable to electronic equipment with high dynamic range display function, the device comprises: A first acquisition module, configured to acquire a plurality of target photos in the electronic device when a first control of the electronic device is triggered, wherein the target photos are high dynamic range images obtained according to pixel information of an image taken by the electronic device and brightness information corresponding to the image taken; The second acquisition module is used to acquire a first high dynamic range video according to the multiple target photos.
8. An electronic chip, characterized in that: include: A processor, configured to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute the method according to any one of claims 1 to 6.
9. An electronic device, characterized in that: The electronic device comprises a memory for storing computer program instructions, a processor for executing the computer program instructions, and a communication device, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 6.
Citation Information
Cited By
Method and device for displaying high dynamic range data, equipment, medium and module
CN121459752A
