CN107736019B - Vehicle-mounted security monitoring method and system and terminal equipment - Google Patents

Vehicle-mounted security monitoring method and system and terminal equipment Download PDF

Info

Publication number
CN107736019B
CN107736019B CN201780000934.7A CN201780000934A CN107736019B CN 107736019 B CN107736019 B CN 107736019B CN 201780000934 A CN201780000934 A CN 201780000934A CN 107736019 B CN107736019 B CN 107736019B
Authority
CN
China
Prior art keywords
video
resolution
resolution video
low
historical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201780000934.7A
Other languages
Chinese (zh)
Other versions
CN107736019A (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.)
Streamax Technology Co Ltd
Original Assignee
Streamax 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 Streamax Technology Co Ltd filed Critical Streamax Technology Co Ltd
Publication of CN107736019A publication Critical patent/CN107736019A/en
Application granted granted Critical
Publication of CN107736019B publication Critical patent/CN107736019B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The invention is suitable for the technical field of vehicle-mounted monitoring, and provides a vehicle-mounted security monitoring method, a system and terminal equipment, wherein the method comprises the following steps: coding video data acquired by shooting equipment in real time through a dual-code stream technology to obtain a high-resolution video and a low-resolution video; storing the high-resolution video and the low-resolution video in the same storage device; wherein the storage duration of the high-resolution video is not greater than the storage duration of the low-resolution video; and transmitting the low-resolution video to a client in real time so that the client plays the low-resolution video in real time. The method and the device can avoid incomplete historical videos when the historical videos need to be checked.

Description

