Video effect enhancement method, device, mobile terminal and storage medium

Through ambient light sensing and target detection, it automatically adjusts the contrast in video calls, solving video effect problems caused by low brightness and backlight shooting, and improving the user experience of video calls.

CN114422767BActive Publication Date: 2024-09-10GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210112098.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-29
Publication Date
2024-09-10
Estimated Expiration
2042-01-29

AI Technical Summary

Technical Problem

In a low-brightness environment, due to the low brightness of the picture during a mobile video call, the face of the subject of the call is unclear. Backlight shooting results in a significant reduction in facial contrast and loss of facial details, which affects the user experience.

Method used

By sensing ambient light and target detection, it automatically distinguishes shooting scenes, matches and executes corresponding contrast adjustment strategies, and improves video effects.

Benefits of technology

It significantly improves the user experience during video calls, avoids dimming caused by dark ambient light or backlight shooting, and ensures that the target object is clearly visible during the call.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114422767B
    Figure CN114422767B
Patent Text Reader

Abstract

The embodiments of the present disclosure provide a method, device, mobile terminal and storage medium for enhancing video effects. The method includes: determining the current shooting scene type according to ambient light information and the shot picture; determining the corresponding adjustment strategy according to the determined shooting scene type; adjusting the contrast of the target object area in the shot picture according to the determined adjustment strategy; wherein the shooting scene type includes at least one of the following scene types: a shooting scene of the first ambient light type and containing the target object, and a shooting scene of the second ambient light type and containing the target object. The video effect enhancement scheme provided by the embodiments of the present disclosure senses ambient light and target object detection to distinguish the shooting scenes, automatically matches and executes the corresponding contrast adjustment scheme, and effectively improves the video effect in the corresponding scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to but is not limited to the field of video communication, and in particular to a video effect enhancement method, device, mobile terminal and storage medium. Background Art

[0002] With the advancement of communication and video coding technology, video calls have become one of the main communication methods in people's lives. They are used on platforms such as mobile phones, tablets, and PCs, especially mobile platforms. Video calls are more widely used. However, due to the limited shooting capabilities of mobile phones, in low-light environments, the faces of the call subjects are often unclear due to low picture brightness, or the face contrast is greatly reduced due to backlighting, resulting in loss of darker facial details. Therefore, for video call scenarios, it is necessary to provide an ambient light-aware video effect optimization and enhancement solution that can effectively improve the user experience when applied to real-time video capture and transmission systems. Summary of the invention

[0003] The embodiments of the present disclosure provide a method, device, mobile terminal and storage medium for enhancing video effects, which can distinguish shooting scenes by sensing ambient light and detecting targets, and automatically match and execute corresponding contrast adjustment schemes to improve the video effects in corresponding scenes.

[0004] The present disclosure provides a method for enhancing video effects, including:

[0005] Determine the current shooting scene type based on ambient light information and the shooting picture;

[0006] Determine a corresponding adjustment strategy according to the determined shooting scene type;

[0007] Adjusting the contrast of the target object area in the captured image according to the determined adjustment strategy;

[0008] The shooting scene type includes at least one of the following scene types: a shooting scene of a first ambient light type and containing a target object, and a shooting scene of a second ambient light type and containing a target object.

[0009] The present disclosure also provides a video effect enhancement device, including:

[0010] A scene determination module, configured to determine the current shooting scene type according to ambient light information and the shooting picture;

[0011] An effect enhancement module is configured to determine a corresponding adjustment strategy according to the determined shooting scene type; and to adjust the contrast of the target object area in the shooting picture according to the determined adjustment strategy;

[0012] The shooting scene type includes at least one of the following scene types: a shooting scene of a first ambient light type and containing a target object, and a shooting scene of a second ambient light type and containing a target object.

[0013] The present disclosure also provides a mobile terminal, including a communication chip, wherein the communication chip is configured to execute:

[0014] Determine the current shooting scene type based on ambient light information and the shooting picture;

[0015] Determine a corresponding adjustment strategy according to the determined shooting scene type;

[0016] Adjusting the contrast of the target object area in the captured image according to the determined adjustment strategy;

