CN111953898A - Method and system for recording and transmitting monitoring video - Google Patents

Method and system for recording and transmitting monitoring video Download PDF

Info

Publication number
CN111953898A
CN111953898A CN202010760433.2A CN202010760433A CN111953898A CN 111953898 A CN111953898 A CN 111953898A CN 202010760433 A CN202010760433 A CN 202010760433A CN 111953898 A CN111953898 A CN 111953898A
Authority
CN
China
Prior art keywords
video data
compression
video
monitoring
frequency value
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
CN202010760433.2A
Other languages
Chinese (zh)
Other versions
CN111953898B (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.)
Zhongbiao Huian Information Technology Co Ltd
Original Assignee
Zhongbiao Huian Information 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 Zhongbiao Huian Information Technology Co Ltd filed Critical Zhongbiao Huian Information Technology Co Ltd
Priority to CN202010760433.2A priority Critical patent/CN111953898B/en
Publication of CN111953898A publication Critical patent/CN111953898A/en
Application granted granted Critical
Publication of CN111953898B publication Critical patent/CN111953898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/665Control of cameras or camera modules involving internal camera communication with the image sensor, e.g. synchronising or multiplexing SSIS control signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
    • H04N19/198Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters including smoothing of a sequence of encoding parameters, e.g. by averaging, by choice of the maximum, minimum or median value
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Abstract

The invention provides a method and a system for recording and transmitting monitoring video, which can ensure that an image sensor and a video data memory can work under the same clock frequency by coordinating and unifying the working frequency of the image sensor and the video data memory, thereby ensuring that the recorded monitoring video data can be stored in time without forming a monitoring video data queue.

Description

