CN112511890A - Video image processing method and device and electronic equipment - Google Patents

Video image processing method and device and electronic equipment Download PDF

Info

Publication number
CN112511890A
CN112511890A CN202011320513.2A CN202011320513A CN112511890A CN 112511890 A CN112511890 A CN 112511890A CN 202011320513 A CN202011320513 A CN 202011320513A CN 112511890 A CN112511890 A CN 112511890A
Authority
CN
China
Prior art keywords
color
color difference
image frame
target image
subtitle
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.)
Pending
Application number
CN202011320513.2A
Other languages
Chinese (zh)
Inventor
聂标飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011320513.2A priority Critical patent/CN112511890A/en
Publication of CN112511890A publication Critical patent/CN112511890A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4856End-user interface for client configuration for language selection, e.g. for the menu or subtitles

Abstract

The application discloses a video image processing method and device and electronic equipment, and belongs to the technical field of communication. The video image processing method comprises the following steps: in the video playing process, N cache image frames are obtained, wherein N is a positive integer; determining a target image frame based on the color difference between the display color of the caption information of each of the N cache image frames and the background color of a caption display area; adjusting the color difference between the display color of the subtitle information of the target image frame and the background color of a subtitle display area to a first color difference to obtain the target image frame after color difference updating, and replacing the target image frame before color difference updating with the target image frame after color difference updating. This can improve the recognition of the subtitle information in the video image.

Description

Video image processing method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a video image processing method and device and electronic equipment.
Background
In the related art, in order to facilitate a user to receive voice information in a video playing process, particularly voice of a video character or video voice, subtitle information is generally displayed synchronously; in order to facilitate the user to view the subtitle information, the display color of the subtitle information is generally set to be black or white. However, when the background color and the subtitle color are close to each other during the video playing process, it is difficult for the user to identify the content of the subtitle information, and the viewing experience of the video is affected.
Therefore, under the condition that the subtitle information is similar to the background color of the video, the subtitle information has the problem of poor identification effect.
Disclosure of Invention
The embodiment of the application aims to provide a video image processing method, a video image processing device and electronic equipment, which can solve the problem that subtitle information has poor identification effect under the condition that the subtitle information is close to the background color of a video.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a video image processing method, including:
in the video playing process, N cache image frames are obtained, wherein N is a positive integer;
determining a target image frame based on the color difference between the display color of the caption information of each of the N cache image frames and the background color of a caption display area;
adjusting the color difference between the display color of the subtitle information of the target image frame and the background color of a subtitle display area to a first color difference to obtain the target image frame after color difference updating, and replacing the target image frame before color difference updating with the target image frame after color difference updating.
In a second aspect, an embodiment of the present application provides a video image processing apparatus, including:
the acquisition module is used for acquiring N cache image frames in the video playing process, wherein N is a positive integer;
the determining module is used for determining a target image frame based on the color difference between the display color of the caption information of each cache image frame in the N cache image frames and the background color of a caption display area;
and the processing module is used for adjusting the color difference between the display color of the subtitle information of the target image frame and the background color of the subtitle display area to a first color difference to obtain the target image frame after color difference updating, and replacing the target image frame before color difference updating with the target image frame after color difference updating.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the display color of the subtitle information of the target image frame and the background color of the subtitle display area are adjusted to be the first color difference, so that the display color of the subtitle information and the background color of the subtitle display area are obviously different, a user can clearly identify the subtitle information from the subtitle display area, and the problem that the subtitle information existing in the target image frame is difficult to identify is solved. Moreover, the obtained target image frame after color difference updating can be replaced by the target image frame before color difference updating, so that the subtitle information of the output target image frame can be clearly identified in the video playing process, and the identification degree of the subtitle information in the video playing process is improved.
Drawings
Fig. 1 is a flowchart of a video image processing method according to an embodiment of the present application;
fig. 2 is a block diagram of a video image processing apparatus according to an embodiment of the present application;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The video image processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of a video image processing method according to an embodiment of the present application, as shown in fig. 1, including the following steps:
step 101, in the video playing process, obtaining N cache image frames, wherein N is a positive integer.
The video playing is essentially a continuous display of one frame by one frame of image according to the frame rate, that is, the video playing is essentially a display of one frame by one frame of image. Moreover, to avoid the situation of frame blocking during the playing process, the image frame to be displayed generally needs to be loaded.
In the step, N cache image frames can be obtained in a loading mode; wherein the N buffered image frames may be buffered image frames to be played. For example, it may be N buffered image frames after the currently played image frame.
Step 102, determining a target image frame based on the color difference between the display color of the caption information of each of the N buffer image frames and the background color of the caption display area.
In this step, the display color of the subtitle information of the buffered image frame and the background color of the subtitle display region may be determined by identifying the pixel data of the subtitle pixel region of the buffered image frame, and the similarity between the display color of the subtitle information and the background color of the subtitle display region may be calculated based on HSV (Hue, Saturation, Value), the color difference between the display color of the subtitle information and the background color of the subtitle display region may be determined, and when the color difference is less than a certain threshold Value, that is, when the display color of the subtitle information is close to the background color of the subtitle display region, the buffered image frame may be determined as the target image frame.
When the display color of the subtitle information and the background color of the subtitle display area are smaller than a certain threshold value, that is, the display color of the subtitle information is close to the background color of the subtitle display area, it is difficult for a user to clearly recognize the subtitle information from the subtitle display area.
Step 103, adjusting the color difference between the display color of the caption information of the target image frame and the background color of the caption display area to a first color difference to obtain the target image frame after updating the color difference, and replacing the target image frame before updating the color difference with the target image frame after updating the color difference.
In this step, under the condition that the display color of the subtitle information and the background color of the subtitle display area have the first color difference, the display color of the subtitle information and the background color of the subtitle display area have obvious difference, and a user can clearly identify the subtitle information from the subtitle display area, so that the problem that the subtitle information existing in a target image frame is difficult to identify is solved.
Moreover, the obtained target image frame after color difference updating can be replaced by the target image frame before color difference updating, so that the subtitle information of the output target image frame can be clearly identified in the video playing process, and the identification degree of the subtitle information in the video playing process is improved.
Optionally, the determining a target image frame based on a color difference between a display color of the caption information of each of the N buffered image frames and a background color of a caption display area includes:
identifying the display color of the caption information of each of the N cache image frames and the background color of a caption display area;
determining the color difference of each cache image frame, wherein the color difference is the color difference ratio of the display color of the caption information to the background color of the caption display area;
determining a cached image frame of the N cached image frames with the color difference smaller than a second color difference as a target image frame;
wherein a color difference ratio of the second color difference is smaller than a color difference ratio of the first color difference.
In this embodiment, the difference ratio between the display color of the subtitle information of the cached image frame and the background color of the subtitle display area may be compared, that is, the difference degree between the display color of the subtitle information of the cached image frame and the background color of the subtitle display area may be compared to determine whether the cached image frame has a problem that the subtitle information is difficult to identify; if the cached image frame with the subtitle information difficult to identify exists, the cached image frame is determined as the target image frame, so that step 103 is executed, and the problem that the subtitle information existing in the target image frame is difficult to identify is solved.
Wherein, the color difference ratio is used to represent the difference degree of the two colors, for example, the value corresponding to red is 10, the value corresponding to yellow is 15, and the value corresponding to green is 22; then the color ratio of red to yellow can be set to 10/15, and similarly, the color difference ratio of yellow to green can be set to 15/22 as the color difference ratio of the two colors, i.e., the degree of difference between the two colors. The color difference ratio can also be expressed in other manners as long as the difference degree of the two colors can be embodied, and is not described in detail herein.
The second color difference represents that the display color of the subtitle information is very close to the background color of the subtitle display area, and under the color difference, a user cannot clearly recognize the subtitle information from the subtitle display area; accordingly, the buffered image frame having the color difference smaller than the second color difference is determined as the target image frame.
In the process of identifying the display color of the caption information of the cache image frame and the background color of the caption display area, the display color of the caption information and the background color of the caption display area can be obtained by identifying the caption color of the image frame and the pixel data of the caption area in an artificial intelligence identification mode.
In the process of determining the color difference between the display color of the subtitle information and the background color of the subtitle display area, the similarity between the display color of the subtitle information and the background color of the subtitle display area can be calculated based on HSV to judge whether the display color of the subtitle information is similar to the background color of the subtitle display area. When the display color of the obtained caption information is close to the background color of the caption display area, namely, the color difference between the display color of the caption information and the background color of the caption display area is smaller than the second color difference, the cached image frame is determined to be the target image frame, namely, the caption information of the cached image frame has the problem of difficult identification.
Optionally, the adjusting the color difference between the display color of the subtitle information of the target image frame and the background color of the subtitle display area to a first color difference includes:
adjusting the display color of the subtitle information of the target image frame to enable the color difference between the display color of the subtitle information of the target image frame and the background color of a subtitle display area to be a first color difference;
alternatively, the first and second electrodes may be,
and adjusting the background color of the subtitle display area of the target image frame to enable the color difference between the display color of the subtitle information of the target image frame and the background color of the subtitle display area to be a first color difference.
In this embodiment, in the process of adjusting the color difference between the display color of the subtitle information of the target image frame and the background color of the subtitle display area to the first color difference, the color difference between the display color of the subtitle information and the background color of the subtitle display area may be adjusted to the first color difference by adjusting only the display color of the subtitle information of the target image frame; the color difference between the display color of the subtitle information and the background color of the subtitle display area may be adjusted to the first color difference only by adjusting the background color of the subtitle display area of the target image frame.
In addition, the display color of the subtitle information and the background color of the subtitle display area can be adjusted to be the first color difference.
In any of the adjustment methods, the color difference between the display color of the subtitle information and the background color of the subtitle display region is adjusted to the first color difference, so that the display color of the subtitle information is clearly distinguished from the background color of the subtitle display region, and the recognition degree of the subtitle information is improved.
In the process of adjusting the background color of the subtitle display area, the background color around the outline of the subtitle information can be automatically adapted and adjusted based on the HSV color similarity algorithm of the human eye features, so that the similarity between the background color and the display color of the subtitle information is far. For example, the display color of the subtitle information may be selected as a reference color, and then a background color with a relatively large recognition degree is selected through a color similarity algorithm based on HSV, so that the similarity between the display color of the subtitle information and the background color of the subtitle display area is greater than a reference value, the reference value may be an obviously distinguished difference value obtained through artificial intelligence training, that is, the similarity between the display color of the subtitle information and the background color of the subtitle display area is greater than the reference value, and a user can clearly identify the subtitle information from the subtitle display area.
In the process of adjusting the display color of the subtitle information, the display color of the subtitle information can be automatically adapted and adjusted based on the HSV color similarity algorithm of human eye features, so that the similarity between the display color of the subtitle information and the background color of a subtitle display area is far. For example, the background color of the subtitle display area may be selected as a reference color, and then the display color of the subtitle information with a relatively large recognition degree is selected through a HSV-based color similarity algorithm, so that the similarity between the display color of the subtitle information and the background color of the subtitle display area is greater than a reference value, which may be a clearly distinguished difference value obtained through artificial intelligence training, i.e., the similarity between the display color of the subtitle information and the background color of the subtitle display area is greater than the reference value, and a user may clearly identify the subtitle information from the subtitle display area.
In the process of obtaining the target image frame after color difference updating, the adjusted part and the non-adjusted part of the target image frame can be synthesized to obtain the target image frame after color difference updating, and the target image frame before color difference updating is replaced, so that the subtitle information of the output target image frame can be clearly identified in the video playing process, and the identification degree of the subtitle information in the video playing process is improved.
In addition, the scheme can be applied in the process of editing the video, so that the problem that the display color of the subtitle information is close to the background color of the subtitle display area can be solved by a video editor in the process of editing the video.
According to the video image processing method, N cache image frames are obtained in the video playing process, wherein N is a positive integer; determining a target image frame based on the color difference between the display color of the caption information of each of the N cache image frames and the background color of a caption display area; adjusting the color difference between the display color of the subtitle information of the target image frame and the background color of a subtitle display area to a first color difference to obtain the target image frame after color difference updating, and replacing the target image frame before color difference updating with the target image frame after color difference updating. This can improve the recognition of the subtitle information in the video image.
It should be noted that, in the video image processing method provided in the embodiment of the present application, the execution subject may be a video image processing apparatus, or a control module of the video image processing apparatus for executing the method for processing the subtitle color. In the embodiment of the present application, a method for performing subtitle color processing by a video image processing apparatus is taken as an example, and the video image processing apparatus provided in the embodiment of the present application is described.
Referring to fig. 2, fig. 2 is a block diagram of a video image processing apparatus according to an embodiment of the present application, and as shown in fig. 2, the video image processing apparatus 200 includes:
an obtaining module 201, configured to obtain N cached image frames in a video playing process, where N is a positive integer;
a determining module 202, configured to determine a target image frame based on a color difference between a display color of the subtitle information of each of the N buffered image frames and a background color of a subtitle display area;
the processing module 203 is configured to adjust a color difference between a display color of the subtitle information of the target image frame and a background color of the subtitle display area to a first color difference, obtain the target image frame after updating the color difference, and replace the target image frame before updating the color difference with the target image frame after updating the color difference.
Optionally, the determining module 202 includes:
the identification unit is used for identifying the display color of the caption information of each cache image frame in the N cache image frames and the background color of a caption display area;
the first determining unit is used for determining the color difference of each cache image frame, wherein the color difference is the color difference ratio of the display color of the caption information to the background color of the caption display area;
a second determining unit, configured to determine, as a target image frame, a buffered image frame, of the N buffered image frames, where the color difference is smaller than a second color difference;
wherein a color difference ratio of the second color difference is smaller than a color difference ratio of the first color difference.
Optionally, the processing module 203 is specifically configured to adjust a display color of the subtitle information of the target image frame, so that a color difference between the display color of the subtitle information of the target image frame and a background color of a subtitle display area is a first color difference.
Optionally, the processing module 203 is specifically configured to adjust a background color of a subtitle display area of the target image frame, so that a color difference between a display color of subtitle information of the target image frame and the background color of the subtitle display area is a first color difference.
The video image processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Network Attached Storage (NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The video image processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The video image processing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 3, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and executable on the processor 301, where the program or the instruction is executed by the processor 301 to implement each process of the video image processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Referring to fig. 4, fig. 4 is a block diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 4, the electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. Drawing (A)4The electronic device structures shown in the figures do not constitute limitations of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 410 is configured to obtain N cached image frames in a video playing process, where N is a positive integer; a processor 410, configured to determine a target image frame based on a color difference between a display color of the subtitle information of each of the N buffered image frames and a background color of a subtitle display area; the processor 410 is configured to adjust a color difference between a display color of subtitle information of the target image frame and a background color of a subtitle display area to a first color difference, obtain the target image frame after updating the color difference, and replace the target image frame before updating the color difference with the target image frame after updating the color difference.
Optionally, the processor 410 is configured to identify a display color of the subtitle information and a background color of the subtitle display area of each of the N buffered image frames; a processor 410 for determining a color difference for each buffered image frame, the color difference being a color difference ratio of a display color of the subtitle information to a background color of the subtitle display area; a processor 410, configured to determine a buffered image frame of the N buffered image frames, in which the color difference is smaller than a second color difference, as a target image frame; wherein a color difference ratio of the second color difference is smaller than a color difference ratio of the first color difference.
Optionally, the processor 410 is configured to adjust a display color of the subtitle information of the target image frame, so that a color difference between the display color of the subtitle information of the target image frame and a background color of a subtitle display area is a first color difference.
Optionally, the processor 410 is configured to adjust a background color of the subtitle display area of the target image frame, so that a color difference between a display color of the subtitle information of the target image frame and the background color of the subtitle display area is a first color difference.
It should be understood that in the embodiment of the present application, the input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 410 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the video image processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the video image processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A video image processing method, comprising:
in the video playing process, N cache image frames are obtained, wherein N is a positive integer;
determining a target image frame based on the color difference between the display color of the caption information of each of the N cache image frames and the background color of a caption display area;
adjusting the color difference between the display color of the subtitle information of the target image frame and the background color of a subtitle display area to a first color difference to obtain the target image frame after color difference updating, and replacing the target image frame before color difference updating with the target image frame after color difference updating.
2. The method of claim 1, wherein determining the target image frame based on a color difference between a display color of the caption information and a background color of a caption display area of each of the N buffered image frames comprises:
identifying the display color of the caption information of each of the N cache image frames and the background color of a caption display area;
determining the color difference of each cache image frame, wherein the color difference is the color difference ratio of the display color of the caption information to the background color of the caption display area;
determining a cached image frame of the N cached image frames with the color difference smaller than a second color difference as a target image frame;
wherein a color difference ratio of the second color difference is smaller than a color difference ratio of the first color difference.
3. The method according to claim 1 or 2, wherein the adjusting the color difference between the display color of the subtitle information of the target image frame and the background color of the subtitle display area to a first color difference comprises:
and adjusting the display color of the subtitle information of the target image frame to enable the color difference between the display color of the subtitle information of the target image frame and the background color of a subtitle display area to be a first color difference.
4. The method according to claim 1 or 2, wherein the adjusting the color difference between the display color of the subtitle information of the target image frame and the background color of the subtitle display area to a first color difference comprises:
and adjusting the background color of the subtitle display area of the target image frame to enable the color difference between the display color of the subtitle information of the target image frame and the background color of the subtitle display area to be a first color difference.
5. A video image processing apparatus characterized by comprising:
the acquisition module is used for acquiring N cache image frames in the video playing process, wherein N is a positive integer;
the determining module is used for determining a target image frame based on the color difference between the display color of the caption information of each cache image frame in the N cache image frames and the background color of a caption display area;
and the processing module is used for adjusting the color difference between the display color of the subtitle information of the target image frame and the background color of the subtitle display area to a first color difference to obtain the target image frame after color difference updating, and replacing the target image frame before color difference updating with the target image frame after color difference updating.
6. The video image processing apparatus of claim 5, wherein the determining module comprises:
the identification unit is used for identifying the display color of the caption information of each cache image frame in the N cache image frames and the background color of a caption display area;
the first determining unit is used for determining the color difference of each cache image frame, wherein the color difference is the color difference ratio of the display color of the caption information to the background color of the caption display area;
a second determining unit, configured to determine, as a target image frame, a buffered image frame, of the N buffered image frames, where the color difference is smaller than a second color difference;
wherein a color difference ratio of the second color difference is smaller than a color difference ratio of the first color difference.
7. The apparatus according to claim 5 or 6, wherein the processing module is specifically configured to adjust the display color of the subtitle information of the target image frame so that a color difference between the display color of the subtitle information of the target image frame and a background color of a subtitle display area is a first color difference.
8. The apparatus according to claim 5 or 6, wherein the processing module is specifically configured to adjust a background color of a subtitle display area of the target image frame, so that a color difference between a display color of the subtitle information of the target image frame and the background color of the subtitle display area is a first color difference.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the video image processing method according to any one of claims 1 to 4.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the video image processing method according to any one of claims 1 to 4.
CN202011320513.2A 2020-11-23 2020-11-23 Video image processing method and device and electronic equipment Pending CN112511890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011320513.2A CN112511890A (en) 2020-11-23 2020-11-23 Video image processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011320513.2A CN112511890A (en) 2020-11-23 2020-11-23 Video image processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112511890A true CN112511890A (en) 2021-03-16

Family

ID=74959495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011320513.2A Pending CN112511890A (en) 2020-11-23 2020-11-23 Video image processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112511890A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550714A (en) * 2021-06-30 2022-12-30 花瓣云科技有限公司 Subtitle display method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204807A (en) * 2015-09-24 2015-12-30 北京金山安全软件有限公司 Method and device for adjusting color of display content at front end of screen
CN105812888A (en) * 2016-03-31 2016-07-27 北京奇艺世纪科技有限公司 Character display method and device
CN105828165A (en) * 2016-04-29 2016-08-03 维沃移动通信有限公司 Method and terminal for acquiring caption
CN111290723A (en) * 2020-02-05 2020-06-16 北京小米移动软件有限公司 Display background adjusting method, device, terminal and storage medium
CN111669664A (en) * 2020-06-17 2020-09-15 Oppo广东移动通信有限公司 Video playing method, video playing device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204807A (en) * 2015-09-24 2015-12-30 北京金山安全软件有限公司 Method and device for adjusting color of display content at front end of screen
CN105812888A (en) * 2016-03-31 2016-07-27 北京奇艺世纪科技有限公司 Character display method and device
CN105828165A (en) * 2016-04-29 2016-08-03 维沃移动通信有限公司 Method and terminal for acquiring caption
CN111290723A (en) * 2020-02-05 2020-06-16 北京小米移动软件有限公司 Display background adjusting method, device, terminal and storage medium
CN111669664A (en) * 2020-06-17 2020-09-15 Oppo广东移动通信有限公司 Video playing method, video playing device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550714A (en) * 2021-06-30 2022-12-30 花瓣云科技有限公司 Subtitle display method and related equipment
WO2023273729A1 (en) * 2021-06-30 2023-01-05 花瓣云科技有限公司 Subtitle display method and related device

Similar Documents

Publication Publication Date Title
CN110675310B (en) Video processing method and device, electronic equipment and storage medium
CN109783178B (en) Color adjusting method, device, equipment and medium for interface component
CN108038836B (en) Image processing method and device and mobile terminal
CN108234882B (en) Image blurring method and mobile terminal
US11409794B2 (en) Image deformation control method and device and hardware device
CN109298912B (en) Theme color adjusting method and device, storage medium and electronic equipment
CN113126862B (en) Screen capture method and device, electronic equipment and readable storage medium
CN112333385B (en) Electronic anti-shake control method and device
CN112947824A (en) Display parameter adjusting method and device, electronic equipment and medium
CN112289278A (en) Screen brightness adjusting method, screen brightness adjusting device and electronic equipment
CN109639981B (en) Image shooting method and mobile terminal
CN112565909B (en) Video playing method and device, electronic equipment and readable storage medium
CN112367486B (en) Video processing method and device
US10438377B2 (en) Method and device for processing a page
CN111901519B (en) Screen light supplement method and device and electronic equipment
CN112511890A (en) Video image processing method and device and electronic equipment
CN109544441B (en) Image processing method and device, and skin color processing method and device in live broadcast
CN111835937A (en) Image processing method and device and electronic equipment
CN112150444A (en) Method and device for identifying attribute features of face image and electronic equipment
CN114518859A (en) Display control method, display control device, electronic equipment and storage medium
CN114092452A (en) Method and device for enhancing image visual effect, storage medium and terminal equipment
CN112199149A (en) Interface rendering method and device and electronic equipment
CN114339410A (en) Frame insertion method and device and electronic equipment
CN111968605A (en) Exposure adjusting method and device
CN114638951B (en) House model display method and device, electronic equipment and readable storage medium

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210316

WD01 Invention patent application deemed withdrawn after publication