[0017] The shooting scene type includes at least one of the following scene types: a shooting scene of a first ambient light type and including a target object, and a shooting scene of a second ambient light type and including a target object.

[0018] The embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the video effect enhancement method as described in any embodiment of the present disclosure is implemented.

[0019] Other aspects will be apparent upon reading and understanding the drawings and detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0021] Figure 1 This is a flow chart of a method for enhancing video effects in an embodiment of the present disclosure;

[0022] Figure 2 This is a schematic diagram of an LTM curve in an embodiment of the present disclosure;

[0023] Figure 3 This is a flow chart of another method for enhancing video effects in an embodiment of the present disclosure;

[0024] Figure 4 The figure is a schematic diagram of the structure of a video effect enhancement device in an embodiment of the present disclosure.

[0025] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0028] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0029] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0030] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0031] The present disclosure provides a method for enhancing video effects. Figure 1 As shown, including:

[0032] Step 110, determining the current shooting scene type according to the ambient light information and the shooting picture;

[0033] Step 120, determining a corresponding adjustment strategy according to the determined shooting scene type;

[0034] Step 130, adjusting the contrast of the target object area in the captured image according to the determined adjustment strategy;

[0035] The shooting scene type includes at least one of the following scene types: a shooting scene of a first ambient light type and containing a target object, and a shooting scene of a second ambient light type and containing a target object.

[0036] In some exemplary embodiments, the method is applied to a real-time video capture and transmission system.

[0037] In some exemplary embodiments, step 110 includes:

[0038] According to the ambient light information, determine the ambient light intensity of the current shooting scene;

[0039] Determine the location attribute of the current shooting scene according to the shooting picture or the positioning device;

[0040] Determine the ambient light type corresponding to the current shooting scene according to the determined ambient light intensity and position attributes;

[0041] According to the set target object, image detection is performed in the current shooting picture to determine whether the shooting picture contains the set target object.

[0042] In some exemplary embodiments, the location attribute includes: indoors or outdoors.

[0043] In some exemplary embodiments, the ambient light information is collected by a light sensor; the type of the light sensor is not limited to a specific type.

[0044] In some exemplary embodiments, the positioning device is not limited to a specific type, and may be a GPS positioning device, a WIFI positioning device, a comprehensive positioning device, or other positioning devices, for determining whether the current shooting is performed outdoors or indoors.

[0045] In some exemplary embodiments, the location attributes of the current shooting scene are determined based on the shooting picture. An AI intelligent recognition solution can be used to determine whether the current shooting is conducted outdoors or indoors based on the video picture. The specific details of the solution are not discussed in detail in this application solution.

[0046] In some exemplary embodiments, the ambient light types include: a first ambient light type, a second ambient light type and a third ambient light type, also referred to as: a low brightness type, a high brightness type and a normal brightness type.

[0047] It can be understood that based on the determined ambient light type and the detection result of whether the set target object is included, it can be determined whether the current shooting scene belongs to the first ambient light type and contains the target object; or, whether it belongs to the second ambient light type and contains the target object; or, belongs to other shooting scenes.

[0048] It should be noted that the ambient light intensity ranges corresponding to different ambient light types are related to the location attributes of the shooting environment. When in different locations, the ambient light intensity ranges corresponding to the same ambient light type can be the same or different and can be set independently.

[0049] In some exemplary embodiments, when the ambient light intensity is within the first ambient light intensity range and the location attribute is indoors, the corresponding ambient light type is determined to be the first ambient light type, also known as the low brightness type. For example, if the first ambient light intensity range is greater than or equal to 1 (Lux / lx, lux) and less than or equal to 10 Lux / lx, then indoors, when the ambient light intensity is within the first ambient light intensity range, it is determined to be the first ambient light type.

[0050] In some exemplary embodiments, when the ambient light intensity is within the second ambient light intensity range and the location attribute is indoors, the corresponding ambient light type is determined to be the second ambient light type, also known as the high brightness type. For example, if the second ambient light intensity range is greater than or equal to 300 Lux / lx and less than or equal to 1000 Lux / lx, then indoors, when the ambient light intensity is within the second ambient light intensity range, it is determined to be the second ambient light type.

[0051] In some exemplary embodiments, when the ambient light intensity is within the third ambient light intensity range and the location attribute is indoors, the corresponding ambient light type is determined to be the third ambient light type, also known as the normal brightness type. For example, the third ambient light intensity range is greater than 10 Lux / lx and less than 300 Lux / lx, then indoors, when the ambient light intensity is within the third ambient light intensity range, it is determined to be the third ambient light type.

[0052] In some exemplary embodiments, when the ambient light intensity is within the fourth ambient light intensity range and the location attribute is outdoor, the corresponding ambient light type is determined to be the first ambient light type, also known as the low brightness type. For example, the fourth ambient light intensity range is greater than or equal to 1 (Lux / lx, lux) and less than or equal to 10 Lux / lx, then outdoors, when the ambient light intensity is within the fourth ambient light intensity range, it is determined to be the first ambient light type.

[0053] In some exemplary embodiments, when the ambient light intensity is within the fifth ambient light intensity range and the location attribute is outdoor, the corresponding ambient light type is determined to be the second ambient light type, also known as the high brightness type. For example, if the fifth ambient light intensity range is greater than 1000 Lux / lx, then outdoors, when the ambient light intensity is within the fifth ambient light intensity range, it is determined to be the second ambient light type.

[0054] In some exemplary embodiments, when the ambient light intensity is within the sixth ambient light intensity range and the location attribute is outdoor, the corresponding ambient light type is determined to be the third ambient light type, also known as the normal brightness type. For example, the sixth ambient light intensity range is greater than 10 Lux / lx and less than 300 Lux / lx, then when the ambient light intensity is within the sixth ambient light intensity range outdoors, it is determined to be the third ambient light type.

[0055] Among them, when the position attributes are the same, the value of the ambient light intensity corresponding to the first ambient light type is smaller than the value of the ambient light intensity corresponding to the third ambient light type, which is smaller than the value of the ambient light intensity corresponding to the second ambient light type.

[0056] It can be seen that according to the above example, when the second ambient light type is determined, the ambient light intensity ranges based on indoor and outdoor are different. When the first ambient light type is determined, the ambient light intensity ranges based on indoor and outdoor are the same. Those skilled in the art can determine the correspondence between the ambient light intensity range and the position attribute and the ambient light type as needed, and are not limited to the aspects illustrated in the embodiments of the present disclosure.

[0057] It should be noted that the ambient light intensity is also called ambient light illumination. Compared with the ambient light intensity corresponding to the first ambient light type, the ambient light intensity corresponding to the second ambient light type is greater, belonging to a high-brightness ambient scene. In the second ambient light type, if a target object is detected in the shooting picture, it is determined that the shooting of the target object is backlit shooting. Therefore, the shooting scene type of the second ambient light type and containing the target object is also called a backlit shooting scene.

[0058] For example, the ambient light types determined in some application scenarios are shown in the following table:

[0059]

[0060] It should be noted that the division of the ambient light intensity range is not limited to the above-mentioned examples, as long as the size relationship between the ambient light intensity ranges of the first ambient light type, the second ambient light type, and the third ambient light type under the same location attribute is satisfied. More examples are not listed here one by one, and those skilled in the art can know other specific examples based on the above description.

[0061] In some exemplary embodiments, step 120 includes:

[0062] In the case where the shooting scene type is a first ambient light type and includes a shooting scene of a target object, the determined adjustment strategy is a first local tone mapping LTM curve;

[0063] In the case where the shooting scene type is a second ambient light type and includes a shooting scene of a target object, the determined adjustment strategy is a second local tone mapping LTM curve;

[0064] The curvature of the first local tone mapping LTM curve is different from the curvature of the second local tone mapping LTM curve.

[0065] In some exemplary embodiments, a curvature of the first local tone mapping curve in a range smaller than a first brightness value is smaller than a curvature of the second local tone mapping curve in a range smaller than the first brightness value.