Vehicle-mounted security monitoring method and system and terminal equipment
Technical Field
The invention belongs to the field of vehicle-mounted monitoring, and particularly relates to a vehicle-mounted security monitoring method, a vehicle-mounted security monitoring system and terminal equipment.
Background
In the field of vehicle-mounted monitoring, by means of a dual-code stream technology, two paths of code streams, namely one path of high-resolution code stream and one path of low-resolution code stream, of video data can be simultaneously coded. When only one storage device is provided, the high-resolution code stream is stored in the storage device, and the low-resolution code stream is used for remote network transmission, so that real-time monitoring is realized. When an alarm signal is generated, for example, an overspeed alarm, a lane departure alarm, a vehicle distance alarm, or the like, for background monitoring personnel, it is necessary to view not only a real-time video but also a video immediately before the alarm, that is, a historical video, to know the situation. However, the high-resolution code stream occupies a large storage space, and the time duration of the video stored in the storage device is short, which often results in that the complete historical video cannot be viewed.
Disclosure of Invention
In view of this, embodiments of the present invention provide a vehicle-mounted security monitoring method, a system and a terminal device, so as to solve the problem in the prior art that a complete historical video cannot be viewed due to a short duration of a high-resolution video stored in a storage device.
The first aspect of the embodiment of the invention provides a vehicle-mounted security monitoring method, which comprises the following steps:
coding video data acquired by shooting equipment in real time through a dual-code stream technology to obtain a high-resolution video and a low-resolution video;
storing the high-resolution video and the low-resolution video in the same storage device, and enabling the storage duration of the high-resolution video to be not greater than that of the low-resolution video;
and transmitting the low-resolution video to a client in real time so that the client plays the low-resolution video in real time.
In a first possible implementation manner of the first aspect, the method further includes:
detecting the presence of an alarm signal;
receiving a first historical video viewing instruction input by a user, wherein the first historical video viewing instruction comprises a historical video viewing instruction in a preset time period before an alarm signal is generated;
transmitting the historical video in a preset time period before the alarm signal is generated to the client so that the client plays the historical video.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the transmitting the historical video within a preset time period before the generation of the alarm signal to the client, so that the client plays the historical video specifically includes:
acquiring the number of channels, wherein the number of the channels is the number of videos acquired by the shooting equipment in real time;
if the number of the channels is multiple, transmitting the multi-channel low-resolution video in a preset time period before the alarm signal is generated to the client so that the client can play the multi-channel low-resolution historical video;
and if the number of the channels is 1, transmitting the single-channel high-resolution video in a preset time period before the alarm signal is generated to the client so that the client plays the single-channel high-resolution historical video.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, the method further includes, after the client plays the multi-channel low-resolution historical video, transmitting the multi-channel low-resolution video within a preset time period before the alarm signal is generated to the client, where the client further includes:
receiving a second historical video viewing instruction input by a user, wherein the second historical video viewing instruction comprises a high-resolution historical video viewing instruction of a certain channel in a preset time period before an alarm signal is generated;
and transmitting the high-resolution video of the corresponding channel in a preset time period before the alarm signal is generated to the client and playing the high-resolution video.
In a fourth possible implementation manner of the first aspect, when the storage capacity of the storage device is smaller than a preset value, the low-resolution video with a preset time length in the storage device is deleted, and the high-resolution video with a preset storage capacity in the storage device is deleted.
In a fifth possible implementation manner of the first aspect, the causing the storage duration of the high-resolution video to be not greater than the storage duration of the low-resolution video specifically includes:
setting parameters of the high-resolution video and parameters of the low-resolution video respectively; wherein the parameters comprise resolution, image quality and frame rate;
respectively calculating a high-resolution video code rate MM and a low-resolution video code rate SM according to the parameters of the high-resolution video and the parameters of the low-resolution video;
acquiring the storable capacity T of the storage device, and enabling the high-resolution video code rate MM, the low-resolution video code rate SM and the storable capacity T to satisfy the relation:
X/MM≤(T-X)/SM;
wherein X is the space occupied by the high-resolution video.
A second aspect of an embodiment of the present invention provides a vehicle-mounted security monitoring apparatus, including:
the video coding module is used for coding the video data acquired by the shooting equipment in real time through a dual-stream technology to obtain a high-resolution video and a low-resolution video;
the video storage module is used for storing the high-resolution video and the low-resolution video in the same storage device, and the storage time length of the high-resolution video is not more than that of the low-resolution video;
and the video transmission module is used for transmitting the low-resolution video to a client in real time so that the client plays the low-resolution video in real time.
In a first possible implementation manner of the second aspect, the apparatus further includes:
the detection module is used for detecting that an alarm signal exists;
the first instruction receiving module is used for receiving a first historical video viewing instruction input by a user, wherein the first historical video viewing instruction comprises a historical video viewing instruction of preset time before an alarm signal is generated;
and the historical video transmission module is used for transmitting the historical video in a preset time period before the alarm signal is generated to the client so that the client plays the historical video.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the historical video transmission module specifically includes:
the channel number obtaining submodule is used for obtaining the channel number, and the channel number is the number of videos collected by the shooting equipment in real time;
the first historical video transmission submodule is used for transmitting the low-resolution video of the preset time before the alarm signal is generated to the client side if the number of the channels is multiple, so that the client side can play the multi-channel low-resolution historical video;
and the second historical video transmission submodule is used for transmitting the high-resolution video of the preset time before the alarm signal is generated to the client if the number of the channels is 1, so that the client can play the single-channel high-resolution historical video.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, the first historical video transmission sub-module is further configured to:
receiving a second historical video viewing instruction input by a user, wherein the second historical video viewing instruction comprises a high-resolution historical video viewing instruction of a certain channel in a preset time period before an alarm signal is generated;
and transmitting the high-resolution video of the corresponding channel in a preset time period before the alarm signal is generated to the client and playing the high-resolution video.
In a fourth possible implementation manner of the second aspect, the apparatus further includes:
and the deleting module is used for deleting the low-resolution video with the preset duration in the storage device and deleting the high-resolution video with the preset storage capacity in the storage device when the storage capacity of the storage device is smaller than the preset value.
In a fifth possible implementation manner of the second aspect, the causing the storage duration of the high-resolution video to be not greater than the storage duration of the low-resolution video specifically includes:
setting parameters of the high-resolution video and parameters of the low-resolution video respectively; wherein the parameters comprise resolution, image quality and frame rate;
respectively calculating a high-resolution video code rate MM and a low-resolution video code rate SM according to the parameters of the high-resolution video and the parameters of the low-resolution video;
acquiring the storable capacity T of the storage device, and enabling the high-resolution video code rate MM, the low-resolution video code rate SM and the storable capacity T to satisfy the relation:
X/MM≤(T-X)/SM;
wherein X is the space occupied by the high-resolution video.
A third aspect of the embodiment of the present invention provides a vehicle-mounted security monitoring system, including the vehicle-mounted security monitoring apparatus according to the second aspect of the embodiment of the present invention.
A third aspect of the embodiments of the present invention provides a vehicle-mounted security monitoring terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, where the steps of the method according to the first aspect of the embodiments of the present invention are implemented when the processor executes the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, performs the steps of the method according to the first aspect of embodiments of the present invention.
Compared with the prior art, the invention has the following beneficial effects: the embodiment of the invention obtains the high-resolution video and the low-resolution video by encoding the video data, stores the high-resolution video and the low-resolution video in the same storage device, transmits the low-resolution video to the client in real time, and selects the high-resolution video or the low-resolution video according to the requirement when the historical video is required to be viewed, thereby avoiding the problem that the complete historical video cannot be viewed due to the short storage time of the high-resolution video when the historical video is required to be viewed. Because the storage duration of the high-resolution video is not more than that of the low-resolution video, the low-resolution historical video can still be viewed when the high-resolution historical video is incomplete. And under the condition of limited network bandwidth, the multi-channel high-resolution historical video is difficult to transmit, and the multi-channel low-resolution historical video can be selected to be transmitted, so that the historical video can be smoothly played.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of a vehicle-mounted security monitoring method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an implementation of a vehicle-mounted security monitoring method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a specific implementation manner of step S203 according to the second embodiment of the present invention;
fig. 4 is a block diagram of a structure of a vehicle-mounted security monitoring apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of a vehicle-mounted security monitoring terminal device according to a fourth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the present invention, the following description will be given by way of specific examples.
In networked video monitoring, digital audio and video streams transmitted over a network after analog audio and video signals are imaged, collected and encoded are called code streams. The double code streams are realized by encoding two code streams from the same video source and respectively encoding the two code streams by adopting two formats at an encoding end.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a vehicle-mounted security monitoring method according to an embodiment of the present invention, where the method includes:
and S101, coding the video data acquired by the shooting equipment in real time through a dual-stream technology to obtain a high-resolution video and a low-resolution video.
In an embodiment of the present invention, a photographing apparatus includes an apparatus having a camera. Shooting equipment can have a plurality of cameras, and different scenes are shot respectively to each camera, and a camera is shot the video and is 1 passageway, and a plurality of cameras are shot the video and are a plurality of passing through. For example, if N cameras capture video, the number of channels is N, where N is a positive integer. By means of a dual-code-stream technology, videos shot by each camera are respectively coded to obtain two paths of code streams, wherein one path of code stream is a high-resolution video, and the other path of code stream is a low-resolution video.
Step S102, storing the high-resolution video and the low-resolution video in the same storage device, and enabling the storage duration of the high-resolution video to be not greater than the storage duration of the low-resolution video.
In the embodiment of the invention, the high-resolution video and the low-resolution video are stored in the same storage device, and the storage time length of the high-resolution video is not more than that of the low-resolution video, so that the video can be stored for a longer time under the condition of limited storage space, and even if the historical data of the high-resolution video is covered, the historical data of the low-resolution video can still be viewed.
The storage device is a hard disk, and because the hard disk has the advantages of high read-write speed, large bandwidth, large storage capacity and the like, high-resolution videos and low-resolution videos are usually stored in the hard disk.
Step S103, transmitting the low-resolution video to a client in real time, so that the client plays the low-resolution video in real time.
In the embodiment of the invention, because the code rate of the low-resolution video is small, the multi-channel low-resolution video can still be transmitted simultaneously under the condition of limited network bandwidth, so that the low-resolution video is transmitted to the client in real time, and the smooth playing of the video is realized. Clients include, but are not limited to, cell phones, computers, and ipads.
The embodiment of the invention obtains the high-resolution video and the low-resolution video by encoding the video data, stores the high-resolution video and the low-resolution video in the same storage device, transmits the low-resolution video to the client in real time, and selects the high-resolution video or the low-resolution video according to the requirement when the historical video is required to be viewed, thereby avoiding the problem that the complete historical video cannot be viewed due to the short storage time of the high-resolution video when the historical video is required to be viewed, and still viewing the low-resolution historical video when the high-resolution historical video is incomplete due to the fact that the storage time of the high-resolution video is not greater than the storage time of the low-resolution video. Real-time example two
Referring to fig. 2, fig. 2 is a flowchart of an implementation of a vehicle-mounted security monitoring method according to a second embodiment of the present invention, as shown in the figure, the method further includes:
step S201, detecting that an alarm signal exists.
In the embodiment of the invention, when the vehicle has the conditions of overspeed, lane departure and the like, corresponding alarm signals are generated and transmitted to the server, and then transmitted to the client by the server. The client sends a corresponding operation instruction to the server according to the alarm signal, and the server sends the operation instruction to a control module of the vehicle to control the vehicle to execute corresponding operation. And if the alarm signal is detected to exist, the client automatically plays the real-time video for monitoring by background monitoring personnel. The real-time video is the low resolution video transmitted in step S103. The real-time video can be a multi-channel video, and the multi-channel video is displayed on one display interface. In other embodiments, the real-time video may also be a single-channel video.
Step S202, receiving a first historical video viewing instruction input by a user, wherein the first historical video viewing instruction comprises a historical video viewing instruction in a preset time period before an alarm signal is generated.
In the embodiment of the invention, a background monitoring person determines whether historical video data needs to be checked according to the importance degree of the alarm signal, if the historical video data needs to be checked, a first historical video checking instruction is input, and the first historical video checking instruction can be input through a mouse, a keyboard or a touch screen of a touch client.
Wherein the first historical video viewing instruction comprises a historical video viewing instruction within a preset time period before the generation of the alarm signal, for example, viewing the historical video within 5 minutes before the generation of the alarm signal. The preset time period may be a time period preset as needed, for example, the default time period is set to 5 minutes, or the preset time period may be set by a background monitoring person in a self-defined manner when the first historical video viewing instruction is input.
Step S203, transmitting the historical video in the preset time period before the alarm signal is generated to the client, so that the client plays the historical video.
In the embodiment of the invention, after a first historical video viewing instruction input by a user is received, the corresponding historical video is transmitted to the client and is played at the client, so that background monitoring personnel can view the historical video.
According to the embodiment of the invention, after the alarm signal is detected, the corresponding historical video is transmitted to the client by receiving the first historical video viewing instruction, so that the client can play the historical video when playing the real-time video.
Optionally, referring to fig. 3, the specific implementation manner of step S203 is:
step S301, acquiring the number of channels, wherein the number of the channels is the number of videos collected by the shooting equipment in real time.
Step S302, determining whether the number of channels is multiple, if the number of channels is multiple, executing step S303, and if the number of channels is one, executing step S304.
Step S303, transmitting the multi-channel low-resolution video in a preset time period before the alarm signal is generated to the client, so that the client plays the multi-channel low-resolution historical video.
Step S304, transmitting the single-channel high-resolution video in the preset time period before the alarm signal is generated to the client, so that the client plays the single-channel high-resolution historical video.
In the embodiment of the invention, the number of the channels is the number of videos collected by the shooting equipment in real time. The transmission of the low-resolution video has low requirement on the network bandwidth, the multi-channel low-resolution video can still be transmitted simultaneously under the condition of limited network bandwidth, the transmission of the high-resolution video has higher requirement on the network bandwidth, and under the condition of limited network bandwidth, if the multi-channel high-resolution historical video is transmitted simultaneously, the video playing is not smooth. For the reasons, when the video is multi-channel, the multi-channel low-resolution historical video is transmitted to the client, and when the video is single-channel, the single-channel high-resolution historical video is transmitted to the client. For example, 4 cameras are respectively installed at different positions of a vehicle, and the 4 cameras collect video data in real time, so that the number of channels is 4, and in this case, since the requirement of low-resolution video transmission on network bandwidth is not high, 4 low-resolution historical videos can be transmitted at the same time, and then the 4 low-resolution historical videos are transmitted to a client. If only 1 camera is installed on the vehicle and the 1 camera collects video data in real time, the number of channels is 1, and in this case, 1 high-resolution historical video is transmitted to the client. And automatically selecting to transmit the low-resolution historical video or the high-resolution historical video according to the number of the channels, thereby taking the fluency and the definition of video playing into consideration, and still realizing the fluency playing of the video under the condition of limited network bandwidth.
Further, after step S303, the method further includes: receiving a second historical video viewing instruction input by a user, wherein the second historical video viewing instruction comprises a high-resolution historical video viewing instruction of a certain channel in a preset time period before an alarm signal is generated; and transmitting the high-resolution video of the corresponding channel in a preset time period before the alarm signal is generated to the client so that the client plays the high-resolution video.
In the embodiment of the invention, a multi-channel low-resolution historical video is displayed on a display interface of a client, if a background monitoring person needs to check a high-resolution historical video of a certain channel, the background monitoring person inputs a second historical video checking instruction at the client, can input the second historical video checking instruction through a mouse, a keyboard or a touch screen of the touch client, and transmits a high-definition video of the corresponding channel to the client according to the second historical video checking instruction for the background monitoring person to check. For example, the display interface of the multi-channel low-resolution historical video displays videos of 4 channels, and if a background monitoring person needs to check the high-resolution historical video 5 minutes before the alarm of the channel 2, the background monitoring person selects the channel 2 and selects the historical video 5 minutes before the alarm. After receiving the instruction, transmitting the corresponding high-resolution historical video to the client so that the client plays the high-resolution historical video. The embodiment of the invention can realize that the high-resolution historical video of a certain channel can be checked when a plurality of channels exist.
Optionally, the method further includes: and when the storage capacity of the storage equipment is smaller than a preset value, deleting the low-resolution video with preset duration in the storage equipment, and deleting the high-resolution video with preset storage capacity in the storage equipment.
In the embodiment of the present invention, when the storage space is insufficient, the low resolution video is covered by the time length, that is, the low resolution video of a preset time length is deleted once, for example, the video time length of 24 hours is deleted once. When the storage space is insufficient, the high-resolution video is covered by the storage capacity, that is, the high-resolution video with the preset storage capacity is deleted at one time, for example, the high-resolution video with the 1G capacity is deleted at one time. The low-resolution video and the high-resolution video adopt two different coverage modes, so that the independent management of the data coverage modes of the two videos is realized.
Optionally, the causing the storage duration of the high-resolution video to be not greater than the storage duration of the low-resolution video specifically includes:
setting parameters of the high-resolution video and parameters of the low-resolution video respectively; wherein the parameters comprise resolution, image quality and frame rate;
respectively calculating a high-resolution video code rate MM and a low-resolution video code rate SM according to the parameters of the high-resolution video and the parameters of the low-resolution video;
acquiring the storable capacity T of the storage device, and enabling the high-resolution video code rate MM, the low-resolution video code rate SM and the storable capacity T to satisfy the relation:
X/MM≤(T-X)/SM;
wherein X is the high-resolution video occupation space.
In the embodiment of the invention, after the resolution, the image quality and the frame rate of the high-resolution video and the low-resolution video are adjusted, the storage spaces of the high-resolution video and the low-resolution video can be automatically allocated. The distribution principle is as follows: and ensuring that the storage time length of the high resolution is not more than that of the low resolution. After the resolution, the image quality and the frame of the high-resolution video and the low-resolution video are respectively set, the code rate of the high-resolution video and the code rate of the low-resolution video can be calculated, wherein the code rates are the size of the occupied space of the video in unit time. Let T be the storable space of the storage device, X be the space occupied by the high-resolution video, MM be the code rate of the high-resolution video, and SM be the code rate of the high-resolution video, then X/MM be the storage duration of the high-resolution video, (T-X)/SM be the storage duration of the low-resolution video, and the high-resolution storage duration and the low-resolution storage duration satisfy the above relationship:
X/MM≤(T-X)/SM。
when the video data collected in real time is coded, because the code rate is dynamically changed, the time length and the occupied storage space of the video data written into the storage equipment can be judged, and the rest storage space is redistributed, and the distribution principle is that the storage time length of the high-resolution video is not more than that of the low-resolution video.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
EXAMPLE III
Referring to fig. 4, fig. 4 is a block diagram of a vehicle-mounted security monitoring apparatus according to a third embodiment of the present invention, where the apparatus includes: a video encoding module 401, a video storage module 402 and a video transmission module 403.
The video encoding module 401 is configured to encode video data acquired by a shooting device in real time through a dual stream technology to obtain a high-resolution video and a low-resolution video.
The video storage module 402 is configured to store the high-resolution video and the low-resolution video in the same storage device; wherein the storage duration of the high-resolution video is not greater than the storage duration of the low-resolution video.
The video transmission module 403 is configured to transmit the low-resolution video to a client in real time, so that the client plays the low-resolution video in real time.
Optionally, the apparatus further includes a detection module, a first instruction receiving module, and a historical video transmission module.
And the detection module is used for detecting that the alarm signal exists.
The first instruction receiving module is used for receiving a first historical video viewing instruction input by a user, wherein the first historical video viewing instruction comprises a historical video viewing instruction of preset time before the alarm signal is generated.
And the historical video transmission module is used for transmitting the historical video in a preset time period before the alarm signal is generated to the client so that the client plays the historical video.
Further, the historical video transmission module specifically comprises a channel number acquisition submodule, a first historical video transmission submodule and a second historical video transmission submodule.
And the channel number obtaining submodule is used for obtaining the channel number, and the channel number is the number of videos collected by the shooting equipment in real time.
And the first historical video transmission submodule is used for transmitting the low-resolution video of the preset time before the alarm signal is generated to the client side if the number of the channels is multiple, so that the client side can play the multi-channel low-resolution historical video.
And the second historical video transmission submodule is used for transmitting the high-resolution video of the preset time before the alarm signal is generated to the client if the number of the channels is 1, so that the client can play the single-channel high-resolution historical video.
Further, the first historical video transmission sub-module is further configured to:
receiving a second historical video viewing instruction input by a user, wherein the second historical video viewing instruction comprises a high-resolution historical video viewing instruction of a certain channel in a preset time period before an alarm signal is generated;
and transmitting the high-resolution video of the corresponding channel in a preset time period before the alarm signal is generated to the client so that the client plays the high-resolution historical video.
Optionally, the apparatus further comprises: and the deleting module is used for deleting the low-resolution video with the preset time length in the storage device and deleting the high-resolution video with the preset storage capacity in the storage device when the storage capacity of the storage device is smaller than the preset value.
Optionally, the storing duration of the high-resolution video is not greater than the storing duration of the low-resolution video, and specifically includes: setting parameters of the high-resolution video and parameters of the low-resolution video respectively; wherein the parameters comprise resolution, image quality and frame rate; respectively calculating a high-resolution video code rate MM and a low-resolution video code rate SM according to the parameters of the high-resolution video and the parameters of the low-resolution video; acquiring the storable capacity T of the storage equipment; the high resolution video rate MM, the low resolution video rate SM and the storable capacity T satisfy the relationship:
X/MM≤(T-X)/SM;
wherein X is the high-resolution video occupation space.
Example four
A vehicle-mounted security monitoring system comprises the vehicle-mounted security monitoring device in the third embodiment of the invention and has the beneficial effects of the vehicle-mounted security monitoring device in the third embodiment of the invention.
EXAMPLE five
Fig. 5 is a schematic diagram of a vehicle-mounted security monitoring terminal device according to a fifth embodiment of the present invention. As shown in fig. 5, the vehicle-mounted security monitoring terminal device 5 of the embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. When the processor 50 executes the computer program 52, the steps in the above-mentioned embodiments of the vehicle-mounted security monitoring method, such as steps S101 to S103 shown in fig. 1, are implemented. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the modules in the device embodiments, such as the functions of the modules 401 to 403 shown in fig. 4.
Illustratively, the computer program 52 may be partitioned into one or more modules that are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used for describing the execution process of the computer program 52 in the vehicle-mounted security monitoring terminal device 5. For example, the computer program 52 may be divided into a video encoding module, a video storage module and a video transmission module, and each module has the following specific functions:
the video coding module is used for coding the video data acquired by the shooting equipment in real time through a dual-stream technology to obtain a high-resolution video and a low-resolution video.
The video storage module is used for storing the high-resolution video and the low-resolution video in the same storage device; wherein the storage duration of the high-resolution video is not greater than the storage duration of the low-resolution video.
The video transmission module is used for transmitting the low-resolution video to a client in real time so that the client plays the low-resolution video in real time.
The vehicle-mounted security monitoring terminal device 5 may be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The vehicle-mounted security monitoring terminal device can include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will understand that fig. 5 is only an example of the vehicle-mounted security monitoring terminal device 5, and does not constitute a limitation to the vehicle-mounted security monitoring terminal device 5, and may include more or less components than those shown in the drawings, or combine some components, or different components, for example, the vehicle-mounted security monitoring terminal device may further include an input and output device, a network access device, a bus, and the like.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 51 may be an internal storage unit of the vehicle-mounted security monitoring terminal device 5, such as a hard disk or a memory of the vehicle-mounted security monitoring terminal device 5. The memory 51 may also be an external storage device of the vehicle-mounted security monitoring terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are equipped on the vehicle-mounted security monitoring terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the vehicle-mounted security monitoring terminal device 5. The memory 51 is used for storing the computer program and other programs and data required by the vehicle-mounted security monitoring terminal device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (11)

1. A vehicle-mounted security monitoring method is characterized by comprising the following steps:
coding video data acquired by shooting equipment in real time through a dual-code stream technology to obtain a high-resolution video and a low-resolution video;
storing the high-resolution video and the low-resolution video in the same storage device, wherein the storage time length of the high-resolution video is not more than that of the low-resolution video, and the storage device is a hard disk;
transmitting the low-resolution video to a client in real time so that the client plays the low-resolution video in real time;
when the storage capacity of the storage equipment is smaller than a preset value, deleting the low-resolution video with preset duration in the storage equipment, and deleting the high-resolution video with preset storage capacity in the storage equipment;
the making the storage duration of the high-resolution video not greater than the storage duration of the low-resolution video specifically includes:
setting parameters of the high-resolution video and parameters of the low-resolution video respectively; wherein the parameters comprise resolution, image quality and frame rate; respectively calculating a high-resolution video code rate MM and a low-resolution video code rate SM according to the parameters of the high-resolution video and the parameters of the low-resolution video; acquiring the storable capacity T of the storage device, and enabling the high-resolution video code rate MM, the low-resolution video code rate SM and the storable capacity T to satisfy the relation: X/MM is less than or equal to (T-X)/SM; wherein X is the space occupied by the high-resolution video.
2. The vehicle-mounted security monitoring method of claim 1, further comprising:
detecting the presence of an alarm signal;
receiving a first historical video viewing instruction input by a user, wherein the first historical video viewing instruction comprises a historical video viewing instruction in a preset time period before an alarm signal is generated;
transmitting the historical video in a preset time period before the alarm signal is generated to the client so that the client plays the historical video.
3. The vehicle-mounted security monitoring method according to claim 2, wherein the transmitting the historical video within a preset time period before the generation of the alarm signal to the client so that the client plays the historical video specifically comprises:
acquiring the number of channels, wherein the number of the channels is the number of videos acquired by the shooting equipment in real time;
if the number of the channels is multiple, transmitting the multi-channel low-resolution video in a preset time period before the alarm signal is generated to the client so that the client can play the multi-channel low-resolution historical video;
and if the number of the channels is one, transmitting the single-channel high-resolution video in a preset time period before the alarm signal is generated to the client so that the client plays the single-channel high-resolution historical video.
4. The vehicle-mounted security monitoring method according to claim 3, wherein after transmitting the multi-channel low-resolution video within a preset time period before the alarm signal is generated to the client so that the client plays the multi-channel low-resolution historical video, the method further comprises:
receiving a second historical video viewing instruction input by a user, wherein the second historical video viewing instruction comprises a high-resolution historical video viewing instruction of a certain channel in a preset time period before an alarm signal is generated;
and transmitting the high-resolution video of the corresponding channel in a preset time period before the alarm signal is generated to the client so that the client plays the high-resolution historical video.
5. The utility model provides an on-vehicle security protection monitoring device which characterized in that includes:
the video coding module is used for coding the video data acquired by the shooting equipment in real time through a dual-stream technology to obtain a high-resolution video and a low-resolution video;
the video storage module is used for storing the high-resolution video and the low-resolution video in the same storage device, and the storage time length of the high-resolution video is not more than that of the low-resolution video, and the storage device is a hard disk;
the video transmission module is used for transmitting the low-resolution video to a client in real time so that the client plays the low-resolution video in real time;
the deleting module is used for deleting the low-resolution video with the preset duration in the storage device and deleting the high-resolution video with the preset storage capacity in the storage device when the storage capacity of the storage device is smaller than the preset value;
the storing duration of the high-resolution video is not greater than the storing duration of the low-resolution video, and the method specifically includes:
setting parameters of the high-resolution video and parameters of the low-resolution video respectively; wherein the parameters comprise resolution, image quality and frame rate; respectively calculating a high-resolution video code rate MM and a low-resolution video code rate SM according to the parameters of the high-resolution video and the parameters of the low-resolution video; acquiring the storable capacity T of the storage equipment; the high resolution video rate MM, the low resolution video rate SM and the storable capacity T satisfy the relationship: X/MM is less than or equal to (T-X)/SM; wherein X is the high-resolution video occupation space.
6. The vehicle-mounted security monitoring device of claim 5, wherein the device further comprises:
the detection module is used for detecting that an alarm signal exists;
the first instruction receiving module is used for receiving a first historical video viewing instruction input by a user, wherein the first historical video viewing instruction comprises a historical video viewing instruction in a preset time period before an alarm signal is generated;
and the historical video transmission module is used for transmitting the historical video in a preset time period before the alarm signal is generated to the client so that the client plays the historical video.
7. The vehicle-mounted security monitoring device of claim 6, wherein the historical video transmission module specifically comprises:
the channel number obtaining submodule is used for obtaining the channel number, and the channel number is the number of videos collected by the shooting equipment in real time;
the first historical video transmission submodule is used for transmitting the multi-channel low-resolution video in a preset time period before the alarm signal is generated to the client side if the number of the channels is multiple, so that the client side can play the multi-channel low-resolution historical video;
and the second historical video transmission submodule is used for transmitting the single-channel high-resolution video in the preset time period before the alarm signal is generated to the client if the number of the channels is one, so that the client plays the single-channel high-resolution historical video.
8. The vehicle-mounted security monitoring device of claim 7, wherein the first historical video transmission sub-module is further configured to:
receiving a second historical video viewing instruction input by a user, wherein the second historical video viewing instruction comprises a high-resolution historical video viewing instruction of a certain channel in a preset time period before an alarm signal is generated;
and transmitting the high-resolution video of the corresponding channel in a preset time period before the alarm signal is generated to the client so that the client plays the high-resolution historical video.
9. A vehicle-mounted security monitoring system, characterized by comprising the vehicle-mounted security monitoring device according to any one of claims 5 to 8.
10. An on-board security monitoring terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 4 when executing the computer program.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201780000934.7A 2017-08-31 2017-08-31 Vehicle-mounted security monitoring method and system and terminal equipment Active CN107736019B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/099914 WO2019041227A1 (en) 2017-08-31 2017-08-31 Onboard vehicle safety monitoring method, system, and terminal device

