CN113923513A - Video processing method and device - Google Patents

Video processing method and device Download PDF

Info

Publication number
CN113923513A
CN113923513A CN202111047807.7A CN202111047807A CN113923513A CN 113923513 A CN113923513 A CN 113923513A CN 202111047807 A CN202111047807 A CN 202111047807A CN 113923513 A CN113923513 A CN 113923513A
Authority
CN
China
Prior art keywords
video
video processing
rule
frame
preset
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.)
Granted
Application number
CN202111047807.7A
Other languages
Chinese (zh)
Other versions
CN113923513B (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

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/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, wherein a target video stream is determined through image acquisition equipment, so that the target video stream can comprise a regular frame corresponding to a preset video processing rule, and further the image acquisition equipment can send video data and the preset video processing rule to the video processing equipment through a transmission channel; in addition, the method provided by the embodiment of the invention can also be suitable for processing the video, and solves the problem that the video cannot dynamically configure the preset video processing rule, so that the method 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
A front-end camera (also called a dome camera) with a pan-tilt function is generally 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 that the video processing equipment can perform video processing on the video stream.
When the video processing device performs video processing on a video stream, the 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 dynamically configured according to the video stream.
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 at one time, when the front-end camera rotates to a certain acquisition point, the number of the acquisition point is sent to the video processing equipment, and when the video processing equipment determines the corresponding processing rule according to the number, the real-time video stream is subjected to video processing;
the other method comprises the following steps: when the front-end camera rotates to a certain acquisition point, the processing rule corresponding to the current acquisition point is found out from all pre-stored processing rules, then the processing rule is issued to the video processing equipment, and the video processing equipment carries out video processing on the real-time video stream according to the received processing rule.
When the front-end camera sends a video stream to the video processing device, the video stream is transmitted through a single video transmission channel, and the number of the acquisition point or the processing rule is transmitted through other transmission channels, so that the processing rule determined by the video processing device may be out of synchronization with the video stream, that is, the video of the acquisition point a, which is aimed at by the video stream currently received by the video processing device, and the determined processing rule may correspond to the acquisition point B, which may cause an error in the result of video processing.
Furthermore, since the recorded video is recorded and stored in advance and is not real-time, it is not possible for the video processing device to dynamically configure the processing rules for the recorded video.
Disclosure of Invention
The embodiment of the invention provides a video processing method and video processing equipment, which are used for realizing the real-time perception of a video stream and a video processing rule, avoiding the problem that the processing rule is not synchronous with the video stream, improving the accuracy and effectiveness of a video processing result and simultaneously realizing the dynamic configuration of the processing rule for the video stream.
In a first aspect, an embodiment of the present invention provides a video processing method, which is applied to an image capturing device, where the image capturing device rotates between a plurality of preset capturing 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 the video data collected at the collection point is coded into an initial video stream, inserting a regular frame corresponding to the collection point into the initial video stream to obtain a target video stream;
sending the target video stream to a video processing device;
wherein the target video stream is to: the video processing equipment extracts the regular frames and the initial video stream in the target video stream, and carries out video processing on the extracted initial video stream according to preset video processing rules included in the extracted regular frames.
In a second aspect, an embodiment of the present invention provides a video processing method, which is applied to a video processing device, and 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 the corresponding relation between the preset acquisition point and a preset video processing rulePreset video processing gauge corresponding to the collection pointThenProcessing the determined preset video processing rule to obtain a rule frame corresponding to the acquisition point; when the video data collected at the collection point is coded into an initial video stream, inserting the regular frame corresponding to the collection point into the initial video stream to obtain a target video stream;
extracting the regular frames and the initial video stream;
and performing 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 provided by the embodiment of the invention 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 provided by the embodiment of the invention according to the obtained program.
The invention has the following beneficial effects:
according to the video processing method and the video processing equipment provided by the embodiment of the invention, the target video stream is determined through the image acquisition equipment, so that the target video stream can comprise the regular frame corresponding to the preset video processing rule, and further the image acquisition equipment can send the video data and the preset video processing rule to the video processing equipment through one transmission channel; in addition, the method provided by the embodiment of the invention can also be suitable for processing the video, and solves the problem that the video cannot dynamically configure the preset video processing rule, so that the method has a wider application range.
Drawings
Fig. 1 is a schematic structural diagram of an image capturing device provided in 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 view of a traffic intersection provided in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a video stream provided in an embodiment of the present invention;
FIG. 5 is a diagram of a video frame according to an embodiment of the present invention;
fig. 6 is a flow chart of another video processing method provided in the embodiment of the present invention;
FIG. 7 is a flow chart of one side of an image capture device in an embodiment provided in an embodiment of the present invention;
FIG. 8 is a flow chart of a side of a video processing device in an embodiment provided in an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another image capturing apparatus provided in 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 a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First, an image capturing apparatus is introduced, as shown in fig. 1, 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 maintained unchanged, but may be rotated between the capturing points (as indicated by the dotted arrows in fig. 1, the rotation is between the capturing points, and the rotation direction is not limited to the dotted arrows), so as to capture videos of different angles and different scenes.
Specifically, the arrangement of the capturing point of the image capturing device is not limited to that shown in fig. 1, and may be set according to actual needs, and is not limited herein, and is only illustrated in fig. 1 as an example.
Specifically, the image capturing device may be any capturing device known to those skilled in the art to implement rotation, such as, but not limited to, a ball machine, and the like, and is not limited thereto.
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 the corresponding relation between the preset acquisition point and the preset video processing rule;
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 requirements corresponding to the acquisition point, and specific preset video processing rules are not specifically limited herein.
The following describes the preset video processing rule with reference to a specific example.
For example, taking the application of the video processing method provided by the embodiment of the present invention to a traffic intersection scene as an example, an image acquisition device is installed at the intersection, and it is assumed that two acquisition points of the image acquisition device are defined as an acquisition point a and an acquisition point B, respectively, where the acquisition point a can acquire the incoming traffic situation in the east-west direction, and the acquisition point B can acquire the incoming traffic situation in the north-south direction; and, traffic lines such as stop lines (marked with 1, 2, 3 and 4 in the drawing) 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 in the figures);
when a straight line (denoted as a broken line M1) that coincides with the stop line 1 and the stop line 2 is provided, a vehicle that has passed over the stop line 1 and the stop line 2 is identified.
Thus, when performing video processing, the video processing apparatus can perform the following processes:
judging whether a vehicle crosses the stop line 1 and the stop line 2 when the red light is on in the video corresponding to the acquisition point A;
if the vehicle running the red light exists, the license plate number of the vehicle running the red light in the video can be identified, so that the vehicle can be punished to run the red light in the following process.
Likewise, the preset video processing rule corresponding to the acquisition point B may include:
identifying a red light in a traffic light;
when a straight line (denoted as a broken line M2) that coincides with the stop line 3 and the stop line 4 is provided, a vehicle that passes over the stop line 3 and the stop line 4 is identified.
Thus, when performing video processing, the video processing apparatus can perform the following processes:
judging whether a vehicle crosses the stop line 3 and the stop line 4 when the red light is on in the video corresponding to the acquisition point B;
if the vehicle running the red light exists, the license plate number of the vehicle running the red light in the video can be identified, so that the vehicle can be punished to run the red light in the following process.
The dotted line M1 is a straight line parallel to the north-south direction in fig. 3 because it is suitable for the vehicle coming in the east-west direction, and the dotted line M2 is a straight line parallel to the east-west direction in fig. 3 because it is perpendicular to the east-west direction, so the dotted line M1 and the dotted line M2 are perpendicular.
That is to say, different acquisition points have different acquisition ranges and different acquisition scenes, so that the 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, when the video data collected at the collection point is coded into an initial video stream, inserting the regular frame corresponding to the collection point into the initial video stream 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: the TLV (tag Length value) structure, so that when the preset video processing rule is processed, any processing method that can be implemented to be encoded into the TLV structure, which is well known to those skilled in the art, may be used, 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 to: 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.
Therefore, the target video stream is determined through the image acquisition equipment, so that the target video stream can comprise the regular frames corresponding to the preset video processing rules, the image acquisition equipment can send the video data and the preset video processing rules to the video processing equipment through one transmission channel, when the video processing equipment carries out video processing, the regular frames corresponding to the video data can be accurately determined, the accurate processing of the video data is realized, the real-time perception of the target video stream and the preset video processing rules is improved, the problem that the preset video processing rules are not synchronous with the video stream is avoided, and the accuracy and the effectiveness of the video processing result are improved; in addition, the method provided by the embodiment of the invention can also be suitable for processing the video, and solves the problem that the video cannot dynamically configure the preset video processing rule, so that the method has a wider application range.
Optionally, in an embodiment of the present invention, the initial video stream includes a plurality of video frames, and each of the video frames and the regular frames includes the 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 the header information of the video frame and the regular frame.
For example, the category flag in the header information of the video frame may be a first flag, and the category flag in the header information of the regular frame may be a second flag, where the first flag and the second flag may be at least one of a number, a letter, and a special symbol, and the specific form of the first flag and the second flag may be set according to actual needs, and is not limited herein.
Therefore, the regular frames and the video frames can be extracted from the target video stream based on the category labels, so that the video processing can be performed on the video frames according to the regular frames.
Optionally, in this embodiment of the present invention, inserting the regular frame corresponding to the acquisition point into the initial video stream to obtain 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 at intervals of 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, and is not limited herein.
Therefore, regular frames can be inserted between the initial video streams according to a certain frequency to form a target video stream, so that the video processing equipment can perform accurate and effective video processing.
Specifically, in the embodiment of the present invention, as shown in an enlarged structural diagram within a dashed box 1 in fig. 4, a video frame may include: i-frames and P-frames.
For example, as shown in fig. 4, the video frame S may include an I frame and a plurality of P frames, and the arrangement order of the I frame and the P frames in each video frame is the same.
Therefore, the consistency of the structures of the video frames can be ensured, so that the video data can be decoded based on the video frames, and the subsequent video processing is facilitated.
Of course, in practical cases, the video frames may also 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 exemplified below.
For example, as in the target video stream shown in fig. 4, assume that: the image capturing device is provided with two capturing points, which are respectively marked as a capturing point a and a capturing point B, the image capturing device rotates back and forth between the capturing point a and the capturing point B, the time spent at each capturing point may be the same (correspondingly, the number of video frames corresponding to each capturing point is also the same), and of course, the time spent at each capturing point may also be different (correspondingly, the number of video frames corresponding to each capturing point is different), fig. 4 illustrates the case where the time spent at each capturing point is the same, but the invention is not limited thereto.
As shown in fig. 4, when the first video frame S1 corresponding to capture point a is obtained, the regular frame Ga corresponding to capture point a is inserted, when the second video frame S2 corresponding to capture point a is obtained, it 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 the video, and when a third video frame S3 is obtained, the third video frame is arranged behind the regular frame Ga;
in this way, 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 shown.
Of course, in specific implementation, the following may also be set: the video frame is positioned behind the corresponding regular frame; that is, the positions of the video frame and the corresponding regular frame can be set according to actual needs, as long as the regular frame can be inserted into the initial video stream.
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 device, 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, a preset video processing gauge corresponding to the acquisition point is determined according to the corresponding relation between the preset acquisition point and a preset video processing ruleThenProcessing the determined preset video processing rule to obtain a rule frame corresponding to the acquisition point; when the video data collected at the collection point is coded into an initial video stream, inserting the regular frame corresponding to the collection point into the initial video stream to obtain a target video stream;
s602, extracting a rule frame and an initial video stream;
and S603, performing video processing on the extracted initial video stream according to a preset video processing rule included in the extracted rule frame.
Therefore, the target video stream is determined through the image acquisition equipment, so that the target video stream can comprise the regular frames corresponding to the preset video processing rules, the image acquisition equipment can send the video data and the preset video processing rules to the video processing equipment through one transmission channel, when the video processing equipment carries out video processing, the regular frames corresponding to the video data can be accurately determined, the accurate processing of the video data is realized, the real-time perception of the target video stream and the preset video processing rules is improved, the problem that the preset video processing rules are not synchronous with the video stream is avoided, and the accuracy and the effectiveness of the video processing result are improved; in addition, the method provided by the embodiment of the invention can also be suitable for processing the video, and solves the problem that the video cannot dynamically configure the preset video processing rule, so that the method has a wider application range.
Optionally, in this embodiment of the present invention, when the initial video stream includes video frames, and both the video frames and the regular frames include category markers, extracting the regular frames and the initial video stream specifically includes:
extracting the rule frame according to the category mark included in the rule frame;
and extracting the video frames according to the category labels included in the video frames to obtain an initial video stream.
Therefore, the regular frames and the video frames can be extracted from the target video stream based on the category labels, so that the video processing can be performed on the video frames according to the regular frames.
Optionally, in this 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: a plurality of video frames and a plurality of regular frames, the following process is performed for each regular frame:
judging whether the currently extracted regular frame is the first regular frame in the target video stream;
if so, decoding the currently extracted regular frame, determining a preset video processing rule included in the currently extracted regular frame, and performing video processing on the initial video frame of the acquisition point corresponding to the currently extracted regular frame according to the determined preset video processing rule;
if not, when the preset video processing rule for currently performing video processing is determined according to the currently extracted regular frame and the last extracted regular frame, performing video processing on the initial video stream of the acquisition point corresponding to the currently extracted regular frame based on the determined preset video processing rule.
Specifically, when performing video processing on an initial video stream of a collection point corresponding to a currently extracted regular frame, the method specifically includes:
decoding the video frames in the initial video stream of the acquisition points corresponding to the currently extracted regular frames to obtain corresponding video data;
and performing video processing on the obtained video data based on the determined preset video processing rule.
For the specific decoding process, any method known to those skilled in the art that can implement the decoding process may be used, and will not be described in detail here.
Specifically, in the embodiment of the present invention, determining the preset video processing rule currently performing video processing according to the currently extracted rule frame and the rule frame extracted last time includes:
judging whether the current extracted rule frame is the same as the last extracted rule frame;
if so, taking the preset video processing rule determined last time as the preset video processing rule for currently performing video processing;
if not, decoding the currently extracted regular frame, and determining a preset video processing rule included in the currently extracted regular frame.
Therefore, if the currently extracted regular frame is the first regular frame in the target video stream, it is indicated that the preset video processing rule is not decoded yet, so that the first regular frame needs to be decoded to obtain the corresponding preset video processing rule, and then the corresponding video data is subjected to video processing based on the preset video processing rule;
if the current extracted regular frame is not the first regular frame in the target video stream, the rule frame is extracted before the current extracted regular frame is indicated, so that the current extracted regular frame can be compared with the last extracted regular frame, and if the current extracted regular frame and the last extracted regular frame are the same, the current video frame and the last video frame needing to be processed are indicated to correspond to the same acquisition point, so that the current extracted regular frame does not need to be decoded, and the last decoded preset video processing rule can be directly adopted, so that the step of decoding can be omitted, the speed of video processing is increased, the calculation amount of video processing is reduced, and the manufacturing cost of video processing equipment is reduced;
if the two are different, it is indicated that the current video frame and the last video frame to be processed correspond to different acquisition points, so that the determined preset video processing rule needs to be updated, that is, the current extracted rule frame needs to be decoded to obtain a new preset video processing rule, and then video processing is performed based on the new preset video processing rule, so that the accuracy of video processing can be increased, and processing errors are avoided.
It should be noted that, optionally, in an 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 to be processed by the video processing device may be a real-time video stream transmitted by the image capturing device, and may also be a video stream transmitted by the image capturing device before, but stored by the video processing device without being processed immediately.
Therefore, the video processing method provided by the embodiment of the invention is not only suitable for real-time videos, but also suitable for video recording videos, so that the video processing method has a wider application range, is not limited by the real-time videos, and can solve the problem that the video recording videos cannot be dynamically configured with preset video processing rules, and has better effects in both real-time performance and usability.
The following describes the above-mentioned video processing method provided by the embodiment of the present invention with reference to specific embodiments.
The description will be given by taking an example in which the image capturing device transmits a real-time video.
As shown in fig. 7, the following process is performed for the image capturing apparatus side:
s701, when the mobile terminal rotates to any acquisition point, 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, encoding the determined preset video processing rule into a rule frame according to the structure of each preset data frame;
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 the video data collected by the collection point is coded into an initial video stream comprising a plurality of video frames, inserting a regular frame corresponding to the collection point into every N video frames 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, the following process is performed for the video processing apparatus side:
s801, receiving a target video stream;
s802, extracting video frames and corresponding rule frames from the target video stream in sequence according to the category labels;
s803, judging whether the currently extracted rule frame is the first rule frame; if not, executing S804; if yes, executing S806;
s804, judging whether the current extracted regular frame is the same as the last extracted regular frame; if yes, go to S805; if not, executing S806;
s805, performing video processing on the video frame corresponding to the currently extracted regular frame by adopting the preset video processing rule determined for the last time; ending the flow;
s806, decoding the currently extracted regular frame, determining a corresponding preset video processing rule, and performing video processing on the video frame corresponding to the currently extracted regular frame by using the preset video processing rule.
Based on the same inventive concept, embodiments of the present invention provide an image capturing device, an implementation principle of the image capturing device is similar to an implementation principle of the video processing method at the image capturing device side, and a specific implementation manner of the device may refer to a specific embodiment of the video processing method at the image capturing device side, and repeated parts are not described again.
Specifically, an image capturing device provided in an embodiment of the present invention, as shown in fig. 9, may include:
a memory 901 for storing program instructions;
the processor 902 is configured to call the program instructions stored in the memory 901, and execute the video processing method according to the obtained program.
Based on the same inventive concept, embodiments of the present invention provide a video processing device, an implementation principle of the video processing device is similar to an implementation principle of the video processing method at the video processing device side, and a specific implementation manner of the device may refer to a specific embodiment of the video processing method at the video processing device side, and repeated details are omitted.
Specifically, a video processing device provided in an embodiment of the present invention, as shown in fig. 10, 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 embodiment of the present invention 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 changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. The video processing method is characterized by being applied to image acquisition equipment, wherein the image acquisition equipment 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 the video data collected at the collection point is coded into an initial video stream, inserting a regular frame corresponding to the collection point into the initial video stream to obtain a target video stream;
sending the target video stream to a video processing device;
wherein the target video stream is to: the video processing equipment extracts the regular frames and the initial video stream in the target video stream, and carries out video processing on the extracted initial video stream according to preset video processing rules included in the extracted regular frames.
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 according to claim 1, wherein inserting the regular frame corresponding to the acquisition point into the initial video stream to obtain a target video stream comprises:
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 at intervals of N video frames to obtain the target video stream;
wherein N is a positive integer.
4. The video processing method of claim 3, wherein the video frame comprises: i-frames and P-frames.
5. A video processing method 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, a preset video processing gauge corresponding to the acquisition point is determined according to the corresponding relation between the preset acquisition point and a preset video processing ruleThenProcessing the determined preset video processing rule to obtain a rule frame corresponding to the acquisition point; when the video data collected at the collection point is coded into an initial video stream, inserting the regular frame corresponding to the collection point into the initial video stream to obtain a target video stream;
extracting the regular frames and the initial video stream;
and performing video processing on the extracted initial video stream according to a preset video processing rule included in the extracted rule frame.
6. The video processing method according to claim 5, wherein when the initial video stream includes video frames, and the video frames and the regular frames each include a category flag, extracting the regular frames and the initial video stream specifically includes:
extracting the rule frame according to the category mark included in the rule frame;
and extracting the video frame according to the category mark included in the video frame to obtain an initial video stream.
7. The video processing method according to claim 5, 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 rule frame extracted currently is the first rule frame in the target video stream;
if so, decoding the currently extracted regular frame, determining a preset video processing rule included in the currently extracted regular frame, and performing video processing on the initial video frame of the acquisition point corresponding to the currently extracted regular frame according to the determined preset video processing rule;
if not, when a preset video processing rule for currently performing video processing is determined according to the currently extracted rule frame and the last extracted rule frame, performing video processing on the initial video stream of the acquisition point corresponding to the currently extracted rule frame based on the determined preset video processing rule.
8. The video processing method of claim 7, wherein determining the preset video processing rule currently performing video processing according to 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 so, taking the preset video processing rule determined last time as the preset video processing rule for currently performing video processing;
if not, decoding the currently extracted rule frame, and determining a preset video processing rule included in the currently extracted rule frame.
9. An image acquisition apparatus, characterized by comprising:
a memory for storing program instructions;
a processor for calling said program instructions stored in said memory to execute the video processing method according to any one of claims 1 to 4 in accordance with the obtained program.
10. A video processing apparatus, comprising:
a memory for storing program instructions;
a processor for calling said program instructions stored in said memory to execute the video processing method according to any of claims 5-8 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 true CN113923513A (en) 2022-01-11
CN113923513B 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 (13)

