主权项 |
1. A method of providing augmented reality of an augmented reality providing apparatus mounted within a vehicle, the method comprising:
matching, by a controller, a head up display area of a windshield and an input image; determining, by the controller, an area in which an information amount is a minimum in the matched image as a position of a display window to display virtual information; and outputting, by the controller, virtual information at the determined position, wherein: (1) the determining of an area comprises: determining, by the controller, whether a marker related to the virtual information is included in the matched image; when the marker is included in the matched image, dividing, by the controller, an area in which virtual information may be displayed in the matched image into a plurality of sub-blocks; calculating, by the controller, the information amount based on the plurality of sub-blocks; searching, by the controller, for a position at which the information amount is the minimum based on the plurality of sub-blocks; and determining, by the controller, the position at which the information amount is the minimum as a position of the display window; and (2) the calculating of an information amount comprises: acquiring, by the controller, included edges based on the plurality of sub-blocks; counting, by the controller, the number of the edges; calculating, by the controller, an average distance based on the plurality of sub-blocks; normalizing, by the controller, the number of the edges; and calculating, by the controller, the information amount based on the sub-block using the calculated average distance and the number of the normalized edges. |