Publications (2)

Publication Number Publication Date
CN107736019A CN107736019A (en) 2018-02-23
CN107736019B true CN107736019B (en) 2021-01-12

Family

ID=61221119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780000934.7A Active CN107736019B (en) 2017-08-31 2017-08-31 Vehicle-mounted security monitoring method and system and terminal equipment

Country Status (2)

Country Link
CN (1) CN107736019B (en)
WO (1) WO2019041227A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512812B (en) * 2017-02-27 2020-11-06 杭州海康威视数字技术股份有限公司 Code stream data generation method and device
CN108702492A (en) * 2018-05-15 2018-10-23 深圳市锐明技术股份有限公司 A kind of transmission method of monitor video, device and equipment
US20230056334A1 (en) * 2020-02-20 2023-02-23 Shenzhen Hollyland Technology Co., Ltd. Methods for controlling video data acquisition, apparatus, and systems for wireless transmission
CN111464816B (en) * 2020-04-03 2020-11-17 广东利通科技投资有限公司 Expressway video monitoring system
CN112135189A (en) * 2020-09-23 2020-12-25 上海博泰悦臻网络技术服务有限公司 Vehicle-mounted video data processing method, device and system
CN113596585A (en) * 2021-08-16 2021-11-02 杭州华橙软件技术有限公司 Video processing method and device, storage medium and electronic equipment
CN117240998A (en) * 2023-11-15 2023-12-15 山东高速千方国际科技有限公司 Monitoring system and method for expressway

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000059758A (en) * 1998-08-05 2000-02-25 Matsushita Electric Ind Co Ltd Monitoring camera apparatus, monitoring device and remote monitor system using them
US20120169883A1 (en) * 2010-12-31 2012-07-05 Avermedia Information, Inc. Multi-stream video system, video monitoring device and multi-stream video transmission method
JP2012204878A (en) * 2011-03-23 2012-10-22 Tektronix Internatl Sales Gmbh Video data stream evaluation method and system
CN104349100A (en) * 2013-07-25 2015-02-11 杭州海康威视数字技术股份有限公司 DVR monitoring system supporting single-channel dual-stream video recording and method thereof
CN104519257A (en) * 2014-12-26 2015-04-15 广东光阵光电科技有限公司 Dual-stream camera module of VTM machine and shooting method of dual-stream camera module
CN105659587A (en) * 2015-12-19 2016-06-08 张北江 A data storage method for a monitor system and a system thereof

