Embodiments of the present disclosure relate to device adjustment technology, and particularly to a system and method for adjusting an internet protocol (IP) camera.
An Internet protocol (IP) camera is a combination of a traditional camera and network technology. Images are manually monitored of IP camera through a local area network or the Internet. However, if the IP camera is moved or shifted because of an external force, movement or shift of the IP camera cannot be detected in a timely manner. Therefore, the moved or shifted IP camera may not be able to be adjusted in time, and images captured by the moved or shifted IP camera may be useless.
Implementations of the present disclosure will now should be described, by way of example only, with reference to the following drawings. The modules in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding portions throughout the views
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references can mean “at least one,” or “one or more.”
In the present disclosure, “module,” refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a program language. In one embodiment, the program language can be Java, C, or assembly. One or more software instructions in the modules can be embedded in firmware, such as in an EPROM. The modules described herein can be implemented as either software and/or hardware modules and can be stored in any type of non-transitory computer-readable media or storage medium. Non-limiting examples of a non-transitory computer-readable medium include CDs, DVDs, flash memory, and hard disk drives.
The IP camera 1 controls the alarm unit 13 to output alarm signals. The alarm unit 13 may be internal to the IP camera 1, or may be externally connected to the IP camera 1. In one embodiment, the alarm unit 13 may be a display screen displaying visible alarm information, a loudspeaker for outputting audio alarm signals, and an indicator light (not shown in
The IP camera 10 further includes at least one processor 12 and a storage device 15. The at least one processor 12 executes one or more computerized codes and other applications of the IP camera 1, to provide functions of the adjustment system 11. The storage device 15 may be a dedicated memory, such as an erasable programmable read-only memory (EPROM), a hard disk drive (HDD), or flash memory.
In step S110, the reading module 110 reads a gravity acceleration value of the IP camera 1 from the monitoring unit 10 at a predetermined time intervals (e.g. 5 seconds).
In step S111, the determination module 111 determines whether the read gravity acceleration value is different from a preset acceleration value. In one embodiment, the preset acceleration value is a standard gravity acceleration value when the IP camera 1 is in a rest state. For example, the preset acceleration value may be set as 9.80665 (m/s2). If the read gravity acceleration value is different from the preset acceleration value, that is, the IP camera 1 is moving, then step S112 is implemented. If the read gravity acceleration value is the same as the preset acceleration value, step S110 is repeated.
In step S112, the determination module 111 determines whether the read gravity acceleration value exceeds a preset threshold value. If the read gravity acceleration value exceeds the preset threshold value, step S113 is implemented. If the read gravity acceleration value does not exceed the preset threshold value, the procedure returns to step S110.
In step S113, the determination module 111 determines whether the IP camera 1 is abnormal according to gravity acceleration values of the IP camera 1. If the IP camera 1 is abnormal, step S114 is implemented. If the IP camera 1 is normal, the procedure returns to step S110.
In one embodiment, the determination module 111 rereads a current gravity acceleration value of the IP camera 1 from the monitor unit 10, and determines whether the current gravity acceleration value exceeds the preset threshold value when the current gravity acceleration value is different from the preset acceleration value. When the current gravity acceleration value exceeds the preset threshold value, the determination module 111 determines whether a difference value between the current gravity acceleration value and a previous gravity acceleration value (e.g. the read gravity acceleration value as mentioned in step S110) exceeds a preset difference value. If the difference value exceeds the preset difference value, the IP camera 1 is determined to be abnormal. If the current gravity acceleration value is the same as the preset acceleration value, or the current gravity acceleration value does not exceed the preset threshold value, or the difference value does not exceed the preset difference value, the IP camera 1 is determined to be normal.
In step S114, the control module 112 controls the alarm unit 13 to output alarm signals according to a preset alarm mode, for notifying a user to adjust the IP camera 1. In one embodiment, the control module 112 may further control the communication module 14 to output a preset alarm notification to preset electronic devices which are in connection with the IP camera 1. For example, the preset alarm notification may be a predetermined message or an e-mail including contents of “IP camera 1 is shifted, please adjust the IP camera 1”.
In step S115, the reading module 110 reads orientation parameters monitored by the monitoring unit 10.
In step S116, the determination module 111 determines whether the orientation parameters are different from preset orientation parameters. If the orientation parameters are different from the preset orientation parameters, step S117 is implemented. If the orientation parameters are the same as the preset orientation parameters, the procedure ends.
In step S117, the determination module 111 determines whether a difference between the orientation parameters and the preset orientation parameters is within a preset adjustment range. If the difference between the orientation parameters and the preset orientation parameters is within the preset adjustment range, that is, the IP camera 1 can be adjusted automatically, step S119 is implemented. If the difference is beyond the preset adjustment range, that is, the IP camera 1 does not need to be adjusted automatically, and step S118 is implemented.
In step S118, the control module 112 controls the communication unit 14 to output the preset adjustment notification to the preset electronic devices, and the procedure ends.
In step S119, the control module 112 adjusts the IP camera 1 according to the preset orientation parameters. In one embodiment, the control module 112 may control the IP camera 1 to rotate on a turntable (not shown in FIGS.) of the IP camera 1, until the orientation parameters of the IP camera 1 are the same as the preset orientation parameters.
In other embodiments, when the IP camera 1 is rotated, if a variation value of azimuth angels monitored by the monitoring unit 10 is different from a preset angel variation value, the determination module 111 determines that the IP camera 1 cannot be adjust normally and the control module 112 controls the communication unit 14 to output the preset adjustment notification. If a duration of a rotation process of the IP camera 1 exceeds a preset time period, the determination module 111 determines that the IP camera 1 needs to be repaired and the control module 112 controls the communication unit 14 to output a preset repair notification to the preset electronic devices.
All of the processes described above may be embodied in, and fully automated via, functional code modules executed by one or more general purpose processors such as the processor 12. The code modules may be stored in any type of non-transitory readable medium or other storage device such as the storage device 15. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory readable medium may be a hard disk drive, a compact disc, a digital versatile disc, a tape drive, or other suitable storage medium.
The described embodiments are merely examples of implementations, and have been set forth for a clear understanding of the principles of the present disclosure. Variations and modifications may be made without departing substantially from the spirit and principles of the present disclosure. All such modifications and variations are intended to be included within the scope of this disclosure and the described inventive embodiments, and the present disclosure is protected by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
102128264 | Aug 2013 | TW | national |