GATEWAY DEVICE, GATEWAY PROGRAM, COMPUTER-READABLE RECORDING MEDIUM WITH GATEWAY PROGRAM RECORDED THEREON, AND METHOD OF TRANSFERRING CAMERA IMAGE
20210235038 · 2021-07-29
Inventors
Cpc classification
H04N7/181
ELECTRICITY
H04N19/137
ELECTRICITY
H04N23/90
ELECTRICITY
International classification
G06T7/246
PHYSICS
H04N19/137
ELECTRICITY
Abstract
Provided is a gateway device includes: a snapshot unit configured to acquire still image data at predetermined intervals from moving image data input from a camera device; a motion detection unit configured to detect a presence or absence of a motion, by difference extraction, from the still image data acquired by the snapshot unit; a data processing unit configured not to perform compression on the moving image data when the motion detection unit detects that the motion is present, but to perform compression on the moving image data when the motion detection unit detects that the motion is absent; and a data transfer unit configured to transfer the moving image data to a cloud storage.
Claims
1. A gateway device connected with a camera device, comprising: a snapshot unit configured to acquire still image data at predetermined intervals from moving image data input from the camera device; a motion detection unit configured to detect a presence or absence of a motion, by difference extraction, from the still image data acquired by the snapshot unit; a data processing unit configured not to perform compression on the moving image data when the motion detection unit detects that the motion is present, but to perform compression on the moving image data when the motion detection unit detects that the motion is absent; and a data transfer unit configured to transfer the moving image data to a cloud storage.
2. The gateway device according to claim 1, further comprising a plurality of capture units configured to alternately capture moving image data for a predetermined time from the moving image data input from the camera device and to send the captured moving image data to the data processing unit.
3. The gateway device according to claim 1, further comprising a temporary storage unit configured to temporarily store the moving image data, wherein the data transfer unit is configured to store the moving image data in the temporary storage unit when the moving image data cannot be transferred to the cloud storage and to transfer the moving image data stored in the temporary storage unit to the cloud storage when it becomes possible to transfer the moving image data to the cloud storage.
4. The gateway device according to claim 3, wherein the data transfer unit is configured to store the moving image data in the temporary storage unit by compressing the moving image data.
5. A gateway program causing a computer connected with a camera device to function as: a snapshot unit configured to acquire still image data at predetermined intervals from moving image data input from the camera device; a motion detection unit configured to detect a presence or absence of a motion, by difference extraction, from the still image data acquired by the snapshot unit; a data processing unit configured not to perform compression on the moving image data when the motion detection unit detects that the motion is present, but to perform compression on the moving image data when the motion detection unit detects that the motion is absent; and a data transfer unit configured to transfer the moving image data to a cloud storage.
6. A computer-readable recording medium on which the gateway program according to claim 5 is recorded.
7. A method of transferring a camera image by a computer connected with a camera device, the method comprising: acquiring still image data at predetermined intervals from moving image data input from the camera device; detecting a presence or absence of a motion, by difference extraction, from the still image data; not performing compression on the moving image data when it is detected that the motion is present, but performing compression on the moving image data when it is detected that the motion is absent; and transferring the moving image data to a cloud storage.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0016]
[0017]
[0018]
[0019]
[0020]
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
[0021]
[0022] In
[0023]
[0024] As shown in
[0025] The gateway device 1 can also be realized by causing a computer to execute a gateway program for functioning as each of the units 10 to 16. In addition, the computer can read and execute a gateway program recorded on a computer-readable recording medium.
[0026] The snapshot unit 10 acquires still image data at predetermined intervals (S-second intervals, for example, 1-second intervals) from moving image data input from the camera device 2. The motion detection unit 13 detects the presence or absence of motion, by difference extraction, from the still image data acquired by the snapshot unit 10. For example, the motion detection unit 13 detects that the motion is present when at least one of pixel blocks, in which there is a difference between images of the still image data sequentially acquired by the snapshot unit 10, is within a detection range and is equal to or larger than a detection size.
[0027] As shown in
[0028] As shown in
[0029] An example of motion detection by the motion detection unit 13 will be described below with reference to
[0030] On the other hand, as shown in
[0031] In addition, the motion detection unit 13 can also be configured to determine that the motion is present only when at least one of the pixel blocks, in which a difference occurs between the images of the still image data sequentially acquired by the snapshot unit 10, is within the detection range and is continuously equal to or larger than the detection size for a predetermined time (the predetermined number of images of the still image data acquired at a predetermined interval (S-second interval) within a predetermined time). Thus, even when noise momentarily occurs in the entire image of the moving image data input from the camera device 2, it cannot be also determined that the motion is present unless such a state occurs continuously for a predetermined time or longer.
[0032] The first capture unit 11 and the second capture unit 12 alternately capture moving image data for a predetermined time (C minutes, for example, one minute) from the moving image data input from the camera device 2 and send the captured moving image data to the data processing unit 14. In other words, the moving image data input from the camera device 2 is alternately and sequentially captured by the first capture unit 11 and the second capture unit 12 every predetermined time (C minutes) and is sent to the data processing unit 14. For example, when the first capture unit 11 captures the moving image data and then sends the captured moving image data to the data processing unit 14, the second capture unit 12 continues to capture the moving image data in parallel. On the contrary, when the second capture unit 12 captures the moving image data and then sends the captured moving image data to the data processing unit 14, the first capture unit 11 continues to capture the moving image data in parallel.
[0033] The data processing unit 14 does not perform compression on the moving image data when the motion detection unit 13 detects that the motion is present, but performs compression on the moving image data when the motion detection unit 13 detects that the motion is absent. Note that “compression” refers to a process of reducing the capacity of moving image data (reducing the size) by frame rate conversion or quality adjustment, for example. Such compression processing can be performed alone or in combination.
[0034] The data transfer unit 15 transfers the moving image data processed by the data processing unit 14 to the cloud storage 3. At this time, the data transfer unit 15 stores the moving image data in the temporary storage unit 16 when cannot transfer the moving image data to the cloud storage 3, and transfers the moving image data stored in the temporary storage unit 16 to the cloud storage 3 when it becomes possible to transfer the moving image data to the cloud storage 3. The data transfer unit 15 can store the moving image data in the temporary storage unit 16 by compressing the moving image data.
[0035] Further, the data transfer unit 15 records, in association with each moving image data to be transferred to the cloud storage 3, information for specifying the camera device 2 by which each moving image data is photographed, a photographing date and time, a file name, and information on a motion detection result by the motion detection unit 13 in a database on the cloud storage 3.
[0036] In the gateway device 1 having the configuration described above, the snapshot unit 10 acquires the still image data at S-second intervals from the moving image data input from the camera device 2, and the motion detection unit 13 detects the presence or absence of the motion from the acquired still image data. Concurrently, the first capture unit 11 and the second capture unit 12 alternately capture the moving image data at C-minute intervals from the moving image data input from the camera device 2.
[0037] Then, when the motion detection unit 13 detects that the motion is absent, the captured moving image data is compressed depending on frame rate conversion and quality adjustment by the data processing unit 14, and is transferred to the cloud storage 3 by the data transfer unit 15. On the other hand, when the motion detection unit 13 detects that the motion is present, the captured moving image data is not compressed by the data processing unit 14, and is transferred to the cloud storage 3 by the data transfer unit 15. In addition, the data transfer unit 15 records, in association with each moving image data to be transferred to the cloud storage 3, information for specifying the camera device 2 by which each moving image data is photographed, a photographing date and time, a file name, and information on the motion detection result by the motion detection unit 13 in the database on the cloud storage 3.
[0038] When the data transfer unit 15 cannot transfer the moving image data to the cloud storage 3 due to the occurrence of a communication failure or the like, the data transfer unit 15 stores the moving image data in the temporary storage unit 16. At this time, the data transfer unit 15 stores the moving image data in the temporary storage unit 16 by compressing the moving image data. Then, the data transfer unit 15 transfers the moving image data stored in the temporary storage unit 16 to the cloud storage 3 when it becomes possible to transfer the moving image data to the cloud storage 3.
[0039] As described above, according to the gateway device 1 of the present embodiment, the still image data is acquired at predetermined intervals from the moving image data input from the camera device 2, the presence or absence of the motion is detected from the acquired still image data by difference extraction, and the moving image data is not compressed and the raw high-quality camera image is preserved in the cloud storage when it is detected that the motion is present. On the other hand, when it is detected that the motion is absent, the moving image data is compressed and the size-saving camera image is preserved in the cloud storage 3.
[0040] In other words, according to the gateway device 1 of the present embodiment, since the moving image data is efficiently compressed according to the presence or absence of the motion and is transferred to the cloud storage 3, it is possible to save the storage capacity of the cloud storage 3 for preserving the moving image data. By a request from a computer 4 connected to the cloud storage 3 via the telecommunication network N, the moving image data preserved in the cloud storage 3 is provided from the cloud storage 3 to the computer 4. The computer 4 can search and acquire desired moving image data from the information for specifying the camera device 2 by which each moving image data is photographed, the photographing date and time, the file name, and the information on the motion detection result or the like by the motion detection unit 13 which are recorded in the database on the cloud storage 3, and can play the desired moving image data back.
[0041] In the gateway device 1, since the moving image data for a predetermined time from the moving image data input from the camera device 2 is alternately captured by the first capture unit 11 and the second capture unit 12 and is sent to the data processing unit 14, no blank time occurs between the moving image data to be sent to the data processing unit 14, and continuous camera images can be preserved in the cloud storage.
[0042] In the gateway device 1, since the moving image data is stored in the temporary storage unit 16 when the moving image data cannot be transferred to the cloud storage 3 and the moving image data stored in the temporary storage unit 16 is transferred to the cloud storage 3 when it becomes possible to transfer the moving image data to the cloud storage 3, even when the moving image data cannot be transferred to the cloud storage 3 due to the occurrence of the communication failure or the like, continuous camera images with no blank time can be preserved in the cloud storage 3.
[0043] In addition, since the moving image data is stored in the temporary storage unit by being compressed, it is possible to extend a period during which the moving image data can be temporarily stored when cannot be transferred to the cloud storage 3 due to the occurrence of the communication failure or the like and to preserve continuous camera images with no blank time in the cloud storage 3 even when the moving image data cannot be transferred to the cloud storage 3 for a long time.
[0044] The gateway device, the gateway program, the computer-readable recording medium with the gateway program recorded thereon, and the method of transferring a camera image according to the present invention are useful as a device configured to preserve the camera image in the cloud storage, a program, a computer-readable recording medium with the program recorded thereon, and a method.
REFERENCE SIGNS LIST
[0045] 1 gateway device [0046] 2 camera device [0047] 3 cloud storage [0048] 4 computer [0049] 10 snapshot unit [0050] 11 first capture unit [0051] 12 second capture unit [0052] 13 motion detection unit [0053] 14 data processing unit [0054] 15 data transfer unit [0055] 16 temporary storage unit