CN105865480B - The method of adjustment and device of navigation picture display parameters - Google Patents

The method of adjustment and device of navigation picture display parameters Download PDF

Info

Publication number
CN105865480B
CN105865480B CN201610197106.4A CN201610197106A CN105865480B CN 105865480 B CN105865480 B CN 105865480B CN 201610197106 A CN201610197106 A CN 201610197106A CN 105865480 B CN105865480 B CN 105865480B
Authority
CN
China
Prior art keywords
screen
navigation picture
coordinate
display parameters
opengl
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610197106.4A
Other languages
Chinese (zh)
Other versions
CN105865480A (en
Inventor
邓健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610197106.4A priority Critical patent/CN105865480B/en
Publication of CN105865480A publication Critical patent/CN105865480A/en
Application granted granted Critical
Publication of CN105865480B publication Critical patent/CN105865480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers
    • G01C21/3667Display of a road map
    • G01C21/367Details, e.g. road map scale, orientation, zooming, illumination, level of detail, scrolling of road map or positioning of current position marker

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Navigation (AREA)
  • Instructional Devices (AREA)

Abstract

The invention discloses the methods of adjustment and device of a kind of navigation picture display parameters, wherein this method comprises: real-time update shows navigation picture in the display screen of terminal;In setting time interval, screen moving distance of the same map element in the display screen of terminal is obtained;According to the screen moving distance of acquisition, the adjustable strategies of navigation picture display parameters corresponding with the terminal are determined;It is adjusted according to the navigation picture display parameters of the adjustable strategies of the navigation picture display parameters to the terminal, and is updated using the navigation picture display parameters adjusted and show the navigation picture.Using this method, it can solve and draw frame per second inaccuracy, the poor technical problem of user experience in the prior art.

Description

The method of adjustment and device of navigation picture display parameters
Technical field
The present invention relates to airmanship more particularly to a kind of methods of adjustment and device of navigation picture display parameters.
Background technique
As the people that self-driving trip is on home leave, explores and travels are more and more, the mobile terminal with navigation feature is also got over It is more widely used, the navigation feature of mobile terminal is largely that the trip of people is brought conveniently.
One important performance indexes of the mobile terminal with navigation feature are its cruise duration, influence the master in cruise duration Wanting factor is the power consumption of navigation, and color applying drawing is the principal element for influencing navigation figure layer power consumption in figure layer module of navigating. The major way for solving mobile terminal navigation figure layer module power consumption at present is the drawing frames for reducing navigation figure layer during the navigation process Rate (namely frame number that navigation picture is drawn in mobile terminal chronomere), in the prior art mainly according to speed come dynamically Determine Present navigation figure layer drafting frame per second, such as when speed is fast we improve drafting frame per second speed it is slow when I Reduce drafting frame per second.
Defect of the existing technology is: it is accurate not enough by way of navigation picture layer draws frame per second to be calculated speed, Speed be navigation map can the smooth factor drawn, but be not unique factor.For example even if speed is special now Fastly, but if scale bar locating for Present navigation map is smaller, the mobile range of corresponding navigation map also can be fewer, this When do not need high frame per second and draw navigation map.Therefore the drafting frame per second that navigation map is calculated according to speed is inaccuracy , user experience is poor.
Summary of the invention
In view of this, the embodiment of the present invention provides the method for adjustment and device of a kind of navigation picture display parameters, to solve Frame per second inaccuracy, the poor technical problem of user experience are drawn in the prior art.
In a first aspect, the embodiment of the invention provides a kind of method of adjustment of navigation picture display parameters, the method packet It includes:
Real-time update shows navigation picture in the display screen of terminal;
In setting time interval, screen moving distance of the same map element in the display screen of terminal is obtained;
According to the screen moving distance of acquisition, the adjustment of navigation picture display parameters corresponding with the terminal is determined Strategy;
According to the adjustable strategies of the navigation picture display parameters to the navigation picture display parameters of the terminal into Row adjustment, and updated using the navigation picture display parameters adjusted and show the navigation picture.
Second aspect, the embodiment of the invention also provides a kind of adjustment device of navigation picture display parameters, described devices Include:
Navigation picture display module, for the real-time update display navigation picture in the display screen of terminal;
Moving distance obtains module, for obtaining same map element in the display screen of terminal in setting time interval Screen moving distance in curtain;
Adjustable strategies determining module, for the screen moving distance according to acquisition, determination is corresponding with the terminal The adjustable strategies of navigation picture display parameters;
Navigation picture update module, for the institute according to the adjustable strategies of the navigation picture display parameters to the terminal It states navigation picture display parameters to be adjusted, and is updated using the navigation picture display parameters adjusted and show the navigation Image.
The method of adjustment and device of navigation picture display parameters provided in an embodiment of the present invention, by setting time interval It is interior, the screen moving distance of same map element within display screen is obtained, and according to screen moving distance, determine navigation picture Then the adjustable strategies of display parameters are adjusted navigation picture display parameters according to adjustable strategies, and using adjusted Navigation picture display parameters update display navigation picture.Using this method, the adjustable strategies of navigation picture display parameters are more quasi- Really rationally, lower kwh loss of the navigation equipment in color applying drawing, promote user experience.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow diagram of the method for adjustment for navigation picture display parameters that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of the method for adjustment of navigation picture display parameters provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural block diagram of the adjustment device for navigation picture display parameters that the embodiment of the present invention three provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just In description, only some but not all contents related to the present invention are shown in the drawings.
It also should be noted that only the parts related to the present invention are shown for ease of description, in attached drawing rather than Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail At the processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart, It is that many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be by again It arranges.The processing can be terminated when its operations are completed, it is also possible to have the additional step being not included in attached drawing. The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of flow diagram of the method for adjustment for navigation picture display parameters that the embodiment of the present invention one provides. The present embodiment is applicable to the case where adjustment navigation picture display parameters.This method can be by the adjustment of navigation picture display parameters Device executes, and wherein the device can be realized by software and/or hardware, and can generally be integrated in for providing path navigation In the navigation client of service.As shown in Figure 1, the method for adjustment of navigation picture display parameters provided in this embodiment specifically can be with Include:
S110, real-time update shows navigation picture in the display screen of terminal.
Navigation picture, which refers to, to be shown in the display screen of terminal, a kind of display figure being consistent with the travel route of user Picture is guided to the driving direction to user.When navigating state, real-time display is constantly updated in the display screen of terminal Navigation picture.The navigation state, in particular to navigation client do not receive user's operation and are displayed in full screen navigation map State.
S120, in setting time interval, obtain screen of the same map element in the display screen of terminal it is mobile away from From.
Illustratively, the setting time interval can continue to preset according to the actual situation (for example, 5s, 10s or 30s etc.), but need to guarantee that same map element always show in navigation picture in setting time interval.Map element refers to The a certain specific element that geographical location determines on world map, can be specific building, such as Baidu mansion;It can also be with It is the location point of a certain determining geographical coordinate, such as latitude and longitude coordinates are the location point of (30,60).Obviously, same map element In the navigation procedure of user, geographical coordinate is fixed and invariable.
It is understood that carrying (typical, to drive to move) during navigation terminal moves, navigation in user The map element shown in image is real-time update variation, for example, when user starts navigation using navigation terminal, hundred Degree mansion shows that during user drives, Baidu mansion is moved to navigation picture in the middle position of navigation picture Upper left side position is shown, although Baidu, the display position in navigation picture, mansion is related to the position that user is currently located, The geographical coordinate of its own is fixed and invariable.
In the present embodiment, the setting time interval can be preset according to the actual situation, but be the need to ensure that In setting time interval, selected map element cannot be removed in the navigation picture of real-time display, it is preferred that can be according to navigation The scale bar of map and the movement speed of navigation terminal, the value at setting time interval described in choice of dynamical.
S130, the screen moving distance according to acquisition determine navigation picture display parameters corresponding with the terminal Adjustable strategies.
In the present embodiment, the navigation picture display parameters are specifically as follows the drafting frame per second of navigation picture, navigation picture The screen refresh rate etc. of picture, wherein the navigation picture display parameters preferably can be the drafting frame per second of navigation picture.
As stated in the background art, the prior art relies primarily on the mobile speed movement speed of navigation terminal dynamic in other words Determination navigation picture drafting frame per second, this frame per second adjustment mode is actually to have a certain limitation.Based on above-mentioned skill Art problem, list first it is all can influence navigation draw frame per second parameters, comprising: map scale, map rotation angle, Map pitch angle, speed, navigational state, user's operation state etc..And preceding 4 parameters can be used to calculate the parameter of frame per second. Inventors discovered through research that above-mentioned 4 parameters can be abstracted as a parameter to indicate, it may be assumed that same map element is being led Screen moving distance in boat map.Screen moving distance i.e. according to same map element in the display screen of terminal, really The adjustable strategies of the drafting frame per second of fixed navigation picture corresponding with the terminal.
In a concrete application scene of the present embodiment, according to the screen moving distance of acquisition, determination is corresponding with terminal The adjustable strategies of navigation picture display parameters specifically may is that screen moving distance and pre-set navigational figure according to acquisition As the linear corresponding relation of display parameters and screen moving distance, the adjustment of navigation picture display parameters corresponding with terminal is determined Value, i.e. navigation picture draw frame per second, and there are linear corresponding relations with screen moving distance.
In a specific example, navigation picture display parameters can be calculated by formula A=a+K*X;
Wherein, A indicates that navigation picture draws frame per second, and a indicates that preset benchmark draws frame per second, and K indicates preset ratio coefficient, X indicates screen moving distance.Here, it is contemplated that navigation picture draws frame per second there are a value range when practical application, can be with 3 frames/second is set by minimum frame per second, highest frame per second is set as 24 frames/second.
It is adjusted it is, of course, understood that other modes can also be taken to draw frame per second to navigation picture, for example, A frame per second adjustment table is pre-established, has recorded the corresponding navigation picture drawing frames of different screen moving distances in the table The adjusted value of rate adjusts table by inquiring the frame per second, and then can determine that corresponding navigation picture draws frame per second adjustment mode.
S140, ginseng is shown to the navigation picture of the terminal according to the adjustable strategies of the navigation picture display parameters Number is adjusted, and is updated using the navigation picture display parameters adjusted and shown the navigation picture.
Illustratively, it is carried out according to navigation picture display parameters of the adjustable strategies of the drafting frame per second of navigation picture to terminal Adjustment, obtain new navigation picture display parameters, the new navigation picture display parameters be by navigation vehicle current driving speed, The screen that these parameters are abstracted jointly in navigation image scale, navigation picture rotation angle and navigation picture pitch angle is mobile What distance determined, and navigation picture is newly updated using the navigation picture display parameters adjusted.
The method of adjustment for the navigation picture display parameters that the embodiment of the present invention one provides, by being obtained in setting time interval Take screen moving distance of the same map element in the display screen of terminal, according to the screen moving distance of acquisition, determine with The adjustable strategies of the corresponding navigation picture display parameters of terminal, and then according to the adjustable strategies of navigation picture display parameters to terminal The navigation picture display parameters be adjusted.Using this method, the adjustable strategies of navigation picture display parameters are more accurate Rationally, lower kwh loss of the navigation equipment in color applying drawing, the direct yield for allowing navigation to bring user is bigger, promotes user Experience.
Further, during the update of navigation picture display, if the scale bar adjustment for receiving user's transmission refers to It enables, then according to scale bar regulation coefficient corresponding with the scale bar adjustment instruction, the navigation picture display parameters is carried out Adjustment.
Illustratively, during the update of navigation picture display, if the scale bar adjustment for receiving user's transmission refers to It enables, such as user, it should be understood that in guidance path when the position of gas station, user can be by adjusting the ratio of navigation picture at this time The method of ruler to understand the concrete condition in guidance path in detail, and terminal receives the scale bar adjustment instruction that user sends at this time, And according to scale bar regulation coefficient corresponding with the scale bar adjustment instruction, navigation picture display parameters are adjusted, with The concrete condition in guidance path is displayed the details of, user is facilitated to understand the position of gas station in guidance path.
Embodiment two
The present embodiment provides a kind of method of adjustment of navigation picture display parameters based on above-described embodiment.Fig. 2 is this A kind of flow diagram of the method for adjustment for navigation picture display parameters that inventive embodiments two provide.Shown in showing such as Fig. 2, this reality The method of adjustment of navigation picture display parameters for applying example offer may include:
S210, real-time update shows navigation picture in the display screen of terminal.
S220, according to first when inscribe the first navigation picture for showing in the display screen, obtain and default first screen The map element shown at curtain position is corresponding to refer to geographical coordinate.
Illustratively, at the beginning of first moment can be the setting time interval, correspondingly, the first navigation Image is preferably the navigation picture shown at the beginning of setting time interval on the display screen of terminal.Further, the is preset One screen location can be at the upper left position of terminal display, be also possible to other any positions of terminal display Place is set, here preferably at the upper left position of terminal display.It inscribes when according to first and to be shown in terminal display First navigation picture obtains corresponding with the map element that default first screen location is shown with reference to ground body coordinate, Ke Yiyou It is left to obtain terminal display for the navigation picture shown in terminal display at the beginning of being selected as according to setting time interval The map element of upper angular position is corresponding to refer to geographical coordinate.Further, described to be used to indicate that generation with reference to geographical coordinate A kind of coordinate of boundary's map absolute coordinate, here preferably absolute Mercator's coordinate.
S230, according to second when inscribe in the display screen the second navigation picture for showing and with the map element It is corresponding described with reference to geographical coordinate, obtain second screen position of the map element in the display screen.
Illustratively, second moment can be the finish time at the setting time interval, correspondingly, the second navigation Image is preferably the navigation picture that shows on the display screen of the finish time terminal at setting time interval.Further, according to Map element obtained in second navigation picture and S220 is corresponding to refer to geographical coordinate, obtains the map element in terminal Show the second screen position in screen.
S240, the first screen position and second screen position are preset according to described, determines that the map element exists Show the screen moving distance in screen.
Illustratively, according to default first screen position, and the second obtained screen position, by calculating two differences Spacing distance between screen position, determine in setting time interval map element screen within display screen it is mobile away from From.
For example, the definition rule of screen coordinate, the X axis right side is incremented by, and is incremented by under Y-axis, presets the position of the first screen position Setting coordinate is (100,100), and the position coordinates of the second screen position are (400,500), according to default first screen position and Second screen position, available screen moving distance are mobile 300 unit distances of X-direction, mobile 400 units of Y direction Distance;The linear distance that can also be obtained between the first screen position and the second screen position isFor 500 unit distances.
S250, the screen moving distance according to acquisition determine navigation picture display parameters corresponding with the terminal Adjustable strategies.
S260, ginseng is shown to the navigation picture of the terminal according to the adjustable strategies of the navigation picture display parameters Number is adjusted, and is updated using the navigation picture display parameters adjusted and shown the navigation picture.
The method of adjustment of navigation picture display parameters provided by Embodiment 2 of the present invention, default the inscribed when according to first One screen position, the map element that the first screen location is shown is corresponding to refer to geographical coordinate, determines the second of the second moment Screen position determines that the screen of map element within display screen is mobile according to the first screen position and the second screen position Distance determines the adjustable strategies of navigation picture display parameters corresponding with terminal then according to screen moving distance, and according to leading The adjustable strategies for image display parameters of navigating adjust display parameters.Using this method, sat by the way that map element is corresponding with reference to geographical Mark this constant intermediate quantity, determine in setting time interval, map element screen in the display screen of terminal it is mobile away from From, and then accurate display parameters adjustable strategies, the adjustable strategies of navigation picture display parameters are obtained by screen moving distance It is more accurate reasonable, guarantee that the imperceptible navigation picture of user has the phenomenon that Caton or lag, and can significantly reduce navigation The power consumption of equipment takes into account user using smooth and equipment power saving, promotes user experience.
In a preferred embodiment of the present embodiment, map that above-mentioned acquisition and default first screen location are shown Element is corresponding to refer to geographical coordinate, may include:
It obtains and presets the corresponding first screen pixels coordinate in the first screen position with described.
Illustratively, pixel coordinate can be understood as screen pixels point coordinate, and the first screen pixels coordinate can be screen Top left corner pixel point coordinate, or other any pixel coordinates, preferably screen top left corner pixel point coordinate here, Pixel coordinate can be expressed as (0,0).
According to the corresponding relationship of screen pixels coordinate and OpenGL world coordinates, obtain and the first screen pixels coordinate Corresponding first OpenGL world coordinates.
Illustratively, screen pixels coordinate is two-dimensional coordinate, is three-dimensional coordinate, Yao Shixian screen pixels with reference to geographical coordinate Conversion between coordinate and reference geographical coordinate, needs to use OpenGL (Open Graphics Library) world coordinates.Benefit With the image-forming principle and depth buffer information technology of OpenGL, screen pixels coordinate system may be implemented and with reference between geographical coordinate Transformation.According to the corresponding relationship of screen pixels coordinate and OpenGL world coordinates, available and the first screen pixels coordinate Corresponding first OpenGL world coordinates.Typically, it can be will acquire by way of artificially writing transcode and described One screen pixels coordinate corresponding first OpenGL world coordinates can also be provided in OpenGL services package by calling directly ConvertToGL function obtains the first OpenGL world coordinates corresponding with the first screen pixels coordinate, the present embodiment pair This is simultaneously not limited.
According to the corresponding relationship between OpenGL world coordinates and geographical coordinate, and it is corresponding with first navigation picture Geographic coordinate range, determine corresponding with the first OpenGL world coordinates described with reference to geographical coordinate.
Illustratively, according to the corresponding relationship between OpenGL world coordinates and geographical coordinate, the first OpenGL generation is determined Boundary's coordinate is corresponding to refer to geographical coordinate, it should be noted that needs to guarantee that the first OpenGL world coordinates is corresponding with reference to ground Coordinate is managed in the corresponding geographic coordinate range of above-mentioned first navigation picture.For example, the first OpenGL world coordinates can be passed through It is multiplied to obtain with corresponding transformation matrix, the transformation matrix can be with are as follows: Wherein, width and height respectively refers to the width and height of terminal display, and far and near refer to that respectively refer to viewpoint puts down to remote cut Face and the nearly distance for cutting plane, two parameters of far and near are all positive numbers.
Further preferably, second screen position of the above-mentioned acquisition map element in the display screen, can wrap It includes:
According to the corresponding relationship between OpenGL world coordinates and geographical coordinate, and it is corresponding with second navigation picture Geographic coordinate range, it is determining to refer to the corresponding 2nd OpenGL world coordinates of geographical coordinate with described.
Illustratively, it inscribes at second, according to the corresponding relationship between OpenGL world coordinates and geographical coordinate, determines The 2nd OpenGL world coordinates corresponding with the reference geographical coordinate, it should be noted that need to guarantee described with reference to ground body Coordinate is in the corresponding geographic coordinate range of the second navigation picture.
According to the corresponding relationship of screen pixels coordinate and OpenGL world coordinates, obtains and sat with the 2nd world OpenGL Mark corresponding second screen pixels coordinate.
Second screen position is determined according to the second screen pixels coordinate.
Illustratively, the second screen position is determined according to the position coordinates of the second screen pixels point.
Correspondingly, determining the map element according to default first screen position and second screen position Screen moving distance within display screen can be according to default first screen pixels point coordinate and the second screen pixels point Coordinate determines screen shift position, for example, the first pixel coordinate is (0,0), the second pixel coordinate is (600,800), Then screen moving distance can calculate the distance between two o'clock according to Pythagorean theorem and obtain,For 1000 pixels.
In above-mentioned preferred embodiment, screen pixels coordinate is realized by OpenGL world coordinates and is sat with reference to geographical One three-dimensional geometry entity is correctly displayed in terminal screen by the conversion between mark in summary, needs to utilize OpenGL By a series of conversion process: being model transformation first, three-dimensional geometry entity is correctly placed in three-dimensional scenic, i.e., OpenGL world coordinates will be converted to reference to geographical coordinate;Followed by projective transformation, the three-dimensional established in scene coordinate system is several On what Object Projection to the two-dimensional imaging plane perpendicular to direction of visual lines, the vertex obtained after projective transformation is needed by vision area Transformation could obtain screen pixels coordinate to the end, i.e., OpenGL world coordinates is converted to screen pixels coordinate.
In another preferred embodiment of the present embodiment, it is not necessarily to OpenGL world coordinates, screen can be directly realized by The conversion of pixel coordinate and reference world coordinates.
Illustratively, it is first determined the definition rule of screen pixels coordinate, the X axis right side are incremented by, and are incremented by under Y-axis, reference Geographical coordinate can be indicated with longitude and latitude, it can be appreciated that be a little that on the Northern Hemisphere, latitude is incremental upwards, therefore refer to It is opposite that difference between geographical coordinate and screen pixels coordinate, which is that Y-axis is incremented by direction,.
Determine the height and width of terminal display screen, and the regional scope with reference to geographical coordinate.
Illustratively, the height of the display screen of terminal can be expressed as y, width means h;With reference to the longitude of geographical coordinate Range can be expressed as minLon-maxLon, and latitude scope can be expressed as minLat-maxLat.
Calculate the longitude and latitude that every pixel represents in screen pixels coordinate.
Illustratively, the longitude that every pixel represents in X-axis in screen pixels coordinate can be indicated with scaleX, use scaleY Indicate the latitude that every pixel represents in Y-axis:
ScaleX=h/ (maxLon-minLon);ScaleY=y/ (maxLat-minLat).
It calculates with reference to screen pixels coordinate of any point in terminal display screen in geographical coordinate.
Illustratively, it can indicate that X-axis pixel coordinate in screen pixels coordinate, screenY indicate screen picture with screenX Y-axis pixel coordinate in plain coordinate, lon indicate longitude, and lat indicates dimension values:
ScreenX=lon/scaleX;ScreenY=lat/scaleY.
The display screen of the regional scope of reference geographical coordinate and terminal is correspondingly arranged.
Illustratively, the display screen that the regional scope of reference geographical coordinate is taken to terminal completely, specifically may is that
MinX=minLon/scaleX;MinY=minLat/scaleY.
That is the corresponding left end for referring to geographic coordinate range of the left end of terminal display screen, the top of terminal display screen are right The top of geographic coordinate range should be referred to.
In conclusion obtaining the transformational relation of final screen pixels coordinate and reference geographical coordinate:
The formula of latitude and longitude coordinates conversion screen pixel coordinate are as follows:
ScreenX=(lon-minLon)/scaleX;ScreenY=(maxLat-lat)/scaleY.
The formula of screen pixels coordinate conversion latitude and longitude coordinates are as follows:
Lon=screenX*scaleX+minLon;Lat=maxLat-screenY*scaleY.
It is, of course, understood that other modes can also be taken to calculate screen coordinate and with reference between geographical coordinate Corresponding relationship, and then calculate setting time interval in, screen shift position of the same map element in navigation terminal, in turn Determine the adjustable strategies of the drafting frame per second of corresponding navigation picture.
Embodiment three
Fig. 3 is a kind of structural block diagram of the adjustment device for navigation picture display parameters that the embodiment of the present invention three provides, should Device can be implemented by software and/or hardware, and can generally be integrated in server.The present embodiment is applicable to adjustment navigation picture The case where display parameters, as shown in figure 3, the apparatus may include: navigation picture display module 301, moving distance obtain module 302, adjustable strategies determining module 303 and navigation picture update module 304.
Wherein, navigation picture display module 301, for the real-time update display navigation picture in the display screen of terminal; Moving distance obtains module 302, for obtaining same map element in the display screen of terminal in setting time interval Screen moving distance;Adjustable strategies determining module 303, for the screen moving distance according to acquisition, the determining and end Hold the adjustable strategies of corresponding navigation picture display parameters;Navigation picture update module 304, for aobvious according to the navigation picture Show that the adjustable strategies of parameter are adjusted the navigation picture display parameters of the terminal, and described is led using adjusted Image display parameters of navigating, which update, shows the navigation picture.
The adjustment device for the navigation picture display parameters that the embodiment of the present invention three provides, by being obtained in setting time interval Take screen moving distance of the same map element in the display screen of terminal, according to the screen moving distance of acquisition, determine with The adjustable strategies of the corresponding navigation picture display parameters of terminal, and then according to the adjustable strategies of navigation picture display parameters to terminal The navigation picture display parameters be adjusted.Using the present apparatus, the adjustable strategies of navigation picture display parameters are more accurate Rationally, lower kwh loss of the navigation equipment in color applying drawing, the direct yield for allowing navigation to bring user is bigger, promotes user Experience.
Further, the navigation picture display parameters can be the drafting frame per second of navigation picture.
Further, the moving distance obtains module 302, may include:
Geographical coordinate acquisition submodule inscribes the first navigation picture shown in the display screen when for according to first Picture obtains corresponding with the map element that default first screen location is shown with reference to geographical coordinate;
Screen position acquisition submodule inscribes the second navigation picture shown in the display screen when for according to second And it is corresponding with the map element it is described refer to geographical coordinate, obtain the of the map element in the display screen Two screen positions;
Moving distance determines submodule, for presetting the first screen position and second screen position according to described, Determine the screen moving distance of the map element within display screen.
Further, the reference geographical coordinate can be absolute Mercator's coordinate.
Further, the geographical coordinate acquisition submodule may include:
First pixel coordinate acquiring unit presets corresponding first screen pixels in the first screen position with described for obtaining Coordinate;
First OpenGL coordinate acquiring unit, for being closed according to screen pixels coordinate is corresponding with OpenGL world coordinates System obtains the first OpenGL world coordinates corresponding with the first screen pixels coordinate;
Geographical coordinate determination unit, for according to the corresponding relationship between OpenGL world coordinates and geographical coordinate, and Geographic coordinate range corresponding with first navigation picture determines the ginseng corresponding with the first OpenGL world coordinates Examine geographical coordinate.
Further, the screen position acquisition submodule may include:
2nd OpenGL coordinate acquiring unit, for according to the corresponding pass between OpenGL world coordinates and geographical coordinate System, and geographic coordinate range corresponding with second navigation picture, it is determining to refer to geographical coordinate corresponding second with described OpenGL world coordinates;
Second pixel coordinate acquiring unit, for the corresponding relationship according to screen pixels coordinate and OpenGL world coordinates, Obtain the second screen pixels coordinate corresponding with the 2nd OpenGL world coordinates;
Second screen position determination unit, for determining second screen position according to the second screen pixels coordinate It sets.
Further, the adjustable strategies determining module 303, specifically can be used for:
According to the screen moving distance of acquisition and the line of pre-set navigational image display parameters and screen moving distance Property corresponding relationship, determine the adjusted value of corresponding with terminal navigation picture display parameters.
Further, described device can also include:
Display parameters adjust module, for navigation picture update display during, if receive user transmission Scale bar adjustment instruction, then according to scale bar adjustment index corresponding with the scale bar adjustment instruction, to the navigation picture Display parameters are adjusted.
The adjustment device for the navigation picture display parameters that the embodiment of the present invention three provides, is mentioned with any embodiment of that present invention The method of adjustment of the navigation picture display parameters of confession belongs to same inventive concept, can be performed provided by any embodiment of the invention The method of adjustment of navigation picture display parameters, have execute navigation picture display parameters the corresponding functional module of method of adjustment and Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the navigation picture that any embodiment of that present invention provides As the method for adjustment of display parameters.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (16)

1. a kind of method of adjustment of navigation picture display parameters characterized by comprising
Real-time update shows navigation picture in the display screen of terminal;
In setting time interval, screen moving distance of the same map element in the display screen of terminal is obtained;
According to the screen moving distance of acquisition, the adjustment plan of navigation picture display parameters corresponding with the terminal is determined Slightly;
It is adjusted according to the navigation picture display parameters of the adjustable strategies of the navigation picture display parameters to the terminal It is whole, and updated using the navigation picture display parameters adjusted and show the navigation picture.
2. the method according to claim 1, wherein the navigation picture display parameters are the drafting of navigation picture Frame per second.
3. the method according to claim 1, wherein obtaining same map element in setting time interval and existing Screen moving distance in the display screen of terminal, comprising:
The first navigation picture shown in the display screen is inscribed when according to first, is obtained aobvious with default first screen location The map element shown is corresponding to refer to geographical coordinate;
The second navigation picture shown in the display screen and institute corresponding with the map element are inscribed when according to second State the second screen position that the map element is obtained with reference to geographical coordinate in the display screen;
According to default first screen position and second screen position, the map element is determined within display screen Screen moving distance.
4. according to the method described in claim 3, it is characterized in that, the reference geographical coordinate is absolute Mercator's coordinate.
5. according to the method described in claim 3, it is characterized in that, the ground that the acquisition is shown with default first screen location Pel element is corresponding to refer to geographical coordinate, comprising:
It obtains and presets the corresponding first screen pixels coordinate in the first screen position with described;
According to the corresponding relationship of screen pixels coordinate and OpenGL world coordinates, acquisition is answered with the first screen pixels coordinate pair The first OpenGL world coordinates;
According to the corresponding relationship between OpenGL world coordinates and geographical coordinate, and corresponding with first navigation picture Coordinate range is managed, is determined corresponding with the first OpenGL world coordinates described with reference to geographical coordinate.
6. according to the method described in claim 3, it is characterized in that, described obtain the map element in the display screen The second screen position, comprising:
According to the corresponding relationship between OpenGL world coordinates and geographical coordinate, and corresponding with second navigation picture Manage coordinate range, determining the 2nd OpenGL world coordinates corresponding with the reference geographical coordinate;
According to the corresponding relationship of screen pixels coordinate and OpenGL world coordinates, obtain and the 2nd OpenGL world coordinates pair The the second screen pixels coordinate answered;
Second screen position is determined according to the second screen pixels coordinate.
7. the method according to claim 1, wherein the screen moving distance according to acquisition, determines The adjustable strategies of navigation picture display parameters corresponding with the terminal include:
According to the linear right of the screen moving distance of acquisition and pre-set navigational image display parameters and screen moving distance It should be related to, determine the adjusted value of navigation picture display parameters corresponding with the terminal.
8. the method according to claim 1, wherein further include:
During the update of navigation picture display, if receiving the scale bar adjustment instruction of user's transmission, basis and institute The corresponding scale bar adjustment index of scale bar adjustment instruction is stated, the navigation picture display parameters are adjusted.
9. a kind of adjustment device of navigation picture display parameters characterized by comprising
Navigation picture display module, for the real-time update display navigation picture in the display screen of terminal;
Moving distance obtains module, for obtaining same map element in the display screen of terminal in setting time interval Screen moving distance;
Adjustable strategies determining module determines navigation corresponding with the terminal for the screen moving distance according to acquisition The adjustable strategies of image display parameters;
Navigation picture update module, for being led according to the adjustable strategies of the navigation picture display parameters to described in the terminal Boat image display parameters are adjusted, and are updated using the navigation picture display parameters adjusted and shown the navigation picture Picture.
10. device according to claim 9, which is characterized in that the navigation picture display parameters are drawing for navigation picture Frame per second processed.
11. device according to claim 9, which is characterized in that the moving distance obtains module and includes:
Geographical coordinate acquisition submodule is inscribed the first navigation picture shown in the display screen, is obtained when for according to first It takes corresponding with the map element that default first screen location is shown with reference to geographical coordinate;
Screen position acquisition submodule, inscribed when for according to second in the display screen the second navigation picture for showing and It is corresponding with the map element described with reference to geographical coordinate, obtain second screen of the map element in the display screen Curtain position;
Moving distance determines submodule, for determining according to default first screen position and second screen position The screen moving distance of the map element within display screen.
12. device according to claim 11, which is characterized in that the reference geographical coordinate is absolute Mercator's coordinate.
13. device according to claim 11, which is characterized in that the geographical coordinate acquisition submodule includes:
First pixel coordinate acquiring unit, for obtaining the first screen pixels seat corresponding with default first screen position Mark;
First OpenGL coordinate acquiring unit is obtained for the corresponding relationship according to screen pixels coordinate and OpenGL world coordinates Take the first OpenGL world coordinates corresponding with the first screen pixels coordinate;
Geographical coordinate determination unit, for according to the corresponding relationship between OpenGL world coordinates and geographical coordinate, and with institute The corresponding geographic coordinate range of the first navigation picture is stated, is determined corresponding with the first OpenGL world coordinates described with reference to ground Manage coordinate.
14. device according to claim 11, which is characterized in that the screen position acquisition submodule includes:
2nd OpenGL coordinate acquiring unit, for according to the corresponding relationship between OpenGL world coordinates and geographical coordinate, with And geographic coordinate range corresponding with second navigation picture, determining twoth OpenGL corresponding with the reference geographical coordinate World coordinates;
Second pixel coordinate acquiring unit is obtained for the corresponding relationship according to screen pixels coordinate and OpenGL world coordinates The second screen pixels coordinate corresponding with the 2nd OpenGL world coordinates;
Second screen position determination unit, for determining second screen position according to the second screen pixels coordinate.
15. device according to claim 9, which is characterized in that the adjustable strategies determining module is specifically used for:
According to the linear right of the screen moving distance of acquisition and pre-set navigational image display parameters and screen moving distance It should be related to, determine the adjusted value of navigation picture display parameters corresponding with the terminal.
16. device according to claim 9, which is characterized in that described device further include:
Display parameters adjust module, for navigation picture update display during, if receive user transmission ratio Ruler adjustment instruction shows the navigation picture then according to scale bar adjustment index corresponding with the scale bar adjustment instruction Parameter is adjusted.
CN201610197106.4A 2016-03-31 2016-03-31 The method of adjustment and device of navigation picture display parameters Active CN105865480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610197106.4A CN105865480B (en) 2016-03-31 2016-03-31 The method of adjustment and device of navigation picture display parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610197106.4A CN105865480B (en) 2016-03-31 2016-03-31 The method of adjustment and device of navigation picture display parameters

Publications (2)

Publication Number Publication Date
CN105865480A CN105865480A (en) 2016-08-17
CN105865480B true CN105865480B (en) 2019-04-05

Family

ID=56627513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610197106.4A Active CN105865480B (en) 2016-03-31 2016-03-31 The method of adjustment and device of navigation picture display parameters

Country Status (1)

Country Link
CN (1) CN105865480B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106847068B (en) * 2017-01-22 2018-11-23 腾云天宇科技(北京)有限公司 A kind of map conversion method, device and calculate equipment
CN111724488B (en) * 2019-06-25 2022-09-09 腾讯科技(深圳)有限公司 Map scene drawing method and device, readable storage medium and computer equipment
CN113345028B (en) * 2021-06-01 2022-04-26 亮风台(上海)信息科技有限公司 Method and equipment for determining target coordinate transformation information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442710A (en) * 2008-12-22 2009-05-27 宇龙计算机通信科技(深圳)有限公司 Method for updating map information of mobile terminal, system and mobile terminal
CN101587178A (en) * 2008-05-21 2009-11-25 威航科技股份有限公司 Method for outputting data updating rate of dynamic optimized GPS receiver
CN103699236A (en) * 2013-12-27 2014-04-02 无锡英斯特微电子有限公司 Frame rate control method for low-power photoelectric navigation system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9355585B2 (en) * 2012-04-03 2016-05-31 Apple Inc. Electronic devices with adaptive frame rate displays
CN105157698B (en) * 2015-09-17 2019-07-12 百度在线网络技术(北京)有限公司 A kind of method and apparatus that navigation picture is drawn

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587178A (en) * 2008-05-21 2009-11-25 威航科技股份有限公司 Method for outputting data updating rate of dynamic optimized GPS receiver
CN101442710A (en) * 2008-12-22 2009-05-27 宇龙计算机通信科技(深圳)有限公司 Method for updating map information of mobile terminal, system and mobile terminal
CN103699236A (en) * 2013-12-27 2014-04-02 无锡英斯特微电子有限公司 Frame rate control method for low-power photoelectric navigation system

Also Published As

Publication number Publication date
CN105865480A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN107193372B (en) Projection method from multiple rectangular planes at arbitrary positions to variable projection center
CN105448184B (en) The method for drafting and device of map road
CN105865480B (en) The method of adjustment and device of navigation picture display parameters
CN105427361B (en) The display methods of moving-target track in a kind of three-dimensional scenic
CN105095314B (en) A kind of mask method of point of interest, terminal, navigation server and navigation system
JP2010503078A (en) Mosaic diagonal image and method of creating and using mosaic diagonal image
CN105575254B (en) Electronic map road rendering method and device
JP3225882B2 (en) Landscape labeling system
JP2010117291A (en) Navigation device
CN102521586A (en) High-resolution three-dimensional face scanning method for camera phone
CN101578636A (en) Displaying elevation information from a digital map
CN103487059B (en) A kind of Position Fixing Navigation System, device and method
CN106780308A (en) A kind of perspective image transform method
JP4533191B2 (en) 3D map display device and 3D map display program
US20190128692A1 (en) Navigation system and navigation program
CN107478235A (en) The dynamic map based on template obtains system under network environment
CN105427371B (en) The method that the elemental areas such as Drawing Object are shown is kept in a kind of three-dimensional perspective projection scene
JP5921753B2 (en) Map drawing device
CN112053445A (en) Method for drawing AR image and storage medium
JPH1186035A (en) Distance reference type scenery labeling device and system therefor
CN106484850A (en) Panoramic table display packing and device
CN109840943B (en) Three-dimensional visual analysis method and system
JP3156649B2 (en) Deformable label landscape labeling device and system
CN113085886B (en) Track display method based on steering wheel rotation angle in automatic driving system
CN113568700B (en) Display picture adjusting method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant