1. Technical Field
Embodiments of the present disclosure are related to network communication technology, and more particularly to a system and a method for controlling IP cameras.
2. Description of Related Art
Internet protocol (IP) camera, also called a network camera, can be described as a camera and a computer combined in one network node. During the display of images generated by an IP camera on an electronic terminal such as a personal computer or a smart phone, which communicates with the IP camera through a network, the camera may need to be rotated or the zoom may need to be adjusted in or out. Thus, software that controls rotation and zooming in/out of the IP camera, for different operation systems, such as ANDROID, IOS, WINDOWS, needs to be designed. In addition, the software must be installed by the user. Thus, it is inconvenient for software designers and the users.
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The control device 21 may include a processor, an application-specific integrated circuit (ASIC), and a field programmable gate array (FPGA), for example.
The storage device 22 may include any type(s) of non-transitory computer-readable storage medium, such as a hard disk drive, a compact disc, a digital video disc, or a tape drive.
The IP camera control system 20 includes a plurality of function modules (see
In step S1, the address receiving module 200 receives a video address from the electronic terminal 1, to locate one of the IP cameras 3. In one embodiment, the video address includes an IP address of one of the IP cameras 3, a user name of the electronic terminal 1, and an identifier of controlling the IP cameras 3. For example, the IP address of the IP camera 3 is “10.62.8.119,” the user name of the electronic terminal 1 is “firstIPcamera” and the identifier of controlling the IP camera 3 is “controlPTZ”, then the video address is http://10.62.8.119/firstIPcamera/controlPTZ.
In one embodiment, a user of the electronic terminal 1 inputs the video address via a browser of the electronic terminal 1. The browser may be an INTERNET EXPLORER browser, a FIREFOX browser, or a GOOGLE browser, for example. The electronic terminal 1 then transmits the video address to the web server 2 using the Internet or an intranet.
In step S2, the control panel display module 201 transmits a show page, on which a control panel is displayed, to the electronic terminal 1.
In step S3, the detection module 202 detects a touch point of a touch operation to the control panel on the electronic terminal 1. The touch operation may be generated by a user touching the electronic terminal 1 using his finger or a stylus, for example. In other embodiment, the touch operation may be generated by a mouse of electronic terminal 1.
In step S4, the detection module 202 determines if the touch point is located within valid control ranges of the control panel. The valid control ranges include the rotation control range 31 and the zoom control range 32. The detection module 202 compares coordinates of the touch point and a coordinate range of the rotation control range 31 and the zoom control range 32 to determine if the touch point is located within the valid control ranges of the control panel 30. When the touch point is located within the valid control ranges of the control panel 30, step S5 is implemented. Otherwise, when the touch point is not located within the valid control ranges of the control panel 30, the touch point is invalid, then, step S3 is implemented.
In step S5, the detection module 202 determines that the touch point is located within the rotation control range 31 or located within the zoom control range 32. Steps S6 and S7 are implemented when the touch point is located within the rotation control range 31. Otherwise, step S8 is implemented when the touch point is located within the zoom control range 32.
In step S6, the computation module 202 computes a movement vector of the touch point according to a movement track of the touch point on the electronic terminal 1. The movement vector includes a direction, a distance, and a speed of the movement track of the touch point.
In step S7, the control module 204 controls the IP camera 3 to rotate according to the movement vector. For example, when the direction of the movement track of the touch point is left, the speed is 1 cm/s, and the distance is 2 cm, the IP camera is controlled to rotate left 2 cm, at the speed of 1 cm/s. In other embodiment, the IP camera 3 is controlled to rotate according to a rate of the movement vector. For example, when the direction of the movement track of the touch point is left, the speed is 1 cm/s, and the distance is 2 cm, then the IP camera rotates left 20 cm, at the speed of 10 cm/s.
In step S8, the control module 204 control the IP camera 3 to zoom in or zoom out. When the touch point is located within the range of the zoom-in key, the IP camera 3 zooms in, and when the touch point is located within the range of the zoom-out key, the IP camera 3 zoom out.
In step S9, the webpage redrawing module 205 redraws the show page on the electronic terminal 1 to indicate that a key in the control panel having been pressed. For example, when the IP camera is controlled to rotate to left, the show page of the electronic terminal 1 is redrawn to show the leftward rotation key of the control panel has been pressed.
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
101125962 | Jul 2012 | TW | national |