[0066] In some exemplary embodiments, the first brightness value is a smaller value within the measurable brightness range. For example, the measurable brightness range is 0-255, and the first brightness value is set to 100, then the curvature of the first local tone mapping curve within the interval less than 100 is less than the curvature of the second local tone mapping curve within the interval less than 100.

[0067] It can be understood that the adjustment strategy determined in step 120 is the first local tone mapping curve, corresponding to step 130, the contrast of the target object area in the captured image is adjusted according to the first local tone mapping curve. The adjustment strategy determined in step 120 is the second local tone mapping curve, corresponding to step 130, the contrast of the target object area in the captured image is adjusted according to the second local tone mapping curve.

[0068] In some exemplary embodiments, step 130 includes:

[0069] Adjusting the brightness of the captured image;

[0070] The contrast of the target object area in the captured image after the brightness adjustment is adjusted according to the corresponding first local tone mapping curve or the second local tone mapping curve.

[0071] In some exemplary embodiments, step 130 includes: when the shooting scene type is a first ambient light type and contains a shooting scene of a target object, improving the brightness of the shooting picture;

[0072] The contrast of the target object area in the captured image after the brightness is enhanced is adjusted according to the first local tone mapping LTM curve.

[0073] It can be understood that when the shooting scene type is the first ambient light type, since the overall ambient light intensity is relatively small, the brightness of the overall shooting picture is first increased, and then the contrast is adjusted for the target object area.

[0074] In some exemplary embodiments, step 130 includes: when the shooting scene type is a second ambient light type and contains a shooting scene of a target object, reducing the brightness of the shooting picture;

[0075] The contrast of the target object area in the captured image after the brightness is reduced is adjusted according to the second local tone mapping LTM curve.

[0076] It can be understood that when the shooting scene type is the second ambient light type, since the overall ambient light intensity is relatively large, the brightness of the overall shooting picture is first reduced, and then the contrast is adjusted for the target object area.

[0077] In some exemplary embodiments, when determining the shooting scene type in step 120, target detection is performed to obtain a detection result. The detection result includes: whether the target is included; if the target is included, the detection result also includes: the target area. The target area will be used to adjust the contrast of the target area in step 130.

[0078] In some exemplary embodiments, contrast adjustment is performed in step 130, and the LTM (Local Tone Mapping) technical solution is adopted. Two contrast adjustment curves with different strengths are used for two different shooting scenes. The setting process of the curve refers to the tone mapping of HDR (High-Dynamic Range) video, and the brightness component Y of the video is processed. In some exemplary embodiments, in order to avoid introducing too much calculation to affect the flow of video calls, a contrast mapping LUT (Look-up-Table) is established according to the curve. The actual situation of the curve is as follows: Figure 2 .

[0079] like Figure 2In the LTM curve shown, the contrast adjustment range is concentrated in the target area, and abnormal shooting conditions will cause the target area to be darkened and some details to be lost. Therefore, whether it is a low brightness range (first ambient light type) or a high brightness range (second ambient light type) of backlit shooting, the Y (brightness) component of the target area must be increased. However, in the backlit shooting environment, the brightness of the target area is significantly lower than the intensity of the ambient light. Therefore, for the mapping curve of the high brightness range, the brightness increase intensity is greater. For the low brightness range, since the overall brightness is increased, it is avoided to introduce excessive brightness changes to cause excessive brightness adjustment. Therefore, the first LTM curve is set close to the reference curve, and its curvature in the interval less than the first brightness value (100) is less than the curvature of the second LTM curve in the interval less than the first brightness value (100). However, both curves will increase the brightness of the face area and optimize the contrast, and ultimately achieve clarity improvement in the target area.

[0080] In some exemplary embodiments, the brightness of the captured image is improved according to the following method:

[0081]

[0082] Among them, L a is the brightness of the photographed image after adjustment, L b is the brightness of the captured image before adjustment, AL normal is the standard ambient light intensity, AL l is the current ambient light intensity, L max is the maximum value of the brightness component, and α and β represent the brightness adjustment factors.

[0083] In some exemplary embodiments, the current ambient light intensity AL l The data is collected using the light sensor on the terminal device.

