CN113923513B - Video processing method and device - Google Patents

Video processing method and device Download PDF

Info

Publication number
CN113923513B
CN113923513B CN202111047807.7A CN202111047807A CN113923513B CN 113923513 B CN113923513 B CN 113923513B CN 202111047807 A CN202111047807 A CN 202111047807A CN 113923513 B CN113923513 B CN 113923513B
Authority
CN
China
Prior art keywords
video
video processing
rule
video stream
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111047807.7A
Other languages
Chinese (zh)
Other versions
CN113923513A (en
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202111047807.7A priority Critical patent/CN113923513B/en
Publication of CN113923513A publication Critical patent/CN113923513A/en
Application granted granted Critical
Publication of CN113923513B publication Critical patent/CN113923513B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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
    • 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
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a video processing method and equipment, which are characterized in that a target video stream is determined through image acquisition equipment, so that the target video stream can comprise a rule frame corresponding to a preset video processing rule, further, the image acquisition equipment can send video data and the preset video processing rule to the video processing equipment through a transmission channel, when the video processing equipment performs video processing, the rule frame corresponding to the video data can be accurately determined, the accurate processing of the video data is realized, the perceived real-time performance of the target video stream and the preset video processing rule is improved, the problem that the preset video processing rule and the video stream are not synchronous is avoided, and the accuracy and the effectiveness of a video processing result are improved; in addition, the method provided by the embodiment of the invention can be also suitable for processing the video, solves the problem that the video cannot be dynamically configured with the preset video processing rule, and has a wider application range.

Description

Video processing method and device
Technical Field
The present invention relates to the field of video processing technologies, and in particular, to a video processing method and apparatus.
Background
The front-end camera (also called a dome camera) with the function of a tripod head is usually provided with a plurality of acquisition points, and can rotate among the acquisition points so as to acquire videos of different angles and different scenes; and then the front-end camera can determine a video stream according to the acquired video and transmit the video stream to the video processing equipment at the rear end so as to facilitate the video processing equipment to process the video stream.
When the video processing device processes video streams, processing rules of videos acquired by different acquisition points are different, and if accurate and effective processing is to be realized, the processing rules need to be configured according to the video stream states.
Specifically, there are two methods for video processing of a real-time video stream by a video processing device:
One of the methods comprises: the front-end camera sends all processing rules to the video processing equipment in advance once, when the front-end camera rotates to a certain acquisition point, the serial number of the acquisition point is sent to the video processing equipment, and when the video processing equipment determines the corresponding processing rules according to the serial number, the video processing equipment carries out video processing on the real-time video stream;
Another method comprises the following steps: when the front-end camera rotates to a certain acquisition point, a processing rule corresponding to the current acquisition point is found out from all pre-stored processing rules, then the processing rule is issued to video processing equipment, and the video processing equipment performs video processing on the real-time video stream according to the received processing rule.
Because the front-end camera transmits the video stream to the video processing device through an independent video transmission channel, and the number or the processing rule of the acquisition point is transmitted through other transmission channels, the processing rule determined by the video processing device may not be synchronous with the video stream, that is, the video of the acquisition point a for which the video processing device currently receives the video stream, and the determined processing rule may correspond to the acquisition point B, so that the result of video processing is wrong.
In addition, since the recorded video is recorded and stored in advance and is not real-time, the video processing apparatus cannot dynamically configure the processing rule for the recorded video.
Disclosure of Invention
The embodiment of the invention provides a video processing method and equipment, which are used for realizing the real-time perception of video streams and video processing rules, avoiding the problem that the processing rules are not synchronous with the video streams, improving the accuracy and the effectiveness of video processing results, and simultaneously realizing the dynamic configuration of the processing rules for video streams.
In a first aspect, an embodiment of the present invention provides a video processing method, which is applied to an image acquisition device, and the image acquisition device rotates among a plurality of preset acquisition points; the method comprises the following steps:
When any acquisition point is reached, determining a preset video processing rule corresponding to the acquisition point according to the corresponding relation between the preset acquisition point and the preset video processing rule;
processing the determined preset video processing rule to obtain a rule frame corresponding to the acquisition point;
When video data acquired at the acquisition point are encoded into an initial video stream, inserting a regular frame corresponding to the acquisition point into the initial video stream to obtain a target video stream;
transmitting the target video stream to a video processing device;
wherein the target video stream is for: the video processing device extracts the regular frame and the initial video stream in the target video stream, and performs video processing on the extracted initial video stream according to a preset video processing rule included in the extracted regular frame.
In a second aspect, an embodiment of the present invention provides a video processing method, applied to a video processing device, where the method includes:
acquiring a target video stream; wherein the target video stream is: when the image acquisition equipment reaches any one of a plurality of preset acquisition points, determining a preset video processing rule corresponding to the acquisition point according to the corresponding relation between the preset acquisition point and a preset video processing rule, and processing the determined preset video processing rule to obtain a rule frame corresponding to the acquisition point; when video data acquired at the acquisition point are encoded into an initial video stream, inserting a regular frame corresponding to the acquisition point into the initial video stream to obtain a target video stream;
Extracting the regular frames and the initial video stream;
and carrying out video processing on the extracted initial video stream according to a preset video processing rule included in the extracted rule frame.
In a third aspect, an embodiment of the present invention provides an image capturing apparatus, including:
A memory for storing program instructions;
And the processor is used for calling the program instructions stored in the memory and executing the video processing method according to the obtained program.
In a fourth aspect, an embodiment of the present invention provides a video processing apparatus, including:
A memory for storing program instructions;
And the processor is used for calling the program instructions stored in the memory and executing the video processing method according to the obtained program.
The invention has the following beneficial effects:
According to the video processing method and the video processing device, the target video stream is determined through the image acquisition device, so that the target video stream can comprise the rule frame corresponding to the preset video processing rule, the image acquisition device can send video data and the preset video processing rule to the video processing device through one transmission channel, the rule frame corresponding to the video data can be accurately determined when the video processing device performs video processing, accurate processing of the video data is achieved, instantaneity of perception of the target video stream and the preset video processing rule is improved, the problem that the preset video processing rule is not synchronous with the video stream is avoided, and accuracy and effectiveness of video processing results are improved; in addition, the method provided by the embodiment of the invention can be also suitable for processing the video, solves the problem that the video cannot be dynamically configured with the preset video processing rule, and has a wider application range.
Drawings
Fig. 1 is a schematic structural diagram of an image capturing device according to an embodiment of the present invention;
FIG. 2 is a flowchart of a video processing method according to an embodiment of the present invention;
FIG. 3 is a schematic illustration of a traffic intersection provided in an embodiment of the present invention;
Fig. 4 is a schematic structural diagram of a video stream according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a video frame according to an embodiment of the present invention;
FIG. 6 is a flowchart of another video processing method according to an embodiment of the present invention;
FIG. 7 is a flowchart of one side of an image capturing device according to an embodiment of the present invention;
FIG. 8 is a flowchart of a video processing apparatus side in an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another image capturing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a video processing apparatus according to an embodiment of the present invention.
Detailed Description
The following describes in detail a specific implementation of a video processing method and apparatus according to an embodiment of the present invention with reference to the accompanying drawings. It should be noted that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
First, an image capturing apparatus is described, as shown in fig. 1, in which the image capturing apparatus is provided with a plurality of capturing points, such as points a, B, and C shown in fig. 1, and the setting position of the image capturing apparatus may be kept unchanged, but may be rotated between the capturing points (as indicated by the dotted arrows in fig. 1, and the rotation direction is not limited to the dotted arrows), so as to capture videos of different angles and different scenes.
Specifically, the setting of the acquisition points of the image acquisition apparatus is not limited to that shown in fig. 1, and may be set according to actual needs, and is not limited thereto, but is illustrated only by way of example in fig. 1.
In particular, the image acquisition device may be any acquisition device known to those skilled in the art that enables rotation, such as, but not limited to, a ball machine, etc., without limitation.
Specifically, an embodiment of the present invention provides a video processing method, as shown in fig. 2, which may include:
S201, when any acquisition point is reached, determining a preset video processing rule corresponding to the acquisition point according to a corresponding relation between the preset acquisition point and the preset video processing rule;
The corresponding relation between the preset acquisition points and the preset video processing rules can be preset, the preset video processing rules corresponding to each acquisition point can be preset according to the acquisition range, the acquisition scene and the video processing requirement corresponding to the acquisition point, and specific preset video processing rules are not limited specifically herein.
The preset video processing rules are described below in connection with specific examples.
For example, taking the application of the video processing method provided by the embodiment of the invention to a traffic intersection scene as an example, an image acquisition device is installed at an intersection, and two acquisition points of the image acquisition device are assumed to be respectively defined as an acquisition point A and an acquisition point B, wherein the acquisition point A can acquire the coming situation in the east-west direction and the acquisition point B can acquire the coming situation in the north-south direction; and, traffic lines, such as stop lines (labeled 1,2, 3, and 4 in the figure), are marked on the ground of the intersection, as shown in fig. 3; then:
the preset video processing rule corresponding to the acquisition point a may include:
Identifying a red light in a traffic light (not shown);
When a straight line (indicated by a broken line M1) overlapping with the stop line 1 and the stop line 2 is provided, a vehicle crossing the stop line 1 and the stop line 2 is recognized.
So that the video processing apparatus can perform the following process when performing video processing:
Judging whether a vehicle passes through a stop line 1 and a stop line 2 when a red light is lighted in a video corresponding to the acquisition point A;
if so, the license plate number of the vehicle running the red light in the video can be identified, so that the vehicle can be subjected to red light running punishment later.
Likewise, the preset video processing rule corresponding to the acquisition point B may include:
identifying a red light in the traffic light;
when a straight line (indicated by a broken line M2) overlapping the stop line 3 and the stop line 4 is provided, a vehicle crossing the stop line 3 and the stop line 4 is recognized.
So that the video processing apparatus can perform the following process when performing video processing:
judging whether a vehicle passes through the stop line 3 and the stop line 4 when the red light is lighted in the video corresponding to the acquisition point B;
if so, the license plate number of the vehicle running the red light in the video can be identified, so that the vehicle can be subjected to red light running punishment later.
The dashed line M1 is applicable to the case of an incoming vehicle in the east-west direction, so that it is shown in fig. 3 as a straight line parallel to the north-south direction, and the dashed line M2 is applicable to the case of an incoming vehicle in the north-south direction, so that it is shown in fig. 3 as a straight line parallel to the east-west direction, and since the north-south direction is perpendicular to the east-west direction, the dashed lines M1 and M2 are perpendicular.
That is, different acquisition points, different acquisition ranges and different acquisition scenes, so that corresponding preset video processing rules are different.
S202, processing the determined preset video processing rule to obtain a rule frame corresponding to the acquisition point;
S203, inserting a regular frame corresponding to the acquisition point into the initial video stream when the video data acquired at the acquisition point are encoded into the initial video stream, so as to obtain a target video stream;
Specifically, the initial video stream may include a plurality of video frames, wherein the structures of the regular frames and the video frames may be set as follows: TLV (TAG LENGTH Value) structure, so any processing method known to those skilled in the art that can implement encoding into a TLV structure can be used in processing the preset video processing rule, and the specific processing procedure is not limited herein.
S204, sending the target video stream to video processing equipment; wherein the target video stream is for: the video processing device extracts a regular frame and an initial video stream in the target video stream, and performs video processing on the extracted initial video stream according to a preset video processing rule included in the extracted regular frame.
In this way, the image acquisition equipment determines the target video stream, so that the target video stream can comprise a rule frame corresponding to a preset video processing rule, further the image acquisition equipment can send video data and the preset video processing rule to the video processing equipment through a transmission channel, and when the video processing equipment performs video processing, the rule frame corresponding to the video data can be accurately determined, thereby realizing accurate processing of the video data, increasing the perceived instantaneity of the target video stream and the preset video processing rule, avoiding the problem that the preset video processing rule and the video stream are not synchronous, and improving the accuracy and the effectiveness of a video processing result; in addition, the method provided by the embodiment of the invention can be also suitable for processing the video, solves the problem that the video cannot be dynamically configured with the preset video processing rule, and has a wider application range.
Optionally, in an embodiment of the present invention, the initial video stream includes a plurality of video frames, and the video frames and the regular frames each include a category label.
That is, in order to be able to distinguish between the video frame and the regular frame, a category flag may be included in header information of the video frame and the regular frame.
For example, the type mark in the header information of the video frame may be a first mark, and the type mark in the header information of the regular frame may be a second mark, wherein the first mark and the second mark may be at least one of a number, a letter, and a special symbol, and the specific forms of the first mark and the second mark may be set according to actual needs, and are not limited herein.
In this manner, regular frames and video frames may be extracted from the target video stream based on the category labels, for subsequent video processing of the video frames according to the regular frames.
Optionally, in the embodiment of the present invention, inserting a regular frame corresponding to the acquisition point into the initial video stream to obtain the target video stream, which specifically includes:
When the initial video stream corresponding to each acquisition point comprises a plurality of video frames, inserting the regular frames corresponding to the acquisition points into the initial video stream every N video frames to obtain a target video stream;
wherein N is a positive integer.
Specifically, the value of N may be set according to actual needs, for example, but not limited to, the value of N is 1, 2 or 3, and the like, which is not limited herein.
In this way, regular frames can be inserted between the initial video streams at a certain frequency to form a target video stream, so that the video processing device can perform accurate and effective video processing.
Specifically, in an embodiment of the present invention, as shown in the enlarged schematic structure in the dashed box 1 in fig. 4, the video frame may include: i-frames and P-frames.
For example, as shown in fig. 4, the video frame S may include one I frame and a plurality of P frames, and the I frames and the P frames in each video frame are arranged in the same order.
Therefore, the consistency of the structure of each video frame can be ensured, so that video data can be conveniently decoded based on the video frames, and the subsequent video processing is convenient.
Of course, in practical situations, the video frames may further include B frames, and the B frames may be located between the I frames and the P frames, as shown in fig. 5, and the arrangement order of the I frames, the B frames, and the P frames is the same in each video frame.
The target video stream is illustrated below.
For example, as the target video stream shown in fig. 4, assume: the image capturing device is provided with two capturing points, which are respectively marked as capturing point a and capturing point B, and the image capturing device rotates back and forth between capturing point a and capturing point B, and the time of stay at each capturing point may be the same (correspondingly, the number of video frames corresponding to each capturing point is the same), or may be different (correspondingly, the number of video frames corresponding to each capturing point is different), and fig. 4 is described by taking the same stay time at each capturing point as an example, but the invention is not limited thereto.
As shown in fig. 4, when a first video frame S1 corresponding to the acquisition point a is obtained, a regular frame Ga corresponding to the acquisition point a is inserted, and when a second video frame S2 corresponding to the acquisition point a is obtained, the regular frame Ga is set after the regular frame Ga, and then the regular frame Ga is set after the second video frame S2;
Then, the image acquisition equipment rotates to an acquisition point B to continuously acquire video, and when a third video frame S3 is obtained, the third video frame is arranged behind the regular frame Ga;
thus, a regular frame is inserted when a video frame is obtained, so that the target video stream shown in fig. 4 can be obtained.
Of course, only a portion of the target video stream is shown in fig. 4, and not all of the target video stream is represented.
Of course, in the specific implementation, it may also be set as follows: the video frame is positioned behind the corresponding regular frame; that is, the front-rear setting positions of the video frame and the corresponding regular frame may be set according to actual needs as long as the insertion of the regular frame into the initial video stream can be achieved.
Based on the same inventive concept, an embodiment of the present invention provides a video processing method, as shown in fig. 6, applied to a video processing apparatus, the method including:
S601, acquiring a target video stream; wherein, the target video stream is: when the image acquisition equipment reaches any one of a plurality of preset acquisition points, determining a preset video processing rule corresponding to the acquisition point according to the corresponding relation between the preset acquisition point and a preset video processing rule, and processing the determined preset video processing rule to obtain a rule frame corresponding to the acquisition point; when video data acquired at the acquisition point are encoded into an initial video stream, inserting a regular frame corresponding to the acquisition point into the initial video stream to obtain a target video stream;
S602, extracting a regular frame and an initial video stream;
S603, performing video processing on the extracted initial video stream according to a preset video processing rule included in the extracted rule frame.
In this way, the image acquisition equipment determines the target video stream, so that the target video stream can comprise a rule frame corresponding to a preset video processing rule, further the image acquisition equipment can send video data and the preset video processing rule to the video processing equipment through a transmission channel, and when the video processing equipment performs video processing, the rule frame corresponding to the video data can be accurately determined, thereby realizing accurate processing of the video data, increasing the perceived instantaneity of the target video stream and the preset video processing rule, avoiding the problem that the preset video processing rule and the video stream are not synchronous, and improving the accuracy and the effectiveness of a video processing result; in addition, the method provided by the embodiment of the invention can be also suitable for processing the video, solves the problem that the video cannot be dynamically configured with the preset video processing rule, and has a wider application range.
Optionally, in an embodiment of the present invention, when the initial video stream includes a video frame, and the video frame and the rule frame each include a category label, extracting the rule frame and the initial video stream specifically includes:
Extracting the rule frame according to the category marks included in the rule frame;
And extracting the video frame according to the category marks included in the video frame to obtain an initial video stream.
In this manner, regular frames and video frames may be extracted from the target video stream based on the category labels, for subsequent video processing of the video frames according to the regular frames.
Optionally, in an embodiment of the present invention, performing video processing on the extracted initial video stream according to a preset video processing rule included in the extracted rule frame includes:
The target video stream comprises: when a plurality of video frames and a plurality of regular frames, the following procedure is performed for each regular frame:
Judging whether the currently extracted rule frame is the first rule frame in the target video stream or not;
If yes, decoding the currently extracted rule frame, determining a preset video processing rule included in the currently extracted rule frame, and performing video processing on an initial video frame of an acquisition point corresponding to the currently extracted rule frame according to the determined preset video processing rule;
if not, determining a preset video processing rule for performing video processing currently according to the currently extracted rule frame and the rule frame extracted last time, and performing video processing on an initial video stream of the acquisition point corresponding to the currently extracted rule frame based on the determined preset video processing rule.
Specifically, when video processing is performed on an initial video stream of an acquisition point corresponding to a currently extracted regular frame, the method specifically includes:
Decoding the video frames in the initial video stream of the acquisition point corresponding to the currently extracted regular frames to obtain corresponding video data;
And carrying out video processing on the obtained video data based on the determined preset video processing rule.
The decoding process may be any method known to those skilled in the art that can implement the decoding process, and will not be described in detail herein.
Specifically, in the embodiment of the present invention, determining a preset video processing rule for performing video processing currently according to a rule frame currently extracted and a rule frame extracted last time includes:
judging whether the currently extracted rule frame is the same as the rule frame extracted last time;
if yes, taking the preset video processing rule determined last time as the preset video processing rule for video processing currently;
if not, decoding the currently extracted rule frame, and determining a preset video processing rule included in the currently extracted rule frame.
If the currently extracted rule frame is the first rule frame in the target video stream, the fact that the preset video processing rule is not decoded at present is indicated, so that decoding processing is needed to be carried out on the first rule frame to obtain a corresponding preset video processing rule, and video processing is carried out on corresponding video data based on the preset video processing rule;
If the currently extracted rule frame is not the first rule frame in the target video stream, the rule frame is extracted before the current frame is extracted, so that the current frame and the last frame are compared with each other, if the current frame and the last frame are the same, the current frame and the last frame to be processed correspond to the same acquisition point, decoding of the current frame is not needed, but the preset video processing rule decoded last time can be directly adopted, the step of decoding is omitted, the video processing speed is accelerated, the operation amount of video processing is reduced, and the manufacturing cost of video processing equipment is reduced;
If the two are different, the video frames which need to be processed currently and last time correspond to different acquisition points, so that the determined preset video processing rule needs to be updated, namely the currently extracted rule frame needs to be decoded to obtain a new preset video processing rule, and then video processing is carried out based on the new preset video processing rule, thereby increasing the accuracy of video processing and avoiding processing errors.
It should be noted that, optionally, in the embodiment of the present invention, the target video stream may include: the real-time video stream sent by the image acquisition equipment or the pre-stored video stream.
That is, the target video stream that the video processing device needs to process may be a real-time video stream sent by the image capturing device, or may be a video stream that is sent before the image capturing device, but is stored without being immediately processed by the video processing device.
Therefore, the video processing method provided by the embodiment of the invention is not only suitable for real-time video, but also suitable for video recording, so that the video processing method has a wider application range, is not limited by the real-time video, can solve the problem that the video recording video cannot be dynamically configured with preset video processing rules, and has good effects in real-time performance and usability.
The following describes the video processing method provided by the embodiment of the present invention with reference to specific embodiments.
The image acquisition device is taken as an example to transmit real-time video for explanation.
As shown in connection with fig. 7, the following procedure is performed for the image capturing apparatus side:
S701, when any acquisition point is rotated, determining a preset video processing rule corresponding to the acquisition point according to the corresponding relation between the acquisition point and the preset video processing rule;
s702, coding the determined preset video processing rule into a rule frame according to the preset structure of each data frame;
wherein the structure of the data frame may be, but is not limited to, a TLV structure.
And, the data frame may include: regular frames and video frames.
S703, when video data acquired by the acquisition point are encoded into an initial video stream comprising a plurality of video frames, inserting a regular frame corresponding to the corresponding acquisition point into each N video frames at intervals to obtain a target video stream, and sending the target video stream to video processing equipment through a video transmission channel;
As shown in fig. 8, for the video processing apparatus side, the following procedure is performed:
s801, receiving a target video stream;
s802, extracting video frames and corresponding regular frames from a target video stream in sequence according to the category marks;
S803, judging whether the currently extracted rule frame is a first rule frame or not; if not, executing S804; if yes, executing S806;
s804, judging whether the rule frame extracted currently is the same as the rule frame extracted last time; if yes, executing S805; if not, executing S806;
s805, adopting a preset video processing rule determined last time to perform video processing on a video frame corresponding to the currently extracted rule frame; ending the flow;
s806, decoding the currently extracted rule frame to determine a corresponding preset video processing rule, and performing video processing on the video frame corresponding to the currently extracted rule frame by adopting the preset video processing rule.
Based on the same inventive concept, the embodiment of the present invention provides an image capturing device, the implementation principle of the image capturing device is similar to that of the video processing method on the side of the image capturing device, and the specific implementation manner of the device can refer to the specific embodiment of the video processing method on the side of the image capturing device, and the repetition is omitted.
Specifically, as shown in fig. 9, an image capturing device provided in an embodiment of the present invention may include:
a memory 901 for storing program instructions;
A processor 902, configured to call program instructions stored in the memory 901, and execute the video processing method according to the obtained program.
Based on the same inventive concept, the embodiment of the present invention provides a video processing device, the implementation principle of the video processing device is similar to that of the video processing method on the side of the video processing device, and the specific implementation manner of the device can refer to the specific embodiment of the video processing method on the side of the video processing device, and the repetition is omitted.
Specifically, as shown in fig. 10, a video processing apparatus provided in an embodiment of the present invention may include:
a memory 1001 for storing program instructions;
the processor 1002 is configured to call the program instructions stored in the memory 1001, and execute the video processing method according to the obtained program.
Based on the same inventive concept, an embodiment of the present invention provides a video processing system, which may include: the image acquisition device provided by the embodiment of the invention and the video processing device provided by the embodiment of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. A video processing method, characterized in that it is applied to an image acquisition apparatus, and the image acquisition apparatus rotates between a plurality of preset acquisition points; the method comprises the following steps:
When any acquisition point is reached, determining a preset video processing rule corresponding to the acquisition point according to the corresponding relation between the preset acquisition point and the preset video processing rule;
processing the determined preset video processing rule to obtain a rule frame corresponding to the acquisition point;
When video data acquired at the acquisition point are encoded into an initial video stream, inserting a regular frame corresponding to the acquisition point into the initial video stream to obtain a target video stream; the obtaining the target video stream specifically includes: when the initial video stream corresponding to each acquisition point comprises a plurality of video frames, inserting the regular frames corresponding to the acquisition points into the initial video stream every N video frames to obtain the target video stream; wherein, each rule frame corresponding to the initial video stream acquired by the same acquisition point is the same, and N is a positive integer;
transmitting the target video stream to a video processing device;
wherein the target video stream is for: the video processing device extracts the regular frame and the initial video stream in the target video stream, and performs video processing on the extracted initial video stream according to a preset video processing rule included in the extracted regular frame.
2. The video processing method of claim 1, wherein the initial video stream comprises a plurality of video frames, the video frames and the regular frames each comprising a category label.
3. The video processing method of claim 1, wherein the video frame comprises: i-frames and P-frames.
4. A video processing method, characterized by being applied to a video processing apparatus, the method comprising:
Acquiring a target video stream; wherein the target video stream is: when the image acquisition equipment reaches any one of a plurality of preset acquisition points, determining a preset video processing rule corresponding to the acquisition point according to the corresponding relation between the preset acquisition point and a preset video processing rule, and processing the determined preset video processing rule to obtain a rule frame corresponding to the acquisition point; when video data acquired at the acquisition point are encoded into an initial video stream, inserting a regular frame corresponding to the acquisition point into the initial video stream to obtain a target video stream; the obtaining the target video stream specifically includes: when the initial video stream corresponding to each acquisition point comprises a plurality of video frames, inserting the regular frames corresponding to the acquisition points into the initial video stream every N video frames to obtain the target video stream; wherein, each rule frame corresponding to the initial video stream acquired by the same acquisition point is the same, and N is a positive integer;
Extracting the regular frames and the initial video stream;
and carrying out video processing on the extracted initial video stream according to a preset video processing rule included in the extracted rule frame.
5. The video processing method of claim 4, wherein when the initial video stream includes video frames, the video frames and the regular frames each include a category label, extracting the regular frames and the initial video stream, comprises:
extracting the rule frame according to the category marks included in the rule frame;
And extracting the video frame according to the category marks included in the video frame to obtain an initial video stream.
6. The video processing method according to claim 4, wherein video processing the extracted initial video stream according to a preset video processing rule included in the extracted rule frame, comprises:
the target video stream comprises: when a plurality of the video frames and a plurality of the regular frames are used, the following process is executed for each of the regular frames:
Judging whether the currently extracted rule frame is the first rule frame in the target video stream or not;
If yes, decoding the rule frame extracted currently, determining a preset video processing rule included in the rule frame extracted currently, and performing video processing on the initial video stream of the acquisition point corresponding to the rule frame extracted currently according to the determined preset video processing rule;
If not, determining a preset video processing rule for video processing currently according to the rule frame extracted currently and the rule frame extracted last time, and performing video processing on the initial video stream of the acquisition point corresponding to the rule frame extracted currently based on the determined preset video processing rule.
7. The video processing method according to claim 6, wherein determining a preset video processing rule for video processing currently based on the rule frame currently extracted and the rule frame last extracted, comprises:
judging whether the rule frame extracted currently is the same as the rule frame extracted last time;
if yes, taking the preset video processing rule determined last time as the preset video processing rule for video processing currently;
if not, decoding the currently extracted rule frame, and determining a preset video processing rule included in the currently extracted rule frame.
8. An image capturing apparatus, comprising:
A memory for storing program instructions;
A processor for invoking said program instructions stored in said memory and executing a video processing method according to any of claims 1-3 in accordance with the obtained program.
9. A video processing apparatus, comprising:
A memory for storing program instructions;
A processor for invoking said program instructions stored in said memory and executing a video processing method according to any of claims 4-7 in accordance with the obtained program.
CN202111047807.7A 2021-09-08 2021-09-08 Video processing method and device Active CN113923513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111047807.7A CN113923513B (en) 2021-09-08 2021-09-08 Video processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111047807.7A CN113923513B (en) 2021-09-08 2021-09-08 Video processing method and device

Publications (2)

Publication Number Publication Date
CN113923513A CN113923513A (en) 2022-01-11
CN113923513B true CN113923513B (en) 2024-05-28

Family

ID=79234142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111047807.7A Active CN113923513B (en) 2021-09-08 2021-09-08 Video processing method and device

Country Status (1)

Country Link
CN (1) CN113923513B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006012911A1 (en) * 2004-08-03 2006-02-09 Fg Microtec Gmbh Dynamic optimization of wireless real-time video data flow
CN101996491A (en) * 2010-09-13 2011-03-30 李志恒 Traffic monitoring system for labeling road section information by using video monitoring presetting bit
CN102368356A (en) * 2011-10-24 2012-03-07 姜廷顺 Monitoring system and method used for freeway ramp mouth
CN102394012A (en) * 2011-06-21 2012-03-28 陆化普 Monitoring system having preset bit function for vehicle crossing over markings and method thereof
CN107360394A (en) * 2017-06-16 2017-11-17 河北汉光重工有限责任公司 More preset point dynamic and intelligent monitoring methods applied to frontier defense video monitoring system
CN108012202A (en) * 2017-12-15 2018-05-08 浙江大华技术股份有限公司 Video concentration method, equipment, computer-readable recording medium and computer installation
CN109740563A (en) * 2019-01-14 2019-05-10 湖南众智君赢科技有限公司 A kind of moving target detecting method of facing video monitoring
CN110111347A (en) * 2019-04-19 2019-08-09 深圳市华星光电技术有限公司 Logos extracting method, device and storage medium
CN110881141A (en) * 2019-11-19 2020-03-13 浙江大华技术股份有限公司 Video display method and device, storage medium and electronic device
CN112241649A (en) * 2019-07-16 2021-01-19 浙江宇视科技有限公司 Target identification method and device
CN112465865A (en) * 2020-11-27 2021-03-09 浙江工业大学 Multi-target tracking method based on background modeling and IoU matching
CN112954433A (en) * 2021-02-01 2021-06-11 游密科技(深圳)有限公司 Video processing method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016082220A1 (en) * 2014-11-28 2016-06-02 华为技术有限公司 Method and device for transmitting multiple video streams

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006012911A1 (en) * 2004-08-03 2006-02-09 Fg Microtec Gmbh Dynamic optimization of wireless real-time video data flow
CN101996491A (en) * 2010-09-13 2011-03-30 李志恒 Traffic monitoring system for labeling road section information by using video monitoring presetting bit
CN102394012A (en) * 2011-06-21 2012-03-28 陆化普 Monitoring system having preset bit function for vehicle crossing over markings and method thereof
CN102368356A (en) * 2011-10-24 2012-03-07 姜廷顺 Monitoring system and method used for freeway ramp mouth
CN107360394A (en) * 2017-06-16 2017-11-17 河北汉光重工有限责任公司 More preset point dynamic and intelligent monitoring methods applied to frontier defense video monitoring system
CN108012202A (en) * 2017-12-15 2018-05-08 浙江大华技术股份有限公司 Video concentration method, equipment, computer-readable recording medium and computer installation
CN109740563A (en) * 2019-01-14 2019-05-10 湖南众智君赢科技有限公司 A kind of moving target detecting method of facing video monitoring
CN110111347A (en) * 2019-04-19 2019-08-09 深圳市华星光电技术有限公司 Logos extracting method, device and storage medium
CN112241649A (en) * 2019-07-16 2021-01-19 浙江宇视科技有限公司 Target identification method and device
CN110881141A (en) * 2019-11-19 2020-03-13 浙江大华技术股份有限公司 Video display method and device, storage medium and electronic device
CN112465865A (en) * 2020-11-27 2021-03-09 浙江工业大学 Multi-target tracking method based on background modeling and IoU matching
CN112954433A (en) * 2021-02-01 2021-06-11 游密科技(深圳)有限公司 Video processing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于帧映射算法的无线实时视频监控系统;王志刚, 王绍棣;电视技术;20031017(第10期);全文 *

Also Published As

Publication number Publication date
CN113923513A (en) 2022-01-11

Similar Documents

Publication Publication Date Title
CN107888567B (en) Transmission method and device for composite multimedia signal
JP6743192B2 (en) Video service quality evaluation method and apparatus
CN102547300B (en) Method for detecting frame types and device
CN110166765B (en) Screen-patterned detection method, electronic device and readable storage medium
CN101494793B (en) Method, device and system for sending and receiving stream media data
CN109167923B (en) Image transmission method, image transmission device, electronic equipment and storage medium
CN110580808B (en) Information processing method and device, electronic equipment and intelligent traffic system
US8270488B2 (en) Using black detection to improve video splicing
CN110636334B (en) Data transmission method and system
US20050179776A1 (en) Vehicle identification method and device
CN112291477B (en) Multimedia information processing method, device, storage medium and electronic device
CN111093079A (en) Image processing method and device
CN113923513B (en) Video processing method and device
CN110087142B (en) Video slicing method, device, terminal and storage medium
CN109104588A (en) A kind of video monitoring method, equipment, terminal and computer storage medium
CN113014882B (en) Multi-source multi-protocol video fusion monitoring system
CN108881119B (en) Method, device and system for video concentration
CN117395424A (en) Video optimization method for video wireless transmission monitoring system
CN112738527A (en) Video decoding detection method and device, electronic equipment and storage medium
JP2020191681A (en) Video quality evaluation method and apparatus
CN115484369B (en) Video frame delay time determining method, device, medium and remote driving system
CN112019878A (en) Video decoding and editing method, device, equipment and storage medium
CN113055736B (en) Video receiving and sending method, terminal equipment and road side equipment
CN105978912A (en) Testing device and testing method for video index file
CN104159164A (en) Wireless cooperation method for reducing synchronization delay of multi-view video stream

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant