CN113038232A - Video playing method, device, equipment, server and storage medium - Google Patents

Video playing method, device, equipment, server and storage medium Download PDF

Info

Publication number
CN113038232A
CN113038232A CN202110263668.5A CN202110263668A CN113038232A CN 113038232 A CN113038232 A CN 113038232A CN 202110263668 A CN202110263668 A CN 202110263668A CN 113038232 A CN113038232 A CN 113038232A
Authority
CN
China
Prior art keywords
video frame
foreground object
target foreground
video
adjustment scheme
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.)
Withdrawn
Application number
CN202110263668.5A
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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202110263668.5A priority Critical patent/CN113038232A/en
Publication of CN113038232A publication Critical patent/CN113038232A/en
Withdrawn 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/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/44Processing 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Receiver Circuits (AREA)

Abstract

The invention relates to the technical field of videos and discloses a video playing method, a video playing device, video playing equipment, a video playing server and a storage medium. According to the method, the video frame is obtained through the terminal equipment, when the target foreground object exists in the video frame, the position information of the target foreground object and the adjustment scheme information of the video frame are obtained, the image quality of the video frame is adjusted based on the position information and the adjustment scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame, and the adjusted video frame is played; the problem of video playback mode singleness among the prior art, can't satisfy diversified user's demand is solved, simultaneously, based on target foreground object's positional information and adjustment scheme information, adjust the picture quality of video frame to in the reinforcing video frame, the contrast degree of target foreground object and background makes target foreground object more outstanding, attracts the user to pay close attention to, has promoted user experience.

Description

