KR20150027645A - Apparatus and method for synchronizating time - Google Patents
Apparatus and method for synchronizating time Download PDFInfo
- Publication number
- KR20150027645A KR20150027645A KR20130106328A KR20130106328A KR20150027645A KR 20150027645 A KR20150027645 A KR 20150027645A KR 20130106328 A KR20130106328 A KR 20130106328A KR 20130106328 A KR20130106328 A KR 20130106328A KR 20150027645 A KR20150027645 A KR 20150027645A
- Authority
- KR
- South Korea
- Prior art keywords
- time
- nvr
- network camera
- time stamp
- offset
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/765—Interface circuits between an apparatus for recording and another apparatus
- H04N5/77—Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/04—Synchronising
Abstract
The present invention relates to an image processing system including a network camera and an NVR and an operation method thereof, and more particularly, to a time synchronization apparatus and method for synchronizing time between a network camera and an NVR. The time synchronization device synchronizes the time between the network camera and the NVR. The time synchronization device includes an offset setting part for setting an offset as a reference time difference between the network camera and the NVR, a current time stamp information input from the network camera, A noise determination unit for determining that the current time stamp is a timeshift when the input is constantly out of the threshold range and determines that the current time stamp is a time spike as noise, And a setting control unit for setting a time stamp of the NVR by using a time stamp, an offset, and a time variation ratio of the network camera according to a noise determination result.
Description
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing system including a network camera and a network video recorder (NVR), and more particularly to a time synchronization apparatus and method for synchronizing time between a network camera and an NVR .
Recently, image processing systems including network cameras such as CCTV and NVR are rapidly spreading. The NVR of the image processing system registers a recording schedule for storing the image data acquired by the camera. In the NVR, the space for storing the image data is designated, and the image data is sequentially stored in the designated space. Then, when the specified space becomes full, the oldest image data is retrieved and deleted, thereby enabling the latest image data to be stored.
At this time, the image processing system should be operated by synchronizing the timestamp recorded in the video and audio frames transmitted by the network cameras having different formats or time with the time stamp of the NVR.
However, in the past, it was determined that the difference between the time stamp and the NVR time stamp recorded in the video and audio frames received from each of the network cameras was due to jitter on the network, and only the jitter on the network was detected and corrected. In this case, a temporal error of the time stamp generated by the network camera or a time stamp difference between the network camera and the NVR causes a temporal error in the image processing system, which causes the performance degradation of the image processing system.
SUMMARY OF THE INVENTION The present invention provides a time synchronization apparatus and method for synchronizing time between a network camera and an NVR by correcting a time stamp that is not received by statistically observing a time stamp of a network camera have.
In addition, a time synchronization apparatus and method for synchronizing time between a network camera and an NVR in consideration of a latency as a delay time for transmitting / receiving a signal when a network environment is unstable during signal transmission / reception between a network camera and an NVR .
The present invention also provides a time synchronization apparatus and method for correcting a time difference occurring when a time incremental variation of a network camera and a time variation of an NVR are different.
According to an aspect of the present invention, there is provided an apparatus for synchronizing time between a network camera and an NVR, the apparatus comprising: an offset setting unit configured to set an offset as a reference time difference between the network camera and the NVR; Setting section; If the time stamp of the current time stamp inputted from the network camera and the time stamp of the previous time stamp are out of the threshold range and is constantly inputted, the current time stamp is determined as a time shift, A noise judging unit for judging whether or not the input signal A calculation unit that calculates a time variation ratio as a ratio of a time variation of the NVR to a time variation of the network camera periodically; And a setting controller for setting a time stamp of the NVR using the time stamp, the offset, and the time variation ratio of the network camera according to the noise determination result.
In the present invention, the setting control unit sets the time stamp of the NVR by multiplying the sum of the current time stamp value of the network camera and the offset value by the time variation ratio with respect to the time shift determination result .
In the present invention, the setting control unit sets the time stamp of the NVR by multiplying the result of the time spike determination by multiplying the prediction time stamp for the network camera and the offset sum result by the time variation ratio .
According to an aspect of the present invention, there is provided a time synchronization method for synchronizing time between a network camera and an NVR, the method comprising the steps of: Setting step; If the time stamp of the current time stamp inputted from the network camera and the time stamp of the previous time stamp are out of the threshold range and is constantly inputted, the current time stamp is determined as a time shift, A noise judgment step of judging the noise level as? Calculating a time variation ratio as a ratio of a time variation of the NVR to a time variation of the network camera periodically; And a setting step of setting a time stamp of the NVR using the time stamp, the offset and the time variation ratio of the network camera according to the noise determination result.
The setting step may include setting a time stamp of the NVR by multiplying the sum of the current time stamp value of the network camera and the offset value by the time variation ratio with respect to the time shift determination result ; And
In the present invention, the setting step may include setting a time stamp of the NVR by multiplying a result of the time spike determination by multiplying the prediction time stamp and the offset sum for the network camera by the time variation ratio .
As described above, according to the present invention, when the diversity of the time information format input from the network camera, the reference time inconsistency, and the time information error occur, the time stamp of the NVR is synchronized using the time stamp of the network camera, Can be improved.
In addition, when the network environment is unstable, the accuracy of the offset between the network camera and the NVR can be improved by considering the latency of the network, and the accuracy can be raised when the time stamp synchronization is performed between the network camera and the NVR.
Also, by correcting the time difference that occurs when the time increment of the network camera and the time difference of the NVR are different, the accuracy can be increased in the time stamp synchronization between the network camera and the NVR.
Furthermore, at the time of the time stamp synchronization between the network camera and the NVR, the computation amount can be minimized by using the statistical information without using the time of the NVR directly.
1 is a view showing the type and format of a time stamp of a network camera.
2 is a graph showing time information input to the image processing system.
3 is a block diagram illustrating a configuration of a time synchronization apparatus included in an image processing system according to an embodiment of the present invention.
4 is a flowchart illustrating an operation of a time synchronization method according to an embodiment of the present invention.
FIG. 5 is a flowchart illustrating an operation of a method of setting an NVR time stamp according to a noise determination result in FIG.
BRIEF DESCRIPTION OF THE DRAWINGS The present invention is capable of various modifications and various embodiments, and specific embodiments are illustrated in the drawings and described in detail in the detailed description. It is to be understood, however, that the invention is not to be limited to the specific embodiments, but includes all modifications, equivalents, and alternatives falling within the spirit and scope of the invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
The terms first, second, etc. may be used to describe various elements, but the elements should not be limited by terms. Terms are used only for the purpose of distinguishing one component from another.
The terminology used in this application is used only to describe a specific embodiment and is not intended to limit the invention. The singular expressions include plural expressions unless the context clearly dictates otherwise. In the present application, the terms "comprises" or "having" and the like are used to specify that there is a feature, a number, a step, an operation, an element, a component or a combination thereof described in the specification, But do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.
The present invention may be represented by functional block configurations and various processing steps. These functional blocks may be implemented in a wide variety of hardware and / or software configurations that perform particular functions. For example, the present invention may include integrated circuit configurations, such as memory, processing, logic, look-up tables, etc., that may perform various functions by control of one or more microprocessors or other control devices Can be adopted. Similar to the components of the present invention that may be implemented with software programming or software components, the present invention may be implemented as a combination of C, C ++, and C ++, including various algorithms implemented with data structures, processes, routines, , Java (Java), assembler, and the like. Functional aspects may be implemented with algorithms running on one or more processors. Further, the present invention can employ conventional techniques for electronic environment setting, signal processing, and / or data processing. Terms such as mechanisms, elements, means, and configurations are widely used and are not limited to mechanical and physical configurations. The term may include the meaning of a series of routines of software in conjunction with a processor or the like.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. Referring to the accompanying drawings, the same or corresponding components are denoted by the same reference numerals, do.
In the image processing system including the network camera and the NVR, the time information error between the network camera and the NVR may be caused by various types of time stamp format of the network camera, reference time inconsistency of the network camera, time shift, time spike, A change in the frame rate, and a latency.
In detail, FIG. 1 shows a time stamp type and a format of a network camera. Referring to FIG. 1, a type of a time stamp of a network camera is shown in FIG. 1A, and a time stamp format of a network camera is shown in FIG. 1B. Since the type and the format of the network camera are various, the time shift occurs in each network camera, which may cause a time information error between the network camera and the NVR.
In addition, the time information recorded in the video stream captured by the network camera is calculated as the reference time set in the network camera. Since the reference time may be set differently for each network camera, a time information error between the network camera and the NVR have.
Also, the time stamp reference time of the network camera can be changed. The movement of the reference time is referred to as a time shift (timeshift). A time shift is shown in Fig. For example, if the time stamp type and format of the network camera shown in FIG. 1 represent time information of 90 kHz resolution in unsigned 32 bits, an overflow occurs every 13 hours, 15 minutes and 21 seconds at maximum. This time shift occurrence can cause a time information error between the network camera and the NVR.
In addition, time information of a noise characteristic which is temporarily invalid can be input to the network camera, and this error of the temporal time information is called a time spike. A time spike is shown in Figure 2b. This time spike is a temporally inflowing noise as shown above, thereby causing a time information error between the network camera and the NVR.
In addition, there are times when a time stamp cycle of an image frame captured by a network camera is not constant and is slowed down or accelerated. In this case, when the synchronization is performed using only the offset set in the NVR, a time stamp difference between the network camera and the NVR may occur, thereby causing a time information error between the network camera and the NVR.
Furthermore, due to the latency as a delay time occurring during transmission and reception of signals between the network camera and the NVR depending on the network environment, the offset accuracy between the network camera and the NVR may be reduced to cause a time information error between the network camera and the NVR .
Hereinafter, a time synchronization apparatus and method for solving the cause of a time information error between a network camera and an NVR will be described with reference to FIG. 3 to FIG. 3 is a block diagram illustrating a configuration of a time synchronization apparatus included in an image processing apparatus according to an exemplary embodiment of the present invention.
Referring to FIG. 3, the image processing apparatus 10 may include a
The
The
The
Here, the
The
The
The header
The offset
The
The
The
The time variation
The setting
here,
Indicates a time stamp value of theIf the time difference between the currently input time stamp and the previously input time stamp is within the threshold range as a result of the determination by the
If the
If the time stamp of the
When the diversity of the time information format input from the
Next, a time synchronization method according to the present invention will be described with reference to FIGS. 4 and 5. FIG. In the following description, the time synchronization method according to the present invention can be performed inside the
4 is a flowchart illustrating an operation of a time synchronization method according to an embodiment of the present invention. 4, the
Next, the
The
The
5, if the time difference between the currently input time stamp and the previously inputted time stamp is within the threshold range as a result of the noise determination, that is, not the preliminary noise, (410) the time stamp of the
When the
When the
Meanwhile, the present invention can be embodied in computer readable code on a computer readable recording medium. A computer-readable recording medium includes all kinds of recording apparatuses in which data that can be read by a computer system is stored.
Examples of the computer-readable recording medium include a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device and the like, and also a carrier wave (for example, transmission via the Internet) . In addition, the computer-readable recording medium may be distributed over network-connected computer systems so that computer readable codes can be stored and executed in a distributed manner. In addition, functional programs, codes, and code segments for implementing the present invention can be easily deduced by programmers skilled in the art to which the present invention belongs.
The present invention has been described above with reference to preferred embodiments. It will be understood by those skilled in the art that the present invention may be embodied in various other forms without departing from the spirit or essential characteristics thereof. Therefore, the above-described embodiments should be considered in an illustrative rather than a restrictive sense. The scope of the present invention is indicated by the appended claims rather than by the foregoing description, and all differences within the scope of equivalents thereof should be construed as being included in the present invention.
100: Network camera 200: NVR
300: time synchronizer 310: data receiver
320: Header information extracting unit 330: Offset setting unit
340: storage unit 350: noise determination unit
360: time variation ratio calculating unit 370: setting control unit
Claims (6)
An offset setting unit for setting an offset of the network camera and the NVR as a reference time difference;
If the time stamp of the current time stamp inputted from the network camera and the time stamp of the previous time stamp are out of the threshold range and is constantly inputted, the current time stamp is determined as a time shift, A noise judging unit for judging whether or not the input signal
A calculation unit that calculates a time variation ratio as a ratio of a time variation of the NVR to a time variation of the network camera periodically; And
And a setting controller for setting a time stamp of the NVR using the time stamp, the offset, and the time variation ratio of the network camera according to the noise determination result.
Wherein the time stamp setting unit sets the time stamp of the NVR by multiplying the sum of the current time stamp value of the network camera and the offset value by the time variation ratio with respect to the time shift determination result.
Wherein the time stamp setting unit sets the time stamp of the NVR by multiplying the prediction time stamp for the network camera and the offset sum result by the time variation ratio with respect to the time spike determination result.
An offset setting step of setting an offset of the network camera and the NVR as a reference time difference;
If the time stamp of the current time stamp inputted from the network camera and the time stamp of the previous time stamp are out of the threshold range and is constantly inputted, the current time stamp is determined as a time shift, A noise judgment step of judging the noise level as?
Calculating a time variation ratio as a ratio of a time variation of the NVR to a time variation of the network camera periodically; And
And setting the time stamp of the NVR using the time stamp, the offset, and the time variation ratio of the network camera according to the noise determination result.
And setting a time stamp of the NVR by multiplying the sum of the current time stamp value and the offset value of the network camera by the time variation ratio with respect to the time shift determination result. Way.
And setting a time stamp of the NVR by multiplying a prediction time stamp for the network camera and the offset sum result by the time variation ratio with respect to the time spike determination result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020130106328A KR102040940B1 (en) | 2013-09-04 | 2013-09-04 | Apparatus and method for synchronizating time |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020130106328A KR102040940B1 (en) | 2013-09-04 | 2013-09-04 | Apparatus and method for synchronizating time |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20150027645A true KR20150027645A (en) | 2015-03-12 |
KR102040940B1 KR102040940B1 (en) | 2019-11-05 |
Family
ID=53022925
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020130106328A KR102040940B1 (en) | 2013-09-04 | 2013-09-04 | Apparatus and method for synchronizating time |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR102040940B1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020130320A1 (en) * | 2018-12-16 | 2020-06-25 | 쿨클라우드(주) | Wired/wireless convergence network packet relay device and packet timestamp assigning method thereof |
KR20210149419A (en) * | 2020-06-02 | 2021-12-09 | 주식회사 에스비에스 | The syncronizing method for the filming time and the apparatus |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002247565A (en) * | 2001-02-22 | 2002-08-30 | Hitachi Ltd | Network av camera and system |
JP2004158919A (en) * | 2002-11-01 | 2004-06-03 | Matsushita Electric Ind Co Ltd | Network camera system, network camera thereof, and data transmission method |
KR100457508B1 (en) * | 1999-10-29 | 2004-11-17 | 삼성전자주식회사 | Apparatus for setting time stamp offset and method thereof |
JP2005333520A (en) * | 2004-05-21 | 2005-12-02 | Mitsubishi Electric Corp | Image transmission apparatus, image transmission method, transmission system, and video monitoring system |
JP2006340321A (en) * | 2005-06-06 | 2006-12-14 | Canon Inc | Network system and communication method in network system |
KR20080027043A (en) * | 2006-09-22 | 2008-03-26 | 삼성전자주식회사 | Method and apparatus for transmitting transport stream packets |
KR100819037B1 (en) * | 2006-09-29 | 2008-04-02 | 한국전자통신연구원 | Method of time synchronization for wireless sensor network and sensor node |
KR20080035872A (en) * | 2006-10-20 | 2008-04-24 | 삼성전자주식회사 | Method for providing synchonizing information with application layer from medium access control layer and apparatus therefor |
JP2008277887A (en) * | 2007-04-25 | 2008-11-13 | Victor Co Of Japan Ltd | Image recording device and image recording and reproducing device |
KR20090104532A (en) * | 2008-03-31 | 2009-10-06 | 삼성전자주식회사 | Synchronizing apparatus and method of packet network |
JP2009296207A (en) | 2008-06-04 | 2009-12-17 | Toa Corp | Monitored video recording system, and monitored video reproducing and displaying method |
JP2010502123A (en) * | 2006-08-22 | 2010-01-21 | ブリリアント テレコミュニケーションズ, インコーポレイテッド | Apparatus and method for synchronized delivery of packet services on a delivery network |
US20100098111A1 (en) * | 2008-10-21 | 2010-04-22 | Huawei Technologies Co., Ltd. | Method and system for precise-clock synchronization, and device for precise-clock frequency/time synchronization |
JP2010199911A (en) * | 2009-02-25 | 2010-09-09 | Hitachi Ltd | Monitoring system and monitoring device |
JP2013521692A (en) * | 2010-03-05 | 2013-06-10 | サムスン エレクトロニクス カンパニー リミテッド | Method and system for accurate clock synchronization of a communication system through interaction of communication layers and sub-layers in a communication system |
-
2013
- 2013-09-04 KR KR1020130106328A patent/KR102040940B1/en active IP Right Grant
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100457508B1 (en) * | 1999-10-29 | 2004-11-17 | 삼성전자주식회사 | Apparatus for setting time stamp offset and method thereof |
JP2002247565A (en) * | 2001-02-22 | 2002-08-30 | Hitachi Ltd | Network av camera and system |
JP2004158919A (en) * | 2002-11-01 | 2004-06-03 | Matsushita Electric Ind Co Ltd | Network camera system, network camera thereof, and data transmission method |
JP2005333520A (en) * | 2004-05-21 | 2005-12-02 | Mitsubishi Electric Corp | Image transmission apparatus, image transmission method, transmission system, and video monitoring system |
JP2006340321A (en) * | 2005-06-06 | 2006-12-14 | Canon Inc | Network system and communication method in network system |
JP2010502123A (en) * | 2006-08-22 | 2010-01-21 | ブリリアント テレコミュニケーションズ, インコーポレイテッド | Apparatus and method for synchronized delivery of packet services on a delivery network |
KR20080027043A (en) * | 2006-09-22 | 2008-03-26 | 삼성전자주식회사 | Method and apparatus for transmitting transport stream packets |
KR100819037B1 (en) * | 2006-09-29 | 2008-04-02 | 한국전자통신연구원 | Method of time synchronization for wireless sensor network and sensor node |
KR20080035872A (en) * | 2006-10-20 | 2008-04-24 | 삼성전자주식회사 | Method for providing synchonizing information with application layer from medium access control layer and apparatus therefor |
JP2008277887A (en) * | 2007-04-25 | 2008-11-13 | Victor Co Of Japan Ltd | Image recording device and image recording and reproducing device |
KR20090104532A (en) * | 2008-03-31 | 2009-10-06 | 삼성전자주식회사 | Synchronizing apparatus and method of packet network |
JP2009296207A (en) | 2008-06-04 | 2009-12-17 | Toa Corp | Monitored video recording system, and monitored video reproducing and displaying method |
US20100098111A1 (en) * | 2008-10-21 | 2010-04-22 | Huawei Technologies Co., Ltd. | Method and system for precise-clock synchronization, and device for precise-clock frequency/time synchronization |
JP2010199911A (en) * | 2009-02-25 | 2010-09-09 | Hitachi Ltd | Monitoring system and monitoring device |
JP2013521692A (en) * | 2010-03-05 | 2013-06-10 | サムスン エレクトロニクス カンパニー リミテッド | Method and system for accurate clock synchronization of a communication system through interaction of communication layers and sub-layers in a communication system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020130320A1 (en) * | 2018-12-16 | 2020-06-25 | 쿨클라우드(주) | Wired/wireless convergence network packet relay device and packet timestamp assigning method thereof |
US11962492B2 (en) | 2018-12-16 | 2024-04-16 | Kulcloud | Wired/wireless convergence network packet relay device and packet timestamp assigning method thereof |
KR20210149419A (en) * | 2020-06-02 | 2021-12-09 | 주식회사 에스비에스 | The syncronizing method for the filming time and the apparatus |
Also Published As
Publication number | Publication date |
---|---|
KR102040940B1 (en) | 2019-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101702885B1 (en) | Time synchronization apparatus and method | |
US7593061B2 (en) | Method and apparatus for measuring and/or correcting audio/visual synchronization | |
JP4646668B2 (en) | Imaging apparatus and control method thereof | |
JP2007243699A (en) | Method and apparatus for video recording and playback | |
EP3448041A1 (en) | Video player client, system, and method for live broadcast video synchronization | |
JP2008035095A (en) | Monitoring apparatus, monitoring system, monitoring method and program | |
US11050924B2 (en) | Method and system for auto-setting of cameras | |
US10284888B2 (en) | Multiple live HLS streams | |
KR20150027645A (en) | Apparatus and method for synchronizating time | |
KR101974077B1 (en) | Method for display time in the image being played using RTP packet | |
JP2000032437A (en) | Image transmission system | |
JP4620516B2 (en) | Image comparison method, image comparison system, and program | |
CN107734278B (en) | Video playback method and related device | |
JP4533708B2 (en) | Surveillance camera system, control device for surveillance camera system, and control method | |
KR101921070B1 (en) | Bitstream based motion detection apparatus and method | |
JP5993414B2 (en) | Monitoring system and monitoring method | |
JP4573301B2 (en) | Video signal frame synchronization method | |
CN110139063B (en) | Method, device and equipment for determining number of video streams supported by equipment | |
KR102367165B1 (en) | The syncronizing method for the filming time and the apparatus | |
JP2005286453A (en) | Supervisory camera and supervisory system | |
KR101820520B1 (en) | Method and apparatus for storing recording image | |
WO2017134793A1 (en) | Monitoring system and monitoring method | |
KR102394189B1 (en) | Method and apparatus for synchronizing images of heterogeneous cameras mounted on the housing | |
CN114339453B (en) | Time stamp calibration method and device, electronic equipment and storage medium | |
KR20150026355A (en) | Apparatus and method for backup image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |