CN108090212A - Methods of exhibiting, device, equipment and the storage medium of point of interest - Google Patents

Methods of exhibiting, device, equipment and the storage medium of point of interest Download PDF

Info

Publication number
CN108090212A
CN108090212A CN201711476516.3A CN201711476516A CN108090212A CN 108090212 A CN108090212 A CN 108090212A CN 201711476516 A CN201711476516 A CN 201711476516A CN 108090212 A CN108090212 A CN 108090212A
Authority
CN
China
Prior art keywords
interest
point
rotation
unit matrix
screen
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.)
Granted
Application number
CN201711476516.3A
Other languages
Chinese (zh)
Other versions
CN108090212B (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.)
Baidu Online Network Technology Beijing Co Ltd
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 CN201711476516.3A priority Critical patent/CN108090212B/en
Publication of CN108090212A publication Critical patent/CN108090212A/en
Application granted granted Critical
Publication of CN108090212B publication Critical patent/CN108090212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of methods of exhibiting of point of interest, device, equipment and storage mediums.Wherein, the described method includes:Determine point of interest and the position relationship of terminal, the position relationship includes:Range-azimuth;The position of the point of interest is converted to by screen coordinate according to the position relationship;The information of the point of interest is shown in the screen coordinate position.The technical issues of point of interest is with terminal location relation can not be embodied in real scene image in the prior art by solving, and realize the technique effect that point of interest and the position relationship of terminal can be shown in screen picture.

Description

Methods of exhibiting, device, equipment and the storage medium of point of interest
Technical field
The present embodiments relate to digital map navigation technical field more particularly to a kind of methods of exhibiting side of point of interest, device, Terminal and storage medium.
Background technology
At present, user can check the position of point of interest (Point of Interest, POI), and root by electronic map POI and the position relationship of user's present position are determined according to navigation.But this kind of method can not intuitively show real scene Position relationship between POI.
With the popularization of the camera function on smart mobile phone, enhancing outdoor scene function is carried out based on camera acquired image Be developed into may.At present, there is the product that real scene navigation is carried out based on camera acquired image, it can be in outdoor scene In image add in point of interest information, but this kind of mode be it is passive drawn by graphic package interface, can not be in image It is middle to embody point of interest and the position relationship of present terminal position.
The content of the invention
In view of this, an embodiment of the present invention provides a kind of methods of exhibiting of point of interest, device, equipment and storage medium, To realize the purpose that point of interest and the position relationship of terminal are shown in screen picture.
In a first aspect, an embodiment of the present invention provides a kind of methods of exhibiting of point of interest, including:
Determine point of interest and the position relationship of terminal, the position relationship includes:Range-azimuth;
The position of the point of interest is converted to by screen coordinate according to the position relationship;
The information of the point of interest is shown in the screen coordinate position.
Second aspect, the embodiment of the present invention additionally provide a kind of displaying device of point of interest, including:
Position relationship determining module, for determining the position relationship of point of interest and terminal, the position relationship includes:Distance With orientation;
Modular converter, for the position of the point of interest to be converted to screen coordinate according to the position relationship;
Display module, for the information of the point of interest to be shown in the screen coordinate position.:
The third aspect, the embodiment of the present invention additionally provide a kind of equipment, including:
One or more processors;
Storage device, for storing one or more programs;
Screen, for showing image;
Camera, for gathering image;
Gyroscope turns to magnitude for obtaining screen turning;
When one or more of programs are performed by one or more of processors so that one or more of processing Device realize as above-described embodiment offer it is any as described in point of interest methods of exhibiting.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer Program, when which is executed by processor realize as above-described embodiment offer it is any as described in point of interest methods of exhibiting.
Methods of exhibiting, device, equipment and the storage medium of point of interest provided in an embodiment of the present invention, by obtain terminal with The position relationship of point of interest, and the position of the point of interest is converted to by screen coordinate according to the position relationship, and by described in The information of point of interest is shown in the screen coordinate position.Solve can not be embodied in real scene image in the prior art it is emerging The technical issues of interesting point and terminal location relation, point of interest and the position relationship of terminal can be shown in screen picture by realizing Technique effect.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the flow chart of the methods of exhibiting for the point of interest that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the methods of exhibiting of point of interest provided by Embodiment 2 of the present invention;
Fig. 3 is the flow chart of the methods of exhibiting for the point of interest that the embodiment of the present invention three provides;
Fig. 4 is the flow chart of the methods of exhibiting for the point of interest that the embodiment of the present invention four provides;
Fig. 5 be the embodiment of the present invention five provide point of interest methods of exhibiting in a kind of display image screen;
Fig. 6 is the structure chart of the displaying device for the point of interest that the embodiment of the present invention four provides;
Fig. 7 is the structure chart for the equipment that the embodiment of the present invention six 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 limitation of the invention.It also should be noted that in order to just Part related to the present invention rather than entire infrastructure are illustrated only in description, attached drawing.
Embodiment one
Fig. 1 is the flow chart of the conversion method for the coordinate that the embodiment of the present invention one provides, and the present embodiment is applicable to will be emerging The world coordinates of interest point is converted to the situation of screen coordinate, and this method can be performed by the conversion equipment of coordinate, specifically included Following steps:
Step 110 determines point of interest and the position relationship of terminal, and the position relationship includes:Range-azimuth.
Screen coordinate usually can be a kind of relative coordinate, and therefore, it is necessary to determine the position pass of point of interest and terminal first System.At present, it may be employed and install iBeacon low power dissipation electron bluetooth equipments additional in point of interest, and pass through the indigo plant with being configured at terminal Tooth equipment communicates, and terminal determines point of interest and the position relationship of terminal according to the signal received.But this kind of method needs IBeacon low power dissipation electron bluetooth equipments are installed additional in each point of interest, and implementation cost is higher.Therefore, in the present embodiment, may be used The position relationship of point of interest and terminal is determined with the location coordinate information using the point of interest in existing electronic map.It is exemplary , it can get the position coordinates of point of interest according to electronic map database, and GPS that terminal configures or use can be passed through The modes such as WIFI positioning get the position coordinates of the terminal.It can be according to the position coordinates of the point of interest and the position of terminal Put the distance of coordinate calculating therebetween.And the company between the position coordinates of the point of interest and the position coordinates of terminal can be established Line, to determine the position coordinates of the point of interest compared with the orientation of the terminal.Distance can be represented with d, institute is represented with a State the angle of line and positive North and South direction.
The position of the point of interest is converted to screen coordinate by step 120 according to the position relationship.
In the present embodiment, it is necessary to which point of interest is shown on the screen, so that user can pass through viewing screen Determine the relation between the point of interest and current location.Therefore, it is necessary to the point of interest is arranged at corresponding position in screen It puts.Therefore, it is necessary to which the position of the point of interest is converted to screen coordinate, screen coordinate is comparable to the position in the screen upper left corner For, it is to be equivalent to the horizontal and vertical distance in the screen upper left corner by this point and positioned.Coordinate origin is located at screen The upper left corner.Illustratively, the position of the point of interest can be converted into screen coordinate by rotating translation and projection operation.Cause For screen coordinate is generated compared with the position where present terminal, and therefore, it is necessary to the position coordinateses according to the point of interest The position of the point of interest is converted to screen coordinate by the relation of the current location of relatively described terminal.
The information of the point of interest is shown by step 130 in the screen coordinate position.
Illustratively, the information of the point of interest can include:The icon of the point of interest, the title of point of interest and interest Point can simply introduce the relevant information of the point of interest with the distance of present terminal position etc..The information of the point of interest is given birth to Into corresponding image, and described image is arranged at screen coordinate position determined by the above method and is shown, so that handy Family can recognize the relevant information of the point of interest by viewing screen, and can recognize between point of interest and current location Position relationship.The point of interest is reached using the information of the point of interest of the screen coordinate position displaying user that can navigate.
Optionally, the quantity of the point of interest can be not limited to one or multiple.It, can when being shown Respectively to be shown the information of each point of interest accordingly in its corresponding screen coordinate position, so that user can root Desirable point of interest is gone to according to the information of the point of interest, further improves the usage experience of user.
The present embodiment is by obtaining the position relationship of terminal and point of interest, and according to the position relationship by the point of interest Position be converted to screen coordinate, and the information of the point of interest is shown in the screen coordinate position.It solves existing Have in technology can not be embodied in real scene image point of interest and terminal location relation the technical issues of, realize in screen picture In can show the technique effect of point of interest and the position relationship of terminal.
Embodiment two
Fig. 2 is the flow diagram of the methods of exhibiting of point of interest provided by Embodiment 2 of the present invention.The present embodiment is with above-mentioned It optimizes based on embodiment, in the present embodiment, is turned the position of the point of interest according to the position relationship by described Screen coordinate is changed to, is specifically optimized for:Rotation translation unit matrix is established, and sets the ginseng of the rotation translation unit matrix Number, the parameter include view center, viewpoint and vector definition upwards;According to the orientation to the rotation translation unit matrix Rotation transformation is carried out, and translation transformation is carried out to the rotation translation unit matrix for completing rotation transformation according to the distance;It establishes General perspective unit matrix, and according to the viewport parameter setting of setting general perspective unit matrix six face parameters;According to It completes the translation of the rotation after translation transformation unit matrix, general perspective matrix and viewport parameter and determines conversion parameter;According to described Conversion parameter determines the screen coordinate of the point of interest.
Correspondingly, the methods of exhibiting of point of interest provided in this embodiment, including:
Step 210 determines point of interest and the position relationship of terminal, and the position relationship includes:Range-azimuth.
Step 220 establishes rotation translation unit matrix, and sets the parameter of the rotation translation unit matrix, the ginseng Number includes view center, viewpoint and vector definition upwards
Conversion for coordinate mathematically can be defined and realized using the method for matrix operation.With expression matrix Formula is come when calculating these conversion, translation is that matrix is added, and rotation and scaling are then matrix multiples, and p ' can be expressed as by integrating =m1*p+m2 (m1 rotates scaled matrix, and m2 is translation matrix, and p is former vector, and p ' is the vector after conversion).The rotary flat It is a kind of default matrix provided in Android (Android) system development bag to move unit matrix, is usually the unit of a 4*4 Matrix.It can be the matrix for being converted to the virtual world in screen.If will to the object in virtual world into Row rotation, transfer or change in size are required for translating unit matrix using the rotation.Wherein, the rotation translation unit square 3 components in battle array are used to represent X, Y and Z component under three-dimensional system of coordinate.It is 3-dimensional to carry out a script using the 4th component Vector is represented with 4 dimensional vectors.Usually there are X=x/w, Y=y/w and Z=z/w.Mark three-dimensional corresponding one of the mark of making Amount, is a unit matrix.Any one point v, coordinate v '=Mv after coordinate transform in corresponding space.
Further, since it is to need to be converted to screen coordinate, it is necessary to set the ginseng of corresponding rotation translation unit matrix Number.The parameter of the rotation translation unit matrix can include:View center, viewpoint and vector definition upwards.The viewpoint can To be the position of user's viewing, since the position of user's viewing influences the arrangement of image, it is therefore desirable to define viewpoint.Due to terminal Distance with the point of interest is d, then can be arranged to viewpoint ((0,0 ,-d)).View center determines the center of rotation, It therefore, can be centrally disposed for (0,0,0) by view.And under normal viewing, user head-up, corresponds to screen Positive direction of the y-axis, so in this case, it is therefore desirable to which definition vector definition upwards is worked as specifically, could be provided as (0,1,0) So (0,1,0) is a unit vector.
Step 230 carries out rotation transformation according to the orientation to the rotation translation unit matrix, and according to the distance Translation transformation is carried out to the rotation translation unit matrix for completing rotation transformation.
Due to point of interest with terminal there are gun parallax, it is necessary to be rotated to it.Therefore, can be calculated according to the above method Obtained orientation carries out rotation transformation to the rotation translation unit matrix.Illustratively, the rotation can be translated unit Matrix is rotated in X-direction, and the angle of rotation is the corresponding angle a in the orientation.It, can be according to institute after completing to rotate It states point of interest to be translated with the distance between terminal d, since d is relative distance, can be carried out by affine transformation Translation transformation.Illustratively, the rotation for completing rotation transformation can be translated unit matrix to be multiplied by array (0,0, d, 1) complete Into translation transformation in the Z-axis direction.Illustratively, the rotation translation unit matrix after completion rotation transformation is multiplied by array (0,0, d, 1) can obtain array F1=(f0, f1, f2, f3)
It is because if first being translated, in the view of the rotation why by the way of first rotating and translating afterwards The heart is accordingly changed, and the result rotated is different from first being rotated the result translated afterwards.In view of reality In the process, revolved view center should not convert, it is thus impossible to using first translating the calculation rotated afterwards.
Step 240 establishes general perspective unit matrix, and the general perspective unit according to the viewport parameter setting of setting Six face parameters of matrix.
Similar, the general perspective unit matrix is also a kind of default matrix provided in Android system development kit, The usually unit matrix of a 4*4.The purpose of projection be equivalent to three-dimensional geometry body is converted into one kind can be as two dimensional image The form rendered.The general perspective can be that all projection lines are all vertical with final drawing surface.The reality of object is big Small and projection size remains unchanged.Using general perspective unit matrix, the three-dimensional coordinate of point of interest can be projected to screen On position.The general perspective unit matrix needs to set six face parameters, and the effect of the six faces parameter is one cuboid of setting, Object only in cuboid can be just projected on screen.Six face parameter can be determined according to viewport parameter.The viewport It can be the size of the client area in screen for viewing.The viewport parameter can be the height and width of client area.Optionally, root Viewport parameter is set according to screen size.In the present embodiment, for display effect the considerations of, is typically carried out with state all over the screen Display.Correspondingly, the screen of setting screen a height of w, width h, under state all over the screen, six set face parameters are specifically as follows (- 0.25,0.25, -0.25/w*h, 0.25/w*h, 0.1,2*d), wherein, -0.25 is the left side of the cuboid, described 0.25 For the right side of cuboid ,-the 0.25/w*h is the bottom surface of cuboid, and the 0.25/w*h is the top surface of cuboid, described 0.1 For nearly face, the 2*d is remote face, why remote face is arranged to 2*d, it is contemplated that the cuboid is allowed for the interest Point is included, and therefore, is set as 2*d, to ensure the point of interest in the cuboid.
Step 250, the rotation translation unit matrix according to after completion translation transformation, general perspective matrix and viewport parameter are true Determine conversion parameter.
The conversion parameter can be model (M), view (V), the synthesis for projecting (P) three kinds of matrixings.I.e. MVPMatrix=PrijectionMatrix*ViewMatrix*ModelMatrix*vertex.Each point is equivalent to first to carry out Model conversion (rotation of translation scaling) carries out view transformation and projective transformation again.
Illustratively, the rotary flat completed after translation transformation that the general perspective matrix and the above method can be obtained The array F1 for moving unit matrix is multiplied, and obtains another array F2 (f4, f5, f6, f7).Then, f7 is subjected to assignment again, by f7 It is assigned a value of 1/-f2.If f2 is 0, illustrate the coordinate of the point of interest not in screen.By the f4, f5, f6 respectively with F7 after duplication is mutually multiplied, and obtains new f4, f5, f6.The position of the point of interest can be calculated using aforesaid way Correspondence of the coordinate after translation transformation and projection with screen coordinate.But above-mentioned parameter is to carry out computing according to unit to obtain , therefore, it is also desirable to be converted into corresponding screen coordinate system.Therefore, it is also desirable to which viewport parameter determines conversion parameter.Example Property, array V=(0,0, w, h) is established according to the height and width of the viewport, the w is Viewport height, and the h is wide for viewport Degree.When carrying out display all over the screen, the w can be screen height, and the h is screen width.
Step 260, the screen coordinate that the point of interest is determined according to the conversion parameter.
Illustratively, the screen coordinate of the point of interest can be calculated in the following way:
X=(f4*0.5+0.5) * V [2]+V [0], y=V [3]-((f5*0.5+0.5) * V [3]+V [1]).
Why the calculation formula of X-coordinate needs to be multiplied with V [2] i.e. W, is because above-mentioned f4*0.5+0.5 is a normalizing The coefficient of change, for numeric distribution between (0,1), therefore, it is necessary to be converted into screen coordinate.Such as:Using situation all over the screen as Example, f4*0.5+0.5 0.7, the height of the screen is 1000, then corresponding screen x coordinate is then 700.And calculating y's In the process, since coordinate (0, the 0) point of screen is located at the upper left corner of screen, therefore, it is necessary to its height subtract the coefficient with The product of height.
The position of the point of interest is converted to screen coordinate by the present embodiment by described according to the position relationship, specific excellent It turns to:Rotation translation unit matrix is established, and sets the parameter of the rotation translation unit matrix, the parameter is included in view The heart, viewpoint and vector definition upwards;Rotation transformation is carried out to the rotation translation unit matrix according to the orientation, and according to institute It states distance and translation transformation is carried out to the rotation translation unit matrix for completing rotation transformation;Establish general perspective unit matrix, and root According to six face parameters of general perspective unit matrix described in the viewport parameter setting of setting;According to the rotary flat after completion translation transformation It moves unit matrix, general perspective matrix and viewport parameter and determines conversion parameter;The point of interest is determined according to the conversion parameter Screen coordinate.Rotation translation and projective transformation, and root are carried out by establishing rotation translation unit matrix and general perspective matrix The screen coordinate of the POI is determined according to screen size, the world coordinates of point of interest can be accurately converted to screen coordinate.
Embodiment three
Fig. 3 is the flow diagram of the methods of exhibiting for the point of interest that the embodiment of the present invention three provides.The present embodiment is with above-mentioned It optimizes based on embodiment, in the present embodiment, the rotation translation unit matrix is being revolved according to the orientation Before transformation alternatively, it can also increase following steps:Screen turning is obtained by the gyroscope for being configured at terminal and turns to magnitude;And by described in Rotation transformation is carried out to the rotation translation unit matrix according to the orientation, is specifically optimized for:According to the orientation and screen It overturns vector value and rotation transformation is carried out to the rotation translation unit matrix.
Correspondingly, the methods of exhibiting of point of interest provided in this embodiment, including:
Step 310 determines point of interest and the position relationship of terminal, and the position relationship includes:Range-azimuth.
Step 320 establishes rotation translation unit matrix, and sets the parameter of the rotation translation unit matrix, the ginseng Number includes view center, viewpoint and vector definition upwards.
Step 330 obtains screen turning steering magnitude by being configured at the gyroscope of terminal.
Gyroscope is called angular-rate sensor, is configured at rotational angular velocity when deflection can be measured in terminal, being tilted.Its Principle be the direction of the rotation axis meaning of rotating object when being influenced from external force, will not change.A variety of methods can be used The direction indicated by axis is read, and data-signal is transmitted to control system automatically.In the present embodiment, the gyroscope can be Three-axis gyroscope can distinguish measuring terminals X-axis, Y-axis and Z axis overturning vector value.
Step 340 carries out rotation change according to the orientation and screen turning steering magnitude to the rotation translation unit matrix It changes, and translation transformation is carried out to the rotation translation unit matrix for completing rotation transformation according to the distance.
In user's using terminal, especially in gait processes, it is difficult to ensure that terminal is in a normal placement state, The normal placement state can include:The screen vertical of terminal is in horizontal plane, and terminal screen upper and lower side frame is parallel to level Face.When terminal is in and deflects or is tilting, since screen generates offset, the screen coordinate of the point of interest also can phase Variation should be generated.Therefore need to turn to magnitude according to the screen turning and the method determines the screen coordinate of point of interest.
When terminal rotates, the three-dimensional coordinate that can be regarded as the point of interest is rotated, therefore, can basis The orientation and screen turning turn to magnitude and carry out rotation transformation to the rotation translation unit matrix.Illustratively, according to above-mentioned It is respectively (r0, r1, r2) that method and step, which can determine that screen turning turns to magnitude, then the rotation is translated unit matrix exists respectively [1,0,0], [0,1,0], [0,0,1] rotation r1+a, r0, r2.
Step 350 establishes general perspective unit matrix, and the general perspective unit according to the viewport parameter setting of setting Six face parameters of matrix.
Step 360, the rotation translation unit matrix according to after completion translation transformation, general perspective matrix and viewport parameter are true Determine conversion parameter.
Step 370, the screen coordinate that the point of interest is determined according to the conversion parameter.
The information of the point of interest is shown by step 380 in the screen coordinate position.
The present embodiment is by before rotation transformation is carried out to the rotation translation unit matrix according to the orientation, may be used also Increase following steps:Screen turning is obtained by the gyroscope for being configured at terminal and turns to magnitude;And by described according to the orientation pair The rotation translation unit matrix carries out rotation transformation, is specifically optimized for:Magnitude is turned to institute according to the orientation and screen turning It states rotation translation unit matrix and carries out rotation transformation.Rotation transformation can be adjusted according to the posture of screen, can be directed to The overturning vector value of screen determines the screen coordinate position of the point of interest, so that user can be according to the screen of the point of interest Curtain coordinate position finds the point of interest.
Example IV
Fig. 4 is the flow diagram of the methods of exhibiting for the point of interest that the embodiment of the present invention four provides.The present embodiment is with above-mentioned Optimized based on embodiment, in the present embodiment, can by the information of the point of interest the screen coordinate position into Row displaying, is specifically optimized for:The interest point information is carried out in the screen coordinate position and original display content component layer It has been shown that, original display content include:The image that camera gathers in real time.
Correspondingly, the methods of exhibiting of point of interest provided in this embodiment, including:
Step 410 determines point of interest and the position relationship of terminal, and the position relationship includes:Range-azimuth.
The position of the point of interest is converted to screen coordinate by step 420 according to the position relationship.
Step 430 shows the interest point information in the screen coordinate position and original display content component layer Show, original display content includes:The image that camera gathers in real time.
Since the interest point information and the original display content of screen are built by different modes render respectively, because This, if shown in a figure layer, needs to merge the two and shows again, not only complex steps, but also Since the screen coordinate position needs to carry out real-time update, display is carried out in a figure layer needs the terminal to have relatively by force Graphic operation ability.It in the present embodiment, can be by interest point information in the screen coordinate position and original display content Component layer is shown.User to be facilitated to observe the information of the point of interest and the screen coordinate position of the point of interest.Fig. 5 is A kind of display image screen in the point of interest methods of exhibiting that the embodiment of the present invention four provides.As seen from Figure 5, it is described original aobvious It can be the image that camera gathers in real time to show content.Original display content is set as the image that camera gathers in real time, it can It is preferably combined with the screen position coordinate with the point of interest, enables a user to the screen position according to the point of interest Coordinate finds the point of interest.
The present embodiment is specifically optimized for by the way that the information of the point of interest is shown in the screen coordinate position: The interest point information is shown in the screen coordinate position and original display content component layer, in original display Appearance includes:The image that camera gathers in real time.Display effect can be optimized, facilitate user according to being found screen coordinate position Point of interest, and the graphic operation amount of the terminal can be reduced.
Embodiment five
Fig. 6 is the structure chart of the displaying device for the point of interest that the embodiment of the present invention five provides, as shown in fig. 6, described device Including:
Position relationship determining module 510, for determining the position relationship of point of interest and terminal, the position relationship includes: Range-azimuth;
Modular converter 520, for the position of the point of interest to be converted to screen coordinate according to the position relationship;
Display module 530, for the information of the point of interest to be shown in the screen coordinate position.
The displaying device of point of interest provided in this embodiment, by obtaining the position relationship of terminal and point of interest, and according to The position of the point of interest is converted to screen coordinate by the position relationship, and the information of the point of interest is sat in the screen Cursor position is shown.The technology of point of interest and terminal location relation can not be embodied in real scene image in the prior art by solving Problem realizes the technique effect that point of interest and the position relationship of terminal can be shown in screen picture.
On the basis of the various embodiments described above, the modular converter, including:
Rotation translation unit matrix establishes unit, rotates translation unit matrix for establishing, and sets the rotation translation The parameter of unit matrix, the parameter include view center, viewpoint and vector definition upwards;
Converter unit, for carrying out rotation transformation to the rotation translation unit matrix according to the orientation, and according to institute It states distance and translation transformation is carried out to the rotation translation unit matrix for completing rotation transformation;
General perspective unit matrix establishes unit, for establishing general perspective unit matrix, and is joined according to the viewport of setting Number sets six face parameters of the general perspective unit matrix;
Conversion parameter determination unit, for according to rotation translation unit matrix, the general perspective square after completion translation transformation Battle array and viewport parameter determine conversion parameter;
Determination unit, for determining the screen coordinate of the point of interest according to the conversion parameter.
On the basis of the various embodiments described above, described device further includes:
Acquisition module obtains screen turning by the gyroscope for being configured at terminal and turns to magnitude;
The converter unit, including:
Rotation transformation subelement, for turning to magnitude to the rotation translation unit matrix according to the orientation and screen turning Carry out rotation transformation.
On the basis of the various embodiments described above, described device further includes:
Parameter setting module, for setting viewport parameter according to screen size.
On the basis of the various embodiments described above, the display module includes:
Display unit, for by the interest point information the screen coordinate position and original display content component layer into Row display, original display content include:The image that camera gathers in real time.
The displaying device for the point of interest that the embodiment of the present invention is provided can perform any embodiment of the present invention provided it is emerging The methods of exhibiting of interest point, possesses the corresponding function module of execution method and advantageous effect.
Embodiment six
Fig. 7 is a kind of structure diagram for equipment that the embodiment of the present invention six provides.Fig. 7 shows to be used for realizing this The block diagram of the example devices 12 of invention embodiment.The equipment 12 that Fig. 7 is shown is only an example, should not be to of the invention real The function and use scope for applying example bring any restrictions.
As shown in fig. 7, equipment 12 is showed in the form of universal computing device.The component of equipment 12 can include but unlimited In:One or more processor or processing unit 16, system storage 28, connection different system component (are deposited including system Reservoir 28 and processing unit 16) bus 18.
Bus 18 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises various computing systems readable medium.These media can be it is any can be by equipment 12 The usable medium of access, including volatile and non-volatile medium, moveable and immovable medium.
System storage 28 can include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable, Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable , non-volatile magnetic media (Fig. 7 do not show, commonly referred to as " hard disk drive ").Although not shown in Fig. 7, use can be provided In to moving the disc driver of non-volatile magnetic disk (such as " floppy disk ") read-write and to moving anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 18.Memory 28 can include at least one program product, The program product has one group of (for example, at least one) program module, these program modules are configured to perform each implementation of the invention The function of example.
Program/utility 40 with one group of (at least one) program module 42 can be stored in such as memory 28 In, such program module 42 include but not limited to operating system, one or more application program, other program modules and Program data may include the realization of network environment in each or certain combination in these examples.Program module 42 is usual Perform the function and/or method in embodiment described in the invention.
Equipment 12 can also communicate with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.), Can also be enabled a user to one or more equipment interacted with the equipment 12 communication and/or with enable the equipment 12 with Any equipment (such as network interface card, modem etc.) communication that one or more of the other computing device communicates.It is this logical Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or The multiple networks of person (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown in the figure, Network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that it although not shown in the drawings, can combine Equipment 12 uses other hardware and/or software module, includes but not limited to:Microcode, device driver, redundant processing unit, External disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, so as to perform various functions application and Data processing, such as realize the methods of exhibiting for the point of interest that the embodiment of the present invention is provided.
Embodiment seven
The embodiment of the present invention seven additionally provides a kind of computer readable storage medium, is stored thereon with computer program, Be characterized in that, when which is executed by processor realize as above-described embodiment offer it is any as described in point of interest displaying side Method..
The arbitrary of one or more computer-readable media may be employed in the computer storage media of the embodiment of the present invention Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device or arbitrary above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Tool There are one or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or storing program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.Diversified forms may be employed in the data-signal of this propagation, including but it is unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, which can send, propagates or transmit and be used for By instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can write to perform the computer that operates of the present invention with one or more programming languages or its combination Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully performs, partly perform on the user computer on the user computer, the software package independent as one performs, portion Divide and partly perform or perform on a remote computer or server completely on the remote computer on the user computer. Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or Wide area network (WAN)-be connected to subscriber computer or, it may be connected to outer computer (such as is carried using Internet service Pass through Internet connection for business).
Moreover, it will be appreciated that although this specification is described in terms of embodiments, but not each embodiment is only wrapped Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should Using specification as an entirety, the technical solution in each embodiment can also be mutually combined, and forming those skilled in the art can With the other embodiment of understanding.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various apparent variations, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of methods of exhibiting of point of interest, which is characterized in that including:
Determine point of interest and the position relationship of terminal, the position relationship includes:Range-azimuth;
The position of the point of interest is converted to by screen coordinate according to the position relationship;
The information of the point of interest is shown in the screen coordinate position.
2. according to the method described in claim 1, it is characterized in that, it is described according to the position relationship by the position of the point of interest It puts and is converted to screen coordinate, including:
Rotation translation unit matrix is established, and sets the parameter of the rotation translation unit matrix, the parameter is included in view The heart, viewpoint and vector definition upwards;
Rotation transformation is carried out to the rotation translation unit matrix according to the orientation, and is become according to the distance to completing rotation The rotation translation unit matrix changed carries out translation transformation;
General perspective unit matrix is established, and six faces of general perspective unit matrix according to the viewport parameter setting of setting are joined Number;
Conversion parameter is determined according to rotation translation unit matrix, general perspective matrix and the viewport parameter after completion translation transformation;
The screen coordinate of the point of interest is determined according to the conversion parameter.
3. according to the method described in claim 2, it is characterized in that, unit matrix is being translated to the rotation according to the orientation Before carrying out rotation transformation, further include:
Screen turning is obtained by the gyroscope for being configured at terminal and turns to magnitude;
It is described that rotation transformation is carried out to the rotation translation unit matrix according to the orientation, including:
Magnitude is turned to according to the orientation and screen turning, rotation transformation is carried out to the rotation translation unit matrix.
4. according to the method described in claim 2, the method further includes:
Viewport parameter is set according to screen size.
5. according to the method described in claim 1, it is characterized in that, the information by the point of interest is in the screen coordinate Position is shown, including:
The interest point information is shown in the screen coordinate position and original display content component layer, it is described original aobvious Show that content includes:The image that camera gathers in real time.
6. a kind of displaying device of point of interest, which is characterized in that including:
Position relationship determining module, for determining the position relationship of point of interest and terminal, the position relationship includes:Distance and side Position;
Modular converter, for the position of the point of interest to be converted to screen coordinate according to the position relationship;
Display module, for the information of the point of interest to be shown in the screen coordinate position.
7. device according to claim 6, which is characterized in that the modular converter, including:
Rotation translation unit matrix establishes unit, rotates translation unit matrix for establishing, and sets the rotation translation unit The parameter of matrix, the parameter include view center, viewpoint and vector definition upwards;
Converter unit, for according to the orientation to it is described rotation translation unit matrix carry out rotation transformation, and according to it is described away from Translation transformation is carried out from the rotation translation unit matrix to completing rotation transformation;
General perspective unit matrix establishes unit, for establishing general perspective unit matrix, and is set according to the viewport parameter of setting Six face parameters of the fixed general perspective unit matrix;
Conversion parameter determination unit, for according to complete translation transformation after rotation translation unit matrix, general perspective matrix and Viewport parameter determines conversion parameter;
Determination unit, for determining the screen coordinate of the point of interest according to the conversion parameter.
8. device according to claim 7, which is characterized in that described device further includes:
Acquisition module obtains screen turning by the gyroscope for being configured at terminal and turns to magnitude;
The converter unit, including:
Rotation transformation subelement carries out the rotation translation unit matrix for turning to magnitude according to the orientation and screen turning Rotation transformation.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
Screen, for showing image;
Camera, for gathering image;
Gyroscope turns to magnitude for obtaining screen turning;
When one or more of programs are performed by one or more of processors so that one or more of processors are real The now methods of exhibiting of the point of interest as described in any in claim 1-5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The methods of exhibiting of the point of interest as described in any in claim 1-5 is realized during execution.
CN201711476516.3A 2017-12-29 2017-12-29 Method, device and equipment for showing interest points and storage medium Active CN108090212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711476516.3A CN108090212B (en) 2017-12-29 2017-12-29 Method, device and equipment for showing interest points and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711476516.3A CN108090212B (en) 2017-12-29 2017-12-29 Method, device and equipment for showing interest points and storage medium

Publications (2)

Publication Number Publication Date
CN108090212A true CN108090212A (en) 2018-05-29
CN108090212B CN108090212B (en) 2020-10-16

Family

ID=62180005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711476516.3A Active CN108090212B (en) 2017-12-29 2017-12-29 Method, device and equipment for showing interest points and storage medium

Country Status (1)

Country Link
CN (1) CN108090212B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846902A (en) * 2018-06-20 2018-11-20 百度在线网络技术(北京)有限公司 The methods of exhibiting and equipment of point of interest
CN109559382A (en) * 2018-12-04 2019-04-02 百度在线网络技术(北京)有限公司 Intelligent guide method, apparatus, terminal and medium
CN110942521A (en) * 2019-11-27 2020-03-31 北京新势界科技有限公司 AR information point display method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080178087A1 (en) * 2007-01-19 2008-07-24 Microsoft Corporation In-Scene Editing of Image Sequences
CN104599232A (en) * 2015-01-21 2015-05-06 山东大学 Augmented reality method based on topocentric coordinate system and perspective projection
CN104731783A (en) * 2013-12-18 2015-06-24 高德软件有限公司 Method and device for showing interesting points
CN107478217A (en) * 2017-08-16 2017-12-15 城市生活(北京)资讯有限公司 A kind of POI display methods and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080178087A1 (en) * 2007-01-19 2008-07-24 Microsoft Corporation In-Scene Editing of Image Sequences
CN104731783A (en) * 2013-12-18 2015-06-24 高德软件有限公司 Method and device for showing interesting points
CN104599232A (en) * 2015-01-21 2015-05-06 山东大学 Augmented reality method based on topocentric coordinate system and perspective projection
CN107478217A (en) * 2017-08-16 2017-12-15 城市生活(北京)资讯有限公司 A kind of POI display methods and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846902A (en) * 2018-06-20 2018-11-20 百度在线网络技术(北京)有限公司 The methods of exhibiting and equipment of point of interest
CN108846902B (en) * 2018-06-20 2019-07-30 百度在线网络技术(北京)有限公司 The methods of exhibiting and equipment of point of interest
CN109559382A (en) * 2018-12-04 2019-04-02 百度在线网络技术(北京)有限公司 Intelligent guide method, apparatus, terminal and medium
CN110942521A (en) * 2019-11-27 2020-03-31 北京新势界科技有限公司 AR information point display method and device
CN110942521B (en) * 2019-11-27 2024-03-08 北京新势界科技有限公司 AR information point display method and device

Also Published As

Publication number Publication date
CN108090212B (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN107564089B (en) Three-dimensional image processing method, device, storage medium and computer equipment
CN109214980A (en) A kind of 3 d pose estimation method, device, equipment and computer storage medium
US8850337B2 (en) Information processing device, authoring method, and program
TW201928884A (en) Superimposition device of virtual guiding indication and reality image and the superimposition method thereof
US20110285703A1 (en) 3d avatar service providing system and method using background image
CN107729707B (en) Engineering construction lofting method based on mobile augmented reality technology and BIM
CN108090212A (en) Methods of exhibiting, device, equipment and the storage medium of point of interest
WO2020149270A1 (en) Method for generating 3d object arranged in augmented reality space
CN109621415A (en) Display control method and device in 3D game, computer storage medium
CN106569696B (en) Method and system for rendering output panoramic image and portable terminal
CN114812608A (en) Parameter calibration method and device for visual inertial system, electronic equipment and medium
CN111833243B (en) Data display method, mobile terminal and storage medium
CN108344401A (en) Localization method, device and computer readable storage medium
CN112017133B (en) Image display method and device and electronic equipment
EP4050563A1 (en) Electronic device for providing indoor positioning and method therefor
CN114419226A (en) Panorama rendering method and device, computer equipment and storage medium
CN109489654A (en) Rendering method, device, equipment and the storage medium of navigation routine
CN105898272A (en) 360-degree image loading method, loading module and mobile terminal
CN107845061A (en) Image processing method, device and terminal
CN110276794A (en) Information processing method, information processing unit, terminal device and server
CN110096134A (en) A kind of VR handle ray shake antidote, device, terminal and medium
CN109241059A (en) A kind of building method of point cloud data, device, electronic equipment and storage medium
CN108846902B (en) The methods of exhibiting and equipment of point of interest
CN112181230A (en) Data display method and device and electronic equipment
CN106990838B (en) Method and system for locking display content in virtual reality mode

Legal Events

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