Video playing method, device, equipment, server and storage medium
Technical Field
The present invention relates to the field of video processing, and in particular, to a video playing method, apparatus, device, server, and storage medium.
Background
With the popularization of intelligent terminal devices such as intelligent televisions and the like and the development of communication technologies, videos are increasingly popular with users as important transmission media.
However, at present, the video playing mode is single, and the diversified user requirements cannot be met.
Disclosure of Invention
The invention mainly aims to provide a video playing method, a video playing device, video playing equipment, a video playing server and a video playing storage medium, and aims to solve the technical problems that the existing video playing mode is single and cannot meet the requirements of diversified users.
In order to achieve the above object, the present invention provides a video playing method applied to a terminal device, where the video playing method includes:
acquiring a video frame;
when a target foreground object exists in the video frame, acquiring position information of the target foreground object and adjustment scheme information of the video frame;
adjusting the image quality of the video frame based on the position information and the adjustment scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame;
and playing the adjusted video frame.
Optionally, the target foreground object includes a person and/or an animal, and the adjustment scheme information is determined based on a characteristic parameter of the target foreground object, where the characteristic parameter includes at least one of a gender, a race, an age, and a position of the target foreground object.
Optionally, the adjustment scheme information includes foreground adjustment scheme information corresponding to the target foreground object and/or background adjustment scheme information corresponding to a background of the video frame;
the step of adjusting the image quality of the video frame based on the position information and the adjustment scheme information to enhance the contrast degree of the target foreground object and the background in the video frame includes:
based on the position information and the foreground adjustment scheme information, enhancing the image quality of the target foreground object in the video frame so as to enhance the contrast degree of the target foreground object and the background in the video frame;
and/or the presence of a gas in the gas,
based on the position information and the background adjustment scheme information, reducing the image quality of the background in the video frame to enhance the contrast degree of the target foreground object and the background in the video frame.
Optionally, the step of acquiring the position information of the target foreground object and the adjustment scheme information of the video frame when the target foreground object exists in the video frame includes:
sending the video frame to a server so that the server acquires the position information of a target foreground object and the adjustment scheme information of the video frame when detecting that the target foreground object exists in the video frame;
and receiving the position information and the adjustment scheme information sent by the server.
In addition, in order to achieve the above object, the present invention further provides a video playing method applied to a server, where the video playing method includes:
receiving a video frame sent by terminal equipment;
judging whether a target foreground object exists in the video frame;
if so, acquiring the position information of the target foreground object and the adjustment scheme information of the video frame;
and sending the position information and the adjustment scheme information to the terminal equipment so that the terminal equipment adjusts the image quality of the video frame based on the position information and the adjustment scheme information to enhance the contrast degree of the target foreground object and the background in the video frame and play the adjusted video frame.
Optionally, if yes, the step of obtaining the position information of the target foreground object and the adjustment scheme information of the video frame includes:
if so, acquiring the position information of the target foreground object;
identifying the target foreground object to obtain characteristic parameters of the target foreground object, wherein the characteristic parameters comprise at least one of gender, race, age and position of the target foreground object;
determining adjustment scheme information for the video frame based on the characteristic parameters.
In addition, in order to achieve the above object, the present invention further provides a video playing apparatus, which is applied to a terminal device, and the video playing apparatus includes:
the first acquisition module is used for acquiring a video frame;
a second obtaining module, configured to obtain, when a target foreground object exists in the video frame, position information of the target foreground object and adjustment scheme information of the video frame;
the adjusting module is used for adjusting the image quality of the video frame based on the position information and the adjusting scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame;
and the playing module is used for playing the adjusted video frame.
In addition, to achieve the above object, the present invention further provides a video playing apparatus applied to a server, the video playing apparatus including:
the receiving module is used for receiving the video frame sent by the terminal equipment;
the judging module is used for judging whether a target foreground object exists in the video frame;
a third obtaining module, configured to, if yes, obtain position information of the target foreground object and adjustment scheme information of the video frame;
and the sending module is used for sending the position information and the adjustment scheme information to the terminal equipment so as to enable the terminal equipment to adjust the image quality of the video frame based on the position information and the adjustment scheme information, enhance the contrast degree of the target foreground object and the background in the video frame, and play the adjusted video frame.
In addition, to achieve the above object, the present invention further provides a video playback device, including: the video playing method comprises a memory, a processor and a first video playing program or a second video playing program which is stored on the memory and runs on the processor, wherein the first video playing program realizes the video playing method on the terminal equipment side when being executed by the processor, and the second video playing program realizes the video playing method on the server side when being executed by the processor.
In addition, in order to achieve the above object, the present invention further provides a storage medium, where a first video playing program or a second video playing program is stored, the first video playing program, when executed by a processor, implements the steps of the video playing method on the terminal device side, and the second video playing program, when executed by the processor, implements the steps of the video playing method on the server side.
According to the technical scheme provided by the invention, terminal equipment acquires a video frame, acquires position information of a target foreground object and adjustment scheme information of the video frame when the target foreground object exists in the video frame, adjusts the image quality of the video frame on the basis of the position information and the adjustment scheme information so as to enhance the contrast degree of the target foreground object and a background in the video frame, and plays the adjusted video frame; the problem of video playback mode singleness among the prior art, can't satisfy diversified user's demand is solved.
The technical scheme provided by the invention provides a new video playing mode, so that the video playing mode is enriched, and meanwhile, the image quality of the video frame is adjusted based on the position information and the adjustment scheme information of the target foreground object, so that the contrast degree of the target foreground object and the background in the video frame is enhanced, the target foreground object is more prominent, the attention of a user is attracted, and the user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of a video playback device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a video playing method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a video playing method according to a fourth embodiment of the present invention;
FIG. 4 is a block diagram of a video player according to a first embodiment of the present invention;
fig. 5 is a block diagram of a video playback device according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a video playback device in a hardware operating environment according to an embodiment of the present invention.
The video playback device may be a User Equipment (UE) such as a Mobile phone, a smart phone, a laptop, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle-mounted device, a wearable device, a computing device, a television, a monitoring device, or other processing device connected to a wireless modem, a Mobile Station (MS), or the like. The device may be referred to as a user terminal, portable terminal, desktop terminal, etc.
In general, a video playback device includes: at least one processor 301, a memory 302, and a first video playing program or a second video playing program stored on the memory and executable on the processor, wherein the first video playing program is configured to implement the steps of the terminal device side in the video playing method according to any of the following embodiments, and the second video playing program is configured to implement the steps of the server side in the video playing method according to any of the following embodiments.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. The processor 301 may further include an AI (Artificial Intelligence) processor for processing operations related to the video playback method, so that the video playback method model can be trained and learned autonomously, thereby improving efficiency and accuracy.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 301 to implement a video playback method provided by method embodiments herein.
In some embodiments, the video playing device may further include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. Various peripheral devices may be connected to communication interface 303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display screen 305, and a power source 306.
The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to capture touch signals on or over the surface of the display screen 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the display screen 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 305 may be one, the front panel of the electronic device; in other embodiments, the display screens 305 may be at least two, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the display screen 305 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device. Even further, the display screen 305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 305 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 306 is used to power various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When the power source 306 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology. Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the video playback device, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a first video playing program or a second video playing program, where the first video playing program is implemented by a processor in a video playing method according to any one of the following embodiments, and a step on a terminal device side is implemented by the storage medium, and the second video playing program is implemented by the processor in a video playing method according to any one of the following embodiments, and a step on a server side is implemented by the storage medium. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. It is determined that, by way of example, the program instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
It will be understood by those skilled in the art that all or part of the processes in the method according to any of the following embodiments may be implemented by a computer program to instruct associated hardware, and the video playback program may be stored in a computer-readable storage medium, and when executed, may include the processes according to the embodiments of the methods described below. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the related art, a terminal device such as a smart television generally plays a video frame directly after acquiring the video frame. With the size of the terminal equipment becoming larger and larger, the display screen becomes larger and larger. Due to the fact that the sight range of a user is limited, when the display screen is large, the user cannot consider the whole screen, the user loses focus, and user experience is reduced.
Based on the above hardware structure, embodiments of the present invention are proposed.
The embodiment of the video playing method comprises the following steps:
referring to fig. 2, fig. 2 is a flowchart illustrating a video playing method according to a first embodiment of the present invention.
The video playing method in the embodiment includes the following steps:
step S20: the terminal device acquires the video frame.
It should be noted that the terminal device may acquire the video frame.
For convenience of subsequent playing, the terminal device here acquires a video frame to be played. In some embodiments, the terminal device may acquire a video frame to be played by using a video slicing technique. Of course, the terminal device may also obtain the video frame to be played by using other techniques.
In order to improve the response speed, the terminal device may obtain the video frame to be played in real time in the process of playing the video.
Step S21: when a target foreground object exists in a video frame, the terminal equipment acquires the position information of the target foreground object and the adjustment scheme information of the video frame.
Wherein the target foreground object comprises at least one of a human, an animal and the like. The target foreground object may be set by a user or a terminal developer.
The position information of the target foreground object is the position information of the target foreground object in the video frame. For example, a coordinate system may be established in the video frame with a certain point in the video frame as an origin, and coordinates of the target foreground object in the coordinate system may be obtained to obtain the position information of the target foreground object.
In the embodiment of the invention, when the target foreground object exists in the video frame, the position information of the target foreground object and the adjustment scheme information of the video frame are obtained. For example, if the target foreground object is a person, when the person exists in the video frame, the position information of the person and the adjustment scheme information of the video frame are acquired; assuming that the target foreground object is an animal, acquiring position information of the animal and adjustment scheme information of the video frame when the animal exists in the video frame; if the target foreground object is a person or an animal, when the person and/or the animal exists in the video frame, the position information of the person and/or the animal and the adjustment scheme information of the video frame are acquired.
Step S22: and the terminal equipment adjusts the image quality of the video frame based on the position information and the adjustment scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame.
It should be understood that the image quality is a picture quality, and the image quality can be represented by image quality parameters, and the image quality parameters include at least one of parameters such as brightness, sharpness, vividness, sharpness degree, noise reduction degree, and contrast.
The background is determined based on the target foreground object, and the background is an area in the video frame except the target foreground object.
In the embodiment of the invention, after the position information of the target foreground object and the adjustment scheme information of the video frame are obtained, the terminal equipment adjusts the image quality of the video frame based on the position information and the adjustment scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame; for example, assuming that the image quality parameters include brightness, vividness, sharpening degree, noise reduction degree and contrast, the terminal device may adjust the brightness, vividness, sharpening degree, noise reduction degree and contrast of the video frame based on the position information and the adjustment scheme information, so as to enhance the contrast of the target foreground object and the background in the video frame.
Step S23: and the terminal equipment plays the adjusted video frame.
And after the terminal equipment adjusts the image quality parameters of the video frames, playing the adjusted video frames.
According to the video playing method provided by the embodiment of the invention, the terminal equipment acquires the video frame, when the target foreground object exists in the video frame, the position information of the target foreground object and the adjustment scheme information of the video frame are acquired, the image quality of the video frame is adjusted based on the position information and the adjustment scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame, and the adjusted video frame is played, so that a new video playing mode is provided, meanwhile, the image quality of the video frame is adjusted based on the position information and the adjustment scheme information of the target foreground object so as to enhance the contrast degree of the target foreground object and the background in the video frame, so that the target foreground object is more prominent, the attention of a user to the target foreground object is attracted, the user is prevented from losing focus, and the user experience is improved.
Based on the first embodiment, a second embodiment of the video playing method of the present invention is provided. In the embodiment of the present invention, the adjustment scheme information includes foreground adjustment scheme information corresponding to the target foreground and/or background adjustment scheme information corresponding to the background.
Step S22 includes: the terminal equipment enhances the image quality of a target foreground object in the video frame based on the position information and the foreground adjustment scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame; and/or reducing the image quality of the background in the video frame based on the position information and the background adjusting scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame.
Step S22 includes the following three implementation manners.
First, the adjustment scheme information includes foreground adjustment scheme information, and in this implementation, the step S22 includes: and the terminal equipment enhances the image quality of the target foreground object in the video frame based on the position information and the foreground adjustment scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame. That is, based on the position information, a region of the target foreground object in the video frame can be specified, and the contrast between the target foreground object and the background can be enhanced by enhancing the image quality of the region.
It should be understood that the enhancement of the image quality of the target foreground object may be achieved by adjusting image quality parameters of the target foreground object, and the specific enhancement mode may be flexibly set according to actual needs. In some embodiments, the image quality of the target foreground object may be enhanced by increasing the corresponding image quality parameter. For example, assuming that the image quality parameters include brightness, vividness, and contrast, after the region of the target foreground object is determined from the video frame based on the position information, the image quality of the target foreground object may be enhanced by increasing the brightness, vividness, and contrast of the region.
The foreground adjustment scheme information may include a preset image quality parameter value, and when the image quality of the target foreground object is enhanced in step S22, the image quality parameter of the target foreground object may be adjusted to the preset image quality parameter value based on the position information and the preset image quality parameter value, so as to enhance the image quality of the target foreground object. For example, if the image quality parameter is a brightness value and the preset brightness value in the foreground adjustment scheme information is 200, the brightness of the target foreground object is adjusted to 200 in step S22.
In order to enhance the contrast between the target foreground object and the background and make the adjusted target foreground object fit the target foreground object before adjustment, the foreground adjustment scheme information may include an image quality parameter increase range. When the image quality of the target foreground object is enhanced in step S22, the image quality parameter of the target foreground object may be increased based on the position information and the image quality parameter increasing range, so as to enhance the image quality of the target foreground object. For example, if the image quality parameter is contrast, the contrast increase range in the foreground adjustment scheme information is 2%, and the contrast of the target object in the video frame is 100, the contrast of the target foreground object is increased by 2%, that is, adjusted to 102 in step S22.
Secondly, the adjustment scheme information includes background adjustment scheme information corresponding to the background, and in this implementation, the step S22 includes: and the terminal equipment reduces the image quality of the background in the video frame based on the position information and the background adjusting scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame. Based on the position information, a background area except the target foreground object in the video frame can be determined, and the contrast degree of the target foreground object and the background can be enhanced by reducing the image quality of the background area.
It should be understood that the image quality of the background may be reduced by adjusting image quality parameters of the background, and the specific reduction mode may be flexibly set according to actual needs. In some embodiments, the image quality of the background may be reduced by reducing the corresponding image quality parameter. For example, it is assumed that the image quality parameters include brightness and vividness, a background region other than the target foreground object is identified from the video frame based on the position information, and the brightness and vividness of the background region are reduced to reduce the image quality of the background, thereby enhancing the contrast between the target foreground object and the background.
The background adjustment scheme information may include a preset image quality parameter value, and when the image quality of the target foreground object is reduced in step S22, the image quality parameter of the background may be adjusted to the preset image quality parameter value based on the position information and the preset image quality parameter value. For example, if the image quality parameter is a brightness value and the preset brightness value in the background adjustment scheme information is 120, the brightness of the background is adjusted to 120 in step S22.
In order to enhance the contrast between the target foreground object and the background and make the adjusted background more fit to the background before adjustment, the background adjustment scheme information may include an image quality parameter reduction range. When the image quality of the background is to be reduced in step S22, the image quality parameter of the background may be reduced based on the position information and the image quality parameter reduction width to reduce the image quality of the background. For example, if the image quality parameter is the noise reduction degree, the reduction range of the noise reduction degree in the background adjustment plan information is 4%, and the noise reduction degree of the background in the video frame is 50, the noise reduction degree of the background is reduced by 4%, that is, adjusted to 48 in step S22.
Thirdly, the adjustment scheme information includes foreground adjustment scheme information and background adjustment scheme information, in this implementation, step S22 includes: based on the position information, the foreground adjustment scheme information and the background adjustment scheme information, the image quality of a target foreground object in the video frame is enhanced, and the image quality of a background in the video frame is reduced, so that the contrast degree of the target foreground object and the background is enhanced. The above description may be referred to a mode of enhancing the image quality of the target foreground object and reducing the image quality of the background. For example, assuming that the image quality parameter includes brightness, based on the position information, the foreground adjustment scheme information, and the background adjustment scheme information, the brightness of the target foreground object in the video frame is increased, and the brightness of the background in the video frame is decreased, so as to enhance the contrast degree between the target foreground object and the background.
In the embodiment of the invention, the contrast degree of the target foreground and the background is enhanced by enhancing the image quality of the target foreground object and/or reducing the image quality of the background, so that the image quality of the target foreground object can be ensured, and the target foreground object can be highlighted.
Based on the above embodiments, a third embodiment of the video playing method of the present invention is provided. In the embodiment of the present invention, the target foreground object includes a person and/or an animal (that is, the target foreground object may include a person, may include an animal, and may also include a person and an animal), and in order to make the picture effect of the adjusted video frame better, the adjustment scheme information is determined based on the characteristic parameter of the target foreground object. It should be understood that both the foreground adjustment scheme information and the background adjustment scheme information may be determined based on adjustment parameters of the target foreground image.
The target foreground object includes a person and/or an animal, and therefore, the characteristic parameter of the target foreground object may include at least one of a gender, a race, an age, a position, a ratio of the target foreground object to the video frame, and the like. It should be noted that gender and age are mainly for people, the position is the position of the target foreground object in the video frame (i.e. the position information of the target foreground object), and the ratio of the gender and age to the video frame is the ratio of the size of the target foreground object to the size of the video frame.
In order to make the picture effect of the adjusted video frame better, in the embodiment of the present invention, the adjustment scheme information may be determined based on the characteristic parameters of the target foreground object. That is, the characteristic parameters of the target foreground object are different, and the adjustment scheme information of the video frame is different.
For example, it is assumed that the characteristic parameter of the target foreground object includes a position, because the middle area of the video frame is usually an area that is focused by the user, if the target foreground object is located in the middle of the video frame, the adjustment range for the target foreground object and/or the background in the adjustment scheme information may be lower, and if the target foreground object is not located in the middle of the video frame, the adjustment range for the target foreground object and/or the background in the adjustment scheme information may be higher, so that when the user is attracted to focus on the target foreground object, a situation that the picture effect is low due to an excessively large adjustment range is avoided. For better understanding, an example is described here, and it is assumed that the adjustment scheme information is foreground adjustment scheme information, where the foreground adjustment scheme information includes an increase amplitude of luminance, and if the target foreground object is located in the middle of a video frame, the increase amplitude of luminance in the foreground adjustment scheme information may be 2%, and if the target foreground object is located in the middle of the video frame, the increase amplitude of luminance in the foreground adjustment scheme information may be 5%. For another example, assuming that the characteristic parameter of the target foreground object includes a ratio of the target foreground object to the video frame, since the ratio of the target foreground object to the video frame is large, the target foreground object is already sufficiently attractive to the user, therefore, if the ratio of the target foreground object to the video frame is large, an adjustment range for the target foreground object and/or the background in the adjustment scheme information may be low, and if the ratio of the target foreground object to the video frame is small, an adjustment range for the target foreground object and/or the background in the adjustment scheme information may be high. For better understanding, an example is described here, and it is assumed that the adjustment scheme information is background adjustment scheme information, the background adjustment scheme information includes a reduction range of the contrast, if the ratio of the target foreground object to the video frame is large, the reduction range of the contrast in the background adjustment scheme information is 1%, and if the ratio of the target foreground object to the video frame is small, the reduction range of the contrast in the background adjustment scheme information is 6%.
It should be noted that the specific form of the adjustment scheme information determined based on the characteristic parameters of the target foreground object may be flexibly set according to actual needs. In some embodiments, a mapping relationship between the feature parameter and the adjustment scheme information may be preset, and then the adjustment scheme information of the video frame may be determined based on the feature parameter of the target foreground object and the mapping relationship between the preset feature parameter and the adjustment scheme information.
It should be understood that one or at least two target foreground objects may be included in a video frame.
If only one target foreground object is included in the video frame, foreground adjustment scheme information and/or background adjustment scheme information may be determined based on adjustment parameters of the target foreground object.
If the video frame includes at least two target foreground objects (for example, the video frame includes 2 target foreground objects, 3 target foreground objects, 4 target foreground objects, or 5 target foreground objects), when determining the background adjustment scheme information, one target foreground object may be selected from the at least two target foreground objects, and the background adjustment scheme information is determined based on the selected target foreground object, where the selection manner may be flexibly set according to actual needs, for example, the selection may be random, or a target foreground object occupying the largest proportion of the video frame is selected, or a target foreground object located in the middle of the video frame is selected.
If the video frame comprises at least two target foreground objects, when foreground adjustment scheme information is determined, for each target foreground object, determining corresponding foreground adjustment scheme information based on the characteristic parameters of the target foreground object. That is, in the same video frame, the corresponding foreground adjustment scheme information of different target foreground objects is different. In this manner, step S21 includes: and enhancing the image quality of each target foreground object in the video frame based on the position information of each target foreground object and the foreground adjustment scheme information of each target foreground object so as to enhance the contrast degree of the target foreground object and the background in the video frame. For example, assuming that the video frame includes a target foreground object 1 and a target foreground object 2, the corresponding foreground adjustment scheme information 1 is determined based on the characteristic parameters of the target foreground object 1, and the corresponding foreground adjustment scheme information 2 is determined based on the characteristic parameters of the target foreground object 2, in step S21, the image quality of the target foreground object 1 is enhanced based on the position information of the target foreground object 1 and the foreground adjustment scheme information 1, and the image quality of the target foreground object 2 is enhanced based on the position information of the target foreground object 2 and the foreground adjustment scheme information 2.
In the embodiment of the invention, the adjustment scheme information of the video frame is determined based on the adjustment parameters of the target foreground object, and the adjustment parameters of the target foreground object comprise at least one of the parameters of the sex, the race, the age, the position, the proportion of the target foreground object in the video frame and the like, so that the video frame adjusted based on the adjustment scheme information can highlight the target foreground object and has better display effect.
Based on the above embodiments, a fourth embodiment of the video playing method of the present invention is provided. Referring to fig. 3, fig. 3 is a flowchart illustrating a video playing method according to a fourth embodiment of the present invention. In this embodiment of the present invention, in order to reduce the processing pressure of the terminal device, step S21 includes:
step S211: and the terminal equipment sends the video frame to the server.
The server may be a conventional server or a cloud server. It should be understood that a conventional server is a stand-alone hardware device.
In the embodiment of the invention, after the terminal equipment acquires the video frame, the video frame is sent to the server, so that the server acquires the position information of the target foreground object and the adjustment scheme information of the video frame when detecting that the target foreground object exists in the video frame.
Step S212: the server judges whether a target foreground object exists in the video frame.
In the embodiment of the invention, after the server receives the video frame sent by the terminal equipment, the video frame is detected, so that whether the target foreground object exists in the video frame is judged.
The detection mode can be flexibly set based on actual needs. In some embodiments, in order to improve accuracy, the video frame may be detected based on a recognition algorithm model trained in advance, so as to determine whether a target foreground object exists in the video frame. For example, assuming that the target foreground object is a person, the video frame may be detected based on a person recognition algorithm model to determine whether the person exists in the video frame; assuming that the target foreground object is an animal, detecting the video frame based on an animal identification algorithm model to judge whether the animal exists in the video frame; assuming that the target foreground object includes a person and an animal, the video frame may be detected based on a person and animal recognition algorithm model to determine whether the person or the animal exists in the video frame.
Step S213: and if so, the server acquires the position information of the target foreground object and the adjustment scheme information of the video frame.
If the target foreground object exists in the video frame, the video frame needs to be adjusted, so that the server acquires the position information of the target foreground object and the adjustment scheme information of the video frame.
That is to say, in the embodiment of the present invention, the position information of the target foreground object and the adjustment scheme information of the video frame are determined by the server.
The specific manner of determining the adjustment scheme information of the video frame by the server can be referred to in the foregoing description. For example, the server may determine the adjustment scheme information of the video frame based on the feature parameters of the target foreground object, in which case step S213 includes:
step S2131: and if so, the server acquires the position information of the target foreground object.
And if the target foreground object exists in the video frame, the server acquires the position information of the target foreground object.
Step S2132: and the server identifies the target foreground object to obtain the characteristic parameters of the target foreground object.
And the server identifies the target foreground object based on the video frame so as to obtain the characteristic parameters of the target foreground object. The identification mode may be flexibly set according to actual needs, for example, in order to improve the identification accuracy, the target foreground object may be identified based on the identification algorithm model to obtain the characteristic parameters of the target foreground object.
Step S2133: the server determines adjustment scheme information of the video frame based on the characteristic parameters.
And after obtaining the adjustment parameters of the target foreground object, the server determines the adjustment scheme information of the video frame based on the characteristic parameters.
Step S214: and the server sends the position information and the adjustment scheme information to the terminal equipment.
After the server acquires the position information of the target foreground object and the adjustment scheme information of the video frame, the server sends the position information and the adjustment scheme information to the terminal equipment, so that the terminal equipment adjusts the image quality of the video frame based on the position information and the adjustment scheme information, the contrast degree of the target foreground object and the background in the video frame is enhanced, and the adjusted video frame is played.
Step S215: and the terminal equipment receives the position information and the adjustment scheme information sent by the server.
In the embodiment of the invention, terminal equipment acquires a video frame and sends the video frame to a server; the server judges whether a target foreground object exists in the video frame, if so, the server acquires the position information of the target foreground object and the adjustment scheme information of the video frame, and sends the position information and the adjustment scheme information to the terminal equipment; after receiving the position information and the adjustment scheme information, the terminal device adjusts the image quality of the video frame based on the position information and the adjustment scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame and play the adjusted video frame.
Based on the above embodiments, a fifth embodiment of the video playback method of the present invention is provided. In the embodiment of the present invention, in order to reduce the network pressure, step S21 includes:
step 1: and the terminal equipment judges whether a target foreground object exists in the video frame.
In the embodiment of the invention, the terminal equipment detects the video frame to judge whether the target foreground object exists in the video frame.
The detection mode can be flexibly set based on actual needs. In some embodiments, in order to improve accuracy, the video frame may be detected based on a recognition algorithm model trained in advance, so as to determine whether a target foreground object exists in the video frame. For example, assuming that the target foreground object is a person, the video frame may be detected based on a person recognition algorithm model to determine whether the person exists in the video frame; assuming that the target foreground object is an animal, detecting the video frame based on an animal identification algorithm model to judge whether the animal exists in the video frame; assuming that the target foreground object includes a person and an animal, the video frame may be detected based on a person and animal recognition algorithm model to determine whether the person or the animal exists in the video frame.
Step 2: and if so, the terminal equipment acquires the position information of the target foreground object and the adjustment scheme information of the video frame.
And if the target foreground object exists in the video frame, the terminal equipment acquires the position information of the target foreground object and determines the adjustment scheme information of the video frame.
The specific manner of determining the adjustment scheme information of the video frame by the terminal device may be as described above. For example, the terminal device may determine adjustment scheme information of the video frame based on the characteristic parameter of the target foreground object, that is, the terminal device identifies the target foreground object to obtain the characteristic parameter of the target foreground object, and determines the adjustment scheme information of the video frame based on the characteristic parameter of the target foreground object.
The identification mode may be flexibly set according to actual needs, for example, in order to improve the identification accuracy, the target foreground object may be identified based on the identification algorithm model to obtain the characteristic parameters of the target foreground object.
In the embodiment of the invention, the terminal equipment acquires the video frame and judges whether the video frame has the target foreground object, if so, the terminal equipment acquires the position information of the target foreground object and the adjustment scheme information of the video frame, and adjusts the image quality of the video frame based on the position information and the adjustment scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame and play the adjusted video frame.
The embodiment of the video playing device comprises:
based on the foregoing embodiments, a first embodiment of a video playback device according to an embodiment of the present invention is provided. Referring to fig. 4, fig. 4 is a block diagram illustrating a first embodiment of a video playing apparatus according to the present invention, where the video playing apparatus is applied to the terminal device. Wherein the video playback device includes:
the first obtaining module 40 is configured to obtain a video frame.
The second obtaining module 41 is configured to obtain, when a target foreground object exists in the video frame, position information of the target foreground object and adjustment scheme information of the video frame.
And the adjusting module 42 is configured to adjust the image quality of the video frame based on the position information and the adjustment scheme information, so as to enhance the contrast degree between the target foreground object and the background in the video frame.
And a playing module 43, configured to play the adjusted video frame.
It should be noted that the video playing apparatus may further optionally include a corresponding module to implement other steps on the terminal device side in the foregoing video playing method.
Based on the foregoing embodiments, a second embodiment of the video playback device according to the present invention is provided. Referring to fig. 5, fig. 5 is a block diagram illustrating a second embodiment of the video player according to the present invention, wherein the video player is applied to the server. Wherein the video playback device includes:
and the receiving module 50 is configured to receive a video frame sent by the terminal device.
And the judging module 51 is configured to judge whether a target foreground object exists in the video frame.
And a third obtaining module 52, configured to, if yes, obtain position information of the target foreground object and adjustment scheme information of the video frame.
And a sending module 53, configured to send the position information and the adjustment scheme information to the terminal device, so that the terminal device adjusts the image quality of the video frame based on the position information and the adjustment scheme information, so as to enhance the contrast degree between the target foreground object and the background in the video frame, and play the adjusted video frame.
It should be noted that the video playing apparatus may further optionally include a corresponding module to implement other steps at the server side in the foregoing video playing method.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A video playing method is applied to terminal equipment and is characterized by comprising the following steps:
acquiring a video frame;
when a target foreground object exists in the video frame, acquiring position information of the target foreground object and adjustment scheme information of the video frame;
adjusting the image quality of the video frame based on the position information and the adjustment scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame;
and playing the adjusted video frame.
2. The video playback method according to claim 1, wherein the target foreground object includes a person and/or an animal, and the adjustment scheme information is determined based on a characteristic parameter of the target foreground object, the characteristic parameter including at least one of a gender, a race, an age, and a position of the target foreground object.
3. The video playing method according to claim 1, wherein the adjustment scheme information includes foreground adjustment scheme information corresponding to the target foreground object and/or background adjustment scheme information corresponding to a background of the video frame;
the step of adjusting the image quality of the video frame based on the position information and the adjustment scheme information to enhance the contrast degree of the target foreground object and the background in the video frame includes:
based on the position information and the foreground adjustment scheme information, enhancing the image quality of the target foreground object in the video frame so as to enhance the contrast degree of the target foreground object and the background in the video frame;
and/or the presence of a gas in the gas,
based on the position information and the background adjustment scheme information, reducing the image quality of the background in the video frame to enhance the contrast degree of the target foreground object and the background in the video frame.
4. The video playing method according to any one of claims 1 to 3, wherein the step of acquiring the position information of the target foreground object and the adjustment scheme information of the video frame when the target foreground object exists in the video frame comprises:
sending the video frame to a server so that the server acquires the position information of a target foreground object and the adjustment scheme information of the video frame when detecting that the target foreground object exists in the video frame;
and receiving the position information and the adjustment scheme information sent by the server.
5. A video playing method is applied to a server, and the video playing method comprises the following steps:
receiving a video frame sent by terminal equipment;
judging whether a target foreground object exists in the video frame;
if so, acquiring the position information of the target foreground object and the adjustment scheme information of the video frame;
and sending the position information and the adjustment scheme information to the terminal equipment so that the terminal equipment adjusts the image quality of the video frame based on the position information and the adjustment scheme information to enhance the contrast degree of the target foreground object and the background in the video frame and play the adjusted video frame.
6. The video playing method of claim 5, wherein the step of acquiring the position information of the target foreground object and the adjustment scheme information of the video frame if the video frame is the target foreground object comprises:
if so, acquiring the position information of the target foreground object;
identifying the target foreground object to obtain characteristic parameters of the target foreground object, wherein the characteristic parameters comprise at least one of gender, race, age and position of the target foreground object;
determining adjustment scheme information for the video frame based on the characteristic parameters.
7. A video playing device is applied to a terminal device, and the video playing device comprises:
the first acquisition module is used for acquiring a video frame;
a second obtaining module, configured to obtain, when a target foreground object exists in the video frame, position information of the target foreground object and adjustment scheme information of the video frame;
the adjusting module is used for adjusting the image quality of the video frame based on the position information and the adjusting scheme information so as to enhance the contrast degree of the target foreground object and the background in the video frame;
and the playing module is used for playing the adjusted video frame.
8. A video playback apparatus applied to a server, the video playback apparatus comprising:
the receiving module is used for receiving the video frame sent by the terminal equipment;
the judging module is used for judging whether a target foreground object exists in the video frame;
a third obtaining module, configured to, if yes, obtain position information of the target foreground object and adjustment scheme information of the video frame;
and the sending module is used for sending the position information and the adjustment scheme information to the terminal equipment so as to enable the terminal equipment to adjust the image quality of the video frame based on the position information and the adjustment scheme information, enhance the contrast degree of the target foreground object and the background in the video frame, and play the adjusted video frame.
9. A video playback device, characterized in that the video playback device comprises: memory, a processor and a first video playback program or a second video playback program stored on the memory and running on the processor, the first video playback program realizing the steps of the video playback method according to one of claims 1 to 4 when executed by the processor, the second video playback program realizing the steps of the video playback method according to claim 5 or 6 when executed by the processor.
10. A storage medium, characterized in that the storage medium has stored thereon a first video playback program which, when executed by a processor, implements the steps of the video playback method according to any one of claims 1 to 4, or a second video playback program which, when executed by a processor, implements the steps of the video playback method according to claim 5 or 6.
CN202110263668.5A 2021-03-10 2021-03-10 Video playing method, device, equipment, server and storage medium Withdrawn CN113038232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110263668.5A CN113038232A (en) 2021-03-10 2021-03-10 Video playing method, device, equipment, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110263668.5A CN113038232A (en) 2021-03-10 2021-03-10 Video playing method, device, equipment, server and storage medium

