CN110536172B - Video image display adjusting method, terminal and readable storage medium - Google Patents
Video image display adjusting method, terminal and readable storage medium Download PDFInfo
- Publication number
- CN110536172B CN110536172B CN201910615907.1A CN201910615907A CN110536172B CN 110536172 B CN110536172 B CN 110536172B CN 201910615907 A CN201910615907 A CN 201910615907A CN 110536172 B CN110536172 B CN 110536172B
- Authority
- CN
- China
- Prior art keywords
- display
- display area
- area
- video image
- background
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000002708 enhancing effect Effects 0.000 claims abstract description 26
- 238000005286 illumination Methods 0.000 claims abstract description 22
- 238000004590 computer program Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 13
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000001965 increasing effect Effects 0.000 description 5
- 241001465754 Metazoa Species 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 241000282320 Panthera leo Species 0.000 description 1
- 241000282376 Panthera tigris Species 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000004438 eyesight Effects 0.000 description 1
- 238000003709 image segmentation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4854—End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the invention relates to the field of videos and discloses a video image display adjusting method, a terminal and a readable storage medium. The invention discloses a method for adjusting video image display, which comprises the following steps: acquiring a target display area and a background display area in a video image; and enhancing the display quality of the target display area relative to the background display area. According to the embodiment, the user can clearly see the content of the video target display area under different illumination environments, and the effect of watching the video content by the user is improved.
Description
Technical Field
The embodiment of the invention relates to the field of videos, in particular to a video image display adjusting method, a terminal and a readable storage medium.
Background
Current mobile terminals can play video, such as: movies, live video, etc. With the development of terminal technology, more and more mobile terminals (such as smart phones) can automatically adjust the brightness of the screen. For example, when a user uses a mobile phone in an environment with high light intensity, the mobile phone automatically adjusts the brightness of the screen to be high, so that the user can browse the content of the mobile phone more clearly. When the user uses the mobile phone in an environment with small light intensity, the mobile phone automatically reduces the brightness of the screen so as to protect the eyesight of the user and save electricity.
The inventor finds that at least the following problems exist in the prior art: when a user is under strong light, even if the automatic brightness adjusting function of the screen in the intelligent terminal is started, the expression, the action and the like of main characters in the video cannot be clearly seen, for example, a picture in a movie is dark, the brightness of the current screen reaches the maximum value, and the action of the character of the movie cannot be clearly seen. This greatly reduces the effectiveness of the user in viewing the video content.
Disclosure of Invention
An object of embodiments of the present invention is to provide a method, a terminal, and a readable storage medium for adjusting video image display, which can ensure that a user can clearly see the content of a video target display area in different illumination environments, thereby improving the effect of the user in watching video content.
In order to solve the above technical problem, an embodiment of the present invention provides a method for adjusting video image display, including: acquiring a target display area and a background display area in a video image; and enhancing the display quality of the target display area relative to the background display area.
An embodiment of the present invention further provides a terminal, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method for adjusting the display of the video image.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program realizes the adjustment method for video image display.
Compared with the prior art, the method and the device have the advantages that the target display area concerned by the user in the video image and the background display area not concerned by the user or having little attention by the user are distinguished by acquiring the target display area and the background display area in the video image, when the terminal is under any illumination, such as strong light, the display quality of the target display area relative to the background display area is enhanced, so that the display quality of the target display area is better, the display content of the target display area is highlighted, the display effect of the target display area is improved, meanwhile, the display quality of the target display area relative to the background display area is enhanced, the interference of the background display area to the target display area can be reduced, the watching effect of the target display area is further improved, and the effect of the user on watching the video image is improved.
In addition, after the target display area and the background display area in the video image are acquired and before the display quality of the target display area relative to the background display area is enhanced, the adjustment method for displaying the video image further comprises the following steps: acquiring an initial display parameter value of a display video image; judging whether the initial display parameter value exceeds a preset threshold value, wherein the preset threshold value is determined according to the acquired illumination intensity of the current environment; and if the display quality of the target display area relative to the background display area exceeds a preset threshold, determining to execute the operation of enhancing the display quality of the target display area relative to the background display area. When the initial display parameter value exceeds the preset threshold value, the operation of enhancing the display quality of the strong target display area relative to the background display area is executed instead of performing the enhancement operation in any case, so that the probability of triggering the enhancement operation by mistake can be reduced.
In addition, the enhancing the display quality of the target display area relative to the background display area specifically includes: enhancing a display parameter value of a target display area and reducing a display parameter value of a background display area, or enhancing the display parameter value of a target display area, wherein the display parameter value comprises: luminance values or color values. Various ways of enhancing the display quality of the target display area with respect to the background display area are provided, one way being a way of reducing the display parameter value of the background display area and enhancing the display parameter value of the target display area, since the display parameter values of the target display area and the background display area are inversely adjusted, the target display area can be highlighted quickly; the two adjustment modes are simple in adjustment and high in implementation speed because only the display parameter value of the background display area or the display parameter value of the target display area needs to be changed.
In addition, reducing the display parameter value of the background display area specifically includes: acquiring a display parameter adjusting range; determining an adjustment value in the display parameter adjustment range, wherein the adjustment value is used for indicating the proportion of the display parameter value of the background display area in the display parameter adjustment range to be reduced; and reducing the display parameter value of the background display area according to the adjusting value. Because the ranges of the display parameter values supported on different terminal screens are different, even under the same illumination environment, the display parameter values of the background display areas displayed on different terminals are also different, so that the display parameter values of the background display areas are reduced by enhancing the proportion of the display parameter values of the background display areas in the display parameter adjusting range instead of directly setting the specific increasing values of the display parameter values of the background display areas, the adjusting mode can be applied to different terminal screens, and the application range of the adjusting method is widened.
In addition, determining an adjustment value in the adjustment range of the display parameter specifically includes: calculating a display parameter difference value between the initial display parameter value and a preset threshold value; determining a black threshold according to a preset threshold, wherein the black threshold is used for representing the proportion of black in a video image when the video image is displayed according to the preset threshold; and calculating a ratio between the display parameter difference value and the black threshold value, and taking the product of the ratio and the maximum value of the preset black proportion as an adjustment value, wherein the maximum value of the preset black proportion is determined according to the preset tuning parameter. The higher the brightness value/color value in the display parameter value is, the smaller the black threshold value is, and the black threshold value can be quickly determined through the preset threshold value, so that the calculated adjustment value is ensured to be in the adjustment range of the display parameter; in addition, the preset maximum ratio of black can avoid the phenomenon that the watching effect of a user is influenced because the display parameter value of the background display area is adjusted to the value corresponding to pure black.
In addition, the enhancing the display parameter value of the target display area specifically includes: acquiring a display parameter adjusting range; and adjusting the display parameter value of the target display area to be the maximum value of the adjustment range of the display parameter. The adjustment mode of directly adjusting to the maximum value of the adjustment range of the display parameters is simple and the adjustment speed is high.
In addition, acquiring a target display area and a background display area in the video image specifically includes: identifying an image of each preset object contained in the video image, and determining the outline area of the image of each preset object; determining target display content and background display content according to the area of each outline; and acquiring a target display area and a background display area according to the target display content and the background display content. The preset objects can be characters, automobiles, animals and the like which are concerned by a user, the image of each preset object in the video image is identified through an identification technology, the target display content and the background display content in the video image can be accurately determined by combining the outline area of the image of each preset object, the target display area and the background display area are further accurately obtained, and the accuracy of the subsequent contrast adjustment between the target display area and the background display area is ensured.
In addition, according to each contour area, determining target display content and background display content specifically comprises: respectively comparing the area of each outline with a preset area threshold value to obtain each comparison result; and selecting the image of the preset object corresponding to the contour area larger than the preset area threshold value as target display content according to each comparison result, and taking the image except the target display content in the video image as background display content. By comparing the outline area with the preset area threshold, images which do not belong to the target display content can be further excluded, so that the accuracy of determining the target display content is improved.
In addition, acquiring a target display area and a background display area according to the target display content and the background display content specifically comprises: and separating the area where the target display content is located or the area where the background display content is located from the video image to obtain a target display area and a background display area. The target display area and the background display area can be quickly obtained by using a separation mode.
In addition, acquiring a target display area and a background display area according to the target display content and the background display content specifically comprises: adding an adjusting mask to the area where the background display content is located, and taking the adjusting mask as a background display area; and taking the area where the target display content is as a target display area. The adjusting mask is provided with transparency, the transparency is reduced along with the increase of the black in the adjusting mask, the proportion of the black in the adjusting mask is reduced, the transparency is increased along with the increase of the black in the adjusting mask, the adjusting mask covers the area where the background display content is located, the adjusting mask is used as the background display area, the proportion of the black in the adjusting mask in the display parameter adjusting range can be adjusted subsequently, the display parameter value of the image corresponding to the background display content does not need to be adjusted, the adjusting operation is simple, meanwhile, the adjusting mask is added, the target display area and the background display area do not need to be obtained by segmenting the video image, and the speed of obtaining the target display area and the background display area is improved.
In addition, acquiring the adjustment range of the display parameter specifically includes: and determining the adjustment range of the display parameters according to the acquired illumination intensity of the current environment. And determining the adjustment range of the display parameters of the terminal screen according to the illumination intensity of the environment where the terminal screen is located, so that the determined adjustment range of the display parameters is suitable for the current environment.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings which correspond to and are not to be construed as limiting the embodiments, in which elements having the same reference numeral designations represent like elements throughout, and in which the drawings are not to be construed as limiting in scale unless otherwise specified.
Fig. 1 is a detailed flowchart of an adjustment method for displaying a video image according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a specific implementation of acquiring a target display area and a background display area according to a first embodiment of the present invention;
FIG. 3 is a diagram illustrating an effect of a video image after being adjusted by a video image display according to a first embodiment of the present invention;
FIG. 4 is a diagram illustrating a specific implementation of determining target display content and background display content according to each outline area according to a second embodiment of the present invention;
FIG. 5 is a diagram illustrating an implementation of acquiring a target display area and a background display area according to a third embodiment of the present invention;
fig. 6 is a schematic diagram of a detailed structure of a terminal according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the invention relates to a method of adjusting the display of a video image. The video image display adjusting method can be applied to a terminal, such as: smart phones, liquid crystal televisions, and the like.
In one specific implementation, the method for adjusting video image display includes: acquiring a target display area and a background display area in a video image; after the target display area and the background display area in the video image are acquired, the display quality of the target display area relative to the background display area is directly enhanced, so that the content displayed in the target display area is directly highlighted, and the experience of a user in watching the video image is improved.
In another specific implementation, a specific flow of the adjustment method for displaying a video image is shown in fig. 1.
Step 101: and acquiring a target display area and a background display area in the video image.
In a specific implementation, there are various ways to acquire the target display area and the background display area in the video image, for example: according to the label information of the target display content and the background display content in the video image, a target display area or a background display area can be separated from the video image; the target display content and the background display content in the video image can be determined through the identification technology, and then the target display area or the background display area is separated from the video image.
One of the processes of acquiring the target display area and the background display area will be described in detail below, and a specific sub-flow is shown in fig. 2.
Substep 1011: and identifying the image of each preset object contained in the video image, and determining the outline area of the image of each preset object.
Specifically, the preset object may be a person, an animal, an automobile, etc. that the user is interested in, and may be determined specifically according to the type of the video image, for example, if the type of the video image is an animal program (e.g., animal world), the preset object may be a lion, a tiger, etc.; if the video image type is live network program, such as: live the explanation etc. of economy of host, then predetermine the object and can be the host, if the video image type is the sports class, if cycle racing etc. then predetermine the object and can be the cycle racing.
And determining the outline area of each image of the preset object in the current video image by adopting an image recognition technology according to the image of the preset object. It will be appreciated that in order to increase the speed of the determination of the outline area, the outline area may be calculated with errors, for example, by using recognition techniques to identify the outline of the presenter, which may be calculated according to the length and width of the outline.
Of course, the outline area may be calculated in other manners, and this embodiment is not illustrated.
Sub-step 1012: and determining target display content and background display content according to each contour area.
Each outline area can be used to further screen out images belonging to the target display content from the video image.
In a specific implementation, each of the profile areas may be sorted in a descending order, a preset number of profile areas are selected from the profile areas arranged in the descending order, an image of a preset object corresponding to the selected preset number of profile areas is used as a main display image, and an image except for target display content in the video image is used as background display content. For example, the video image a includes 5 images of preset objects, which are respectively C1, C2, C3, C4, and C5, the outline area corresponding to C1 is S1, the outline area corresponding to C2 is S2, the outline area corresponding to C3 is S3, the outline area corresponding to C4 is S4, and the outline area corresponding to C5 is S5, wherein the outline areas of the images of the 5 preset objects are sorted in a descending order, and the obtained arrangement order is "S1 > S5> S3> S2> S4", and the preset number is 3, then the image of the preset object corresponding to the outline area of the first 3 is selected, that is, C1, C5, and C3 are used as target display contents, and the image except C1, C5, and C3 in the video image is used as background display contents.
Substep 1013: and acquiring a target display area and a background display area according to the target display content and the background display content.
Specifically, an image segmentation technique may be used to separate an area where target display content is located or an area where background display content is located from a video image, so as to obtain a target display area and a background display area.
Step 102: obtaining an initial display parameter value of a display video image.
Specifically, the display parameter values include: the luminance value or the color value will be described in this embodiment by taking the luminance value as an example of the display parameter value. The initial display parameter value can be directly read from the display parameter value of the current terminal screen for displaying the video image. For example, the initial display parameter value of the terminal screen may be a preset default value; or after the terminal starts the automatic brightness adjusting function, the terminal calculates and determines according to the illumination value collected by the terminal.
In a specific implementation, the terminal can obtain the illumination intensity of the environment where the terminal screen is located through the light sensor, and then calculate the adjustment range of the display parameter of the terminal screen according to the illumination intensity. Or directly acquiring the display parameter adjusting range after the terminal starts the automatic brightness adjusting function.
Step 103: judging whether the initial display parameter value exceeds a preset threshold value, wherein the preset threshold value is determined according to the acquired illumination intensity of the current environment; if the threshold value is exceeded, go to step 104; if the target display area in the video image can be seen clearly by the user, the whole process is ended.
Specifically speaking, the illumination intensity of the environment where the terminal screen is located can be collected through the light sensor, the environment where the current terminal screen is located can be determined through the illumination intensity, and then the preset threshold value is determined. For example, if it is determined that the terminal screen is in the indoor environment at daytime according to the illumination intensity, the preset threshold may be set to 30% of the maximum value of the current display parameter adjustment range, if it is determined that the terminal screen is in the indoor environment at night according to the illumination intensity, the preset threshold may be set to 20% of the maximum value of the display parameter adjustment range, if it is determined that the terminal screen is in the dark environment according to the illumination intensity, the preset threshold may be set to 5% of the maximum value of the current display parameter adjustment range, and if it is determined that the terminal screen is in the highlight environment according to the illumination intensity, the preset threshold may be set to 60% of the maximum value of the current display parameter adjustment range.
It should be noted that, the adjustment ranges of the display parameters determined by different terminals are different, and in order to improve the applicability of the adjustment method, in this embodiment, the preset threshold and the size of the display parameter value are both expressed in a form of a percentage of the current display parameter value in the adjustment range of the display parameter, that is, a percentage of a ratio between the current display parameter value and a maximum value of the adjustment range of the display parameter.
Step 104: and enhancing the display quality of the target display area relative to the background display area.
Specifically, the specific process of enhancing the display quality of the target display area relative to the background display area comprises the following steps: and enhancing the display parameter value of the target display area and reducing the display parameter value of the background display area, or enhancing the display parameter value of the target display area.
In one specific implementation, the specific process of reducing the display parameter value of the background display area is as follows: acquiring a display parameter adjusting range; determining an adjustment value in the display parameter adjustment range, wherein the adjustment value is used for indicating the proportion of the display parameter value of the background display area in the display parameter adjustment range to be reduced; and reducing the display parameter value of the background display area according to the adjustment value.
A method of determining the adjustment value is described below:
calculating a display parameter difference value between the initial display parameter value and a preset threshold value; determining a black threshold according to a preset threshold, wherein the black threshold is used for representing the proportion of black in a video image when the video image is displayed according to the preset threshold; and calculating a ratio between the display parameter difference value and the black threshold value, and taking the product of the ratio and the maximum value of the preset black proportion as an adjustment value, wherein the maximum value of the preset black proportion is determined according to the preset tuning parameter. For example, if the preset threshold is Lmin%, the display parameter value is Ln%, and the maximum value in the adjustment range of the display parameter is 100%, then the display parameter difference is expressed as: ln% -Lmin%, since the higher the luminance/color value in the display parameter value, the smaller the black threshold value, the black threshold value can be expressed as: 1-Lmin%, the maximum proportion of black is usually 100% pure black, and the color value of pure black is all 0, so from the consideration of mathematical calculation, the embodiment represents pure black by letter B; considering that in actual reality, if the background display area is pure black, the effect of the user on watching the video image is affected, the tuning parameter may be set to 0.8, and the maximum value of the preset black proportion is 100% b × 0.8; finally the adjusted value Ex = (Ln% -Lmin%)/(1-Lmin%) + 100%. The display parameter value of the background display area may be reduced to the value of the adjustment value, or the display parameter value of the background display area may be reduced according to the percentage of the adjustment value.
It can be understood that, in another specific implementation, in a manner of enhancing the display quality of the target display area relative to the background display area, the display parameter value of the background display area may be decreased according to the value of the preset step length, or the display parameter value of the target display area is increased according to the value of the preset step length, or the display parameter value of the background display area is decreased according to the value of the preset step length, and the display parameter value of the target display area is increased according to the value of the preset step length.
It should be noted that, if the terminal starts the automatic brightness adjustment function, the display parameter value of the target display area may not be adjusted, and the brightness of the target display area is kept consistent with the initial display parameter value. And if the terminal does not start the automatic brightness adjusting function and the initial display parameter value is not equal to the preset threshold, adjusting the brightness of the target display area to the preset threshold.
Fig. 3 is a schematic view showing the effect of the video image after the video image display adjustment, as shown in fig. 3, the image on the left side of the arrow is the original video image, the target display area is the area where the person tied with the tie is located, and the areas except the person tied with the tie in the image are all background display areas. Obtaining a diagram on the right side of an arrow in the figure 3 after enhancing the display quality of the target display area relative to the background display area; the effect of the reduced display parameter value of the background display area is indicated by the grid area in the diagram on the right side of the arrow, and as can be seen from the diagram on the right side of the arrow in fig. 3, after the display quality of the target display area relative to the background display area is enhanced, the character display of the target display area is more prominent, and the user can watch the character more conveniently.
Compared with the prior art, the method and the device have the advantages that the target display area concerned by the user in the video image and the background display area not concerned by the user or having little attention by the user are distinguished by acquiring the target display area and the background display area in the video image, when the terminal is under any illumination, such as strong light, the display quality of the target display area relative to the background display area is enhanced, so that the display quality of the target display area is better, the display content of the target display area is highlighted, the display effect of the target display area is improved, meanwhile, the display quality of the target display area relative to the background display area is enhanced, the interference of the background display area to the target display area can be reduced, the watching effect of the target display area is further improved, and the effect of the user in watching the video image is improved.
A second embodiment of the invention relates to a method of adjusting the display of a video image. The adjusting method for video image display comprises the following steps: acquiring a target display area and a background display area in a video image; acquiring an initial display parameter value of a display video image; judging whether the initial display parameter value exceeds a preset threshold value, wherein the preset threshold value is determined according to the acquired illumination intensity of the current environment; if the display quality exceeds the preset threshold value, executing the operation of enhancing the display quality of the target display area relative to the background display area, otherwise, ending the whole process.
The second embodiment is a specific refinement of substep 1012 in the first embodiment, and the main improvement lies in: in the second embodiment of the present invention, the target display content and the background display content are determined according to the comparison result by comparing each determined contour area with a preset area threshold.
Specifically, a specific process of determining the target display content and the background display content based on each outline area is shown in fig. 4.
Step 201: and respectively comparing the area of each outline with a preset area threshold value to obtain each comparison result.
Specifically, the preset area threshold may be set according to an actual situation, for example, the preset area threshold may be set to be 30% of the total area of the video image, and each determined outline area is respectively compared with the preset area threshold to obtain each comparison result. For example, the video image a includes 5 images of preset objects, which are C1, C2, C3, C4, and C5, respectively, the contour area corresponding to C1 is S1, the contour area corresponding to C2 is S2, the contour area corresponding to C3 is S3, the contour area corresponding to C4 is S4, and the contour area corresponding to C5 is S5, where the 5 contour areas are compared with a preset area threshold Y, respectively, to obtain 5 comparison results, which are: s1> Y, S2> Y, S3> Y, S4< Y, S5< Y.
Step 202: and selecting the image of the preset object corresponding to the contour area larger than the preset area threshold value as target display content according to each comparison result, and taking the image except the target display content in the video image as background display content.
For example, there are 5 comparisons, which are: profile area S1> Y, profile area S2> Y, profile area S3> Y, profile area S4< Y, profile area S5< Y; then, the image C1 of the preset object corresponding to S1, the image C2 of the preset object corresponding to S2, and the image C3 of the preset object corresponding to S3 are selected as target display contents, that is, C1, C2, and C3 are selected as target display contents. The images other than C1, C2, and C3 in the video image are displayed as background content.
In this embodiment, by comparing the contour area with the preset area threshold, images that do not belong to the target display content can be further excluded, thereby improving the accuracy of determining the target display content.
A third embodiment of the present invention relates to a method for adjusting display of a video image, and is substantially the same as the first embodiment, and mainly differs therefrom in that: in the third embodiment of the present invention, the manner of acquiring the target display area and the background display area is different from that of the first embodiment.
Specifically, after determining the target display content and the background display content in the video image, a specific flow of acquiring the target display area and the background display area according to the target display content and the background display content is shown in fig. 5.
Step 301: and adding an adjusting mask to the area where the background display content is located, and taking the adjusting mask as a background display area.
Specifically, an adjusting mask is covered on an area where background display content is located, the adjusting mask is a transparent mask, and the darkness of the adjusting mask is enhanced, so that the transparency of the adjusting mask is lower and the adjusting mask is closer to pure black; while reducing the darkness of the adjustment mask, the higher the transparency of the adjustment mask.
If the display parameter is determined to be larger than the preset threshold, the darkness of the adjustment mask serving as the background display area is directly enhanced, and the enhancing mode of the darkness is consistent with the enhancing mode in the first embodiment, that is, the adjustment value can be determined, and the darkness of the adjustment mask is enhanced according to the adjustment value.
Step 302: and taking the target display content as a target display area.
Specifically, the target display content in the video image is directly used as the target display area.
It should be noted that, after the target display area and the background display area are obtained, obtaining the display parameters of the terminal screen displaying the video image under the current illumination and the brightness adjustment range of the terminal screen as in the first embodiment are executed; and according to the display parameters and the brightness adjusting range, adjusting the contrast between the target display area and the background display area to highlight the target display area.
It should be noted that another way of enhancing the brightness of the target display area in the brightness adjustment range and enhancing the darkness of the background display area in the brightness adjustment range is also provided in the present embodiment.
Specifically, the brightness of the target display area may be directly adjusted to the maximum value of the brightness adjustment range, and the darkness of the background display area may be directly adjusted to the maximum value of the preset ratio of black, where the setting mode of the maximum value of the preset ratio of black is substantially the same as that in the first embodiment, and is not described herein again.
In the embodiment, the adjustment mask has transparency, the transparency is reduced along with the increase of the darkness of the adjustment mask, the darkness of the adjustment mask is reduced and the transparency is increased along with the increase of the darkness of the adjustment mask, and the adjustment mask is covered on the area where the background display content is located, and is taken as the background display area, and then the darkness of the adjustment mask can be adjusted without adjusting the darkness of the image corresponding to the background display content, so that the adjustment operation is simple.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are within the scope of the present patent; it is within the scope of this patent to add insignificant modifications or introduce insignificant designs to the algorithms or processes, but not to change the core designs of the algorithms and processes.
A fourth embodiment of the present invention relates to a terminal. The structure of the terminal 40 is shown in fig. 6, and includes: at least one processor 401; and a memory communicatively coupled to the at least one processor 401; the memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401, so that the at least one processor 401 can execute the method for adjusting video image display according to any one of the first to third embodiments.
The memory 402 and the processor 401 are connected by a bus, which may include any number of interconnected buses and bridges that link one or more of the various circuits of the processor 401 and the memory 402. The bus may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 401 may be transmitted over a wireless medium via an antenna, which may receive the data and transmit the data to the processor 401.
The processor 401 is responsible for managing the bus and general processing and may provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. While the memory 402 may be used to store data used by the processor in performing operations.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method for adjusting video image display according to any one of the first to third embodiments.
Those skilled in the art can understand that all or part of the steps in the method according to the above embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.
Claims (10)
1. A method for adjusting a display of a video image, comprising:
acquiring a target display area and a background display area in a video image;
acquiring an initial display parameter value for displaying the video image;
judging whether the initial display parameter value exceeds a preset threshold value, wherein the preset threshold value is determined according to the acquired illumination intensity of the current environment;
if the display quality of the target display area relative to the background display area exceeds the preset threshold value, the display quality of the target display area relative to the background display area is enhanced;
wherein the enhancing the display quality of the target display area relative to the background display area comprises:
acquiring a display parameter adjusting range;
calculating a display parameter difference value between the initial display parameter value and the preset threshold value;
determining a black threshold value according to the preset threshold value, wherein the black threshold value is used for representing the proportion of black in the video image when the video image is displayed according to the preset threshold value;
calculating a ratio between the display parameter difference value and the black threshold value, and taking a product of the ratio and a preset maximum ratio of black as an adjustment value, wherein the preset maximum ratio of black is determined according to a preset tuning parameter, and the adjustment value is used for indicating to reduce the ratio of the display parameter value of the background display area in the display parameter adjustment range;
and reducing the display parameter value of the background display area according to the adjusting value.
2. The method of adjusting display of video images according to claim 1, wherein enhancing the display quality of the target display area relative to the background display area further comprises:
enhancing display parameter values of the target display area, wherein the display parameter values include: luminance values or color values.
3. The method for adjusting video image display according to claim 2, wherein the enhancing the display parameter value of the target display area specifically includes:
acquiring a display parameter adjusting range;
and adjusting the display parameter value of the target display area to be the maximum value of the display parameter adjusting range.
4. The method according to any one of claims 1 to 3, wherein the acquiring of the target display area and the background display area in the video image specifically comprises:
identifying an image of each preset object contained in the video image, and determining the outline area of the image of each preset object;
determining target display content and background display content according to each contour area;
and acquiring the target display area and the background display area according to the target display content and the background display content.
5. The method according to claim 4, wherein determining a target display content and a background display content according to each of the contour areas specifically comprises:
comparing each contour area with a preset area threshold value respectively to obtain each comparison result;
and selecting an image of a preset object corresponding to the outline area larger than a preset area threshold value as the target display content according to each comparison result, and taking an image except the target display content in the video image as background display content.
6. The method for adjusting video image display according to claim 4, wherein the obtaining the target display area and the background display area according to the target display content and the background display content specifically includes:
and separating the area where the target display content is located or the area where the background display content is located from the video image to obtain a target display area and a background display area.
7. The method according to claim 4, wherein the acquiring the target display area and the background display area according to the target display content and the background display content specifically comprises:
adding an adjusting mask to the area where the background display content is located, and taking the adjusting mask as a background display area;
and taking the area where the target display content is as the target display area.
8. The method according to claim 4, wherein the obtaining of the adjustment range of the display parameter specifically includes:
and determining the adjustment range of the display parameters according to the acquired illumination intensity of the current environment.
9. A terminal, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of adjusting the display of video images as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a method of adjusting a display of a video image according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910615907.1A CN110536172B (en) | 2019-07-09 | 2019-07-09 | Video image display adjusting method, terminal and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910615907.1A CN110536172B (en) | 2019-07-09 | 2019-07-09 | Video image display adjusting method, terminal and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110536172A CN110536172A (en) | 2019-12-03 |
CN110536172B true CN110536172B (en) | 2022-10-18 |
Family
ID=68659571
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910615907.1A Active CN110536172B (en) | 2019-07-09 | 2019-07-09 | Video image display adjusting method, terminal and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110536172B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111163349B (en) * | 2020-02-20 | 2021-03-02 | 腾讯科技(深圳)有限公司 | Image quality parameter adjusting method, device, equipment and readable storage medium |
CN111968605A (en) * | 2020-08-28 | 2020-11-20 | 维沃移动通信有限公司 | Exposure adjusting method and device |
CN112055247B (en) * | 2020-09-11 | 2022-07-08 | 北京爱奇艺科技有限公司 | Video playing method, device, system and storage medium |
CN113038232A (en) * | 2021-03-10 | 2021-06-25 | 深圳创维-Rgb电子有限公司 | Video playing method, device, equipment, server and storage medium |
CN114513574B (en) * | 2022-01-12 | 2023-04-07 | 荣耀终端有限公司 | Interface display method, electronic device and storage medium |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100512716B1 (en) * | 2001-05-04 | 2005-09-07 | 삼성전자주식회사 | color adjusting method for display apparatus |
CN103106668B (en) * | 2011-11-09 | 2016-08-03 | 佳能株式会社 | The method and system of image-region is described based on color histogram |
CN104915139A (en) * | 2015-04-30 | 2015-09-16 | 努比亚技术有限公司 | Automatic adjusting method and device for brightness of display interface |
CN104966305B (en) * | 2015-06-12 | 2017-12-15 | 上海交通大学 | Foreground detection method based on motion vector division |
CN105607831B (en) * | 2015-12-17 | 2019-08-27 | 珠海豹趣科技有限公司 | The control method and device of pop-up |
CN105469775A (en) * | 2016-01-29 | 2016-04-06 | 广东欧珀移动通信有限公司 | Method for adjusting brightness of display screen and terminal equipment |
CN106227424A (en) * | 2016-07-20 | 2016-12-14 | 北京小米移动软件有限公司 | The display processing method of picture and device |
WO2018076167A1 (en) * | 2016-10-25 | 2018-05-03 | 深圳市大疆创新科技有限公司 | Screen brightness adjustment method applicable to unmanned aerial vehicle control side, and unmanned aerial vehicle control side |
CN108711402A (en) * | 2018-05-07 | 2018-10-26 | Oppo广东移动通信有限公司 | Brightness of display screen method of adjustment and Related product |
CN109308687A (en) * | 2018-09-06 | 2019-02-05 | 百度在线网络技术(北京)有限公司 | Method and apparatus for adjusting brightness of image |
CN109815881A (en) * | 2019-01-18 | 2019-05-28 | 成都旷视金智科技有限公司 | Training method, the Activity recognition method, device and equipment of Activity recognition model |
-
2019
- 2019-07-09 CN CN201910615907.1A patent/CN110536172B/en active Active
Non-Patent Citations (2)
Title |
---|
Focusing and self-modified transport of high intensity proton beams;C. McGuffey等;《2014 IEEE 41st International Conference on Plasma Sciences (ICOPS) held with 2014 IEEE International Conference on High-Power Particle Beams (BEAMS)》;20150119;全文 * |
LabVIEW平台下USB图像采集与处理***设计;阚钰淇等;《工业仪表与自动化装置》;20131215(第06期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110536172A (en) | 2019-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110536172B (en) | Video image display adjusting method, terminal and readable storage medium | |
CN110163810B (en) | Image processing method, device and terminal | |
US9934438B2 (en) | Scene recognition method and apparatus | |
US7113648B1 (en) | Image processing apparatus for correcting contrast of image | |
US20210158488A1 (en) | Image edge processing method, electronic device, and computer readable storage medium | |
EP3306915B1 (en) | Method and apparatus for controlling image data | |
KR20150142038A (en) | Reference image selection for motion ghost filtering | |
CN107690804B (en) | Image processing method and user terminal | |
CN113727166B (en) | Advertisement display method and device | |
CN110443766B (en) | Image processing method and device, electronic equipment and readable storage medium | |
CN111127307A (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN110718069A (en) | Image brightness adjusting method and device and storage medium | |
KR20190016868A (en) | Method of processing an image and apparatus thereof | |
CN111541937B (en) | Image quality adjusting method, television device and computer storage medium | |
CN113012188A (en) | Image fusion method and device, computer equipment and storage medium | |
CN110442313B (en) | Display attribute adjusting method and related equipment | |
CN111738944A (en) | Image contrast enhancement method and device, storage medium and smart television | |
CN112822413B (en) | Shooting preview method, shooting preview device, terminal and computer readable storage medium | |
CN112511890A (en) | Video image processing method and device and electronic equipment | |
CN111968605A (en) | Exposure adjusting method and device | |
CN111970501A (en) | Pure color scene AE color processing method and device, electronic equipment and storage medium | |
CN113391779B (en) | Parameter adjusting method, device and equipment for paper-like screen | |
CN103986922B (en) | Image processing method | |
CN111970451A (en) | Image processing method, image processing device and terminal equipment | |
CN117392009B (en) | Automatic fog penetrating processing method, system, terminal and storage medium for image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |