KR101656241B1 - Method for storing and retrieving event information related to event - Google Patents
Method for storing and retrieving event information related to event Download PDFInfo
- Publication number
- KR101656241B1 KR101656241B1 KR1020150182956A KR20150182956A KR101656241B1 KR 101656241 B1 KR101656241 B1 KR 101656241B1 KR 1020150182956 A KR1020150182956 A KR 1020150182956A KR 20150182956 A KR20150182956 A KR 20150182956A KR 101656241 B1 KR101656241 B1 KR 101656241B1
- Authority
- KR
- South Korea
- Prior art keywords
- event
- information
- directory
- offset
- electronic device
- Prior art date
Links
Images
Classifications
-
- G06F17/30312—
-
- G06F17/30321—
-
- G06F17/30353—
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A method of storing event information related to an event according to an exemplary embodiment of the present invention includes storing time stamp values and application programming interface (API) commands corresponding to a time point at which the event occurs, , And a directory as a city; And storing the first binary file including the index information indicating the characteristics of the event in the directory.
Description
The embodiment of the present invention relates to a method of storing and retrieving event information related to an event, wherein the event information is divided into a predetermined time unit using a text-based file and stored in the storage unit, The event information can be easily retrieved from the event information.
A database management system is a program that allows a plurality of computer users to record or access data in a database, providing a convenient and efficient environment for retrieving information in the database, storing information in the database, , Integrates data scattered by each application software, and enables each application software to share the integrated data to systematically utilize the information.
When the database management system is utilized in an embedded device that requires continuous recording of event information, the storage capacity for the event information is continuously increased, and it may be a DVR (Digital Video Recorder) or an NVR (Network Video Recorder) A large load can be imposed on an embedded device such as a hard disk, and a time required for a disk input output (IO) can be increased.
SUMMARY OF THE INVENTION The present invention provides a method of searching for events in a time based search by storing event information in a storage unit using a text-based file, .
A method of storing event information related to an event according to an exemplary embodiment of the present invention includes storing time stamp values and application programming interface (API) commands corresponding to a time point at which the event occurs, Generating a directory as a directory, and storing a first binary file including index information indicating the characteristics of the event in the directory.
The method of storing the event information may further include storing a second binary file including offset information indicating a minute offset of the index information in the first binary file in the directory .
The index information may include at least one of a camera ID of a camera that detects the event, a time stamp of the camera, an event type of the event, an event duration of the event, ). ≪ / RTI >
The directory may further include at least one of an electronic device for processing the event information, a storage for storing the directory, a type of the event, and user information of the electronic device.
The method for storing the event information may be stored in a computer-readable recording medium.
A method for searching for event information related to an event according to an embodiment of the present invention includes the steps of: setting a time point at which to search for the event information; generating a time stamp and an API command corresponding to the time point; Selecting a directory consisting of year, month, day, and hour to execute the first binary file stored in the directory, and executing a first binary file stored in the directory, and retrieving index information indicating a characteristic of the event from the first binary file .
The method of retrieving the event information may further include executing a second binary file stored in the directory and obtaining offset information indicating a minute offset of the index information from the second binary file have.
The step of searching for the index information may use the offset information to directly search the index information corresponding to the offset from the first binary file.
The index information may include at least one of a camera ID of a camera that detects the event, a time stamp of the camera, an event type of the event, an event duration of the event, ). ≪ / RTI >
The directory may further include at least one of an electronic device for processing the event information, a storage for storing the directory, a type of the event, and user information of the electronic device.
The method of retrieving the event information may be stored in a computer-readable recording medium.
A method of storing and searching event information related to an event according to an embodiment of the present invention includes storing a database in a time-based search of a user by dividing the event information into a predetermined time unit using a text-based file, It is possible to avoid temporal inefficiency caused by searching the recording medium linearly and to quickly search for the event information.
The method of storing and retrieving event information related to the event according to the embodiment of the present invention has the effect of reducing the time required for disk input output (IO).
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In order to more fully understand the drawings recited in the detailed description of the present invention, a detailed description of each drawing is provided.
1 is a schematic block diagram of an electronic device according to an embodiment of the present invention.
2 is a detailed block diagram of the event storage device included in FIG.
3 is a conceptual diagram according to an embodiment of the present invention.
4 is a conceptual diagram according to another embodiment of the present invention.
5 is a flowchart illustrating a method of storing event information related to an event according to an embodiment of the present invention.
6 is a flowchart illustrating a method for searching for event information related to an event according to an embodiment of the present invention.
FIG. 7A shows a screen for searching for event information when a start point for searching for event information is set to a minute unit according to an embodiment of the present invention.
FIG. 7B shows a screen for searching for event information when a start time for searching for event information is not set to a minute unit according to an embodiment of the present invention.
FIG. 8 is a flowchart illustrating a method of searching for event information related to an event according to whether a starting point for searching for event information is set up to a minute unit according to an embodiment of the present invention.
9 is a screen for searching for event information in the electronic device according to the embodiment of the present invention.
It is to be understood that the present invention is not limited to the description of the embodiments described below, and that various modifications may be made without departing from the technical scope of the present invention. In the following description, well-known functions or constructions are not described in detail since they would obscure the invention in unnecessary detail.
In the drawings, the same components are denoted by the same reference numerals. And in the accompanying drawings, some of the elements may be exaggerated, omitted or schematically illustrated. It is intended to clearly illustrate the gist of the present invention by omitting unnecessary explanations not related to the gist of the present invention. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
1 is a schematic block diagram of an electronic device according to an embodiment of the present invention. Referring to FIG. 1, an
The embedded system may be a microcontroller, a digital signal processor (DSP), or a digital signal processor (DSP). The embedded system may be a microprocessor, processor may be mounted.
In this specification, the
Herein, the event information may refer to index information indicating a characteristic of the event, and the index information may include a camera ID of a camera that detects the event, a time stamp of a time when the event occurs, An event_type of the event, an event_duration of the event, and an event_priority of the event.
In the present specification, the time stamp may mean a time displacement parameter indicating the time point at which the data was present at a certain point or a time point at which the time point is commonly referred to. For example, the time stamp may be a unix time stamp.
The
The
The
According to an embodiment, the
The
The
2 is a detailed block diagram of the event storage device included in FIG. 1 and 2, the
The
The
The
The
A module in this specification may mean hardware capable of performing the functions and operations according to the respective names described in this specification or may include computer program codes capable of performing specific functions and operations May mean an electronic recording medium, such as a processor, having computer program code embodied therein or capable of performing a particular function and operation.
The
The
The
The
Typically, the
DateTime dt = DateTime (1439668810);
MakeDirectory ("/ device /" + dt.tostring ("/ yyyy / MM / dd / hh /");
Output: / device / 2015/08/15/20 /
Here, 'DateTime' represents a typical application programming interface (API) command, and is one of Open API commands provided in various software development environments. The
The
For example, if a user wishes to know what event occurred at 20:00 on August 15, 2015, the event information can be searched by the following simple method.
File * fp = open ("/ device / 2015/08/15/20 / event.txt");
The user can directly read a file existing in the directory corresponding to the time point of searching for the event information through a file pointer (fp) using the above formula to search for event information. That is, the user can obtain the location of the file of the desired time and read the event index file, so that the event information can be easily obtained.
In the present invention, a user can directly search for event information to be searched in time-based searching. The directory structure is constructed by year, month, day, and hour using a time stamp corresponding to the event when an event occurs, This is because the directory name is set to year, month, day, and hour. The directory structure is set to year, month, day, and hour, and at the same time, the directory name is set to year, month, day, and hour so that the user can directly search the file storing event information .
The method of storing and retrieving event information according to the present invention is a method of storing event information at a desired time point in a user's time-based retrieval without having to search linearly from the first event information to the event information at a desired time point, Can be searched easily.
The event index
The event offset
The event offset file records a minute offset corresponding to 'minute' information at the time when the index information is recorded in the event index file when an event occurs. In the event index file, a minute offset value Can be set. For example, if an alarm event occurs at 14:22 on November 10, 2015, and the offset value of minutes corresponding to '22 minutes' in the event index file is' 120 ', the event information for the alarm event is obtained The electronic device reads the minute offset value from the event offset file and obtains index information corresponding to '22 minutes' in the event index file.
In the present invention, when the position of the file pointer at the time of recording the event information corresponding to '22 minutes' in the event index file is a minute offset value (for example, when the minute offset value is '120'), The minute offset value can be recorded in the event offset file together with minute information ('22 minutes'). The event offset file may be read linearly to retrieve the offset value '120' corresponding to '22 minutes'. However, in the present invention, when the event index file is opened, '120', it is possible to obtain desired event information by directly accessing a desired location without having to linearly read a file having a large capacity.
The directory, the event index file, and the event offset file according to the embodiments of the present invention will be described in detail with reference to FIGS. 3 and 4. FIG.
The
The
3 is a conceptual diagram according to an embodiment of the present invention. The present invention generates a
The
1 to 3, the
According to another embodiment, the
According to the embodiment, the
The
The index information may include at least one of a camera_id, a time stamp, an event_type, an event_duration, and an event_priority for the event.
The event offset
The
The
According to the embodiment, the
The
The offset information indicates a relative address in the
The
For example, the
The index information may include at least one of a camera_id, a time stamp, an event_type, an event_duration, and an event_priority for the event.
The
eventOffset () {
nCurrentMin = 0;
nStartOffset = 0;
}
int nCurrentMin;
int nStartOffset;
};
struct eventIndex {
eventIndex () {
camera_id = 0;
timestamp = 0;
event_type = 0;
}
int camera_id;
int timestamp;
int event_type;
};
Table 1 shows an embodiment of the event offset
Referring to Table 1, the event offset
The
According to another embodiment, if the time point of searching for the event information is a 'minute' unit, offset information indicating the minute offset of the index information from the event offset
When the
4 is a conceptual diagram according to another embodiment of the present invention. Except for the form of the
1 to 4, when an event occurs (500), the
For example, the
At this time, the
The
According to the embodiment, the
5 is a flowchart illustrating a method of storing event information related to an event in an electronic device according to an embodiment of the present invention.
1 to 5, the
The
If the
The
If the
The
However, the step S150 may be omitted according to the embodiment.
A method of storing event information related to an event in the
FIG. 6 is a flowchart illustrating a method of searching event information related to an event in an electronic device according to an embodiment of the present invention.
The
The
The
A method of retrieving event information related to an event in the
FIG. 7A shows a screen for searching for event information when a start point for searching for event information is set to a minute unit according to an embodiment of the present invention.
Referring to FIG. 7A, the user can set the starting point of searching for event information to 14:22 on November 10, 2015. That is, the user can quickly search for the event information by setting a starting point for searching for the event information up to a minute.
Setting the starting point for searching for the event information up to the minute can be performed by setting an index included in the event index file 420 or 520 from the event offset
The final time for the user to search for the event information is set to 14:22 on November 14, 2015, and the final time may be set by the user or set to the current time.
The user can select a specific channel (for example, 'CH01') from among the plurality of channels CH01 to CH16 and search for the type of the event, POS (point of sale) / ATM (automatic teller's machine) devices can be searched. For example, the user may select motion and alarm as the type of event.
FIG. 7B shows a screen for searching for event information when a start time for searching for event information is not set to a minute unit according to an embodiment of the present invention.
Referring to FIG. 7B, the user may set the starting point of searching for event information to 14:00 on November 10, 2015. That is, the user can quickly search for the event information by setting a starting time point for searching for the event information up to a time unit.
Setting the start time to search for the event information up to a time unit means selecting the event index file 420 or 520 corresponding to the time point stored in the
The final time for the user to search for the event information is set to 14:22 on November 14, 2015, and the final time may be set by the user or set to the current time.
The user can select a specific channel (for example, 'CH01') from among the plurality of channels CH01 to CH16 and search for the type of the event, POS (point of sale) / ATM (automatic teller's machine) devices can be searched. For example, the user may select motion and alarm as the type of event.
FIG. 8 is a flowchart illustrating a method of searching for event information related to an event according to whether a starting point for searching for event information is set up to a minute unit according to an embodiment of the present invention.
Referring to FIGS. 1 through 8, the electronic device may determine whether it is necessary to read a minute offset corresponding to minute information from the event offset file (S300). That is, the electronic device can determine whether to set up a starting time point for searching for the event information by 'minute' when the user searches for time information based on the event information.
When the electronic device needs to read a minute offset corresponding to the minute information from the event offset file, the electronic device opens the event offset file stored in the directory (/ dev / 2015/11/10/14 / (Open ("/ dev / 2015/11/10/14 / eventOffset.xxx"), S310).
Referring to FIGS. 7A and 8, when the start time for the user to find event information is 14:22 on November 10, 2015, the electronic device reads the minute offset corresponding to '22 minutes' from the event offset file (S320). For example, a minute offset corresponding to '22 minutes' may be a value of '120'.
The electronic device opens a portion corresponding to the minute offset position in the event index file stored in the directory (/ device / 2015/11/10/14 /) by using a minute offset (for example, 120) corresponding to '22 minutes' (Open ("/ dev / 2015/11/10/14 / event.xxx, 120"), S330).
(/
Referring to FIGS. 7B and 8, if the user sets the starting point for searching for event information to 14:00 on November 10, 2015, the electronic device opens an event index file stored in the directory corresponding to the starting point, It is possible to retrieve the index information in the event index file corresponding to 14:00 on November 10.
After steps S330 and S340, the electronic device can open an event index file corresponding to 15:00 on November 10, 2015. The electronic device can retrieve the index information in the event index file corresponding to 15 o'clock on November 10, 2015 (S350).
The electronic device can retrieve the index information in the event index file corresponding to 14:22 on November 14, 2015 (S360). The electronic device may terminate the search for the event information upon completion of the search for the index information until the last search time.
9 is a screen for searching for event information in the electronic device according to the embodiment of the present invention. Referring to FIGS. 1 to 9, the
FIG. 9 shows an event information search screen according to an embodiment of the present invention. However, the present invention is not limited to this, and various types of user interfaces may be provided according to design specifications.
The
If the user determines the type of event, the
When the user selects the type, date, and time of the event to be searched, the
The
The embodiments of the present invention disclosed in the present specification and drawings are merely illustrative of specific embodiments of the present invention and are not intended to limit the scope of the present invention in order to facilitate understanding of the present invention. It will be apparent to those skilled in the art that other modifications based on the technical idea of the present invention are possible in addition to the embodiments disclosed herein.
10: Electronic device
100: Event detection device
200: Event storage
240:
241: Event detection module
243: Directory management module
245: Event Index File Management Module
247: Event Offset File Management Module
300: Event playback device
410, 510: Directory
420, 520: Event index file
430, 530: Event Offset File
440, 540: Storage
Claims (11)
Generating a directory as a year, month, day, and hour corresponding to the time point using an API (application programming interface) command and a timestamp value corresponding to a time when the event occurs;
Storing a first binary file including index information indicating characteristics of the event in the directory; And
Storing a second binary file including offset information indicating a minute offset corresponding to minute information in which the index information is recorded in the first binary file, in the directory .
At least one of a camera_id of a camera that detects the event, a time stamp value, an event_type of the event, an event_duration of the event, and an event_priority of the event ≪ / RTI >
Wherein the event information is generated by at least one of an electronic device processing the event information, a storage in which the directory is stored, a type of the event, and user information of the electronic device.
Setting a time point for searching for the event information;
Selecting a directory, which is generated by using a timestamp value corresponding to the time point and an API command, and is composed of year, month, day, and hour corresponding to the time point;
Reading a first binary file stored in the directory and retrieving index information indicating a characteristic of the event from the first binary file; And
Reading the second binary file stored in the directory and obtaining offset information indicating a minute offset corresponding to minute information in which the index information is recorded in the first binary file from the second binary file; ≪ / RTI >
And the index information corresponding to the minute offset is retrieved from the first binary file using the offset information.
At least one of a camera_id of a camera that detects the event, a time stamp value, an event_type of the event, an event_duration of the event, and an event_priority of the event ≪ / RTI >
Wherein the event information is generated by at least one of an electronic device processing the event information, a storage in which the directory is stored, a type of the event, and user information of the electronic device.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020150116064 | 2015-08-18 | ||
KR20150116064 | 2015-08-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101656241B1 true KR101656241B1 (en) | 2016-09-09 |
Family
ID=56939321
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020150182956A KR101656241B1 (en) | 2015-08-18 | 2015-12-21 | Method for storing and retrieving event information related to event |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101656241B1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019070609A1 (en) * | 2017-10-02 | 2019-04-11 | Howl Holdings Llc | Method and apparatus for editing media content |
WO2022154220A1 (en) * | 2021-01-13 | 2022-07-21 | 삼성전자 주식회사 | Electronic device and method for changing binary |
-
2015
- 2015-12-21 KR KR1020150182956A patent/KR101656241B1/en active IP Right Grant
Non-Patent Citations (2)
Title |
---|
EXIF 기반 사진 분류 프로그램 RegPhoto 소개, http://www.clien.net/cs2/bbs/board.php?bo_table=lecture&wr_id=159045 (2013.05.03.공개) * |
EXIF 기반 사진 분류 프로그램 RegPhoto 소개, http://www.clien.net/cs2/bbs/board.php?bo_table=lecture&wr_id=159045 (2013.05.03.공개) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019070609A1 (en) * | 2017-10-02 | 2019-04-11 | Howl Holdings Llc | Method and apparatus for editing media content |
US10614858B2 (en) | 2017-10-02 | 2020-04-07 | Howl Holdings Llc | Method and apparatus for editing media content |
US11189321B2 (en) | 2017-10-02 | 2021-11-30 | Dos Centavos, Llc | Retrospective capture trigger |
WO2022154220A1 (en) * | 2021-01-13 | 2022-07-21 | 삼성전자 주식회사 | Electronic device and method for changing binary |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8456533B2 (en) | Image capturing apparatus and control method of the same | |
US20070198595A1 (en) | Information processing apparatus, information processing method, and program | |
KR20160034839A (en) | Method and device for back up file | |
CN101211367A (en) | Information processor, information processing method, and program | |
KR101656241B1 (en) | Method for storing and retrieving event information related to event | |
KR100925206B1 (en) | Method for displaying delete data information in digital video recorder for monitoring | |
US11797218B2 (en) | Method and device for detecting slow node and computer-readable storage medium | |
CN101582280B (en) | Recording/reproducing apparatus and information processing method | |
US20080226264A1 (en) | Recording medium handling apparatus and method | |
CN110798521A (en) | File sharing method and device, electronic equipment and storage medium | |
WO2015045545A1 (en) | Image retrieval system | |
JP5814739B2 (en) | Recording device | |
JP4405860B2 (en) | Control device for controlling image processing apparatus | |
JP2002344849A (en) | Moving picture processing unit, moving picture processing method, recording medium, and control program | |
KR100930338B1 (en) | Channel Information Display Method in Surveillance Digital Video Recorder | |
JP5950798B2 (en) | Recording apparatus and control method thereof | |
KR100473753B1 (en) | Method for managing preview search index file in digital video recorder for monitoring | |
JP6381208B2 (en) | Image reproducing apparatus, image reproducing method, and program | |
KR102146946B1 (en) | Method, apparatus and computer-readable medium of providing structured recording file | |
KR101666313B1 (en) | UMS type Terminal, Database Renewal System thereof, Method and Computer Program Stored Medium to executing the same | |
US20140375561A1 (en) | Mobile device and remote control method | |
JP2012156879A (en) | Recording apparatus and reproducing apparatus | |
JP6494275B2 (en) | Recording apparatus and recording apparatus control method | |
JP4901375B2 (en) | Video recording / playback device | |
JP5060394B2 (en) | Information processing apparatus and information processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20190902 Year of fee payment: 4 |