Also Published As

Publication number Publication date
CN107736019A (en) 2018-02-23
WO2019041227A1 (en) 2019-03-07

Similar Documents

Publication Publication Date Title
CN107736019B (en) Vehicle-mounted security monitoring method and system and terminal equipment
CN111918066B (en) Video encoding method, device, equipment and storage medium
CN107155093B (en) Video preview method, device and equipment
CN108600783B (en) Frame rate adjusting method and device and terminal equipment
EP3509305A1 (en) Intra-prediction video coding method and device
US20190098347A1 (en) System and method for remote radiology technician assistance
CN111787398A (en) Video compression method, device, equipment and storage device
KR20200011000A (en) Device and method for augmented reality preview and positional tracking
CN111385576B (en) Video coding method and device, mobile terminal and storage medium
CN108174084A (en) panoramic video processing method and terminal device
CN107734360B (en) Control method and device of streaming media server
CN113992860A (en) Behavior recognition method and device based on cloud edge cooperation, electronic equipment and medium
CN108702492A (en) A kind of transmission method of monitor video, device and equipment
CN108668166B (en) Coding method, device and terminal equipment
CN110213626B (en) Video processing method and terminal equipment
CN109698932B (en) Data transmission method, camera and electronic equipment
CN107678723B (en) Desktop sharing system for distance education
CN114979762B (en) Video downloading and transmitting method and device, terminal equipment, server and medium
CN113705553B (en) Visual task execution method, device, electronic equipment, storage medium and system
CN117440160A (en) Video processing method, device, equipment and storage medium
CN112911390B (en) Video data playing method and terminal equipment
CN113992951A (en) Screen projection method, projector and terminal equipment
CN109167973A (en) A kind of image transfer method and device of intelligent safety helmet
CN110545403B (en) Operating room visual data transmission method, device, medium and terminal equipment
CN117475013B (en) Computer equipment and video data processing 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