Embodiment
Below in conjunction with accompanying drawing, the embodiment of electronically map generalization method, air navigation aid and the device that the embodiment of the invention is provided is described in detail.
Browsing in smaller scope; for example the scenic spot browses; usually have the scenic spot map picture that utilizes mobile phone or other electronic tools just can easily get access to; such as scenic spot map panel etc.; on these scenic spot map pictures, generally comprised to the viewer very useful such as information such as food and drink, shop, toilets; the embodiment of the invention just is being based on this, and a kind of new electronically map generalization method is provided.
A kind of electronically map generalization method that the embodiment of the invention provides, as shown in Figure 1, idiographic flow comprises:
S101, identify each legend in the map picture that terminal gets access to, and according to each legend in the map picture that identifies, identify each the road sign dot image corresponding with each legend that comprises in the map picture;
S102, determine the actual geographic position that each road sign dot image is corresponding;
S103, according to the actual geographic position of each road sign dot image that in map picture, comprises of identifying and the correspondence determined thereof, generate electronic chart.
Wherein, the map picture of the use in step S101 can obtain by camera or the bluetooth of terminal, for example can utilize the map picture on the camera shooting scenic spot map panel on the mobile phone, perhaps in scenic spot map panel wireless launcher is installed, can uses the blue-tooth device on the mobile phone directly to obtain map picture.
Further, if map picture is excessive or want to improve the sharpness of the map picture that gets access to, can use the camera gradation to take and preserve the map picture each several part, and each map picture that gradation is taken is spliced into a chunk map picture, for example take separately the legend of scatter display in the map picture and concrete map area.
In addition, in step S101, can use image recognition technology of the prior art, each legend in the identification map picture and each road sign dot image corresponding with each legend, usually, legend all can have fixing significant feature, for example represents that the feature that the legend of toilet has generally is men and women person of low position's image, uses these features as standard pattern or the template of pattern-recognition, just can identify the legend in the map picture, detailed process does not repeat them here.
Particularly, determine actual address position corresponding to each road sign dot image among the above-mentioned steps S102, as shown in Figure 2, can realize by following step:
S201, determine the actual geographic position that each pixel is corresponding in the map picture;
S202, for each road sign dot image, according to this road sign dot image related pixel in map picture, and actual geographic position corresponding to related pixel, determine the actual geographic position that this road sign dot image is corresponding.
Wherein, after completing steps S201, can also preserve actual geographic position corresponding to each pixel in the map picture of determining, when the electronic chart that the method for using the embodiment of the invention to provide generates, on electronic chart, the current location at user place be shown in real time like this.
Particularly, in the said method that the embodiment of the invention provides, in order to determine actual geographic position corresponding to each pixel in the map picture, said method can also may further comprise the steps:
The engineer's scale, directional information and the current location that comprise in the identification map picture;
Preferably, after the directional information that in the identification map picture, comprises, can also be according to the direct north of directional information indication and the drift angle of actual direct north, map picture is proofreaied and correct, increase the accuracy of the electronic chart that generates, bearing calibration used herein is prior art, does not repeat them here.
Particularly, determine actual geographic position corresponding to each pixel in the map picture among the above-mentioned steps S201, as shown in Figure 3, can comprise following flow process:
S301, according to engineer's scale and directional information, determine that the distance of m pixel in the map picture is corresponding to the distance of the longitude of the n in the actual geographic position or latitude;
S302, determine the coordinate (x of current location place pixel in the map picture0, y0) corresponding actual geographic position (lat0, long0);
S303, determine in the map picture actual geographic position (lat, long) that each pixel (x, y) is corresponding based on following formula;
(lat,long)=(lat0+n×(x-x0)/m,long0+n×(x-x0)/m)。
Wherein, the execution of above-mentioned steps S301 and S302 in no particular order order also can be finished simultaneously, is not specifically limited in embodiments of the present invention.
Prior art provides utilizes map picture to generate in the method that electronic chart navigates, anchor point need to manually be inputted by the user, and require user oneself to judge the anchor point location, and move to the anchor point place and carry out satnav, could set up the incidence relation of electronic chart and actual geographic position.May be in the larger deviation of subjective and objective existence by anchor point and actual geographic position that the user chooses, thereby the deviation that causes the electronic chart of generation and actual geographic position to exist is larger, and in the embodiment of the invention, (general user is when taking map picture as anchor point to utilize current location common in the map picture, be sitting at the current position of map picture indicating), utilize the coordinate of current location in map picture and the corresponding relation of actual geographic position determined, and the engineer's scale information that identifies, can determine the actual geographic position that each pixel is corresponding in the map picture, the user need not oneself determine anchor point and carry out satnav, avoided between the electronic chart that generates and actual geographic position, existing the possibility of deviation, in addition, also greatly simplified user's operation, be user-friendly to.
Particularly, in step S302, determine the coordinate (x of current location place pixel0, y0) corresponding actual geographic position (lat0, long0), can realize by following flow process:
GPS location by terminal or the actual geographic position (lat when obtaining terminal and be positioned at the current location of map picture indication from network side0, long0);
Actual geographic position (lat with the terminal oriented0, long0) be defined as the coordinate (x of current location image place pixel0, y0) corresponding actual geographic position (lat0, long0).
The embodiment of the invention also provides a kind of air navigation aid, and the electronic chart that generates in the electronically map generalization method that this air navigation aid has utilized the embodiment of the invention to provide navigates, and as shown in Figure 4, idiographic flow comprises:
S401, identify each legend in the map picture that terminal gets access to, and according to each legend in the map picture that identifies, identify each the road sign dot image corresponding with each legend that comprises in the map picture;
S402, determine the actual geographic position that each road sign dot image is corresponding;
S403, according to the actual geographic position of each road sign dot image that in map picture, comprises of identifying and the correspondence determined thereof, generate electronic chart;
S404, navigate according to the electronic chart that generates.
Wherein, the concrete operations flow process of navigating according to electronic chart among the step S404 is prior art, does not repeat them here.
Based on same inventive concept, the embodiment of the invention also provides a kind of generating apparatus and guider of electronic chart, because the principle of this device solves problem is similar with air navigation aid to aforementioned a kind of electronically map generalization method, therefore the enforcement of this device can referring to the enforcement of method, repeat part and repeat no more.
The generating apparatus of a kind of electronic chart that the embodiment of the invention provides as shown in Figure 5, comprising:
Identification module 501 is used for identifying each legend of the map picture that terminal gets access to, and according to each legend in the map picture that identifies, identifies each the road sign dot image corresponding with each legend that comprises in the map picture;
Locating module 502 is used for determining actual geographic position corresponding to each road sign dot image;
Map generation module 503 is used for the actual geographic position according to each the road sign dot image that comprises at map picture that identifies and the correspondence determined thereof, generates electronic chart.
Preferably, the locating module 502 in the generating apparatus of the electronic chart that the embodiment of the invention provides as shown in Figure 5, specifically comprises:
The first locator module 5021 is used for determining actual geographic position corresponding to each pixel of map picture;
The second locator module 5022 is used for for each road sign dot image, according to this road sign dot image related pixel in map picture, and actual geographic position corresponding to related pixel, determine the actual geographic position that this road sign dot image is corresponding.
Preferably, the identification module 501 in the said apparatus also is used for engineer's scale, directional information and current location that the identification map picture comprises;
The first locator module 5021, determines that the distance of m pixel in the map picture is corresponding to the distance of the longitude of the n in the actual geographic position or latitude at concrete being used for according to engineer's scale and directional information; Determine the coordinate (x of current location place pixel0, y0) corresponding actual geographic position (lat0, long0); Determine actual geographic position (lat, long) corresponding to each pixel (x, y) in the map picture based on following formula; (lat, long)=(lat0+ n * (x-x0)/m, long0+ n * (x-x0)/m).
Preferably, the first locator module 5021 in the said apparatus concrete is used for the GPS location by terminal or the actual geographic position (lat when obtaining terminal and be positioned at the current location of map picture indication from network side0, long0); Actual geographic position (lat with the terminal oriented0, long0) be defined as the coordinate (x of current location image place pixel0, y0) corresponding actual geographic position (lat0, long0).
Preferably, the generating apparatus of the electronic chart that the embodiment of the invention provides, as shown in Figure 5, also comprise: correction module 504, be used for after the directional information that the identification map picture comprises, according to the direct north of directional information indication and the drift angle of actual direct north, map picture is proofreaied and correct.
Preferably, the identification module 501 in the said apparatus, concrete being used for obtained map picture by camera or the bluetooth of terminal.
A kind of guider that the embodiment of the invention provides as shown in Figure 6, comprising:
Identification module 601 is used for identifying each legend of the map picture that terminal gets access to, and according to each legend in the map picture that identifies, identifies each the road sign dot image corresponding with each legend that comprises in the map picture;
Locating module 602 is used for determining actual geographic position corresponding to each road sign dot image;
Map generation module 603 is used for the actual geographic position according to each the road sign dot image that comprises at map picture that identifies and the correspondence determined thereof, generates electronic chart;
Navigation module 604 is used for navigating according to the electronic chart that generates.
Preferably, the generating apparatus of the above-mentioned electronic chart that the embodiment of the invention provides and guider can be arranged in the existing portable terminal, during specific implementation, can realize by the mode of software and/or hardware.
Example below by an electronic chart that generates particularly the scenic spot navigates etc. and to use explains electronically map generalization method, air navigation aid and device that the embodiment of the invention provides.
Fig. 7 is the panel of whole scenic spot map, can see that the scenic spot map is divided into following components substantially: directional information, map and legend (wherein, current location information normal operation round dot represents).
In this example, whole guider as shown in Figure 8, is divided into following module: map collection and processing module 801, locating module 802, data memory module 803 and map application module 804 4 major parts.
Wherein, map gathers and processing module 801, by means of the camera on the mobile device, with the map picture on its scenic spot map panel that photographed through steps such as Digital Image Processing, text identification, extract and generate the required relevant information of electronic chart, such as current location, road information, directional information, map scale and interest point information (each sight spot, toilet, food and drink, shop etc.) etc.; Simultaneously, call positioning module, 802 position, in order to set up relevant information in the map picture and the corresponding relation of actual geographic position.
Particularly, map collection and processing module 801 comprise: Image Acquisition submodule 8011, text identification submodule 8012, image are processed submodule 8013 and are generated map submodule 8014.
Locating module 802 can use multiple localization method that mobile device provides that the actual geographic position at the current location place of extracting in map picture is determined, for example in the situation that GPS opens, can use GPS to carry out hi-Fix, and in the situation that GPS does not open, can use network positions mode (namely obtaining the geographical location information at terminal place from network side) to hang down the precision location.
Data memory module 803 is mainly used in storing the map picture that is photographed by map collection and processing module 801, the relevant information that extracts and its actual geographic positional information of determining, and corresponding data is provided when map application module 804 needs.
Map application module 804 is mainly used in providing to the user services such as map view, point of interest inquiry, walking navigation.Because required data were disposed in the generation electronic chart stage, so when stating in the use service, 804 need of map application module are read corresponding data and got final product from data memory module 803.
Particularly, map application module 804 comprises: map view submodule 8041, POI (Point of Interest, point of interest) search submodule 8042 and navigation submodule 8043.
The below is described in detail the specific works flow process that above-mentioned guider generates electronic chart, as shown in Figure 9:
S901, Image Acquisition submodule 8011 obtain map picture by the camera of terminal, and need comprise directional information and engineer's scale information in the map picture;
S902, literal recognin module 8012 and image are processed submodule 8013 and identify directional information and engineer's scale information in the map pictures that gets access to, and according to pointing to drift angle (direct north that points in the directional information and the drift angle of actual direct north) whole map picture are proofreaied and correct;
S903, map generate submodule 8014, according to directional information and engineer's scale information, set up the engineer's scale conversion relation between the pixel and actual geographic position in the map picture (namely calculate every m pixel respective distances is n lat/longitude in the map picture);
S904, Image Acquisition submodule 8011 obtain the map picture that comprises current location by the camera of terminal;
The current location that S905, literal recognin module 8012 and image are processed in 8013 pairs of map pictures of submodule is identified;
Actual geographic position (lat when S906, locating module 802 locating terminals are positioned at the current location of map picture indication0, long0);
S907, map generate the corresponding relation that submodule 8014 is set up each pixel and actual geographic position in the map picture, namely for its corresponding actual geographic position (lat, long)=(lat of the pixel (x, y) in the map picture0+ n * (x-x0)/m, long0+ n * (x-x0)/m);
S908, Image Acquisition submodule 8011 obtain legend information in the map picture by terminal camera; Concentrate on the situation of an explanation for a plurality of legends, take one and get final product; For the situation of legend scatter display, can obtain by the mode of taking successively;
S909, literal recognin module 8012 and image are processed 8013 pairs of legends of submodule and are identified, and identify each point of interest image corresponding with each legend;
S910, map generate the corresponding relation that submodule 8014 is set up each point of interest and actual geographic position in the map picture;
S911, data memory module 803 are stored the data that obtain among step S901~S910 according to certain form.
Among above-mentioned steps S901~S911, be the corresponding relation of setting up first each pixel and physical location, identify again each legend in the map picture, also can after step S903, carry out first step S908 and S909, then carry out step S904~S907.
Just can generate electronic chart by step S901~S911, follow-up map application module 804 calls the electronic chart of generation, can realize specified point and current location or another specified point distance calculating or on electronic chart the real-time depiction current location.In addition, terminal can also be positioned at the point of interest that does not identify in the map picture by other means, navigates.
A kind of electronically map generalization method, air navigation aid and device that the embodiment of the invention provides, each legend in the map picture that identification terminal gets access to, according to each legend in the map picture that identifies, identify each the road sign dot image corresponding with each legend that comprises in the map picture; Determine the actual geographic position that each road sign dot image is corresponding; Then according to each the road sign dot image that comprises and corresponding actual geographic position thereof, generate electronic chart in map picture, the embodiment of the invention also can utilize the electronic chart of generation to navigate.The method that the embodiment of the invention provides and device utilize terminal can get access to easily the situation of map picture at the sight spot, generate electronic chart according to the map picture that gets access to, then utilize electronic chart to realize navigation, for the user provides a kind of simple and convenient Navigation and localization service that is easy to realize.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.