Method for transmitting and displaying object tracking information and system thereof
A method for transmitting and displaying an object tracking information includes steps of capturing an image by a camera, wherein an object exists in the image; analyzing the image by the camera to obtain a 3D world coordinate information of the object; transmitting a projection matrix and the 3D world coordinate information to a display device by the camera; using the projection matrix to convert the 3D world coordinate information into a 2D image coordinate information by the display device; and displaying a pattern corresponding to the object according to the 2D image coordinate information by the display device.
Latest VIVOTEK INC. Patents:
- IMAGE MODE APPLICATION METHOD AND SURVEILLANCE APPARATUS
- Object identification method and related surveillance system
- Floor height detection method and related surveillance camera
- AUTOMATIC RULE SETTING METHOD AND IMAGE CONTENT ANALYSIS APPARATUS
- Display screen or portion thereof with graphical user interface for surveillance system
This application claims the benefit of Taiwan Application No. 105108477, which was filed on Mar. 18, 2016, and is incorporated herein by reference.
BACKGROUND OF THE INVENTION 1. Field of the InventionThe invention relates to a method for transmitting and displaying an object tracking information and a system thereof and, more particularly, to a method for transmitting and displaying an object tracking information and a system thereof capable of reducing data transmitting amount effectively.
2. Description of the Prior ArtAt present, when a camera is used to track an object, the camera analyzes an image to obtain a 2D image coordinate information of the object in the image first and then transmits the 2D image coordinate information of the object to a display device, wherein the details may be referred to “ONVIF™ Analytics Service Specification” (http://www.onvif.org/specs/srv/analytics/ONVIF-An alytics-Service-Spec-v250.pdf). Then, the display device displays tracking information corresponding to the object in the image according to the 2D image coordinate information of the object. When the tracking information comprises shape, length, width, height and so on of the object, the camera has to transmit different 2D image coordinate information corresponding to different tracking information to the display device, such that the data transmitting amount will increase. The more the data transmitting amount is, the huger the system loading is. Consequently, the system performance will be influenced.
SUMMARY OF THE INVENTIONAn objective of the invention is to provide a method for transmitting and displaying an object tracking information and a system thereof capable of reducing data transmitting amount effectively, so as to solve the aforesaid problems.
According to an embodiment of the invention, a method for transmitting and displaying an object tracking information comprises steps of capturing an image by a camera, wherein an object exists in the image; analyzing the image by the camera to obtain a 3D world coordinate information of the object; transmitting a projection matrix and the 3D world coordinate information to a display device by the camera; using the projection matrix to convert the 3D world coordinate information into a 2D image coordinate information by the display device; and displaying a pattern corresponding to the object according to the 2D image coordinate information by the display device.
According to another embodiment of the invention, a system for transmitting and displaying an object tracking information comprises a camera and a display device. The camera captures an image, wherein an object exists in the image. The camera analyzes the image to obtain a 3D world coordinate information of the object. The display device communicates with the camera. The camera transmits a projection matrix and the 3D world coordinate information to the display device. The display device uses the projection matrix to convert the 3D world coordinate information into a 2D image coordinate information. The display device displays a pattern corresponding to the object according to the 2D image coordinate information.
As mentioned in the above, after the camera captures the image, the camera analyzes the image to obtain the 3D world coordinate information of the object in real world first and then transmits the 3D world coordinate information of the object to the display device. Then, the display device uses the projection matrix of the camera to convert the 3D world coordinate information of the object into the 2D image coordinate information in the image. Accordingly, the display device can display the pattern corresponding to the object in the image according to the 2D image coordinate information, wherein the pattern is tracking information. Since the 2D image coordinate information is generated by the display device, the camera only needs to transmit the 3D world coordinate information of the object in real world to the display device. Accordingly, the invention can reduce the data transmitting amount substantially, so as to enhance system performance. Furthermore, since the 2D image coordinate information is generated by the display device, the display device can customize a display manner of the tracking information directly according to the 2D image coordinate information. Accordingly, the camera needs not to transmit different 2D image coordinate information in accordance with different tracking information to the display device.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Referring to
As shown in
When the system 1 is used for transmitting and displaying an object tracking information, first of all, the camera 10 captures an image I (step S10 in
Then, the camera 10 analyzes the image I to obtain 3D world coordinate information of the objects O1-O4 (step S12 in
Then, the camera 10 transmits a projection matrix, the image I and the 3D world coordinate information of the objects O1-O4 to the display device 12 (step S14 in
In equation 1, X, Y and Z of (X, Y, Z, T) are 3D world coordinate in real world (the camera 10 is at origin), and x and y of (x, y, w) are 2D image coordinate in the image I. Furthermore, T of (X, Y, Z, T) and w of (x, y, w) are scaling factors for homogeneous coordinate. In homogeneous coordinate, after multiplying one coordinate by one scaling factor, it is still corresponding to the same point. For example, (1, 2, 3, 1) and (2, 4, 6, 2) represent the same point. How the camera calculates the projection matrix itself and the related application of the projection matrix may be referred to “Richard Hartley and Andrew Zisserman, “Multiple View Geometry in Computer Vision”, Second Edition, Cambridge University Press, March 2004”.
Then, the display device 12 uses the projection matrix to convert the 3D world coordinate information of the objects O1-O4 in real world into 2D image coordinate information of the objects O1-O4 in the image I according to equation 1 (step S16 in
Finally, the display device 12 displays the image I and displays patterns P1-P4 corresponding to the objects O1-O4 in the image I according to the 2D image coordinate information (step S18 in
Referring to
In the prior art, to obtain the frames F1-F4 shown in
In another embodiment, when the number of the objects in the image is larger than or equal to a predetermined number, the invention may display the patterns P1-P4 shown in
Referring to
Referring to
Moreover, when the 3D world coordinate information transmitted by the camera 10 to the display device 12 comprises heights of the objects O1-O4, the invention may further display the patterns P1-P4 with different sizes and shapes according to the heights of the objects O1-O4. When the height of the object is larger than or equal to a predetermined height, the display device 12 may display the pattern with a first size and a first shape; and when the height of the object is smaller than the predetermined height, the display device 12 may display the pattern with a second size and a second shape, wherein the second size is smaller than the first size and the second shape is different from the first shape. For example, the aforesaid predetermined height may be set as a criterion for determining that the object is an adult or a child, e.g. 140 cm. Accordingly, the user can know that which one of the objects O1-O4 is an adult or a child according to the sizes and the shapes of the patterns P1-P4.
It should be noted that the control logic of the method for transmitting and displaying an object tracking information of the invention can be implemented by software. The software can be executed in a system comprising a camera and a display device. Needless to say, each part or function of the control logic may be implemented by software, hardware or the combination thereof.
As mentioned in the above, after the camera captures the image, the camera analyzes the image to obtain the 3D world coordinate information of the object in real world first and then transmits the 3D world coordinate information of the object to the display device. Then, the display device uses the projection matrix of the camera to convert the 3D world coordinate information of the object into the 2D image coordinate information in the image. Accordingly, the display device can display the pattern corresponding to the object in the image according to the 2D image coordinate information, wherein the pattern is tracking information. Since the 2D image coordinate information is generated by the display device, the camera only needs to transmit the 3D world coordinate information of the object in real world to the display device. Accordingly, the invention can reduce the data transmitting amount substantially, so as to enhance system performance. Furthermore, since the 2D image coordinate information is generated by the display device, the display device can customize a display manner of the tracking information directly according to the 2D image coordinate information. Accordingly, the camera needs not to transmit different 2D image coordinate information in accordance with different tracking information to the display device.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Claims
1. A method for transmitting and displaying an object tracking information comprising steps of: ( x y w ) = P 3 × 4 ( X Y Z T ), wherein P3×4 represents the projection matrix of the camera, (x, y, w) represents a 2D homogeneous coordinate, and (X, Y, Z, T) represents a 3D homogeneous coordinate, X, Y and Z of (X, Y, Z, T) are the 3D world coordinate information, x and y of (x, y, w) are the 2D image coordinate information, and T of (X, Y, Z, T) and w of (x, y, w) are scaling factors for homogeneous coordinate; and
- capturing an image by a camera, wherein an object exists in the image;
- analyzing the image by the camera to obtain a 3D world coordinate information of the object;
- transmitting a projection matrix and the 3D world coordinate information to a display device by the camera;
- using the projection matrix to convert the 3D world coordinate information into a 2D image coordinate information by the display device through
- displaying a pattern corresponding to the object according to the 2D image coordinate information by the display device.
2. The method of claim 1, further comprising step of:
- expanding the 2D image coordinate information into a frame with a predetermined real length by the display device.
3. The method of claim 1, further comprising step of:
- displaying the pattern on a top or a bottom of the object by the display device.
4. The method of claim 1, wherein the 3D world coordinate information comprises a height of the object and the method further comprises steps of:
- when the height is larger than or equal to a predetermined height, displaying the pattern with a first size by the display device; and
- when the height is smaller than the predetermined height, displaying the pattern with a second size by the display device, wherein the second size is smaller than the first size.
5. The method of claim 1, wherein the 3D world coordinate information comprises a height of the object and the method further comprises steps of:
- when the height is larger than or equal to a predetermined height, displaying the pattern with a first shape by the display device; and
- when the height is smaller than the predetermined height, displaying the pattern with a second shape by the display device, wherein the second shape is different from the first shape.
6. The method of claim 1, further comprising step of:
- transmitting the image to the display device by the camera; and
- displaying the image by the display device;
- wherein the pattern is displayed on the image.
7. A system for transmitting and displaying an object tracking information comprising: ( x y w ) = P 3 × 4 ( X Y Z T ), wherein P3×4 represents the projection matrix of the camera, (x, y, w) represents a 2D homogeneous coordinate, and (X, Y, Z, T) represents a 3D homogeneous coordinate, X, Y and Z of (X, Y, Z, T) are the 3D world coordinate information, x and y of (x, y, w) are the 2D image coordinate information, and T of (X, Y, Z, T) and w of (x, y, w) are scaling factors for homogeneous coordinate, the display device displaying a pattern corresponding to the object according to the 2D image coordinate information.
- a camera capturing an image, an object existing in the image, the camera analyzing the image to obtain a 3D world coordinate information of the object; and
- a display device communicating with the camera, the camera transmitting a projection matrix and the 3D world coordinate information to the display device, the display device using the projection matrix to convert the 3D world coordinate information into a 2D image coordinate information through
8. The system of claim 7, wherein the display device expands the 2D image coordinate information into a frame with a predetermined real length.
9. The system of claim 7, wherein the display device displays the pattern on a top or a bottom of the object.
10. The system of claim 7, wherein the 3D world coordinate information comprises a height of the object; when the height is larger than or equal to a predetermined height, the display device displays the pattern with a first size; when the height is smaller than the predetermined height, the display device displays the pattern with a second size; and the second size is smaller than the first size.
11. The system of claim 7, wherein the 3D world coordinate information comprises a height of the object; when the height is larger than or equal to a predetermined height, the display device displays the pattern with a first shape; when the height is smaller than the predetermined height, the display device displays the pattern with a second shape; and the second shape is different from the first shape.
12. The system of claim 7, wherein the camera transmits the image to the display device, the display device displays the image, and the display device displays the pattern on the image.
4241456 | December 1980 | Nakagaki |
7257237 | August 14, 2007 | Luck |
9064394 | June 23, 2015 | Trundle |
20020034067 | March 21, 2002 | Massaro |
20030136832 | July 24, 2003 | Massaro |
20040195774 | October 7, 2004 | Segan |
20070049159 | March 1, 2007 | Kulis, II |
20070103890 | May 10, 2007 | Morehead |
20070228755 | October 4, 2007 | Alvarado |
20140247374 | September 4, 2014 | Murakami |
201237801 | September 2012 | TW |
201511566 | March 2015 | TW |
201537137 | October 2015 | TW |
- B. Leibe, K. Schindler, N. Cornelis, L. Van Gool, Coupled Object Detection and Tracking from Static Cameras and Moving Vehicles, IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 30, No. 10. (Oct. 2008), pp. 1683-1698, Jun. 27, 2008.
- M. Munaro, F. Basso and E. Menegatti, Tracking people within groups with RGB-D data, IEEE/RSJ International Conference on Intelligent Robots and Systems, Oct. 7-12, 2012.
- Myron Z. Brown et al., Advances in computational stereo, IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 25, Issue 8, Aug. 2003,pp. 993-1008.
Type: Grant
Filed: Feb 7, 2017
Date of Patent: Aug 13, 2019
Patent Publication Number: 20170272730
Assignee: VIVOTEK INC. (New Taipei)
Inventors: Cheng-Chieh Liu (New Taipei), Szu-Mo Chang (New Taipei), Kuan-Yu Lin (New Taipei)
Primary Examiner: Frank F Huang
Application Number: 15/427,032
International Classification: G06T 15/00 (20110101); G06T 17/00 (20060101); H04N 7/18 (20060101); H04N 13/00 (20180101);