Embodiment
Below suitably with reference to accompanying drawing to being elaborated for implementing mode of the present invention (hereinafter referred to as " present embodiment ").
First with reference to accompanying drawing 1, the function example of the data recording equipment that can carry out moment correction is described.Data recording equipment 1 has the per unit time and the data of specified quantity is carried out to the function of recording and reconstruction (reading).In data recording equipment 1, in the time that monitored object is for example the monitoring picture (data) of regulation frame per second, for its frame per second (data rate), preset allowed band.Data recording equipment 1 is in the time of the data (state of temperature or monitored object device etc.) of record period measurement according to the rules, in the present embodiment, according to the restriction condition of the aspect such as communication protocol and communication interface, the allowed band of data rate is specified.In the present embodiment, the situation taking record data as monitoring picture is example, and the function example of data recording equipment 1 is described.
As shown in Figure 1, data recording equipment 1 has processing section 10, storage area 20 and communications portion 30.
Communications portion 30 is communication interfaces, has the function of accepting monitoring picture (data) via network 3 from monitored object device 2.
Storage area 20 is storer and hard disk etc., for result, record data and the application program etc. of storing process part 10.In addition, in storage area 20, also store moment correction chart 21, in this moment correction chart 21, store the information relevant with the modification method in moment after changing and moment.The details of moment correction chart 21 describes in aftermentioned part.
Processing section 10 has clock retouch 11, clock part 12, judgment part 13, data collection section 14, moment correction administrative section 15 and records moment retouch 16.Processing section 10 is by not shown CPU (Central Processing Unit, CPU (central processing unit)) and primary memory form, the function of the various piece 11~16 in processing section 10 is by reading in primary memory and realize being stored in application program in storage area 20.
Clock retouch 11 has and receives via the moment change request of not shown input media input and to the function of clock part 12 delivery time alteration commands.The moment change request of being inputted by input media can be for example any in moment, the amount that clock is proofreaied and correct forward to amount or the clock of post-equalization of setting.
Clock part 12 has in output time, carries out the function of moment change according to the moment change request receiving from clock retouch 11.
Judgment part 13 have from storage area 20 read this while changing in moment and information when once the moment changes, obtain the number of image frames (data bulk) recording between twice change time in moment, by this number of image frames (data bulk) divided by elapsed time between twice change time in moment to calculate frame per second (data rate), and judge whether function within the limits prescribed of this frame per second (data rate).In addition, judgment part 13 also has according to judged result, selects a kind of function of time correction method from two kinds of time correction methods that predetermine.
Data collection section 14 has and from monitored object device 2, receives picture frame (data), and by picture frame (data) with revise the bullets (being the bullets of the moment correction chart 21 shown in Fig. 3 specifically) that administrative section 15 sends by the moment and be stored in explicitly the function in storage area 20.
Moment is revised administrative section 15 and has the function of selecting modification method.In addition, the moment revises that administrative section 15 also has the moment (moment before changing) of the clock part 12 when moment corresponding the moment change request receiving with clock retouch 11 (moment after changing), this are changed in moment and the modification method of being selected by judgment part 13 is stored in the function in storage area 20 explicitly.
Record moment retouch 16 and there is the function that uses the modification method of being selected by judgment part 13 to revise the moment of picture frame (data).
Then with reference to accompanying drawing 1, the flow direction of the information between various piece 11~16 is specifically described.
Clock retouch 11 for example receives the moment change request of this moment Tnew while changing as the input media from not shown in moment.For example, input media, in the time that moment Tnew is set and sets button and has been pressed, outputs to moment Tnew in clock retouch 11.Then, moment change request is sent to clock part 12 by clock retouch 11, and the moment T0 of clock part 12 while obtaining change request is as moment T0 before changing.Clock part 12 is set clock moment Tnew as moment Tnew after changing.After this, clock retouch 11 after changing moment Tnew and before changing moment T0 send to judgment part 13.
The T0 of moment before changing when the moment that judgment part 13 receives this from clock retouch 11 changes and after changing moment Tnew, revise administrative section 15 via the moment and obtain the moment Told of previous moment while changing from storage area 20.Number of image frames Pnum till when change to this moment obtaining while changing from previous moment from storage area 20 via data collection section 14 judgment part 13.Carry out judgement processing by the treatment scheme that the moment shown in Fig. 2 is revised.Judgment part 13 is according to any method judging in processing selecting the first time correction method and the second time correction method, and before changing moment T0 and after changing moment Tnew send to moment correction administrative section 15 together with selected moment correcting process method.
The T0 of moment before changing when the moment that moment correction administrative section 15 receives this changes and after changing moment Tnew and moment correcting process method, giving in the moment correction chart 21 that is stored in storage area 20 after bullets, and this bullets is sent to data collection section 14.
Data collection section 14 obtains picture frame (data) from monitored object device 2, obtain the current moment from clock part 12, revise administrative section 15 from the moment and obtain bullets, and obtained picture frame (data) and moment and bullets are stored in storage area 20 explicitly.
Recording moment retouch 16 requires after (reading requirement) in the reproduction that receives picture frame (data), use the bullets being associated with this picture frame, revise administrative section 15 via the moment and obtain moment correcting process method from storage area 20, and the moment of picture frame (data) is revised.
One example of the treatment scheme referring to Fig. 2 to the moment correction in judgment part 13 describes.At this, before changing moment T0 and the after changing state of moment Tnew of judgment part 13 in the time that the moment of having obtained this from clock retouch 11 changes, namely changes in the moment state having occurred.
In step S201, judgment part 13 judges whether record data in the past with reference to storage area 20.
In the time of the record data that are judged as in the past (step S201 is Yes), process and enter step S202, in the time being judged as the record data that do not have in the past (step S201 is No), processing and enter step S206.
In step S202, judgment part 13 judges whether carried out in the past moment change with reference to the moment correction chart 21 of storage area 20.At this, be judged as that to have carried out situation that the moment changes be the situation of having stored the information of moment while changing in moment correction chart 21 together with bullets over.
Carried out the moment while changing (step S202 is Yes) being judged as over, processed and enter step S203, do not carried out the moment while changing (step S202 is No) being judged as past, processing enters step S206.
In step S203, time between moment Told when moment Tnew when number of image frames (data bulk) Pnum between moment Told when moment Tnew when this moment is changed in judgment part 13 and previous moment change changed divided by this moment and previous moment change, calculate frame per second (data rate) F.Specifically, the moment Tnew when moment that judgment part 13 receives this from clock retouch 11 changes, and revise administrative section 15 via the moment and obtain the moment Told of previous moment while changing from storage area 20.And, number of image frames (data bulk) Pnum till when change to this moment obtaining while changing from previous moment via data collection section 14 from storage area 20 judgment part 13.In judgment part 13, carry out the computing of Pnum/ (Tnew-Told), and using its result as frame per second (data rate) F.
In step S204, judgment part 13 judges whether frame per second (data rate) F meets this condition more than Fmin and below Fmax.That is to say, judgment part 13 judges whether frame per second (data rate) F meets the scope of regulation.At this, Fmin for example represents the minimum frame per second (data rate) that data recording equipment 1 can record or reproduce, and Fmax for example represents the maximum frame per second (data rate) that data recording equipment 1 can record or reproduce.
In the time being judged as frame per second (data rate) F and meeting more than Fmin and below Fmax this condition (step S204 is Yes), processing enters step S205, in the time being judged as frame per second (data rate) F and not meeting more than Fmin and below Fmax this condition (step S204 is No), process and enter step S206.
In step S205, the first time correction method is selected in judgment part 13.
In step S206, the second time correction method is selected in judgment part 13.
The details of the first time correction method and the second time correction method describes in aftermentioned part.
Referring to Fig. 3, one example of moment correction chart 21 is described.
As shown in Figure 3, in moment correction chart 21 by bullets, moment, after changing moment and modification method are stored explicitly before changing.
The identifying information sending when store clock correction administrative section 15 changed in the moment in bullets hurdle.
In moment hurdle before changing, be stored in the moment T0 that the moment obtains from clock part 12 while changing.
The moment Tnew that is stored in the moment in moment hurdle after changing never illustrated input media receives as moment change request while changing.
Any in storage is selected by judgment part 13 in modification method hurdle the first time correction method and the second time correction method.
" 1 " in the bullets hurdle of the moment correction chart 21 shown in Fig. 3 represents that the moment changes for the first time, and 12 o'clock (moment before changing) in moment from January 22nd, 2013 have been altered to 12: 5 (moment after changing) backward." 2 " in bullets hurdle represent that the moment changes for the second time, and 13: 5 (moment before changing) in moment from January 22nd, 2013 have been altered to forward at 13 o'clock (moment after changing)." 3 " in bullets hurdle represent that for the third time the moment changes, moment from January 22nd, 2013 be altered to forward 12: 30 at 14 o'clock.In addition, " first " in modification method hurdle and " second " represent the time correction method that treatment scheme is as shown in Figure 2 selected, and " first " represents the first time correction method, and " second " represents the second time correction method.
Fig. 4 is the key diagram of the first time correction method.Transverse axis represents the actual moment, and the longitudinal axis represents the moment of the clock part 12 of data recording equipment 1.
In the first time correction method, by time be engraved on this in moment and be altered to the situation of moment Tnew after changing from moment T0 before changing while changing, by the moment Told in the time changing from previous moment to the additional moment the record data of record during till moment T0 before changing, and according to moment change amount (Tnew-T0) (length of hollow arrow) with record during the moment correction phase Calais that calculates of the ratio of (T0-Told) calculate the revised moment.That is to say, the period (moment change amount (Tnew-T0) (length of hollow arrow)) of having carried out revising when changing in this moment during till when changing to this moment in the time changing from previous moment is carried out linear interpolation, calculates thus the correction time (modified value shown in the filled arrows in Fig. 4) in the moment of record data.As an example, revised moment Tb can calculate by following formula (1).
Tb=(Tnew-T0) (Ta-Told)/(T0-Told)+Ta ... formula (1)
Fig. 5 is the key diagram of the second time correction method.Transverse axis represents the actual moment, and the longitudinal axis represents the moment of the clock part 12 of data recording equipment 1.
In the second time correction method, by time be engraved on this be altered to after changing moment Tnew from moment T0 before changing while changing in the situation that in moment, the moment of all record data before moment T0 is before changing added to moment change amount (Tnew-T0) (length of hollow arrow), calculate thus the revised moment.
As an example, revised moment Tb can calculate by following formula (2).
Tb=(Tnew-T0)+Ta ... formula (2)
Example (suitably with reference to Fig. 3) when Fig. 6 represents the information labeling that is documented in the moment correction chart 21 shown in Fig. 3 on the coordinate being represented by the moment of actual moment and data recording equipment.
In changing in the moment of " 1 " on bullets hurdle, owing to using the second time correction method, so all record data before 12 o'clock on the 22nd January in 2013 are all added to time variation amount (5 minutes).Add that the value after this time variation amount (5 minutes) represents with dotted line 61.
In addition, in changing in the moment of " 2 " on bullets hurdle, owing to using the first time correction method, so with respect to the record data between 12: 5 to 13: 5, employing formula (1) calculates revised moment Tb.The value calculating represents with dotted line 62.
In changing in the moment of " 3 " on bullets hurdle, owing to using the second time correction method, so all record data before 14 o'clock are all deducted to time variation amount (90 minutes).The value calculating represents with dotted line 63.
As mentioned above, data recording equipment 1 of the present invention has: storage area 20, this storage area 20 store the moment change time moment, judgment part 13, this judgment part 13 obtain while change from this in moment to the number of packages of record data till when once the moment changes, by the number of packages of record data when changing from this in moment to time till when once the moment changes with computational data speed, and judge whether within the limits prescribed data rate, and record moment retouch 16, be judged as data rate in this judgment part 13 within the limits prescribed time, this records moment retouch 16 and carries out the correction of the first moment, during till rising while change to this moment in the time that once the moment changes in the past, the period of having carried out revising when changing in this is carried out linear interpolation in moment, calculate thus the correction time in the moment of record data, and the moment of these record data is revised, be judged as in this judgment part 13 data rate regulation scope beyond time, this records moment retouch 16 and carries out the correction of the second moment, the time of having carried out revising when changing in this is revised the moment of record data in the past in moment.Therefore, data recording equipment 1 can be revised in the mode that can reproduce the time series data being recorded according to record order the time of data.
The present invention is not subject to the restriction of above-described embodiment, can comprise various variation.For example, the present invention will be described in detail for the mode to be easily understood for above-described embodiment, but do not mean that the present invention must have all structures of carrying out explanation.In addition, a part of structure of some embodiments can be substituted by the structure of other embodiment, also the structure of other embodiment can be appended in the structure of some embodiments.In addition, can a part of structure of embodiment be appended, be deleted and be replaced by other structures.
Part or all of the various functions of data recording equipment 1 etc. for example can be by designing at integrated circuit etc. and realized by hardware.In addition, various functions of processing section 10 etc. also can be by being explained by processor and carrying out the program for realizing various functions and realized by software.Can be stored in storer, hard disk, SSD (Solid State Drive for the information such as program, chart and file that realizes various functions, solid-state drive) etc. the recording medium such as pen recorder or IC-card, SD card and DVD (Digital Versatile Disc, digital versatile disc) in.
In addition, control line and information wire only show the part that need to illustrate in order to describe, and do not mean and show all control lines and the information wire of product.Can think that in fact nearly all member is all relative to each other and connects.
Symbol description
1 data recording equipment
2 monitored object devices
3 networks
10 processing sections
11 clock retouch
12 clock parts
13 judgment parts
14 data collection sections
15 moment were revised administrative section
16 record moment retouch
20 storage areas
21 moment correction charts
30 communications portion