This application claims the priority benefit of Taiwan application serial no. 103145722, filed on Dec. 26, 2014. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
1. Field of the Invention
The present invention generally relates to a display technique, in particular, to an electronic device and a method for displaying a target object with accurate positioning capability.
2. Description of Related Art
The rapid development in mobile communication technology has resulted in a definite need for electronic devices with a small and portable nature such as smart phones and tabular computers. Various features are integrated in such electronic devices provided in the current market for a competitive advantage. Specifically, the integration between the electronic devices and a mobile communication feature is still in a highly developing stage. The user may be able to track the current position through, for example, an electronic map and a global positioning system (GPS), or may be provided with an optimal guided route to a destination through a navigation system.
However, a conventional electronic map or navigation system may only present current positions of the user and a target object on a map, and yet detailed orientation information therebetween has to be manually compared by the user. Although some existing techniques are capable of rotating an orientation of the electronic devices through a use of the electronic map in conjunction with a positioning feature provided by an electronic compass, they fail to provide a high degree of accuracy and convenience.
Accordingly, the present invention is directed to an electronic device and a method for displaying a target object, where the target object may be positioned with accuracy, and the user may be provided with a better visualization.
The present invention is directed to a method for displaying a target object, adapted to an electronic device having a display unit. The method for displaying a target object includes displaying relative position information between the target object and the electronic device, calculating an object display region according to the relative position information, determining whether the object display region overlaps with at least part of a display region on the display unit to obtain a determined result, and displaying tag information of the target on a region overlapped by the display region on the display unit and the object display region according to the determined result.
The present invention is directed to an electronic device. The electronic device includes a display unit, a detecting unit, and a control unit. The control unit is coupled to the display unit and the detecting unit. The detecting unit detects relative position information between a target object and the electronic device. The control unit calculates an object display region according to the relative position information, determines whether the object display region overlaps with at least part of a display region on the display unit to obtain a determined result, and displays tag information of the target on a region overlapped by the display region on the display unit and the object display region according to the determined result.
In view of the foregoing, the electronic device and the method for displaying a target object proposed in the invention utilize global positioning system information to obtain relative position information of the target object respect to the electronic device to calculate an object display region of the target object and provide tag information of the target object according to whether the object display region overlaps with a display region of the display unit. Accordingly, the invention not only accurately positions the target object, but also displays the object display region and the tag information of the target object on the display unit so that the target object may be easily read and perceive by the user with enhanced operating experience.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
To accurately position a target object with better visualization, the electronic device and the method for displaying a target object proposed in the invention utilize global positioning system information to calculate relative position information of the target object respect to the electronic device, such as distance information and direction information, to determine an object display region of the target object. Whether the object display region enters a field of view of the electronic device is further determined, and tag information of the target object as well as the portion of the object display region entering the field of view are displayed accordingly. Moreover, the effect of environment information may be considered so as to adjust the positioning of the target object. More particularly, the invention is applicable to wearable devices such as smart watches and smart glasses so that the user may be provided with a better operating experience. Reference will now be made in detail to the present embodiments of the invention, examples of which are illustrated in the accompanying drawings.
The display unit 110 may be, for example, a liquid crystal display (LCD), a light-emitting diode (LED) display, a field emission display (FED) or other types of displays. The display unit 110 may be an integration of the aforesaid display and a resistive, capacitive, or optical touch panel, which provides both touch and display features.
The detecting unit 120 may be a detecting component such as a global positioning system component, a G-Sensor, a magnetic inductor such as a magnetometer, an accelerometer, a Gyroscope, or a combination thereof, and yet the invention is not limited thereto. In the present embodiment, the detecting unit 120 is configured to detect, for example, position information and azimuth information of the electronic device 100 in a three-dimensional space.
The control unit 130 is coupled to the display unit 110 and the detecting unit 120. The control unit 130 may be, for example, a single chip, a general-purpose processor, a special-purpose processor, a traditional processor, a digital signal processor (DSP), a plurality of microprocessors, or one or more microprocessors, controllers, microcontrollers, application specific integrated circuit (ASIC), or field programmable gate arrays (FPGA) with a DSP core. The control unit 130 may also be, for example, other types of integrated circuits, a state machine, a processor based on an advanced RISC machine (ARM), or the likes. The control unit 130 is not limited to be a single processing component; it may include two or more processing components executing concurrently. In the present embodiment, the control unit 130 is configured to implement the proposed method for displaying a target object.
Moreover, the electronic device 100 may also include a storage device (not shown), and yet the invention is not limited herein. The storage unit is configured to store data and accessible by the control unit 130. The storage unit may be, for example, a hard disk drive (HDD), a volatile memory, or a non-volatile memory.
Referring to both
It should be noted that, the placement of the electronic device 100 may affect the position information of the electronic device 100 in the global positioning system detected by the detecting unit 120. Hence, the control unit 130 may first perform an initial calibration (e.g. through rotation matrix computation) on a coordinate system in which the target object and the electronic device 100 are located so as to calibrate the coordinate system of the electronic device 100.
In Step S220, the control unit 130 calculates an object display region according to the relative position information. To be specific, the object display region may be configured to illustrate a range size of a target object. In an embodiment, the object display region may be determined by the distance between the target object and the electronic device 100. In terms of human visual perception, as the target object becomes more distant, it appears smaller for the user. On the other hand, when the target object becomes less distant, it appears larger for the user. In an embodiment, in order to allow the user to sense how far away the target object is, the control unit 130 may determine a range size of the object display region according to an inverse proportionality between the range size of the object display region and the distance information or according to a difference between the distance information and a predetermined value.
In Step S230, the control unit 130 determines whether the object display region overlaps with at least part of a display region on the display unit 110 to obtain a determined result. In Step S240, the control unit 130 displays tag information of the target on a region overlapped by the display region on the display unit 110 and the object display region according to the determined result. In other words, whether the target object enters a field of view of the electronic device 100 may be determined according to whether the object display region corresponding to the target object overlaps with the display region of the display unit 110. When the object display region overlaps with at least part of the display region on the display unit 110, the control unit 130 may display the tag information of the target object in the overlapped region. The tag information may be a name of the target object or the distance between the target object and the electronic device 100. Moreover, the control unit 130 may display the overlapped region on the display unit 110 in different colors or in other appearances.
Accordingly, through obtaining the global position system information of the target object, configuring the object display region of the target object, and determining whether the object display region overlaps with at least part of the display region on the display unit 110, not only may the target object be positioned accurately, but also the positioning information of the target object may be displayed on the display unit 110. Moreover, the user is allowed to sense how far away the target object is through the range size of the overlapped region in a visualized manner.
It should be noted that, the detecting unit 120 may determine whether the position of the electronic device 100 has been changed through the detection of any variation of movement such as acceleration or angular displacement. Thus, in the present embodiment, the target object may be positioned based on the movement of the electronic device 100 so that the tag information of the target object displayed on the display unit 110 may be continuously updated to allow for dynamic tracking on the target object.
The electronic device 100 may obtain global position system coordinates of an target object (e.g. a mountain) and the electronic device 100 through a global position system component and obtain an azimuth of the electronic device 100 with respect to the earth through a magnetometer. In such embodiment, based on direction information (e.g. the azimuth) and the transformation between the angle and the display region, the control unit 130 may obtain an object display region and a display region on the display unit 110 through a mapping approach. To be specific, the control unit 130 may calculate a range size, expressed in terms of an angular value, corresponding to the object display region of the target object based on Eq. (1), where OR denotes the range size (e.g. in angular value), and D denotes the distance (e.g. in kilometer) between the target object and the electronic device 100.
OR=60−(D−5) Eq. (1)
Hence, assume that the distance between the target object and the electronic device 100 is calculated to be 45 km by the control unit 130 based on the coordinates thereof. The range size OR is then calculated to be 20° based on Eq. (1).
Next, the control unit 130 may combine the range size OR and the azimuth of the target object so as to obtain the position of the display region on the display unit 110 mapped from the object display region of the target object. For example, boundary angles OD1, OD2 (e.g. in angular values) of the object display region may be determined based on Eq. (2) and Eq. (3), where AT denotes the azimuth of the target object (e.g. in angular value).
OD1=AT+OR/2 Eq. (2)
OD2=AT−OR/2 Eq. (3)
As illustrated in
On the other hand, assume that an azimuth of a center direction DC of the electronic device 100 is 100°. For an ordinary field of view with a range of 100°, the display region of the display unit 110 may be ranged between an boundary angle D1 with 50° and an boundary angle D2 with 150°.
Hence, in the embodiment of
It should be noted that, to determine whether the object display region overlaps with at least part of the display region on the display unit 110, the control unit 130 may configure the boundary angles corresponding to the display region when the object display region enters or leaves the display region of the display unit 110 by, for example, taking the user's field of view into consideration. The control unit 130 may calculate boundary angles B1 and B2 for determining whether the object display region enters or leaves the display region of the display unit 110, where V denotes the user's field of view in angular value.
B1=OD1+V/2 Eq. (4)
B2=OD2−V/2 Eq. (5)
Assume that a user's field of view V is 100. In the present embodiment, the boundary angles B1 and B2 may be 55° and 175° respectively. In other words, as long as the azimuth of the object display region of the target object is within a range between 55° and 175°, the control unit 130 may determine that the object display region of the target object overlaps with at least part of the display region of the display unit 110. That is, the target object enters the field of view, and the control unit 130 may thus display the tag information of the target object.
It should be noted that, in the aforesaid embodiment, the control unit 130 determines how the object display region overlaps with the display region of the display unit 110 based on the azimuth range. In terms of the display frame on the display unit 110, the control unit 130 may output the overlapped region and/or the tag information of the target object on the display unit 110 based on a transformation relationship between pixels and angles. Such transformation relationship may be, for example, the ratio of a pixel to an angle equal to the ratio of a resolution of the display unit 110 to a field of view (i.e. corresponding to the boundary angles D1 and D2), and pixel values of the overlapped region may be calculated thereby.
In some embodiments, to improve the user experience in the use of the electronic device, the control unit 130 may further determine whether to filter out the related information of the target object by considering the effect of environment information while the user is identifying an target object, where the related information would not be displayed on the display unit 110. The aforesaid environment information may be at least one of altitude, whether condition, distance, or azimuth information, where the altitude information and the distance information may be obtained from the global positioning system information, and the whether condition may be obtained from, for example, a real-time weather information database through a network connection via a communication unit (not shown) of the electronic device 100. Moreover, the azimuth may be obtained by a magnetometer in the detecting unit 120.
A detailed flow of displaying a target object by the control unit 130 according to the environment information will be illustrated hereafter.
To be specific, in an embodiment, the control unit 130 may calculate a distance adjustment parameter according to the environment information and filter out tag information according to whether the distance adjustment parameter is less than a predetermined distance. In the present embodiment, the environment information may be at least one of the altitude and the weather condition.
For example, when considering that the altitude of the electronic device 100 may affect the user's field of view, the control unit 130 may, for example, set 40 km as a basic unit of the field of view and increase the field of view by 2 km whenever the altitude is increased by 100 m. Hence, the field of view may be adjusted adaptively according to the altitude information. Additionally, in terms of the weather condition, the control unit 130 may, for example, increase the field of view by 20 km or 10 km or decrease the field of view by 20 km according to a sunny weather, a cloudy weather, or a rainy weather respectively.
Based on the aforesaid settings, the control unit 130 may determine whether to filter out the tag information of the target object and not to display the tag information based on, for example, Eq. (6) or a threshold such as 40 km, where H and W are the field of views adjusted according to the altitude information and the weather condition and may be expressed in, for example, angle value.
H/100*2+W<40 Eq. (6)
Moreover, in another embodiment, the control unit 130 may further determine whether the target object is blocked according to the azimuth information and the distance information. To be specific, the control unit 130 may calculate a proportion of the region overlapped by the display region to the object display region according to the relative position information and filter out the tag information according to whether the proportion is greater than a predetermined coverage proportion.
For example, in an embodiment, the control unit 130 may set the predetermined coverage proportion to 60% and determine whether to filter out and not to display the tag information of the target object based on Eq. (7), where Az denotes the azimuth (e.g. in angular value) and D denotes the distance (e.g. in kilometer).
10/(Az+D)*100 Eq. (7)
In summary, the electronic device and the method for displaying a target object proposed in the invention utilize global positioning system information to obtain relative position information of the target object respect to the electronic device to calculate an object display region of the target object and provide tag information of the target object according to whether the object display region overlaps with a display region of the display unit. Moreover, the effect of environment information may be considered so as to adjust the positioning of the target object. Accordingly, the invention not only accurately positions the target object, but also displays the object display region and the tag information of the target object on the display unit so that the target object may be easily read and perceive by the user with enhanced operating experience.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
103145722 | Dec 2014 | TW | national |