Publications (1)

Publication Number Publication Date
CN113038232A true CN113038232A (en) 2021-06-25

Family

ID=76469582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110263668.5A Withdrawn CN113038232A (en) 2021-03-10 2021-03-10 Video playing method, device, equipment, server and storage medium

Country Status (1)

Country Link
CN (1) CN113038232A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784207A (en) * 2021-07-30 2021-12-10 北京达佳互联信息技术有限公司 Video picture display method and device, electronic equipment and storage medium
CN114267220A (en) * 2021-12-27 2022-04-01 林华 Surgical operation teaching simulation method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503749A (en) * 2014-12-12 2015-04-08 广东欧珀移动通信有限公司 Photo processing method and electronic equipment
CN108898169A (en) * 2018-06-19 2018-11-27 Oppo广东移动通信有限公司 Image processing method, picture processing unit and terminal device
CN110536172A (en) * 2019-07-09 2019-12-03 咪咕视讯科技有限公司 A kind of adjusting method that video image is shown, terminal and readable storage medium storing program for executing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503749A (en) * 2014-12-12 2015-04-08 广东欧珀移动通信有限公司 Photo processing method and electronic equipment
CN108898169A (en) * 2018-06-19 2018-11-27 Oppo广东移动通信有限公司 Image processing method, picture processing unit and terminal device
CN110536172A (en) * 2019-07-09 2019-12-03 咪咕视讯科技有限公司 A kind of adjusting method that video image is shown, terminal and readable storage medium storing program for executing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784207A (en) * 2021-07-30 2021-12-10 北京达佳互联信息技术有限公司 Video picture display method and device, electronic equipment and storage medium
CN114267220A (en) * 2021-12-27 2022-04-01 林华 Surgical operation teaching simulation method and system
CN114267220B (en) * 2021-12-27 2024-01-26 林华 Surgical operation teaching simulation method and system

Similar Documents

Publication Publication Date Title
CN106782431B (en) Screen backlight brightness adjusting method and device and mobile terminal
CN115552916B (en) Refresh rate adjusting method and electronic equipment
WO2021190314A1 (en) Sliding response control method and apparatus of touch screen, and electronic device
CN111768416A (en) Photo clipping method and device
CN112215227B (en) Image target detection model attack method and device, terminal equipment and storage medium
CN118051111A (en) High-energy-efficiency display processing method and equipment
CN113038232A (en) Video playing method, device, equipment, server and storage medium
CN112672053A (en) Photographing method, photographing device, terminal equipment and computer-readable storage medium
CN110930964B (en) Display screen brightness adjusting method and device, storage medium and terminal
CN109743141B (en) Data transmission adjusting method and terminal equipment
CN112612526B (en) Application program control method, device, terminal equipment and storage medium
CN114422686B (en) Parameter adjustment method and related device
CN113014830A (en) Video blurring method, device, equipment and storage medium
CN113805983B (en) Method for adjusting window refresh rate and electronic equipment
CN111586433A (en) Code rate adjusting method, device, equipment and storage medium
CN115798418A (en) Image display method, device, terminal and storage medium
CN115774655A (en) Data processing method and device, electronic equipment and computer readable medium
CN112397064A (en) Light adjusting method and device, terminal equipment and storage medium
CN115083400A (en) Voice assistant awakening method and device
CN113099300A (en) Program playing method and device, display terminal and storage medium
CN112349248B (en) Screen brightness adjusting method and device, multimedia terminal and computer readable storage medium
CN111953452A (en) Method and device for detecting SSB serial number
CN111355991A (en) Video playing method and device, storage medium and mobile terminal
CN112423004B (en) Video data transmission method, device, transmitting end and storage medium
CN112584215B (en) Video transmission method and device, intelligent television and 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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210625