* 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
US20170264866A1 (en) * 2014-11-28 2017-09-14 Huawei Technologies Co., Ltd. Multi-Video Stream Transmission Method and Device
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

Patent Citations (13)

* 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
US20170264866A1 (en) * 2014-11-28 2017-09-14 Huawei Technologies Co., Ltd. Multi-Video Stream Transmission Method and Device
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
王志刚, 王绍棣: "基于帧映射算法的无线实时视频监控系统", 电视技术, no. 10, 17 October 2003 (2003-10-17) *

Also Published As

Publication number Publication date
CN113923513B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
CN107888567B (en) Transmission method and device for composite multimedia signal
CN109167923B (en) Image transmission method, image transmission device, electronic equipment and storage medium
CN110705405A (en) Target labeling method and device
CN103118247B (en) Video data handling procedure and device, video cascade system and chip
CN109714623B (en) Image display method and device, electronic equipment and computer readable storage medium
CN110166765B (en) Screen-patterned detection method, electronic device and readable storage medium
CN105979189A (en) Video signal processing and storing method and video signal processing and storing system
CN110636334A (en) Data transmission method and system
CN103686056A (en) Conference terminal and video processing method for conference terminal
CN108881119B (en) Method, device and system for video concentration
CN111093079A (en) Image processing method and device
CN112291483B (en) Video pushing method and system, electronic equipment and readable storage medium
CN113923513B (en) Video processing method and device
CN110855947B (en) Image snapshot processing method and device
CN112738527A (en) Video decoding detection method and device, electronic equipment and storage medium
CN113014876A (en) Video monitoring method and device, electronic equipment and readable storage medium
CN112019878B (en) Video decoding and editing method, device, equipment and storage medium
CN112700653A (en) Method, device and equipment for judging illegal lane change of vehicle and storage medium
CN112261417A (en) Video pushing method and system, equipment and readable storage medium
CN111447451A (en) Image coding and decoding method and device
CN109698932B (en) Data transmission method, camera and electronic equipment
CN115103226B (en) Video stream transmission method based on KCP protocol
CN112565693B (en) Method, system and equipment for monitoring video on demand
CN114359828A (en) Target behavior recording method, device, storage medium and electronic device
CN112073739A (en) Mobile recording and broadcasting control system and method

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