[0084] In some exemplary embodiments, taking the screen brightness of a common mobile terminal as a reference, AL normal For 100 Lux / lx, set α and β to 0.23 and 5 respectively. max It represents the maximum value of the video brightness component (8-bit video value is 255) to ensure that the brightness adjustment does not exceed the maximum brightness.

[0085] In some exemplary embodiments, when the video data corresponding to the captured image is a key frame, the current captured scene type is determined according to the ambient light information and the current key frame;

[0086] In the case that the video data corresponding to the captured image is a non-key frame, the current shooting scene type is determined according to the ambient light information and a previous key frame that is closest to the current non-key frame.

[0087] It can be seen that in real-time video capture and transmission applications (such as video calls, live video broadcasts), in order to ensure that target detection does not introduce too much video communication delay, some exemplary embodiments only detect key frames (i.e., I frames) in the video data to determine the approximate area where the target is located, thereby avoiding detecting every frame and introducing too much calculation.

[0088] In some exemplary embodiments, the set target object is a human face;

[0089] The performing image detection in the current shooting picture according to the set target object to determine whether the shooting picture contains the set target object includes:

[0090] The PyramidBox-Lite network model is used to perform face detection to determine whether the captured image contains a face.

[0091] It can be seen that in some exemplary embodiments, artificial intelligence AI technology is used to implement face detection, and a lightweight model based on a SSD (Single Shot MultiBox Detector) network is selected for face detection. Alternatively, those skilled in the art may also use other face detection schemes to detect faces in the captured image and determine the face area.

[0092] In some exemplary embodiments, the method further comprises:

[0093] When the determined shooting scene type is neither a shooting scene of the first ambient light type and containing a target object, nor a shooting scene of the second ambient light type and containing a target object, the subsequent enhancement step is not performed, and the original shooting effect is maintained for video data transmission.

[0094] In some exemplary embodiments, the set target object is an object, such as an exhibit, a commodity to be sold, a building, a landscape, etc. Depending on the set target object, a detection scheme is selected accordingly. How to implement the target object detection specifically is not further discussed in this application.

[0095] In some exemplary embodiments, the video effect enhancement method can be used in various specific application scenarios such as video calls, video conferences, and live video broadcasts; they are not listed one by one here.

[0096] It can be seen that the disclosed embodiment applies the video effect enhancement solution to the real-time video shooting and transmission process based on the ambient light perception capability of the existing light sensor on the terminal device, thereby improving the adaptability of the video effect to the changes in ambient light during the communication process; especially for the communication subject, the target object detection technology is introduced to adjust the video effect in a targeted manner, avoiding the dim phenomenon caused by the dark ambient light or backlight shooting in the target area.

[0097] In some exemplary implementations, by classifying the ambient light during the current video transmission process to form a normal brightness range and two abnormal brightness ranges, when the call environment is in dark light conditions, the overall brightness of the video content is improved and the contrast of the target object area is slightly optimized. When the call environment is in backlight (strong light) conditions, the contrast adjustment of the target object area is strengthened, thereby ensuring that the target object is clearly visible during the call, and significantly improving the user experience of the real-time video capture and transmission system.

[0098] The video effect enhancement solution provided by the implementation of the present disclosure can be widely used in application fields such as video calls, video conferencing, and video live broadcasts. It can automatically adapt to various mobile and changeable shooting scenes, avoid the inconvenience and cost increase caused by the need to introduce fill light equipment, and greatly improve the video transmission effect.

[0099] The disclosed embodiment also provides a method for enhancing video effects, which is applied to a video call system, such as Figure 3 As shown, including:

[0100] Step 310, obtaining a video data frame;

[0101] Step 320, determining whether the video data frame is a key frame, if yes, executing step 330, if no, executing step 340;

[0102] Step 330, detecting face information in the video data frame and recording the detection result;

[0103] Step 300, obtaining ambient light information;

[0104] Step 340, determining the ambient light type according to the ambient light information;

[0105] Step 350, determining the ambient light type, if it is the first ambient light type (low brightness type), executing step 360, if it is the second ambient light type (high brightness type), executing step 370; if it is the third ambient light type (normal brightness type), executing step 380;

