CN113808154A - Video image processing method and device, terminal equipment and storage medium - Google Patents

Video image processing method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN113808154A
CN113808154A CN202110882990.6A CN202110882990A CN113808154A CN 113808154 A CN113808154 A CN 113808154A CN 202110882990 A CN202110882990 A CN 202110882990A CN 113808154 A CN113808154 A CN 113808154A
Authority
CN
China
Prior art keywords
video image
processed
video
determining
pixel
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
CN202110882990.6A
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202110882990.6A priority Critical patent/CN113808154A/en
Publication of CN113808154A publication Critical patent/CN113808154A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Abstract

The invention discloses a video image processing method, a video image processing device, terminal equipment and a storage medium, wherein the method comprises the following steps: acquiring video stream data, and determining a video image to be processed according to the video stream data; determining a foreground area in the video image to be processed according to the video image to be processed; and carrying out binarization processing on the image to be processed according to the foreground area to obtain a binarization video image. The invention can determine the foreground region in the video image, and after the foreground region is determined, the invention carries out binarization processing on the video image, and the obtained binarization image can clearly distinguish the foreground region from the background region, so that the foreground region is highlighted, and the requirements of users are met.

Description

Video image processing method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a video image processing method and apparatus, a terminal device, and a storage medium.
Background
With the higher and higher configuration of the intelligent terminal (such as a mobile phone), the display resolution is more and more delicate, and great convenience is brought to the life of a user. However, in the prior art, when a user uses an intelligent terminal to play a video or play a game, due to a large number of objects (such as characters, backgrounds, and the like) displayed in an image, it is difficult for the user to observe important information in the video image, such as information in a foreground region (such as a character), especially when the character moves rapidly, the important information is difficult to observe, which easily causes information omission and brings inconvenience to the user.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a video image processing method, apparatus, terminal device and storage medium, aiming at solving the problem that important information in a video image is difficult to observe in the prior art, which easily causes information omission and brings inconvenience to users.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a video image processing method, wherein the method includes:
acquiring video stream data, and determining a video image to be processed according to the video stream data;
determining a foreground area in the video image to be processed according to the video image to be processed;
and carrying out binarization processing on the image to be processed according to the foreground area to obtain a binarization video image.
In one implementation, the acquiring video stream data and determining a video image to be processed according to the video stream data includes:
acquiring the video stream data, and integrating the video stream data to obtain video data to be played, which is suitable for a terminal screen;
and taking the video data to be played as the video image to be processed.
In one implementation, the determining a foreground region in the video image to be processed according to the video image to be processed includes:
performing state analysis on all pixel points in the video image to be processed to obtain state information corresponding to each pixel point;
and determining the foreground area in the video image to be processed according to the state information.
In an implementation manner, the performing state analysis on all pixel points in the video image to be processed to obtain state information corresponding to each pixel point includes:
acquiring pixel values of all pixel points in the video image to be processed;
and determining the state information corresponding to each pixel point according to the pixel value.
In one implementation, the determining, according to the pixel value, the state information corresponding to each pixel point includes:
comparing the pixel value of each pixel point with a preset sample set, wherein the sample set is provided with an initial pixel value of each pixel point and a pixel value of an adjacent pixel point;
and determining that the state information of the pixel point corresponding to the pixel value is a motion state according to the fact that the difference value between the pixel value and the sample set exceeds a preset value.
In one implementation, the determining the foreground region in the video image to be processed according to the state information includes:
counting all pixel points with the state information of motion state;
and determining the area formed by all the pixel points with the state information of motion state, and taking the area as the foreground area.
In an implementation manner, the binarizing the image to be processed according to the foreground region to obtain a binarized video image includes:
determining a background area in the image to be processed according to the foreground area, wherein the background area is an area except the foreground area in the image to be processed;
and carrying out binarization processing on the image to be processed according to the foreground region and the background region, setting the pixel values of all pixel points in the foreground region to be 0, and setting the pixel values of all pixel points in the background region to be 255, so as to obtain the binarization video image.
In a second aspect, an embodiment of the present invention further provides a video image processing apparatus, where the apparatus includes:
the video image acquisition module is used for acquiring video stream data and determining a video image to be processed according to the video stream data;
a foreground region determining module, configured to determine a foreground region in the video image to be processed according to the video image to be processed;
and the binarization processing module is used for carrying out binarization processing on the image to be processed according to the foreground area to obtain a binarization video image.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a video image processing program that is stored in the memory and is executable on the processor, and when the processor executes the video image processing program, the method of processing a video image according to any one of the foregoing schemes is implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a video image processing program is stored on the computer-readable storage medium, and when the video image processing program is executed by a processor, the steps of the video image processing method according to any one of the above schemes are implemented.
Has the advantages that: compared with the prior art, the invention provides a video image processing method, which comprises the steps of firstly obtaining video stream data, and determining a video image to be processed according to the video stream data; then determining a foreground region in the video image to be processed according to the video image to be processed; and finally, carrying out binarization processing on the image to be processed according to the foreground area to obtain a binarization video image. The method can determine the foreground region in the video image, and after the foreground region is determined, the method performs binarization processing on the video image, and the binarized video image is obtained after the foreground region is determined, so that the foreground region can be clearly distinguished in the binarized video image, and the foreground region is highlighted, so that a user can more conveniently acquire important information in the video image, and the requirements of the user are met.
Drawings
Fig. 1 is a flowchart of a specific implementation of a video image processing method according to an embodiment of the present invention.
Fig. 2 is a comparison diagram of processing effects of the video image processing method according to the embodiment of the present invention.
Fig. 3 is a schematic block diagram of a video image processing apparatus according to an embodiment of the present invention.
Fig. 4 is a schematic block diagram of an internal structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It is found through research that, in the prior art, when a user uses an intelligent terminal to play a video or play a game, due to a large number of objects (such as characters, backgrounds, and the like) displayed in an image, it is difficult for the user to observe important information in the video image, such as information in a foreground region (such as characters), especially when the characters move rapidly, for example, when the user plays a game, there are many moving people or objects in the video image, but because the moving people or objects are small or many, the objects are difficult to observe, information omission is easily caused, and inconvenience is brought to the user.
In order to solve the problems in the prior art, this embodiment provides a video image processing method, and in specific implementation, this embodiment first obtains video stream data, and determines a video image to be processed according to the video stream data; then determining a foreground region in the video image to be processed according to the video image to be processed; and finally, carrying out binarization processing on the image to be processed according to the foreground area to obtain a binarization video image. By the method, the foreground region in the video image can be determined, and after the foreground region is determined, the video image is subjected to binarization processing.
For example, when a user uses a terminal device to play a game, the terminal device may first obtain game video stream data, determine a game image to be processed (i.e., a video image to be processed) from the game video stream data, determine a foreground region of the game image, and perform binarization processing on the game image with the determined foreground region to obtain a binarized game image (i.e., a binarized video image).
Exemplary method
The video image processing method in the embodiment can be applied to terminal equipment, and the terminal equipment can be intelligent terminal products such as mobile phones and computers. Specifically, as shown in fig. 1, the video image processing method includes the steps of:
step S100, video stream data is obtained, and a video image to be processed is determined according to the video stream data.
The method aims to solve the problem that important information in video images is easy to ignore when a user plays videos or plays games and other scenes. Therefore, the present embodiment first acquires video stream data, and since the video images in the video stream data are not all required to be processed in the image processing, for example, some interfaces for starting a game when playing the game or some pictures when switching scenes are irrelevant, and these pictures are not required to be processed. Therefore, the present embodiment determines the video image to be processed from the video stream data.
In one implementation, when determining a video image to be processed, the embodiment includes the following steps:
s101, acquiring the video stream data, and integrating the video stream data to obtain video data to be played, wherein the video data is suitable for a terminal screen;
and S102, taking the video data to be played as the video image to be processed.
Specifically, the terminal device in this embodiment first obtains video stream data, where the video stream data may be a video to be played in the terminal device or a game picture in a game app to be played. After the video stream data is obtained, the present embodiment may perform integration processing on the video stream data, where the purpose of the integration processing is to enable the video stream data to adapt to the screen size of the terminal device, so as to obtain video data to be played that adapts to the terminal screen. Since the screen sizes of the terminal devices may be different, in this embodiment, the video stream data needs to be integrated according to the screen size of the terminal device, so as to obtain the video data to be played. And when the video data to be played is obtained, taking the video data to be played as the video image to be processed.
After the video image to be processed is obtained, the embodiment starts to execute step S200, and determines a foreground region in the video image to be processed according to the video image to be processed.
In this embodiment, the to-be-processed video image includes a lot of content, for example, when the terminal device is playing an episode video, the to-be-processed video image includes characters (actors), background scenes, and the like, and when the terminal device is running a game app, the to-be-processed video image is a game video being played, so that at this time, there are game characters having game scenes, properties, and the like in the to-be-processed video image. Therefore, many contents exist in the video image to be processed, especially, moving people or objects exist, which are easily ignored by the user, and for this reason, the present embodiment needs to distinguish the important contents or important information. Regardless of whether the video image to be processed is an episode video or a game video, the important information is basically the people or objects in motion states, which are the important attention of the user, and the people or objects in motion states are basically in the foreground area. Therefore, the present embodiment needs to determine a foreground region from the to-be-processed video image to distinguish the content in the to-be-processed video image.
In an implementation manner, the determining of the foreground area in this embodiment includes the following steps:
step S201, performing state analysis on all pixel points in the video image to be processed to obtain state information corresponding to each pixel point;
step S202, determining the foreground area in the video image to be processed according to the state information.
In this embodiment, a user focuses on a person or an object in a motion state in an image to be processed, and therefore, what needs to be determined in this embodiment is which person or object in a motion state is in the image to be processed, so that an area formed by the person or object in a motion state is taken as a foreground area. Specifically, the embodiment may determine which pixel points in the image to be processed are moving by analyzing the pixel value of each pixel point in the image to be processed, so as to determine the person or object in the moving state.
In an implementation manner, the present embodiment may analyze which pixel points are moving by using a Vi-Be algorithm, that is, determine which pixel points belong to a foreground region, where the Vi-Be algorithm is a pixel-level background modeling and foreground detection algorithm. Background objects refer to objects that are stationary or move very slowly, and the foreground corresponds to the moving object. In specific application, a background model can be created by using field pixels, and then the foreground is detected by comparing the background model with the currently input pixel value, so that whether the current pixel point belongs to a foreground region or not is judged.
In specific implementation, the embodiment first obtains pixel values of all pixel points in a video image to be processed; and determining the state information corresponding to each pixel point according to the pixel value, wherein the purpose is to determine which pixel points are in motion states. Specifically, after the pixel value of each pixel point is obtained, the pixel value of each pixel point is compared with a preset sample set, and the sample set is provided with an initial pixel value of each pixel point and a pixel value of an adjacent pixel point. When a certain pixel value is compared with the sample set, and the difference between the initial pixel value of the pixel point and the initial pixel value of the sample set and the pixel value of the adjacent pixel point is smaller than a preset value, the pixel value of the pixel point is very close to the pixel values of the pixel point and the adjacent pixel point in the sample set, the state of the pixel point is not changed, and the state information of the pixel point can be determined to be in a static state. On the contrary, when a certain pixel value is compared with the sample set, and the difference between the pixel value and the initial pixel value in the sample set and the pixel value of the adjacent pixel point exceeds the preset value, the difference between the pixel value of the pixel point and the pixel values of the pixel point in the sample set and the adjacent pixel point is far, the state of the pixel point is changed, and the state information of the pixel point can be determined to be the motion state. When all the pixel points in the motion state are determined, all the pixel points with the motion state information can be counted; and then determining the regions formed by all the pixel points with the state information of motion state, and taking the regions as the foreground regions. Therefore, in the embodiment, the foreground region in the video image to be processed can be determined by analyzing the pixel values of the pixel points to obtain the state information of the pixel points, the whole process is realized based on the pixel values of the pixel points, and the state information corresponding to the pixel points can be analyzed more accurately.
After the foreground region is obtained, in this embodiment, step S300 is executed, and binarization processing is performed on the image to be processed according to the foreground region, so as to obtain a binarized video image.
In this embodiment, after the foreground region is obtained, binarization processing may be performed on the to-be-processed video image in which the foreground region has been distinguished, where the binarization processing is to set a gray value of a pixel point on the image to be 0 or 255, that is, to make the entire image have an obvious visual effect only including black and white. Because the foreground region is distinguished from the video image to be processed, the foreground region can be distinguished from the obtained binary video image obviously, so that a user can observe the foreground region, namely important information, quickly and conveniently.
In an implementation manner, the present embodiment includes the following steps when performing binarization on a video image:
step S301, determining a background area in the image to be processed according to the foreground area, wherein the background area is an area except the foreground area in the image to be processed;
step S302, according to the foreground region and the background region, performing binarization processing on the image to be processed, setting the pixel values of all pixel points in the foreground region to be 0, and setting the pixel values of all pixel points in the background region to be 255, so as to obtain the binarized video image.
In specific implementation, after the foreground region is obtained, the foreground region may be labeled, and then the background region in the video image to be processed is determined according to the labeled foreground region. In the to-be-processed image, the remaining region excluding the foreground region is the background region, and thus, the to-be-processed video image is divided into the foreground region and the background region. In order to facilitate the user to observe the content in the foreground region, the foreground region needs to be highlighted, that is, the foreground region needs to be displayed differently from the background region, so that the user can observe the foreground region at a glance. Therefore, in this embodiment, according to the foreground region and the background region that are distinguished, binarization processing is performed on the image to be processed, the pixel values of all the pixel points in the foreground region are set to 0, and the pixel values of all the pixel points in the background region are set to 255, so as to obtain the binarized video image. As shown in fig. 2, fig. 2 shows the effect of the video image processing method in this embodiment, where a in fig. 2 is a video image to be processed, and B is a binarized video image obtained by binarizing a, in the binarized video image, a foreground region is white and a background region is black, and after the binarized video image is displayed, a user can easily pay attention to the white foreground region.
In summary, in this embodiment, first, video stream data is obtained, and a video image to be processed is determined according to the video stream data; then determining a foreground region in the video image to be processed according to the video image to be processed; and finally, carrying out binarization processing on the image to be processed according to the foreground area to obtain a binarization video image. By the method, the foreground region in the video image can be determined, and after the foreground region is determined, the video image is subjected to binarization processing.
Exemplary devices
Based on the above embodiments, the present invention also provides a video image processing apparatus, as shown in fig. 3, the apparatus including: a video image acquisition module 10, a foreground region determination module 20 and a binarization processing module 30. Specifically, the video image obtaining module 10 in this embodiment is configured to obtain video stream data, and determine a video image to be processed according to the video stream data. The foreground region determining module 20 is configured to determine a foreground region in the video image to be processed according to the video image to be processed. And the binarization processing module 30 is configured to perform binarization processing on the image to be processed according to the foreground region to obtain a binarized video image.
In one implementation, the video image acquisition module 10 includes:
the video integration unit is used for acquiring the video stream data and integrating the video stream data to obtain video data to be played, which is adaptive to a terminal screen;
and the to-be-processed video determining unit is used for taking the to-be-played video data as the to-be-processed video image.
In one implementation, the foreground region determining module 20 includes:
the state information determining unit is used for performing state analysis on all pixel points in the video image to be processed to obtain state information corresponding to each pixel point;
and the foreground area determining unit is used for determining the foreground area in the video image to be processed according to the state information.
In one implementation, the state information determining unit includes:
the pixel value acquisition unit is used for acquiring pixel values of all pixel points in the video image to be processed;
and the state information determining unit is used for determining the state information corresponding to each pixel point according to the pixel value.
In one implementation, the state information determining unit includes:
the pixel value comparison subunit is used for comparing the pixel value of each pixel point with a preset sample set, wherein the sample set is provided with an initial pixel value of each pixel point and a pixel value of an adjacent pixel point;
and the motion state determining subunit is configured to determine, according to that a difference between the pixel value and the sample set exceeds a preset value, that the state information of the pixel point corresponding to the pixel value is a motion state.
In one implementation, the foreground region determining unit includes:
the pixel point counting subunit is used for counting all the pixel points of which the state information is the motion state;
and the foreground region determining subunit is used for determining regions formed by all the pixel points of which the state information is the motion state, and taking the regions as the foreground regions.
In one implementation, the binarization processing module 30 includes:
a background region determining unit, configured to determine a background region in the image to be processed according to the foreground region, where the background region is a region of the image to be processed other than the foreground region;
and the binarization processing unit is used for carrying out binarization processing on the image to be processed according to the foreground region and the background region, setting the pixel values of all pixel points in the foreground region to be 0, and setting the pixel values of all pixel points in the background region to be 255, so as to obtain the binarization video image.
Based on the above embodiment, the present invention further provides a terminal device, which can be disposed on the wardrobe device, and a schematic block diagram of the terminal device can be as shown in fig. 4. The terminal equipment comprises a processor, a memory, a network interface, a display screen, a temperature sensor and the like which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a video image processing method. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen or an interactive screen, and the temperature sensor of the terminal equipment is arranged in the terminal equipment in advance and used for detecting the operating temperature of the internal equipment.
It will be understood by those skilled in the art that the block diagram of fig. 4 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal device to which the solution of the present invention is applied, and a specific terminal device may include more or less components than those shown in the figure, or may combine some components, or have different arrangements of components.
In one embodiment, a terminal device is provided, where the terminal device includes a memory, a processor, and a video image processing program stored in the memory and executable on the processor, and the processor executes the video image processing program to implement the following operation instructions:
acquiring video stream data, and determining a video image to be processed according to the video stream data;
determining a foreground area in the video image to be processed according to the video image to be processed;
and carrying out binarization processing on the image to be processed according to the foreground area to obtain a binarization video image.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention discloses a video image processing method, an apparatus, a terminal device and a storage medium, wherein the method comprises: acquiring video stream data, and determining a video image to be processed according to the video stream data; determining a foreground area in the video image to be processed according to the video image to be processed; and carrying out binarization processing on the image to be processed according to the foreground area to obtain a binarization video image. The invention can determine the foreground region in the video image, and after the foreground region is determined, the invention carries out binarization processing on the video image, and the obtained binarization image can clearly distinguish the foreground region from the background region, so that the foreground region is highlighted, and the requirements of users are met.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for video image processing, the method comprising:
acquiring video stream data, and determining a video image to be processed according to the video stream data;
determining a foreground area in the video image to be processed according to the video image to be processed;
and carrying out binarization processing on the image to be processed according to the foreground area to obtain a binarization video image.
2. The method according to claim 1, wherein the acquiring video stream data and determining the video image to be processed according to the video stream data comprises:
acquiring the video stream data, and integrating the video stream data to obtain video data to be played, which is suitable for a terminal screen;
and taking the video data to be played as the video image to be processed.
3. The method according to claim 1, wherein the determining a foreground region in the video image to be processed according to the video image to be processed comprises:
performing state analysis on all pixel points in the video image to be processed to obtain state information corresponding to each pixel point;
and determining the foreground area in the video image to be processed according to the state information.
4. The video image processing method according to claim 3, wherein said performing state analysis on all pixel points in the video image to be processed to obtain state information corresponding to each pixel point comprises:
acquiring pixel values of all pixel points in the video image to be processed;
and determining the state information corresponding to each pixel point according to the pixel value.
5. The method of claim 4, wherein the determining the state information corresponding to each pixel point according to the pixel value comprises:
comparing the pixel value of each pixel point with a preset sample set, wherein the sample set is provided with an initial pixel value of each pixel point and a pixel value of an adjacent pixel point;
and determining that the state information of the pixel point corresponding to the pixel value is a motion state according to the fact that the difference value between the pixel value and the sample set exceeds a preset value.
6. The method according to claim 5, wherein said determining the foreground region in the video image to be processed according to the state information comprises:
counting all pixel points with the state information of motion state;
and determining the area formed by all the pixel points with the state information of motion state, and taking the area as the foreground area.
7. The video image processing method according to claim 1, wherein the binarizing processing the image to be processed according to the foreground region to obtain a binarized video image comprises:
determining a background area in the image to be processed according to the foreground area, wherein the background area is an area except the foreground area in the image to be processed;
and carrying out binarization processing on the image to be processed according to the foreground region and the background region, setting the pixel values of all pixel points in the foreground region to be 0, and setting the pixel values of all pixel points in the background region to be 255, so as to obtain the binarization video image.
8. A video image processing apparatus, characterized in that the apparatus comprises:
the video image acquisition module is used for acquiring video stream data and determining a video image to be processed according to the video stream data;
a foreground region determining module, configured to determine a foreground region in the video image to be processed according to the video image to be processed;
and the binarization processing module is used for carrying out binarization processing on the image to be processed according to the foreground area to obtain a binarization video image.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a video image processing program stored in the memory and executable on the processor, and the processor implements the steps of the video image processing method according to any one of claims 1 to 7 when executing the video image processing program.
10. A computer-readable storage medium, having stored thereon a video image processing program which, when executed by a processor, implements the steps of the video image processing method according to any one of claims 1 to 7.
CN202110882990.6A 2021-08-02 2021-08-02 Video image processing method and device, terminal equipment and storage medium Pending CN113808154A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110882990.6A CN113808154A (en) 2021-08-02 2021-08-02 Video image processing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110882990.6A CN113808154A (en) 2021-08-02 2021-08-02 Video image processing method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113808154A true CN113808154A (en) 2021-12-17

Family

ID=78942684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110882990.6A Pending CN113808154A (en) 2021-08-02 2021-08-02 Video image processing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113808154A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063885A (en) * 2014-07-23 2014-09-24 山东建筑大学 Improved movement target detecting and tracking method
CN104318263A (en) * 2014-09-24 2015-01-28 南京邮电大学 Real-time high-precision people stream counting method
WO2018141232A1 (en) * 2017-02-06 2018-08-09 腾讯科技(深圳)有限公司 Image processing method, computer storage medium, and computer device
CN108629327A (en) * 2018-05-15 2018-10-09 北京环境特性研究所 A kind of demographic method and device based on image procossing
CN109478329A (en) * 2016-10-14 2019-03-15 富士通株式会社 Image processing method and device
CN110458090A (en) * 2019-08-08 2019-11-15 成都睿云物联科技有限公司 Working state of excavator detection method, device, equipment and storage medium
CN110782425A (en) * 2018-07-13 2020-02-11 富士通株式会社 Image processing method, image processing device and electronic equipment
CN110874814A (en) * 2018-08-31 2020-03-10 Oppo广东移动通信有限公司 Image processing method, image processing device and terminal equipment
CN111062974A (en) * 2019-11-27 2020-04-24 中国电力科学研究院有限公司 Method and system for extracting foreground target by removing ghost
CN111556278A (en) * 2020-05-21 2020-08-18 腾讯科技(深圳)有限公司 Video processing method, video display device and storage medium
CN112862852A (en) * 2021-02-24 2021-05-28 深圳市慧鲤科技有限公司 Image processing method and device, electronic equipment and computer readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063885A (en) * 2014-07-23 2014-09-24 山东建筑大学 Improved movement target detecting and tracking method
CN104318263A (en) * 2014-09-24 2015-01-28 南京邮电大学 Real-time high-precision people stream counting method
CN109478329A (en) * 2016-10-14 2019-03-15 富士通株式会社 Image processing method and device
WO2018141232A1 (en) * 2017-02-06 2018-08-09 腾讯科技(深圳)有限公司 Image processing method, computer storage medium, and computer device
CN108629327A (en) * 2018-05-15 2018-10-09 北京环境特性研究所 A kind of demographic method and device based on image procossing
CN110782425A (en) * 2018-07-13 2020-02-11 富士通株式会社 Image processing method, image processing device and electronic equipment
CN110874814A (en) * 2018-08-31 2020-03-10 Oppo广东移动通信有限公司 Image processing method, image processing device and terminal equipment
CN110458090A (en) * 2019-08-08 2019-11-15 成都睿云物联科技有限公司 Working state of excavator detection method, device, equipment and storage medium
CN111062974A (en) * 2019-11-27 2020-04-24 中国电力科学研究院有限公司 Method and system for extracting foreground target by removing ghost
CN111556278A (en) * 2020-05-21 2020-08-18 腾讯科技(深圳)有限公司 Video processing method, video display device and storage medium
CN112862852A (en) * 2021-02-24 2021-05-28 深圳市慧鲤科技有限公司 Image processing method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108053381B (en) Dynamic tone mapping method, mobile terminal and computer-readable storage medium
CN107977659B (en) Character recognition method and device and electronic equipment
US10834424B2 (en) Method and device for compressing image, and electronic device
CN110287891B (en) Gesture control method and device based on human body key points and electronic equipment
CN110070063B (en) Target object motion recognition method and device and electronic equipment
CN105046254A (en) Character recognition method and apparatus
US10701301B2 (en) Video playing method and device
CN111432261A (en) Video window picture display method and device
CN112367559B (en) Video display method and device, electronic equipment, server and storage medium
CN113126937A (en) Display terminal adjusting method and display terminal
WO2021179856A1 (en) Content recognition method and apparatus, electronic device, and storage medium
CN108615030B (en) Title consistency detection method and device and electronic equipment
CN111783175A (en) Display interface privacy protection method, terminal and computer readable storage medium
CN111428570A (en) Detection method and device for non-living human face, computer equipment and storage medium
CN107770487B (en) Feature extraction and optimization method, system and terminal equipment
CN112333537B (en) Video integration method, device and computer readable storage medium
CN110222576B (en) Boxing action recognition method and device and electronic equipment
CN113407436A (en) Play component compatibility detection method and device, computer equipment and storage medium
CN113808154A (en) Video image processing method and device, terminal equipment and storage medium
CN113393391B (en) Image enhancement method, image enhancement device, electronic apparatus, and storage medium
CN113221742B (en) Video split screen line determining method, device, electronic equipment, medium and program product
CN114518859A (en) Display control method, display control device, electronic equipment and storage medium
CN112511890A (en) Video image processing method and device and electronic equipment
CN114089868A (en) Touch operation method and device and electronic equipment
CN113391779A (en) Parameter adjusting method, device and equipment for paper-like screen

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