Method and system for recording and transmitting monitoring video
Technical Field
The invention relates to the technical field of video monitoring, in particular to a monitoring video recording and transmitting method and system.
Background
At present, the blockchain technology has been gradually popularized in different fields, and one main application of the blockchain technology is to construct a video monitoring evidence storage platform based on a blockchain, which guarantees the authenticity, availability and security of a monitoring video by using the blockchain evidence storage technology. In actual operation, the surveillance video recorded by the camera is sent to different application terminals for subsequent processing in different modes, but since the image sensor and the video data memory in the camera have independent and mutually irrelevant operating frequencies, the surveillance video data obtained by shooting and converting by the image sensor cannot be timely and synchronously transmitted to the video data memory for storage, so that the subsequent camera cannot correctly transmit all the surveillance video data to different application terminals without time difference. Therefore, the prior art still has corresponding shortcomings in the aspects of synchronous execution of monitoring video recording and storage and undistorted monitoring video data uploading aiming at a plurality of application terminals.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a surveillance video recording and transmitting method and a system thereof, wherein the surveillance video recording and transmitting method and the system synchronously coordinate the working frequency of an image sensor and a video data memory in a surveillance camera, then instruct a camera in the surveillance camera to periodically scan and shoot a preset surveillance scene so as to record and store the surveillance video data of the preset surveillance scene in a preset time period, then sequentially perform data cutting and fidelity compression on the stored surveillance video data so as to obtain a plurality of video data compression packets, and finally transmit the plurality of video data compression packets to each different application terminal along a special data link; therefore, the method and the system for recording and transmitting the monitoring video coordinate and unify the working frequency of the image sensor and the video data memory to ensure that the image sensor and the video data memory can work under the same clock frequency, so that the recorded monitoring video data can be timely stored without forming a monitoring video data queue.
The invention provides a monitoring video recording and transmitting method, which is characterized by comprising the following steps:
step S1, initializing an image sensor and a video data memory in a monitoring camera to have the same frequency, so that the image sensor and the video data memory work according to the same clock frequency;
step S2, instructing a camera of the monitoring camera to periodically scan and shoot a preset monitoring scene, so as to record and store monitoring video data of the preset monitoring scene in a preset time period;
step S3, sequentially performing data cutting and fidelity compression on the stored monitoring video data to obtain a plurality of video data compression packets;
step S4, transmitting the video data compression packets to each of a plurality of application terminals through a dedicated data link;
further, in the step S1, initializing the image sensor and the video data memory in the monitoring camera to be in the same frequency, so that the operation of the image sensor and the video data memory according to the same clock frequency specifically includes,
step S101, acquiring a current video data recording working frequency value of the image sensor and a video data storage working frequency value of the video data storage;
step S102, determining whether the video data recording working frequency value and the video data storage working frequency value are mutually prime numbers, if so, taking the maximum shooting exposure frequency value of the camera as a common frequency value, and if not, taking the minimum common multiple of the video data recording working frequency value and the video data storage working frequency value as the common frequency value;
step S103, correcting the image sensor and the video data memory to the same value with the common frequency as the current working frequency, and enabling the image sensor and the video data memory to have the same initial working timing starting point;
further, in step S2, the instructing the camera of the monitoring camera to perform periodic scanning shooting on the predetermined monitoring scene, so that recording and storing the monitoring video data of the predetermined monitoring scene in the predetermined time period specifically includes,
according to the size of the space range and the brightness of the space environment of the preset monitoring scene, after adjusting the scanning shooting period value, the shooting focal length and the shooting exposure value of the camera, the camera is instructed to carry out periodic scanning shooting on the preset monitoring scene, so that the panoramic monitoring video data of the preset monitoring scene in a preset time period is recorded and synchronously stored;
alternatively, the first and second electrodes may be,
in step S3, the data cutting and fidelity compression are sequentially performed on the stored monitoring video data, so as to obtain a plurality of video data compression packets specifically including,
step S301, sequentially cutting the stored monitoring video data into a plurality of sub-video data according to a preset video recording time length and a video recording time axis;
step S302, according to a preset video fidelity compression algorithm, performing fidelity compression on each piece of sub-video data to obtain a plurality of video data compression packets;
further, in step S302, according to a preset video fidelity compression algorithm, each of the sub-video data is fidelity-compressed, so as to obtain a plurality of video data compression packets specifically including,
firstly, determining the position relationship of a plurality of corresponding feature points of two adjacent frames in each sub-video, and calculating and obtaining the pixel similarity P of the two adjacent frames based on the position relationship and the following formula (1):
Figure BDA0002612927530000031
in the above formula (1), P represents the pixel similarity of two adjacent frames, D represents the number of positions of a plurality of feature points in the two adjacent frames, and xd,iPixel information, y, indicating the position coordinates of the first frame of two adjacent frames at (d, i)d,iPixel information, x, representing the coordinates of the position (d, i) in the second frame of two adjacent framesd,i+1Pixel information, y, indicating the position coordinates of the first frame of two adjacent frames at (d, i +1)d,i+1Pixel information indicating a position coordinate at (d, i +1) in a second frame of the two adjacent frames;
secondly, acquiring corresponding first sub-video data when the pixel similarity P is smaller than a preset similarity threshold, compressing the first sub-video data based on a compression processing technology, and transmitting the compressed information to a compression motion model so as to obtain a compression jitter curve;
thirdly, when the compression jitter curve is not in the standard jitter range, the compression jitter curve is smoothed according to the following formula (2):
Figure BDA0002612927530000041
in the above formula (2), F represents a smoothing result obtained by smoothing the compression jitter curve F, and s (F) represents a smoothing function obtained by smoothing the compression jitter curve F;
optimizing the compression processing technology according to the smoothing processing result until a compression jitter curve obtained corresponding to the optimized compression processing technology is within a standard jitter range, so as to obtain a corresponding compression packet;
fourthly, the optimized compression processing technology obtains a compression packet obtained by compressing the first sub-video of the compression jitter curve in a standard jitter range, and obtains a compression packet of corresponding second sub-video data when the pixel similarity P is greater than or equal to the preset similarity threshold;
further, in the step S4, the transmitting the plurality of video data compression packets to each of a plurality of application terminals through a dedicated data link specifically includes,
step S401, constructing a dedicated data link of each application terminal and the monitoring camera according to the physical address of each application terminal and the physical address of the monitoring camera, wherein the dedicated data link is a data link with the least communication nodes in a predetermined wireless communication network;
and step S402, sequentially transmitting the plurality of video data compression packets to each corresponding application terminal according to a video recording time axis through the special data link.
The invention also provides a monitoring video recording and transmitting system, which is characterized in that:
the monitoring video recording and transmission system comprises a same frequency processing module, a video recording and storage execution module, a video data compression packet generation module and a video data compression packet transmission module; wherein the content of the first and second substances,
the same-frequency processing module is used for initializing and sharing the same frequency of an image sensor and a video data memory in the monitoring camera, so that the image sensor and the video data memory work according to the same clock frequency;
the video recording and storing execution module is used for instructing a camera of the monitoring camera to periodically scan and shoot a preset monitoring scene so as to record and instruct the video data storage to store monitoring video data of the preset monitoring scene in a preset time period;
the video data compression packet generation module is used for sequentially carrying out data cutting and fidelity compression on the stored monitoring video data so as to obtain a plurality of video data compression packets;
the video data compression and transmission module is used for transmitting the video data compression packets to each of a plurality of application terminals through a dedicated data link;
further, the same frequency processing module comprises a working frequency value obtaining sub-module, a common frequency value determining sub-module and a same frequency correction and initialization sub-module; wherein the content of the first and second substances,
the working frequency value obtaining submodule is used for obtaining the current video data recording working frequency value of the image sensor and the video data storage working frequency value of the video data storage;
the common frequency value determining submodule is used for determining whether the video data recording working frequency value and the video data storage working frequency value are mutually prime numbers, if so, the maximum shooting exposure frequency value of the camera is taken as the common frequency value, and if not, the minimum common multiple of the video data recording working frequency value and the video data storage working frequency value is taken as the common frequency value;
the same-frequency correction and initialization submodule is used for correcting the image sensor and the video data memory into the same value with the common frequency as the current working frequency value and enabling the image sensor and the video data memory to have the same initial working timing starting point;
furthermore, the specific working process of the video recording and storage execution module is,
according to the size of the space range and the brightness of the space environment of the preset monitoring scene, after adjusting the scanning shooting period value, the shooting focal length and the shooting exposure value of the camera, the camera is instructed to carry out periodic scanning shooting on the preset monitoring scene, so that the panoramic monitoring video data of the preset monitoring scene in a preset time period is recorded and synchronously stored;
alternatively, the first and second electrodes may be,
the video data compression packet generation module comprises a video data cutting submodule and a video data fidelity compression submodule; wherein the content of the first and second substances,
the video data cutting submodule is used for sequentially cutting the stored monitoring video data into a plurality of sub-video data according to a preset video recording time length and a video recording time axis;
the video data fidelity compression submodule is used for performing fidelity compression on each piece of sub-video data according to a preset video fidelity compression algorithm so as to obtain a plurality of video data compression packets;
further, the video data compression packet transmission module comprises a dedicated data link construction sub-module and a point-to-point data transmission sub-module; wherein the content of the first and second substances,
the dedicated data link construction sub-module is used for constructing a dedicated data link of each application terminal and the monitoring camera according to the physical address of each application terminal and the physical address of the monitoring camera, wherein the dedicated data link is a data link with the least communication nodes in a preset wireless communication network;
and the point-to-point data transmission submodule is used for sequentially transmitting the plurality of video data compression packets to each corresponding application terminal according to a video recording time axis through the special data link.
Compared with the prior art, the surveillance video recording and transmitting method and system have the advantages that the image sensor and the video data memory in the surveillance camera are synchronously coordinated in working frequency, the camera in the surveillance camera is instructed to periodically scan and shoot a preset surveillance scene, so that surveillance video data of the preset surveillance scene in a preset time period are recorded and stored, the stored surveillance video data are sequentially subjected to data cutting and fidelity compression, a plurality of video data compression packets are obtained, and finally the plurality of video data compression packets are transmitted to different application terminals along a special data link; therefore, the method and the system for recording and transmitting the monitoring video coordinate and unify the working frequency of the image sensor and the video data memory to ensure that the image sensor and the video data memory can work under the same clock frequency, so that the recorded monitoring video data can be timely stored without forming a monitoring video data queue.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a surveillance video recording and transmitting method according to the present invention.
Fig. 2 is a schematic structural diagram of a surveillance video recording and transmitting system provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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.
Fig. 1 is a schematic flowchart of a surveillance video recording and transmitting method according to an embodiment of the present invention. The monitoring video recording and transmitting method comprises the following steps:
step S1, initializing the image sensor and the video data memory in the monitoring camera to have the same frequency, so that the image sensor and the video data memory work according to the same clock frequency;
step S2, instructing the camera of the monitoring camera to perform periodic scanning shooting on a predetermined monitoring scene, so as to record and store the monitoring video data of the predetermined monitoring scene in a predetermined time period;
step S3, sequentially performing data cutting and fidelity compression on the stored monitoring video data to obtain a plurality of video data compression packets;
step S4, transmitting the plurality of video data compressed packets to each of the plurality of application terminals through the dedicated data link.
Aiming at the condition that the two processes of recording and storing the monitoring video of the monitoring camera in the prior art are mutually independent and asynchronous, the monitoring video recording and transmitting method unifies the respective working frequencies of the corresponding image sensor and the video data memory to the same clock frequency in a working frequency coordination and unification mode, so that the monitoring video which is currently recorded in real time can be stored in time without difference and the condition of monitoring video data congestion is avoided; in addition, the method also cuts and fidelity-compresses the monitoring video data, so that the data capacity occupied by the data link is reduced to the maximum extent in the subsequent transmission process of the monitoring video data, and the transmission efficiency of the monitoring video data is greatly improved.
Preferably, in the step S1, initializing the image sensor and the video data memory in the monitoring camera at the same frequency, so that the operation of the image sensor and the video data memory according to the same clock frequency specifically includes,
step S101, obtaining the current video data recording working frequency value of the image sensor and the video data storage working frequency value of the video data storage;
step S102, determining whether the video data recording working frequency value and the video data storage working frequency value are mutually prime numbers, if so, taking the maximum shooting exposure frequency value of the camera as a common frequency value, and if not, taking the minimum common multiple of the video data recording working frequency value and the video data storage working frequency value as the common frequency value;
step S103, the image sensor and the video data memory are corrected to have the common frequency value as the current working frequency value, and the image sensor and the video data memory have the same initial working timing starting point.
Because the image sensor and the video data memory in the monitoring camera usually have different working parameters, especially the working frequency values are inconsistent, in order to ensure the continuity and the cooperativity between the video data recording of the image sensor and the video data storage of the video data memory, the same frequency processing of initialization can be carried out by adopting a mode of forcibly applying an external clock signal to the image sensor and the video data storage, so that the same frequency operation of the image sensor and the video data storage can be simply realized without changing the circuit structures of the image sensor and the video data storage, and according to two determination results of whether the working frequency values of the video data recording and the video data storage are mutually prime numbers or not, different frequency values are selected as the common frequency values of the image sensor and the video data storage under the condition of ensuring the normal operation of the image sensor and the video data storage, the working efficiency of the two is improved and the working energy consumption of the two is reduced to the maximum extent.
Preferably, in the step S2, the camera of the monitoring camera is instructed to perform periodic scanning shooting on the predetermined monitoring scene, so that recording and storing the monitoring video data of the predetermined monitoring scene in the predetermined time period specifically includes,
and after adjusting the scanning shooting period value, the shooting focal length and the shooting exposure value of the camera according to the space range size and the space environment brightness of the preset monitoring scene, instructing the camera to perform periodic scanning shooting on the preset monitoring scene, thereby recording and synchronously storing the panoramic monitoring video data of the preset monitoring scene in a preset time period.
The camera is instructed to record the monitoring video in the mode, so that the whole space range of the preset monitoring scene can be covered to the maximum extent, and the condition that the monitoring area is omitted is avoided.
Preferably, in step S3, the stored monitoring video data is sequentially subjected to data slicing and fidelity compression, so as to obtain a plurality of video data compression packets specifically including,
step S301, sequentially cutting the stored monitoring video data into a plurality of sub-video data according to a preset video recording time length and a video recording time axis;
step S302, according to a preset video fidelity compression algorithm, each sub video data is subjected to fidelity compression, and therefore a plurality of video data compression packets are obtained.
The cutting and fidelity compression of the monitoring video data can avoid the problem that the monitoring video data cannot be transmitted quickly and without omission due to the fact that the monitoring video data is too large integrally, and can also improve the timeliness and comprehensiveness of transmitting the monitoring video data to different application terminals, so that the optimized transmission of the monitoring video data is realized.
Preferably, in step S302, the fidelity compression is performed on each of the sub-video data according to a preset video fidelity compression algorithm, so that obtaining the plurality of video data compression packets specifically includes,
firstly, determining the position relationship of a plurality of corresponding feature points of two adjacent frames in each sub-video, and calculating and obtaining the pixel similarity P of the two adjacent frames based on the position relationship and the following formula (1):
Figure BDA0002612927530000101
in the above formula (1), P represents the pixel similarity of two adjacent frames, D represents the number of positions of a plurality of feature points in the two adjacent frames, and xd,iPixel information, y, indicating the position coordinates of the first frame of two adjacent frames at (d, i)d,iIndicating the position coordinates of (d, i) in the second frame of two adjacent framesPixel information of (2), xd,i+1Pixel information, y, indicating the position coordinates of the first frame of two adjacent frames at (d, i +1)d,i+1Pixel information indicating a position coordinate at (d, i +1) in a second frame of the two adjacent frames;
secondly, acquiring corresponding first sub-video data when the pixel similarity P is smaller than a preset similarity threshold, compressing the first sub-video data based on a compression processing technology, and transmitting the compressed information to a compression motion model so as to obtain a compression jitter curve;
thirdly, when the compression jitter curve is not in the standard jitter range, the compression jitter curve is smoothed according to the following formula (2):
Figure BDA0002612927530000102
in the above formula (2), F represents a smoothing result obtained by smoothing the compression jitter curve F, and s (F) represents a smoothing function obtained by smoothing the compression jitter curve F;
optimizing the compression processing technology according to the smoothing processing result until a compression jitter curve obtained corresponding to the optimized compression processing technology is within a standard jitter range, thereby obtaining a corresponding compression packet;
fourthly, the optimized compression processing technology obtains a compression packet obtained by compressing the first sub-video of the compression jitter curve in the standard jitter range, and obtains a compression packet of the corresponding second sub-video data when the pixel similarity P is greater than or equal to the preset similarity threshold.
The pixel similarity of adjacent frames is determined through the formula (1), compression by different compression technologies is facilitated, the effectiveness of compression is improved, the compression jitter curve of the compression processing technology is determined and compared with the standard jitter range, whether the compression jitter curve needs to be optimized or not can be effectively determined, when optimization is needed, smoothing processing is carried out according to the formula (2), the compression process can be effectively reduced, distortion is caused to videos due to the compression processing technology, the effectiveness of the videos after compression is guaranteed, and distortion is avoided.
Preferably, the transmitting of the plurality of compressed packets of video data to each of the plurality of application terminals via a dedicated data link in step S4 includes specifically,
step S401, constructing a dedicated data link related to each application terminal and the monitoring camera according to the physical address of each application terminal and the physical address of the monitoring camera, wherein the dedicated data link is a data link with the least communication nodes in a predetermined wireless communication network;
step S402, the plurality of video data compression packets are sequentially transmitted to each corresponding application terminal through the dedicated data link according to a video recording time axis.
By constructing a special data link with the minimum communication node and transmitting the plurality of video data compressed packets along the special data link, the video data compressed packets can be prevented from being distorted and embedded with virus data in the transmission process, so that the transmission safety and the transmission speed of the video data compressed packets are improved.
Fig. 2 is a schematic structural diagram of a surveillance video recording and transmitting system according to an embodiment of the present invention. The monitoring video recording and transmission system comprises a same frequency processing module, a video recording and storage execution module, a video data compression packet generation module and a video data compression packet transmission module; wherein the content of the first and second substances,
the same-frequency processing module is used for initializing the image sensor and the video data memory in the monitoring camera to be same in frequency, so that the image sensor and the video data memory work according to the same clock frequency;
the video recording and storing execution module is used for instructing a camera of the monitoring camera to periodically scan and shoot a preset monitoring scene so as to record and instruct the video data storage to store monitoring video data of the preset monitoring scene in a preset time period;
the video data compression packet generation module is used for sequentially carrying out data cutting and fidelity compression on the stored monitoring video data so as to obtain a plurality of video data compression packets;
the video data compression transmission module is used for transmitting the video data compression packets to each of the application terminals through a dedicated data link.
Aiming at the condition that the two processes of recording and storing the monitoring video of the monitoring camera in the prior art are mutually independent and asynchronous, the monitoring video recording and transmitting system unifies the respective working frequencies of the corresponding image sensor and the video data memory to the same clock frequency in a working frequency coordination and unification mode, so that the monitoring video which is currently recorded in real time can be stored in time without difference and the condition of monitoring video data congestion is avoided; in addition, the system also cuts and fidelity-compresses the monitoring video data, so that the data capacity occupied by the data link is reduced to the maximum extent in the subsequent transmission process of the monitoring video data, and the transmission efficiency of the monitoring video data is greatly improved.
Preferably, the same-frequency processing module comprises a working frequency value obtaining sub-module, a common frequency value determining sub-module and a same-frequency correcting and initializing sub-module; wherein the content of the first and second substances,
the working frequency value obtaining submodule is used for obtaining the current video data recording working frequency value of the image sensor and the video data storage working frequency value of the video data storage;
the common frequency value determining submodule is used for determining whether the video data recording working frequency value and the video data storage working frequency value are mutually prime numbers, if so, the maximum shooting exposure frequency value of the camera is taken as the common frequency value, and if not, the minimum common multiple of the video data recording working frequency value and the video data storage working frequency value is taken as the common frequency value;
the same-frequency correction and initialization submodule is used for correcting the image sensor and the video data memory into the same value with the common frequency as the current working frequency value, and simultaneously enabling the image sensor and the video data memory to have the same initial working timing starting point.
Because the image sensor and the video data memory in the monitoring camera usually have different working parameters, especially the working frequency values are inconsistent, in order to ensure the continuity and the cooperativity between the video data recording of the image sensor and the video data storage of the video data memory, the same frequency processing of initialization can be carried out by adopting a mode of forcibly applying an external clock signal to the image sensor and the video data storage, so that the same frequency operation of the image sensor and the video data storage can be simply realized without changing the circuit structures of the image sensor and the video data storage, and according to two determination results of whether the working frequency values of the video data recording and the video data storage are mutually prime numbers or not, different frequency values are selected as the common frequency values of the image sensor and the video data storage under the condition of ensuring the normal operation of the image sensor and the video data storage, the working efficiency of the two is improved and the working energy consumption of the two is reduced to the maximum extent.
Preferably, the video recording and storage execution module works in a specific process,
and after adjusting the scanning shooting period value, the shooting focal length and the shooting exposure value of the camera according to the space range size and the space environment brightness of the preset monitoring scene, instructing the camera to perform periodic scanning shooting on the preset monitoring scene, thereby recording and synchronously storing the panoramic monitoring video data of the preset monitoring scene in a preset time period.
The camera is instructed to record the monitoring video in the mode, so that the whole space range of the preset monitoring scene can be covered to the maximum extent, and the condition that the monitoring area is omitted is avoided.
Preferably, the video data compression packet generation module comprises a video data cutting submodule and a video data fidelity compression submodule; wherein the content of the first and second substances,
the video data cutting submodule is used for sequentially cutting the stored monitoring video data into a plurality of sub-video data according to a preset video recording time length and a video recording time axis;
the video data fidelity compression submodule is used for performing fidelity compression on each piece of sub-video data according to a preset video fidelity compression algorithm, so that a plurality of video data compression packets are obtained.
The cutting and fidelity compression of the monitoring video data can avoid the problem that the monitoring video data cannot be transmitted quickly and without omission due to the fact that the monitoring video data is too large integrally, and can also improve the timeliness and comprehensiveness of transmitting the monitoring video data to different application terminals, so that the optimized transmission of the monitoring video data is realized.
Preferably, the video data compression packet transmission module comprises a dedicated data link construction sub-module and a point-to-point data transmission sub-module; wherein the content of the first and second substances,
the dedicated data link construction sub-module is used for constructing a dedicated data link of each application terminal and the monitoring camera according to the physical address of each application terminal and the physical address of the monitoring camera, wherein the dedicated data link is a data link with the least communication nodes in a preset wireless communication network;
the point-to-point data transmission submodule is used for sequentially transmitting the plurality of video data compression packets to each corresponding application terminal according to a video recording time axis through the special data link.
By constructing a special data link with the minimum communication node and transmitting the plurality of video data compressed packets along the special data link, the video data compressed packets can be prevented from being distorted and embedded with virus data in the transmission process, so that the transmission safety and the transmission speed of the video data compressed packets are improved.
As can be seen from the content of the above embodiment, the method and system for recording and transmitting a surveillance video performs synchronous coordination of working frequency on an image sensor and a video data memory in a surveillance camera, and then instructs a camera in the surveillance camera to perform periodic scanning shooting on a predetermined surveillance scene, so as to record and store the surveillance video data of the predetermined surveillance scene in a predetermined time period, and then sequentially performs data cutting and fidelity compression on the stored surveillance video data, so as to obtain a plurality of video data compression packets, and finally transmits the plurality of video data compression packets to each different application terminal along a dedicated data link; therefore, the method and the system for recording and transmitting the monitoring video coordinate and unify the working frequency of the image sensor and the video data memory to ensure that the image sensor and the video data memory can work under the same clock frequency, so that the recorded monitoring video data can be timely stored without forming a monitoring video data queue.
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 (9)

1. The method for recording and transmitting the surveillance video is characterized by comprising the following steps:
step S1, initializing an image sensor and a video data memory in a monitoring camera to have the same frequency, so that the image sensor and the video data memory work according to the same clock frequency;
step S2, instructing a camera of the monitoring camera to periodically scan and shoot a preset monitoring scene, so as to record and store monitoring video data of the preset monitoring scene in a preset time period;
step S3, sequentially performing data cutting and fidelity compression on the stored monitoring video data to obtain a plurality of video data compression packets;
and step S4, transmitting the video data compressed packets to each of the application terminals through the dedicated data link.
2. The surveillance video recording and transmission method of claim 1, wherein:
in step S1, initializing the image sensor and the video data memory in the monitoring camera to be in the same frequency, so that the operation of the image sensor and the video data memory according to the same clock frequency specifically includes,
step S101, acquiring a current video data recording working frequency value of the image sensor and a video data storage working frequency value of the video data storage;
step S102, determining whether the video data recording working frequency value and the video data storage working frequency value are mutually prime numbers, if so, taking the maximum shooting exposure frequency value of the camera as a common frequency value, and if not, taking the minimum common multiple of the video data recording working frequency value and the video data storage working frequency value as the common frequency value;
step S103, the image sensor and the video data memory are corrected to the same value with the common frequency as the current working frequency value, and the image sensor and the video data memory have the same initial working timing starting point.
3. The surveillance video recording and transmission method of claim 1, wherein:
in step S2, the instructing the camera of the monitoring camera to perform periodic scanning shooting on the predetermined monitoring scene, so that recording and storing the monitoring video data of the predetermined monitoring scene in the predetermined time period specifically includes,
according to the size of the space range and the brightness of the space environment of the preset monitoring scene, after adjusting the scanning shooting period value, the shooting focal length and the shooting exposure value of the camera, the camera is instructed to carry out periodic scanning shooting on the preset monitoring scene, so that the panoramic monitoring video data of the preset monitoring scene in a preset time period is recorded and synchronously stored;
alternatively, the first and second electrodes may be,
in step S3, the data cutting and fidelity compression are sequentially performed on the stored monitoring video data, so as to obtain a plurality of video data compression packets specifically including,
step S301, sequentially cutting the stored monitoring video data into a plurality of sub-video data according to a preset video recording time length and a video recording time axis;
step S302, according to a preset video fidelity compression algorithm, fidelity compression is carried out on each sub video data, and therefore a plurality of video data compression packets are obtained.
4. The surveillance video recording and transmission method of claim 1, wherein:
in the step S302, performing fidelity compression on each piece of sub-video data according to a preset video fidelity compression algorithm, so as to obtain the plurality of video data compression packets specifically includes, first, determining a position relationship of a plurality of corresponding feature points of two adjacent frames in each piece of sub-video, and calculating and obtaining a pixel similarity P of the two adjacent frames based on the position relationship and the following formula (1):
Figure FDA0002612927520000021
in the above formula (1), P represents the pixel similarity of two adjacent frames, D represents the number of positions of a plurality of feature points in the two adjacent frames, and xd,iPixel information, y, indicating the position coordinates of the first frame of two adjacent frames at (d, i)d,iPixel information, x, representing the coordinates of the position (d, i) in the second frame of two adjacent framesd,i+1Pixel information, y, indicating the position coordinates of the first frame of two adjacent frames at (d, i +1)d,i+1Pixel information indicating a position coordinate at (d, i +1) in a second frame of the two adjacent frames;
secondly, acquiring corresponding first sub-video data when the pixel similarity P is smaller than a preset similarity threshold, compressing the first sub-video data based on a compression processing technology, and transmitting the compressed information to a compression motion model so as to obtain a compression jitter curve;
thirdly, when the compression jitter curve is not in the standard jitter range, the compression jitter curve is smoothed according to the following formula (2):
Figure FDA0002612927520000031
in the above formula (2), F represents a smoothing result obtained by smoothing the compression jitter curve F, and s (F) represents a smoothing function obtained by smoothing the compression jitter curve F; optimizing the compression processing technology according to the smoothing processing result until a compression jitter curve obtained corresponding to the optimized compression processing technology is within a standard jitter range, so as to obtain a corresponding compression packet;
fourthly, the optimized compression processing technology obtains a compression packet obtained by compressing the first sub-video of the compression jitter curve within the standard jitter range, and obtains a compression packet of the corresponding second sub-video data when the pixel similarity P is greater than or equal to the preset similarity threshold.
5. The surveillance video recording and transmission method of claim 1, wherein:
in step S4, the transmitting the plurality of compressed video data packets to each of a plurality of application terminals via a dedicated data link specifically includes,
step S401, constructing a dedicated data link of each application terminal and the monitoring camera according to the physical address of each application terminal and the physical address of the monitoring camera, wherein the dedicated data link is a data link with the least communication nodes in a predetermined wireless communication network;
and step S402, sequentially transmitting the plurality of video data compression packets to each corresponding application terminal according to a video recording time axis through the special data link.
6. Monitoring video records and transmission system, its characterized in that:
the monitoring video recording and transmission system comprises a same frequency processing module, a video recording and storage execution module, a video data compression packet generation module and a video data compression packet transmission module; wherein the content of the first and second substances,
the same-frequency processing module is used for initializing and sharing the same frequency of an image sensor and a video data memory in the monitoring camera, so that the image sensor and the video data memory work according to the same clock frequency;
the video recording and storing execution module is used for instructing a camera of the monitoring camera to periodically scan and shoot a preset monitoring scene so as to record and instruct the video data storage to store monitoring video data of the preset monitoring scene in a preset time period;
the video data compression packet generation module is used for sequentially carrying out data cutting and fidelity compression on the stored monitoring video data so as to obtain a plurality of video data compression packets;
the video data compression and transmission module is used for transmitting the video data compression packets to each of a plurality of application terminals through a dedicated data link.
7. The surveillance video recording and transmission system of claim 6, wherein:
the same frequency processing module comprises a working frequency value obtaining sub-module, a common frequency value determining sub-module and a same frequency correcting and initializing sub-module; wherein the content of the first and second substances,
the working frequency value obtaining submodule is used for obtaining the current video data recording working frequency value of the image sensor and the video data storage working frequency value of the video data storage; the common frequency value determining submodule is used for determining whether the video data recording working frequency value and the video data storage working frequency value are mutually prime numbers, if so, the maximum shooting exposure frequency value of the camera is taken as the common frequency value, and if not, the minimum common multiple of the video data recording working frequency value and the video data storage working frequency value is taken as the common frequency value;
the same-frequency correction and initialization submodule is used for correcting the image sensor and the video data memory to the same value with the common frequency value as the current working frequency value, and simultaneously enabling the image sensor and the video data memory to have the same initial working timing starting point.
8. The surveillance video recording and transmission system of claim 6, wherein:
the specific working process of the video recording and storing execution module is,
according to the size of the space range and the brightness of the space environment of the preset monitoring scene, after adjusting the scanning shooting period value, the shooting focal length and the shooting exposure value of the camera, the camera is instructed to carry out periodic scanning shooting on the preset monitoring scene, so that the panoramic monitoring video data of the preset monitoring scene in a preset time period is recorded and synchronously stored;
alternatively, the first and second electrodes may be,
the video data compression packet generation module comprises a video data cutting submodule and a video data fidelity compression submodule; wherein the content of the first and second substances,
the video data cutting submodule is used for sequentially cutting the stored monitoring video data into a plurality of sub-video data according to a preset video recording time length and a video recording time axis;
and the video data fidelity compression submodule is used for performing fidelity compression on each piece of sub-video data according to a preset video fidelity compression algorithm so as to obtain the plurality of video data compression packets.
9. The surveillance video recording and transmission system of claim 6, wherein:
the video data compression packet transmission module comprises a special data link construction sub-module and a point-to-point data transmission sub-module; wherein the content of the first and second substances,
the dedicated data link construction sub-module is used for constructing a dedicated data link of each application terminal and the monitoring camera according to the physical address of each application terminal and the physical address of the monitoring camera, wherein the dedicated data link is a data link with the least communication nodes in a preset wireless communication network;
and the point-to-point data transmission submodule is used for sequentially transmitting the plurality of video data compression packets to each corresponding application terminal according to a video recording time axis through the special data link.
CN202010760433.2A 2020-07-31 2020-07-31 Method and system for recording and transmitting monitoring video Active CN111953898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010760433.2A CN111953898B (en) 2020-07-31 2020-07-31 Method and system for recording and transmitting monitoring video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010760433.2A CN111953898B (en) 2020-07-31 2020-07-31 Method and system for recording and transmitting monitoring video

Publications (2)

Publication Number Publication Date
CN111953898A true CN111953898A (en) 2020-11-17
CN111953898B CN111953898B (en) 2021-07-27

Family

ID=73339040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010760433.2A Active CN111953898B (en) 2020-07-31 2020-07-31 Method and system for recording and transmitting monitoring video

Country Status (1)

Country Link
CN (1) CN111953898B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102186065A (en) * 2011-06-01 2011-09-14 广州市晶华光学电子有限公司 Monitoring camera with 360-degree field angle
CN105306901A (en) * 2015-10-28 2016-02-03 上海良相智能化工程有限公司 Wireless camouflage monitoring evidence collection system
US20190204892A1 (en) * 2017-12-28 2019-07-04 Omnivision Technologies, Inc. Quality-driven dynamic frequency scaling for energy optimization of smart camera systems
CN110161940A (en) * 2018-01-11 2019-08-23 山丹县煜升商贸有限公司 A kind of safety defense monitoring system and security-protecting and monitoring method
CN110769192A (en) * 2018-07-26 2020-02-07 视联动力信息技术股份有限公司 Monitoring recording method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102186065A (en) * 2011-06-01 2011-09-14 广州市晶华光学电子有限公司 Monitoring camera with 360-degree field angle
CN105306901A (en) * 2015-10-28 2016-02-03 上海良相智能化工程有限公司 Wireless camouflage monitoring evidence collection system
US20190204892A1 (en) * 2017-12-28 2019-07-04 Omnivision Technologies, Inc. Quality-driven dynamic frequency scaling for energy optimization of smart camera systems
CN110161940A (en) * 2018-01-11 2019-08-23 山丹县煜升商贸有限公司 A kind of safety defense monitoring system and security-protecting and monitoring method
CN110769192A (en) * 2018-07-26 2020-02-07 视联动力信息技术股份有限公司 Monitoring recording method and device

Also Published As

Publication number Publication date
CN111953898B (en) 2021-07-27

Similar Documents

Publication Publication Date Title
US10554882B2 (en) Panoramic camera and photographing method thereof
US7860343B2 (en) Constructing image panorama using frame selection
US20230144483A1 (en) Method for encoding video data, device, and storage medium
US20060152605A1 (en) Image processing apparatus, image processing method, and program
JP2001094625A (en) Data communication unit, data communication method and storage medium
US20100231797A1 (en) Video transition assisted error recovery for video data delivery
CN111953898B (en) Method and system for recording and transmitting monitoring video
CN108206940B (en) Video streaming connection and transmission method, gateway device and viewing device
EP3468188A1 (en) Method and system for encoding video streams
JP2007129403A (en) Image encoder and image processing system
JPH11215480A (en) Video communication system, video transmitter and video receiver, and their control methods and storage media
CN115103156A (en) Dynamic video stream transmission method
KR102585604B1 (en) Image synchronization methods and devices, devices, computer storage media
CN114039931A (en) Method, device, equipment and medium for controlling data transmission
CN108024121B (en) Voice barrage synchronization method and system
EP3706415A1 (en) Depth map processing
EP4258661A1 (en) Encoding/decoding method, electronic device, communication system, and storage medium
JP2023069590A (en) Imaging device, image processing device, image transmission system, imaging program, image processing program, and image transmission method
CN111970488B (en) Monitoring video multi-party application uploading method and system
CN113938632B (en) Network video recorder cascading method, video recorder and storage medium
CN117197507B (en) Image block determining method and device, storage medium and electronic device
US20230034162A1 (en) Transmission apparatus and transmission method
CN114972032A (en) Image super-resolution reconstruction method and system based on deep learning
CN113507629A (en) Data transmission control method and system between video end and communication end in Internet of things
US20120044389A1 (en) Method for generating super resolution image

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