[0106] Step 360, the brightness of the video data frame is increased;

[0107] Step 361, determine whether a face is included, if yes, execute 362, if no, execute step 380;

[0108] Step 362, optimizing the contrast of the video data according to the face area in the detection result;

[0109] Step 370, determine whether a face is included, if yes, execute 371, if no, execute step 380;

[0110] Step 371, performing contrast enhancement on the video data according to the face area in the detection result;

[0111] Step 380, no video data enhancement is performed;

[0112] Step 390, transmitting the video data frame.

[0113] Wherein, step 362 includes: adjusting the contrast of the face area in the current video data according to the first local tone mapping curve; step 371 includes: adjusting the contrast of the face area in the current video data according to the second local tone mapping curve.

[0114] The present disclosure also provides a video effect enhancement device 40, such as Figure 4 As shown, including:

[0115] The scene determination module 410 is configured to determine the current shooting scene type according to the ambient light information and the shooting picture;

[0116] The effect enhancement module 420 is configured to determine a corresponding adjustment strategy according to the determined shooting scene type; and to adjust the contrast of the target object area in the shooting picture according to the determined adjustment strategy;

[0117] The shooting scene type includes at least one of the following scene types: a shooting scene of a first ambient light type and containing a target object, and a shooting scene of a second ambient light type and containing a target object.

[0118] In some exemplary embodiments, the video effect enhancement device 40 is applied to a real-time video capture and transmission system.

[0119] The embodiment of the present disclosure further provides a mobile terminal, comprising the video effect enhancement device 40 as described above.

[0120] The present disclosure also provides a mobile terminal, including a communication chip, wherein the communication chip is configured to execute:

[0121] Determine the current shooting scene type based on ambient light information and the shooting picture;

[0122] Determine a corresponding adjustment strategy according to the determined shooting scene type;

[0123] Adjusting the contrast of the target object area in the captured image according to the determined adjustment strategy;

[0124] The shooting scene type includes at least one of the following scene types: a shooting scene of a first ambient light type and containing a target object, and a shooting scene of a second ambient light type and containing a target object.

[0125] The present disclosure also provides an electronic device, including:

[0126] one or more processors;

[0127] a storage device for storing one or more programs,

[0128] When the one or more programs are executed by the one or more processors, the one or more processors implement the video effect enhancement method described in any of the above embodiments.

[0129] In some exemplary embodiments, the mobile terminal or electronic device is applied to a real-time video capture and transmission system.

[0130] In some exemplary embodiments, the electronic device is a mobile terminal.

[0131] The embodiments of the present disclosure further provide a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the video effect enhancement method described in any of the above embodiments when running.

[0132] The video effect enhancement solution provided by the embodiment of the present disclosure dynamically determines the contrast adjustment solution under different shooting scenes by identifying the ambient light type and detecting the target object, so that the real-time video shooting and transmission system can adaptively adjust the shooting effect to achieve the best user experience.

[0133] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0134] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A video effect enhancement method, It is characterized in that include: Determine the current shooting scene type based on ambient light information and the shooting picture; Determine a corresponding adjustment strategy according to the determined shooting scene type; Adjusting the contrast of the target object area in the captured image according to the determined adjustment strategy; Wherein, when the shooting scene type is a shooting scene of the first ambient light type and includes a target object, the determined adjustment strategy is a first local tone mapping curve; when the shooting scene type is a shooting scene of the second ambient light type and includes a target object, the determined adjustment strategy is a second local tone mapping curve; The step of adjusting the contrast of the target object area in the captured image according to the determined adjustment strategy includes: When the shooting scene type is a shooting scene of the first ambient light type and includes a target object, the brightness of the shooting picture is enhanced; and the contrast of the target object area in the shooting picture after the brightness is enhanced is adjusted according to the first local tone mapping curve; or, When the shooting scene type is the second ambient light type and contains a target object, the brightness of the shooting picture is reduced; and the contrast of the target object area in the shooting picture after the brightness reduction is adjusted according to the second local tone mapping curve.

2. The method according to claim 1, It is characterized in that A curvature of the first local tone mapping curve in an interval smaller than a first brightness value is smaller than a curvature of the second local tone mapping curve in an interval smaller than the first brightness value.

3. The method according to claim 1, It is characterized in that The brightness of the captured image is improved according to the following method: Among them, L a is the brightness of the photographed image after adjustment, L b is the brightness of the captured image before adjustment, AL normal is the standard ambient light intensity, AL l is the current ambient light intensity, L max is the maximum value of the brightness component, and α and β represent the brightness adjustment factors.

4. The method according to any one of claims 1 to 3, It is characterized in that The determining the current shooting scene type according to the ambient light information and the shooting picture includes: According to the ambient light information, determine the ambient light intensity of the current shooting scene; Determine the location attribute of the current shooting scene according to the shooting picture or the positioning device; Determine the ambient light type corresponding to the current shooting scene according to the determined ambient light intensity and position attributes; According to the set target object, image detection is performed in the current shooting picture to determine whether the shooting picture contains the set target object.

5. The method according to any one of claims 1 to 3, It is characterized in that The determining the current shooting scene type according to the ambient light information and the shooting picture includes: When the video data corresponding to the captured image is a key frame, determining the current shooting scene type according to the ambient light information and the current key frame; In the case that the video data corresponding to the captured image is a non-key frame, the current shooting scene type is determined according to the ambient light information and a previous key frame that is closest to the current non-key frame.

6. The method according to claim 4, It is characterized in that The set target object is a human face; The performing image detection in the current shooting picture according to the set target object to determine whether the shooting picture contains the set target object includes: The PyramidBox-Lite network model is used to perform face detection to determine whether the captured image contains a face.

7. A video effect enhancement device, It is characterized in that include: A scene determination module, configured to determine the current shooting scene type according to ambient light information and the shooting picture; An effect enhancement module is configured to determine a corresponding adjustment strategy according to the determined shooting scene type; and to adjust the contrast of the target object area in the shooting picture according to the determined adjustment strategy; Wherein, when the shooting scene type is a shooting scene of the first ambient light type and includes a target object, the determined adjustment strategy is a first local tone mapping curve; when the shooting scene type is a shooting scene of the second ambient light type and includes a target object, the determined adjustment strategy is a second local tone mapping curve; The step of adjusting the contrast of the target object area in the captured image according to the determined adjustment strategy includes: When the shooting scene type is a shooting scene of the first ambient light type and includes a target object, the brightness of the shooting picture is enhanced; and the contrast of the target object area in the shooting picture after the brightness is enhanced is adjusted according to the first local tone mapping curve; or, When the shooting scene type is the second ambient light type and contains a target object, the brightness of the shooting picture is reduced; and the contrast of the target object area in the shooting picture after the brightness reduction is adjusted according to the second local tone mapping curve.

8. A mobile terminal, It is characterized in that A communication chip is included, wherein the communication chip is configured to perform: Determine the current shooting scene type based on ambient light information and the shooting picture; Determine a corresponding adjustment strategy according to the determined shooting scene type; Adjusting the contrast of the target object area in the captured image according to the determined adjustment strategy; Wherein, when the shooting scene type is a shooting scene of the first ambient light type and includes a target object, the determined adjustment strategy is a first local tone mapping curve; when the shooting scene type is a shooting scene of the second ambient light type and includes a target object, the determined adjustment strategy is a second local tone mapping curve; The step of adjusting the contrast of the target object area in the captured image according to the determined adjustment strategy includes: When the shooting scene type is a shooting scene of the first ambient light type and includes a target object, the brightness of the shooting picture is enhanced; and the contrast of the target object area in the shooting picture after the brightness is enhanced is adjusted according to the first local tone mapping curve; or, When the shooting scene type is the second ambient light type and contains a target object, the brightness of the shooting picture is reduced; and the contrast of the target object area in the shooting picture after the brightness reduction is adjusted according to the second local tone mapping curve.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the video effect enhancement method as described in any one of claims 1 to 6 is implemented.