CN112000337B - Method and device for adjusting vehicle identification, electronic equipment and readable storage medium - Google Patents

Method and device for adjusting vehicle identification, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112000337B
CN112000337B CN202010778686.2A CN202010778686A CN112000337B CN 112000337 B CN112000337 B CN 112000337B CN 202010778686 A CN202010778686 A CN 202010778686A CN 112000337 B CN112000337 B CN 112000337B
Authority
CN
China
Prior art keywords
display position
target window
display
navigation interface
information
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
CN202010778686.2A
Other languages
Chinese (zh)
Other versions
CN112000337A (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 Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian 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 Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN202010778686.2A priority Critical patent/CN112000337B/en
Publication of CN112000337A publication Critical patent/CN112000337A/en
Application granted granted Critical
Publication of CN112000337B publication Critical patent/CN112000337B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application discloses a method and a device for adjusting vehicle identification, electronic equipment and a readable storage medium, and belongs to the technical field of display. The method comprises the following steps: and determining the position information and the size information of the target window on the navigation interface in response to detecting that the target window is displayed on the navigation interface. And acquiring first attribute information of the navigation interface before the target window is displayed and a first display position of the vehicle identifier on the navigation interface before the target window is displayed. And determining a second display position of the vehicle identifier on the navigation interface according to the position information, the size information and the first attribute information. And adjusting the vehicle identifier from the first display position to the second display position through the invoked position adjustment interface. According to the method and the device, after the second display position is determined, the vehicle identification can be adaptively adjusted according to the displayed target window by only calling one position adjustment interface. The vehicle identification adjusting method has good adjusting effect and flexible adjusting mode.

Description

Method and device for adjusting vehicle identification, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of display technologies, and in particular, to a method and apparatus for adjusting a vehicle identifier, an electronic device, and a readable storage medium.
Background
With the development of display technology, the application scenes of the display technology are more and more, and the vehicle navigation scene is one of them. In a vehicle navigation scenario, a vehicle identification is often displayed on a navigation interface to indicate where a user's driving vehicle is located in a navigation path. When the window on the navigation interface is updated, the display position of the vehicle logo needs to be adaptively adjusted, so that the updated window is prevented from affecting the display of the vehicle logo.
In the related art, the designer of each window provides a position adjustment interface of the vehicle identifier. When any window is updated, the display position of the vehicle identification is adjusted by calling a position adjustment interface corresponding to any window.
As can be seen, the related art requires a designer to provide a position adjustment interface for each window, which increases the workload of the designer. In addition, in the case of multiple windows on the navigation interface, multiple different position adjustment interfaces need to be invoked. If a conflict occurs among the plurality of position adjustment interfaces, the error adjustment of the display position of the vehicle identifier is caused. Therefore, the method provided by the related technology is complex to realize, has poor adjusting effect and is not flexible in adjusting mode.
Disclosure of Invention
The embodiment of the application provides a method, a device, electronic equipment and a readable storage medium for adjusting a vehicle identifier, which are used for solving the problems of complex implementation, poor adjustment effect and inflexible adjustment mode of related technologies. The technical scheme is as follows:
in one aspect, a method of adjusting a vehicle identification is provided, the method comprising:
in response to detecting that a target window is displayed on a navigation interface, determining position information and size information of the target window on the navigation interface;
acquiring first attribute information of the navigation interface before the target window is displayed and a first display position of the vehicle identifier on the navigation interface before the target window is displayed;
determining a second display position of the vehicle identifier on the navigation interface according to the position information, the size information and the first attribute information;
and calling a position adjustment interface, and adjusting the vehicle identifier from the first display position to the second display position through the position adjustment interface.
In an exemplary embodiment, before determining the position information and the size information of the target window on the navigation interface, the method further includes: acquiring a window configuration file, wherein the window configuration file is used for indicating whether the target window influences the display position of the vehicle identifier; and responding to the window configuration file to indicate that the target window influences the display position of the vehicle identifier, and then executing the determination of the position information and the size information of the target window on the navigation interface.
In an exemplary embodiment, the determining the second display position of the vehicle identifier on the navigation interface according to the position information, the size information and the first attribute information includes: determining a first region on the navigation interface based on the position information, the size information, and the first attribute information; acquiring a second area which can be used for displaying the vehicle identifier on the navigation interface before the target window is displayed, and determining a first position relation between a first display position and the second area; determining a second positional relationship of the second display position and the first region based on the first positional relationship; and determining the second display position in the first area according to the second position relation between the second display position and the first area.
In an exemplary embodiment, the determining a first area on the navigation interface based on the location information, the size information, and the first attribute information includes: determining a position adjustment direction of the vehicle identifier; and determining the first area according to the position adjustment direction, the position information, the size information and the first attribute information, wherein the first area is used for determining a second display position which has deviation from the first display position in the position adjustment direction and has no deviation in other directions except the position adjustment direction.
In an exemplary embodiment, the adjusting the vehicle identification from the first display position to the second display position through the position adjustment interface includes: calculating a position deviation value between the second display position and the first display position; and adjusting the first display position according to the position deviation value through the position adjustment interface.
In an exemplary embodiment, after the calculating the position deviation value between the second display position and the first display position, the method further includes: acquiring a position compensation value, and compensating the position deviation value according to the position compensation value to obtain a compensated position deviation value; the adjusting, by the position adjustment interface, the first display position according to the position deviation value includes: and adjusting the first display position according to the compensated position deviation value through the position adjustment interface.
In an exemplary embodiment, after the adjusting the vehicle identification from the first display position to the second display position through the position adjustment interface, the method further includes: in response to detecting that the target window stops being displayed on the navigation interface, acquiring second attribute information of the navigation interface before the target window stops being displayed, and a third display position of the vehicle identifier on the navigation interface before the target window stops being displayed; determining a fourth display position of the vehicle identifier on the navigation interface according to the position information, the size information and the second attribute information; and adjusting the vehicle identifier from the third display position to the fourth display position.
In one aspect, an apparatus for adjusting a vehicle identification is provided, the apparatus comprising:
the first determining module is used for determining the position information and the size information of the target window on the navigation interface in response to the detection that the target window is displayed on the navigation interface;
the acquisition module is used for acquiring first attribute information of the navigation interface before the target window is displayed and a first display position of the vehicle identifier on the navigation interface before the target window is displayed;
a second determining module, configured to determine a second display position of the vehicle identifier on the navigation interface according to the location information, the size information, and the first attribute information;
and the adjusting module is used for calling a position adjusting interface and adjusting the vehicle identifier from the first display position to the second display position through the position adjusting interface.
In an exemplary embodiment, the obtaining module is further configured to obtain a window configuration file, where the window configuration file is used to indicate whether the target window affects a display position of the vehicle identifier; the first determining module is further configured to determine, in response to the window configuration file indicating that the target window affects the display position of the vehicle identifier, position information and size information of the target window on the navigation interface.
In an exemplary embodiment, the second determining module is configured to determine a first area on the navigation interface based on the location information, the size information, and the first attribute information; acquiring a second area which can be used for displaying the vehicle identifier on the navigation interface before the target window is displayed, and determining a first position relation between a first display position and the second area; determining a second positional relationship of the second display position and the first region based on the first positional relationship; and determining the second display position in the first area according to the second position relation between the second display position and the first area.
In an exemplary embodiment, the second determining module is configured to determine a position adjustment direction of the vehicle identifier; and determining the first area according to the position adjustment direction, the position information, the size information and the first attribute information, wherein the first area is used for determining a second display position which has deviation from the first display position in the position adjustment direction and has no deviation in other directions except the position adjustment direction.
In an exemplary embodiment, the adjustment module is configured to calculate a position deviation value between the second display position and the first display position; and adjusting the first display position according to the position deviation value through the position adjustment interface.
In an exemplary embodiment, the obtaining module is further configured to obtain a position compensation value, and compensate the position deviation value according to the position compensation value to obtain a compensated position deviation value; the adjusting module is configured to adjust, through the position adjusting interface, the first display position according to the compensated position deviation value.
In an exemplary embodiment, the adjustment module is further configured to, in response to detecting that the target window is stopped being displayed on the navigation interface, obtain second attribute information of the navigation interface before the target window is stopped being displayed, and a third display position of the vehicle identifier on the navigation interface before the target window is stopped being displayed; determining a fourth display position of the vehicle identifier on the navigation interface according to the position information, the size information and the second attribute information; and adjusting the vehicle identifier from the third display position to the fourth display position.
In one aspect, an electronic device is provided that includes a memory and a processor; the memory has stored therein at least one instruction that is loaded and executed by the processor to implement the method of adjusting a vehicle identification provided by any of the exemplary embodiments of the present application.
In one aspect, a readable storage medium having at least one instruction stored therein is provided, the instruction being loaded and executed by a processor to implement a method of adjusting a vehicle identification provided by any of the exemplary embodiments of the present application.
In another aspect, a computer program or computer program product is provided, the computer program or computer program product comprising: computer instructions, when executed by a computer, cause the computer to implement the method of adjusting vehicle identification provided by any of the exemplary embodiments of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
when the display position of the vehicle logo is adaptively adjusted after the target window is displayed, a different position adjustment interface is not required to be respectively called for each window on each navigation interface, but only one position adjustment interface is required to be called after the second display position is determined. Therefore, even if a plurality of windows are displayed on the navigation interface, incorrect adjustment of the display position of the vehicle logo is not caused by conflict among a plurality of position adjustment interfaces. Therefore, the vehicle identification adjustment method has good adjustment effect and flexible adjustment mode. In addition, for the designer of the target window, the corresponding position adjustment interface is not required to be provided for the target window, so that the workload of the designer is reduced, and the method is simpler to realize.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
FIG. 2 is a flow chart of a method of adjusting vehicle identification provided by an embodiment of the present application;
FIG. 3 is a schematic flow chart of adjusting a vehicle identifier according to an embodiment of the present application;
FIG. 4 is a schematic view of a window configuration file according to an embodiment of the present application;
FIG. 5 is a schematic view of a first region provided in an embodiment of the present application;
FIG. 6 is a schematic view of a first region provided in an embodiment of the present application;
FIG. 7 is a schematic view of a first region provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a device for adjusting a vehicle identifier according to an embodiment of the present application;
fig. 9 is a block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a method for adjusting a vehicle identifier, which can be applied to an implementation environment shown in fig. 1. In fig. 1, at least one electronic device 11 and a server 12 are included, the electronic device 11 being communicatively connectable to the server 12 for downloading from the server 12 a window profile for indicating respective windows that may affect a display location of a vehicle identification.
The electronic device 11 may be any electronic product that can perform man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, a voice interaction or a handwriting device, for example, a PC (Personal Computer, a personal computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant, a personal digital assistant), a wearable device, a palm computer PPC (Pocket PC), a tablet computer, a smart car machine, a smart television, a smart speaker, etc.
The server 12 may be a server, a server cluster comprising a plurality of servers, or a cloud computing service center.
Those skilled in the art will appreciate that the above-described electronic device 11 and server 12 are by way of example only, and that other existing or future-occurring electronic devices or servers, as applicable, are also within the scope of the present application and are hereby incorporated by reference herein.
Based on the implementation environment shown in fig. 1 and referring to fig. 2, an embodiment of the present application provides a method for adjusting a vehicle identifier, which can be applied to the electronic device shown in fig. 1. As shown in fig. 2, the method includes the following steps 201-204.
In response to detecting that the target window is displayed on the navigation interface, position information and size information of the target window on the navigation interface are determined 201.
The navigation interface is an interface provided by a navigation APP (Application) and used for displaying a window. When the application icon of the navigation class APP is selected, the navigation class APP is correspondingly started, so that the interface where the application icon is located is switched to the navigation interface. The windows that the navigation interface can display include, but are not limited to, page-type windows and message box windows. The page type window is, for example, a user login page, an electronic map page, a user setting page and the like, and the message box window is, for example, a message box generated by an APP pushing message, for example, a message box generated by a navigation APP pushing real-time traffic event. It will be appreciated that the page-type window and the message box window described above are merely examples, and that other windows not illustrated can be used for display on the navigation interface. In addition, the navigation interface can be used to display a vehicle identification. The vehicle identifier is used for indicating the current position of the vehicle driven by the user in the navigation path, so that the user can know the information such as the road section shape of each road section which does not arrive temporarily in the navigation path in advance, and the driving experience of the user is guaranteed.
The location information and size information of the target window on the navigation interface are inherent properties of the target window, and the location and size information is often provided by a designer of the target window or is determined according to user settings. The position information is used for indicating the position of the target window on the navigation interface, and the size information is used for indicating the length and the width of the target window. The size information is used to indicate that the length and width are rectangular for the target window. In response to the shape of the target window being other, the size information is any information that can describe the other shape, e.g., the size information includes the length of each side of the other shape.
For example, referring to fig. 3, the electronic device provided in the present embodiment may include a detection module and an offset (offset) calculation module. The detection module is used for detecting the display and the hiding of the target window, and in response to the detection module detecting that the target window is displayed on the navigation interface, a control instruction can be sent to the offset calculation module so as to trigger the offset calculation module to determine the position information and the size information of the target window on the navigation interface. Illustratively, the control instruction is a map window update (MapViewChange) instruction.
It can be understood that determining the position information and the size information of the target window on the navigation interface is as follows: and adjusting the display position of the vehicle identification on the navigation interface. Therefore, the position size information of the target window needs to be determined only when the displayed target window affects the display position of the vehicle logo. And for the situation that the displayed target window does not influence the display position of the vehicle logo, the position and the size information of the target window do not need to be determined.
For this reason, in an exemplary embodiment, referring to fig. 3, before determining the position information and the size information of the target window on the navigation interface, the method further includes: a window profile is obtained that indicates whether the target window affects the display location of the vehicle identification. And responding to the window configuration file to indicate that the target window influences the display position of the vehicle identifier, and then executing the determination of the position and the size information of the target window on the navigation interface.
Wherein, the window configuration file stores at least one window affecting the display position of the vehicle logo. In response to the target window being one of the windows stored in the window configuration file, it is indicated that the target window affects the display position of the vehicle logo, and thus it is necessary to determine the position information and the size information of the target window on the navigation interface. For example, fig. 4 is an exemplary window configuration file (offsetConfig) provided in an embodiment of the present application, where the window stored in the window configuration file that affects the display position of the vehicle identifier includes an electronic map window (navipanview) and a point of interest detail window (poidetaileview).
For example, since the position information and the size information are inherent attributes provided by a designer or determined according to user settings, the position information and the size information of the target window can be directly obtained by reading the installation package of the APP to which the target window belongs. In this embodiment, the position information and the size information of the target window are first read from the installation package, and then whether the display position of the vehicle identifier is affected by the target window is determined according to the position information and the size information of the target window. And then, correspondingly storing the window influencing the display position of the vehicle identifier, the position information and the size information of the window in a window configuration file. Therefore, after the display position of the vehicle logo is influenced by the target window according to the video configuration file, the window configuration file can be continuously read, so that the position information and the size information of the target window are determined.
The reason why whether the target window affects the display position of the vehicle logo or not can be determined according to the position information and the size information of the target window is that: before and after the display of the target window, the area and the shape of the area on the navigation interface for displaying the vehicle mark can be determined according to the position information and the size information. In response to such a change affecting the display position of the vehicle identification, the target window may be determined to be a window affecting the vehicle identification.
For example, a vehicle identification is displayed at a center point on the navigation interface prior to the display of the target window. And responding to the position information and the size information of the target window to indicate that the target window covers the central point of the navigation interface, indicating that the target window covers the vehicle logo after being displayed, and determining that the target window is the window which affects the display position of the vehicle logo. Accordingly, in response to the position information and the size information of the target window indicating that the target window does not cover the center point of the navigation interface, the target window can be determined to be a window which does not affect the display position of the vehicle logo.
Of course, the above manner of determining whether the target window will affect the display position of the vehicle logo based on the position information and the size information is merely an example. In practical application, the window configuration file can be configured by a designer according to experience or practical requirements, so that the window which can influence the display position of the vehicle identifier can be flexibly adjusted. In this case, even if the display position of the vehicle logo is not affected by the target window determined based on the position information and the size information, the target window may be stored in the window configuration file for aesthetic reasons, and when the target window is updated on the navigation interface, the display position of the vehicle logo may be adaptively adjusted according to the target window.
202, acquiring first attribute information of a navigation interface before the target window is displayed and a first display position of a vehicle identifier on the navigation interface before the target window is displayed.
Illustratively, the first attribute information of the navigation interface includes at least one of a display mode, an interface size, and an interface shape of the navigation interface. The display modes comprise a vertical screen mode and a horizontal screen mode, and the determined interface sizes are different in different display modes. And under the condition that the display mode is a vertical screen mode, the bottom edge length of the interface is equal to the bottom edge length of the electronic equipment, and the side edge length of the interface is equal to the side edge length of the electronic equipment. And when the display mode is a horizontal screen mode, the bottom edge length of the interface is the same as the side edge length of the electronic equipment, and the side edge length of the interface is the same as the bottom edge length of the electronic equipment. And before the target window is displayed, other windows are also displayed on the navigation interface, and the first attribute information also comprises the position information and the size information of the other windows.
In addition, the interface shape of the navigation interface is adapted to the screen type of the electronic device. For example, if the screen type of the electronic device is a rectangular screen, the interface shape of the navigation interface is also rectangular. Alternatively, if the screen type of the electronic apparatus is a screen (also referred to as Liu Haibing) including an image pickup element mounting area, the interface shape of the navigation interface is a rectangle with a notch, and the notch shape is the same as the shape of the image pickup element mounting area.
For the first display position of the vehicle identifier on the navigation interface before the target window is displayed, it should be noted that the first display position may be an actual position on the navigation interface, or may be indication information for indicating that the vehicle identifier is not displayed on the navigation interface. In the former case, the vehicle identification is already displayed on the navigation interface before the target window is displayed. In the latter case, the vehicle identification is not displayed on the navigation interface prior to the display of the target window.
It should be noted that 201 and 202 do not limit the execution sequence of determining the position information and the size information of the target window, acquiring the first attribute information of the navigation interface, and acquiring the first display position of the vehicle identifier on the navigation interface, and any feasible execution sequence may be adopted according to the need in this embodiment.
And 203, determining a second display position of the vehicle identifier on the navigation interface according to the position information, the size information and the first attribute information.
The second display position of the vehicle identifier on the navigation interface is the position where the vehicle identifier should be displayed after the display of the target window. It should be noted that, the second display position may be an actual position on the navigation interface, and after the target window is displayed, the vehicle identifier needs to be transferred from the original first display position to the second display position for displaying. Alternatively, the second display location may be a virtual location for indicating that the vehicle identification is not located on the navigation interface. In this case, the vehicle identification is stopped directly on the navigation interface for display after the display of the target window.
In an exemplary embodiment, a second display location of the vehicle identification on the navigation interface is determined based on the location information, the size information, and the first attribute information, including steps 2031-2034 as follows.
2031, determining a first area on the navigation interface based on the location information, the size information, and the first attribute information.
The first area is an area which can be used for displaying the vehicle identification after the target window is displayed. As can be seen from the description of the first attribute information in 202, the first attribute information of the navigation interface includes at least one of a display mode, an interface size and an interface shape of the navigation interface, and may further include position information and size information of other windows displayed on the navigation interface before the target window is displayed. For example, the present embodiment may first determine, according to the first attribute information, a second area on the navigation interface that can be used to display the vehicle identifier before the target window is displayed, and determine the first area based on the second area in combination with the position information and the size information of the target window.
When the second area is determined according to the first attribute information, the maximum display area on the navigation interface can be determined according to at least one of the display mode, the interface size and the interface shape of the navigation interface included in the first attribute information. If the first attribute information does not include the position information and the size information of other windows, it is indicated that no other window is displayed on the navigation interface before the target window is displayed, and therefore the maximum display area can be used as the second area. If the first attribute information further includes position information and size information of other windows, determining a window which cannot be used for displaying the vehicle identifier from the other windows, and determining an area which cannot be used for displaying the vehicle identifier on the navigation interface according to the position information and the size information of the window which cannot be used for displaying the vehicle identifier. And deleting the area which cannot be used for displaying the vehicle identification from the maximum display area, wherein the remaining area in the maximum display area is the second area.
Illustratively, the present embodiment may further intercept an area of the reference shape from an irregular area as the second area in consideration of the fact that the remaining area in the maximum display area may be the irregular area. For example, the present embodiment may intercept the maximum inscribed rectangle (rect) from the irregular region as the second region. Of course, the present embodiment is not limited to the above-described reference shape. The reference shape may be other shapes than rectangular for example, such as circular, oval, diamond, etc., determined empirically or as desired.
After the second area is determined, the first area can be determined by combining the position information and the size information of the target window on the basis of the second area. The manner of determining the first area includes, but is not limited to, the following three cases:
case one: if the target window can be used for displaying the vehicle identification, determining the area where the target window is located according to the position information and the size information of the target window, and taking the union area of the area where the target window is located and the second area as a first area or taking the area of the reference shape obtained by cutting from the union area as the first area.
And a second case: if the target window cannot be used for displaying the vehicle identification, but the area where the target window is located and the second area do not have an overlapping area, the second area can be directly used as the first area.
And a third case: if the target window cannot be used for displaying the vehicle logo and an overlapping area exists between the area where the target window is located and the second area, deleting the overlapping area from the second area, taking the remaining area in the second area as a first area or taking the area of the reference shape obtained by cutting out from the remaining area as the first area.
Further, in the third case, the present embodiment may also determine the first region as follows. In an exemplary embodiment, determining a first region on a navigation interface based on location information, size information, and first attribute information includes: a position adjustment direction of the vehicle identification is determined. And determining a first area according to the position adjustment direction, the position information, the size information and the first attribute information, wherein the first area is used for determining a second display position which has deviation from the first display position in the position adjustment direction and has no deviation in other directions except the position adjustment direction.
Illustratively, the position adjustment direction in the present embodiment includes at least one of a first direction and a second direction that are perpendicular to each other. The first direction comprises a direction parallel to the bottom edge of the electronic device and perpendicular to the side edge of the electronic device, and the second direction comprises a direction perpendicular to the bottom edge of the electronic device and parallel to the side edge of the electronic device. For example, referring to fig. 4, the position adjustment direction is stored in the window configuration file, where the x-axis direction is the first direction and the y-axis direction is the second direction. In the case shown in fig. 4, since only the x-axis direction participates in the calculation, the x-axis direction is the above-described position adjustment direction. In addition, the first direction and the second direction are merely examples, and other directions may be used as the position adjustment direction according to actual needs in the present embodiment.
When the first area is determined in combination with the position adjustment direction, the length of the target window in the position adjustment direction, the length of the second area in the position adjustment direction, and the length of the second area in other directions than the position adjustment direction are determined, respectively. Then, a length difference between the length of the second region in the position adjustment direction and the length of the target window in the position adjustment direction is calculated, and the length difference is determined as the length of the first region in the position adjustment direction. Then, the length of the second region in the other direction than the position adjustment direction is directly used as the length of the first region in the other direction, thereby obtaining the first region.
For example, fig. 5 shows a case where the position adjustment direction is the first direction. It can be seen that the first region and the second region after the display of the target window differ only in the length of the first direction and not in the second direction compared to the second region before the display of the target window. That is, the display of the target window only affects the second area in the first direction, and does not affect the length of the second area in the second direction. Accordingly, fig. 6 shows a case where the position adjustment direction is the second direction, and fig. 7 shows a case where the position adjustment direction is the first direction and the second direction.
Since the first region and the second region differ only in the position adjustment direction, when the first display position in the second region is subsequently adjusted according to the first region, the second display position obtained is also deviated from the first display position only in the position adjustment direction, and no deviation exists in other directions than the position adjustment direction.
2032, acquiring a second area capable of being used for displaying the vehicle identifier on the navigation interface before the target window is displayed, and determining a first positional relationship between the first display position and the second area.
The manner of acquiring the second area may be referred to in 2031, and will not be described herein. Because the first display position and the second area are obtained, the first position relation between the first display position and the second area can be determined. The first positional relationship may indicate that the first display position is located at a center point of the second area, or may indicate that the first display position is located at any point other than the center point in the second area.
2033, determining a second positional relationship of the second display position and the first area based on the first positional relationship.
Illustratively, determining the second positional relationship of the second display position with the first region based on the first positional relationship includes: the first positional relationship is taken as a second positional relationship. Taking the example that the first position relationship indicates that the first display position is located at the center point of the second area, the second position relationship may also indicate that the second display position is located at the center point of the first area.
Alternatively, determining the second positional relationship based on the first positional relationship includes: and obtaining the corresponding relation between the first position relation and the second position relation. And determining a position relation corresponding to the first position relation according to the corresponding relation, and taking the position relation corresponding to the first position relation as a second position relation. For example, the first positional relationship indicating that the first display position is located at the center point of the second area corresponds to the positional relationship indicating that the second display position is located at the reference point of the first area. After the first positional relationship is acquired, the positional relationship corresponding to the first positional relationship, which is used to indicate that the second display position is located at the reference point of the first area, may be taken as the second positional relationship. Illustratively, the reference point is a point at a reference distance from the center point, and the reference distance is not limited in this embodiment.
2034 determining a second display position in the first region based on the second positional relationship of the second display position to the first region.
Since the first region has been determined in 2031, the second display position can be determined from the second positional relationship of the second display position and the first region. For example, if the second positional relationship indicates that the second display position is located at the center point of the first region, the center point of the first region may be determined so that the center point of the first region is taken as the second display position.
And 204, calling a position adjustment interface, and adjusting the vehicle identifier from the first display position to the second display position through the position adjustment interface.
The position adjustment interface is an interface which can be used for controlling the display position of the vehicle identifier. In an exemplary embodiment, adjusting the vehicle identification from the first display position to the second display position via the position adjustment interface includes: a positional deviation value between the second display position and the first display position is calculated. And adjusting the first display position according to the position deviation value through the position adjustment interface.
And when the second display position is the actual position on the navigation interface, the position deviation value can be obtained by directly calculating according to the first display position and the second display position. After the position deviation value is obtained, the vehicle identification can be adjusted from the first display position to the second display position through the called interface according to the position deviation value. Alternatively, the first display position may be used as the position deviation value when the second display position is a virtual position for indicating that the vehicle identification is not located on the navigation interface. The position adjustment interface adjusts according to the position deviation value, so that the vehicle identification stops displaying at the first display position, namely the vehicle identification stops displaying on the navigation interface.
In addition, since the second display position is a position obtained based on the calculation process, the second display position may have a problem of not conforming to the viewing preference of the user enough and not being beautiful enough. Thus, referring to FIG. 3, after the offset calculation module determines the second display position, the compensation module may also make appropriate adjustments to the second display position. In an exemplary embodiment, after calculating the position deviation value between the second display position and the first display position, the method further comprises: and acquiring a position compensation value, and compensating the position deviation value according to the position compensation value to obtain a compensated position deviation value. Correspondingly, adjusting the first display position according to the position deviation value through the position adjustment interface comprises: and adjusting the first display position according to the compensated position deviation value through the position adjustment interface.
For example, referring to fig. 4, the custom shown in fig. 4 is the position compensation value described above. In the case shown in fig. 4, the position compensation value in the first direction is 90 pixels, and the position compensation value in the second direction is 0 pixels. Of course, the present embodiment does not limit the position compensation value, and the position compensation value may be a value determined according to experience or actual needs. For example, in this embodiment, a reference display area may be determined in the navigation interface, and in response to the second display position not being located in the reference display area, the minimum distance between the second display position and the reference display area is taken as the position compensation value.
Illustratively, the reference display area defaults to a central area in the navigation interface, and in response to the second display position not being located in the reference display area, it is indicated that the second display position is off-center and not aesthetically pleasing, and thus compensation for the second display position is required. Alternatively, the reference display area is an area that is determined according to user settings and that meets the user's personal viewing preferences. In response to the second display position not being located in the reference display area, it is indicated that the second display position does not correspond to the user's personal viewing preferences and compensation is also required for the second display position.
In an exemplary embodiment, after the vehicle identification is adjusted from the first display position to the second display position through the position adjustment interface, the method further comprises: and in response to detecting that the target window stops being displayed on the navigation interface, acquiring second attribute information of the navigation interface before the target window stops being displayed, and acquiring a third display position of the vehicle identifier on the navigation interface before the target window stops being displayed. And determining a fourth display position of the vehicle identification on the navigation interface according to the position information, the size information and the second attribute information, so that the vehicle identification is adjusted from the third display position to the fourth display position.
After the vehicle identifier is adjusted from the first display position to the second display position, the vehicle identifier may be updated from the second display position to a third display position because other windows may be continuously displayed or stopped from being displayed on the navigation interface. The second attribute information may also include at least one of a display mode, an interface size, and an interface shape of the navigation interface, and may further include position information and size information of other windows displayed on the navigation interface before the target window stops displaying, compared to the first attribute information in the above description. In an exemplary embodiment, when determining the fourth display position according to the position information, the size information and the second attribute information of the target window, the present embodiment first determines a third area on the navigation interface that is available for displaying the vehicle identifier after the display of the target window is stopped, and then determines the fourth display position from the third area. The determination process is described above, and will not be described in detail here.
Of course, the third display position and the second display position may be the same position. In this case, the present embodiment may use the first display position as the fourth display position. That is, after the target window stops displaying, the present embodiment restores the vehicle logo from the second display position to the first display position where the vehicle logo was located before the target window was displayed.
In summary, in the present embodiment, when the display position of the vehicle logo is adaptively adjusted after the target window is displayed, a different position adjustment interface is not required to be respectively called for each window on each navigation interface, but only one position adjustment interface is required to be called after the second display position is determined. Therefore, even if a plurality of windows are displayed on the navigation interface, incorrect adjustment of the display position of the vehicle logo is not caused by conflict among a plurality of position adjustment interfaces. Therefore, the vehicle identification adjustment method has good adjustment effect and flexible adjustment mode. In addition, for the designer of the target window, the corresponding position adjustment interface is not required to be provided for the target window, so that the workload of the designer is reduced, and the method is simpler to realize.
An embodiment of the present application provides a device for adjusting a vehicle identifier, referring to fig. 8, the device includes:
a first determining module 801, configured to determine, in response to detecting that the target window is displayed on the navigation interface, position information and size information of the target window on the navigation interface;
the obtaining module 802 is configured to obtain first attribute information of the navigation interface before the target window is displayed, and a first display position of the vehicle identifier on the navigation interface before the target window is displayed;
A second determining module 803, configured to determine a second display position of the vehicle identifier on the navigation interface according to the position information, the size information, and the first attribute information;
the adjusting module 804 is configured to invoke a position adjustment interface, and adjust the vehicle identifier from the first display position to the second display position through the position adjustment interface.
In the exemplary embodiment, acquisition module 802 is also configured to acquire a window configuration file that indicates whether the target window affects the display location of the vehicle identification; the first determining module 801 is further configured to determine, in response to the window configuration file indicating that the target window affects a display position of the vehicle identifier, position information and size information of the target window on the navigation interface.
In an exemplary embodiment, the second determining module 803 is configured to determine a first area on the navigation interface based on the location information, the size information, and the first attribute information; acquiring a second area which can be used for displaying a vehicle identifier on a navigation interface before the display of the target window, and determining a first position relation between a first display position and the second area; determining a second positional relationship between the second display position and the first region based on the first positional relationship; and determining the second display position in the first area according to the second position relation between the second display position and the first area.
In an exemplary embodiment, a second determining module 803 is configured to determine a position adjustment direction of the vehicle identification; and determining a first area according to the position adjustment direction, the position information, the size information and the first attribute information, wherein the first area is used for determining a second display position which has deviation from the first display position in the position adjustment direction and has no deviation in other directions except the position adjustment direction.
In an exemplary embodiment, an adjustment module 804 for calculating a position deviation value between the second display position and the first display position; and adjusting the first display position according to the position deviation value through the position adjustment interface.
In an exemplary embodiment, the obtaining module 802 is further configured to obtain a position compensation value, and compensate the position deviation value according to the position compensation value to obtain a compensated position deviation value; and the adjusting module is used for adjusting the first display position according to the compensated position deviation value through the position adjusting interface.
In an exemplary embodiment, the adjustment module 804 is further configured to, in response to detecting that the target window is stopped being displayed on the navigation interface, obtain second attribute information of the navigation interface before the target window is stopped being displayed, and a third display position of the vehicle identifier on the navigation interface before the target window is stopped being displayed; determining a fourth display position of the vehicle identifier on the navigation interface according to the position information, the size information and the second attribute information; and adjusting the vehicle identification from the third display position to the fourth display position.
In summary, in the present embodiment, when the display position of the vehicle logo is adaptively adjusted after the target window is displayed, a different position adjustment interface is not required to be respectively called for each window on each navigation interface, but only one position adjustment interface is required to be called after the second display position is determined. Therefore, even if a plurality of windows are displayed on the navigation interface, incorrect adjustment of the display position of the vehicle logo is not caused by conflict among a plurality of position adjustment interfaces. Therefore, the vehicle identification adjustment method has good adjustment effect and flexible adjustment mode. In addition, for the designer of the target window, the corresponding position adjustment interface is not required to be provided for the target window, so that the workload of the designer is reduced, and the method is simpler to realize.
It should be noted that, when the apparatus provided in the foregoing embodiment performs the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to perform all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
Referring to fig. 9, a schematic structural diagram of an electronic device 900 according to an embodiment of the present application is shown. The electronic device 900 may be a portable mobile electronic device such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Electronic device 900 may also be referred to by other names of user devices, portable electronic devices, laptop electronic devices, desktop electronic devices, and the like.
Generally, the electronic device 900 includes: a processor 901 and a memory 902.
Processor 901 may include one or more processing cores, such as a 4-core processor, a 9-core processor, and the like. The processor 901 may be implemented in at least one hardware form selected from the group consisting of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 901 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 901 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display 905. In some embodiments, the processor 901 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 902 is used to store at least one instruction for execution by processor 901 to implement a method of adjusting a vehicle identification provided by a method embodiment in the present application.
In some embodiments, the electronic device 900 may further optionally include: a peripheral interface 903, and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 903 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of the group consisting of radio frequency circuitry 904, a display 905, a camera 906, audio circuitry 907, positioning components 908, and a power source 909.
The peripheral interface 903 may be used to connect at least one peripheral device associated with an I/O (Input/Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, memory 902, and peripheral interface 903 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 901, the memory 902, and the peripheral interface 903 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 904 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 904 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuit 904 may communicate with other electronic devices via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or Wi-Fi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuit 904 may also include NFC (Near Field Communication ) related circuits, which are not limited in this application.
The display 905 is used to display a UI (User Interface). The UI may include graphics, text, logos, video, and any combination thereof. When the display 905 is a touch display, the display 905 also has the ability to capture touch signals at or above the surface of the display 905. The touch signal may be input as a control signal to the processor 901 for processing. At this time, the display 905 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 905 may be one, providing a front panel of the electronic device 900; in other embodiments, the display 905 may be at least two, respectively disposed on different surfaces of the electronic device 900 or in a folded design; in still other embodiments, the display 905 may be a flexible display disposed on a curved surface or a folded surface of the electronic device 900. Even more, the display 905 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 905 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 906 is used to capture images or video. Optionally, the camera assembly 906 includes a front camera and a rear camera. In general, a front camera is disposed on a front panel of an electronic device, and a rear camera is disposed on a rear surface of the electronic device. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 901 for processing, or inputting the electric signals to the radio frequency circuit 904 for voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be multiple and separately disposed at different locations of the electronic device 900. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 907 may also include a headphone jack.
The location component 908 is used to locate the current geographic location of the electronic device 900 to enable navigation or LBS (Location Based Service, location-based services). The positioning component 908 may be a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, the Granati system of Russia, or the Galileo system of the European Union.
The power supply 909 is used to power the various components in the electronic device 900. The power supply 909 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 909 includes a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 900 also includes one or more sensors 910. The one or more sensors 910 include, but are not limited to: acceleration sensor 911, gyroscope sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 910 may detect the magnitudes of accelerations on three coordinate axes of a coordinate system established with the electronic device 900. For example, the acceleration sensor 911 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 901 may control the display 905 to display a navigation interface in a lateral view or a longitudinal view according to the gravitational acceleration signal acquired by the acceleration sensor 911. The acceleration sensor 911 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 912 may detect a body direction and a rotation angle of the electronic device 900, and the gyro sensor 912 may collect a 3D motion of the user on the electronic device 900 in cooperation with the acceleration sensor 911. The processor 901 may implement the following functions according to the data collected by the gyro sensor 912: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 913 may be disposed on a side frame of the electronic device 900 and/or on an underside of the display 905. When the pressure sensor 913 is disposed on the side frame of the electronic device 900, a holding signal of the electronic device 900 by the user may be detected, and the processor 901 performs left-right hand recognition or quick operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is provided at the lower layer of the display 905, the processor 901 performs control of the operability control on the UI interface according to the pressure operation of the user on the display 905. The operability controls include at least one of the group consisting of button controls, scroll bar controls, logo controls, menu controls.
The fingerprint sensor 914 is used for collecting the fingerprint of the user, and the processor 901 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 914 may be provided on the front, back, or side of the electronic device 900. When a physical key or vendor Logo is provided on the electronic device 900, the fingerprint sensor 914 may be integrated with the physical key or vendor Logo.
The optical sensor 915 is used to collect the intensity of ambient light. In one embodiment, the processor 901 may control the display brightness of the display panel 905 based on the intensity of ambient light collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display luminance of the display screen 905 is turned up; when the ambient light intensity is low, the display brightness of the touch screen 909 is turned down. In another embodiment, the processor 901 may also dynamically adjust the shooting parameters of the camera assembly 906 based on the ambient light intensity collected by the optical sensor 915.
A proximity sensor 916, also referred to as a distance sensor, is typically provided on the front panel of the electronic device 900. The proximity sensor 916 is used to capture the distance between the user and the front of the electronic device 900. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front of the electronic device 900 gradually decreases, the processor 901 controls the display 905 to switch from the bright screen state to the off screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the electronic device 900 gradually increases, the processor 901 controls the display 905 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 9 is not limiting of the electronic device 900 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
The embodiment of the application provides electronic equipment, which comprises a memory and a processor; at least one instruction is stored in the memory, the at least one instruction being loaded and executed by the processor to implement the method of adjusting a vehicle identification provided by any of the exemplary embodiments of the present application.
Embodiments of the present application provide a readable storage medium having at least one instruction stored therein, the instructions being loaded and executed by a processor to implement a method of adjusting a vehicle identification provided by any of the exemplary embodiments of the present application.
The present embodiments provide a computer program or computer program product comprising: computer instructions, when executed by a computer, cause the computer to implement the method of adjusting vehicle identification provided by any of the exemplary embodiments of the present application.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the embodiments is provided for the purpose of illustration only and is not intended to limit the invention to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, alternatives, and alternatives falling within the spirit and scope of the invention.

Claims (9)

1. A method of adjusting a vehicle identification, the method comprising:
in response to detecting that a target window is displayed on a navigation interface, determining position information and size information of the target window on the navigation interface;
acquiring first attribute information of the navigation interface before the target window is displayed and a first display position of the vehicle identifier on the navigation interface before the target window is displayed;
determining a second display position of the vehicle identifier on the navigation interface according to the position information, the size information and the first attribute information;
calling a position adjustment interface, and adjusting the vehicle identifier from the first display position to the second display position through the position adjustment interface;
wherein the determining, according to the location information, the size information, and the first attribute information, a second display location of the vehicle identifier on the navigation interface includes:
Determining a first area on the navigation interface based on the position information, the size information and the first attribute information, wherein the first area is an area for displaying a vehicle identifier after the target window is displayed; acquiring a second area which can be used for displaying the vehicle identifier on the navigation interface before the target window is displayed, and determining a first position relation between a first display position and the second area; determining a second positional relationship of the second display position and the first region based on the first positional relationship; and determining the second display position in the first area according to the second position relation between the second display position and the first area.
2. The method of claim 1, wherein prior to determining the location information and the size information of the target window on the navigation interface, the method further comprises:
acquiring a window configuration file, wherein the window configuration file is used for indicating whether the target window influences the display position of the vehicle identifier;
and responding to the window configuration file to indicate that the target window influences the display position of the vehicle identifier, and then executing the determination of the position information and the size information of the target window on the navigation interface.
3. The method of claim 1, wherein the determining a first region on the navigation interface based on the location information, the size information, and the first attribute information comprises:
determining a position adjustment direction of the vehicle identifier;
and determining the first area according to the position adjustment direction, the position information, the size information and the first attribute information, wherein the first area is used for determining a second display position which has deviation from the first display position in the position adjustment direction and has no deviation in other directions except the position adjustment direction.
4. A method according to any one of claims 1-3, wherein said adjusting the vehicle identification from the first display position to the second display position via the position adjustment interface comprises:
calculating a position deviation value between the second display position and the first display position;
and adjusting the first display position according to the position deviation value through the position adjustment interface.
5. The method of claim 4, wherein after the calculating the position offset value between the second display position and the first display position, the method further comprises:
Acquiring a position compensation value, and compensating the position deviation value according to the position compensation value to obtain a compensated position deviation value;
the adjusting, by the position adjustment interface, the first display position according to the position deviation value includes:
and adjusting the first display position according to the compensated position deviation value through the position adjustment interface.
6. A method according to any one of claims 1-3, wherein after said adjusting said vehicle identification from said first display position to said second display position via said position adjustment interface, said method further comprises:
in response to detecting that the target window stops being displayed on the navigation interface, acquiring second attribute information of the navigation interface before the target window stops being displayed, and a third display position of the vehicle identifier on the navigation interface before the target window stops being displayed;
determining a fourth display position of the vehicle identifier on the navigation interface according to the position information, the size information and the second attribute information;
and adjusting the vehicle identifier from the third display position to the fourth display position.
7. An apparatus for adjusting a vehicle identification, the apparatus comprising:
the first determining module is used for determining the position information and the size information of the target window on the navigation interface in response to the detection that the target window is displayed on the navigation interface;
the acquisition module is used for acquiring first attribute information of the navigation interface before the target window is displayed and a first display position of the vehicle identifier on the navigation interface before the target window is displayed;
the second determining module is used for determining a first area on the navigation interface based on the position information, the size information and the first attribute information, wherein the first area is an area for displaying a vehicle identifier after the target window is displayed; acquiring a second area which can be used for displaying the vehicle identifier on the navigation interface before the target window is displayed, and determining a first position relation between a first display position and the second area; determining a second positional relationship of a second display position and the first region based on the first positional relationship; determining the second display position in the first area according to the second position relation between the second display position and the first area;
And the adjusting module is used for calling a position adjusting interface and adjusting the vehicle identifier from the first display position to the second display position through the position adjusting interface.
8. An electronic device, comprising a memory and a processor; the memory has stored therein at least one instruction that is loaded and executed by the processor to implement the method of adjusting a vehicle identification of any of claims 1-6.
9. A readable storage medium having stored therein at least one instruction loaded and executed by a processor to implement the method of adjusting a vehicle identification of any of claims 1-6.
CN202010778686.2A 2020-08-05 2020-08-05 Method and device for adjusting vehicle identification, electronic equipment and readable storage medium Active CN112000337B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010778686.2A CN112000337B (en) 2020-08-05 2020-08-05 Method and device for adjusting vehicle identification, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010778686.2A CN112000337B (en) 2020-08-05 2020-08-05 Method and device for adjusting vehicle identification, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112000337A CN112000337A (en) 2020-11-27
CN112000337B true CN112000337B (en) 2024-02-09

Family

ID=73463376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010778686.2A Active CN112000337B (en) 2020-08-05 2020-08-05 Method and device for adjusting vehicle identification, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112000337B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109269521A (en) * 2018-09-26 2019-01-25 维沃移动通信有限公司 A kind of air navigation aid and terminal device
CN110288163A (en) * 2019-07-01 2019-09-27 腾讯科技(深圳)有限公司 Method, apparatus, equipment and the storage medium of information processing
CN111256678A (en) * 2020-01-22 2020-06-09 维沃移动通信有限公司 Navigation method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109269521A (en) * 2018-09-26 2019-01-25 维沃移动通信有限公司 A kind of air navigation aid and terminal device
WO2020063165A1 (en) * 2018-09-26 2020-04-02 维沃移动通信有限公司 Navigation method and terminal device
CN110288163A (en) * 2019-07-01 2019-09-27 腾讯科技(深圳)有限公司 Method, apparatus, equipment and the storage medium of information processing
CN111256678A (en) * 2020-01-22 2020-06-09 维沃移动通信有限公司 Navigation method and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于计算机视觉的车辆辅助导航定位方法;郭君斌;郭晓松;左森;刘勇;孙立江;;自动化技术与应用(07);全文 *

Also Published As

Publication number Publication date
CN112000337A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN109712224B (en) Virtual scene rendering method and device and intelligent device
CN110971930A (en) Live virtual image broadcasting method, device, terminal and storage medium
CN110095128B (en) Method, device, equipment and storage medium for acquiring missing road information
CN110944374B (en) Communication mode selection method and device, electronic equipment and medium
CN110134744B (en) Method, device and system for updating geomagnetic information
WO2022134632A1 (en) Work processing method and apparatus
CN108920606B (en) Map data processing method, map data processing device, terminal equipment and storage medium
WO2021103841A1 (en) Control vehicle
CN110986930A (en) Equipment positioning method and device, electronic equipment and storage medium
CN111754386B (en) Image area shielding method, device, equipment and storage medium
CN112230908B (en) Method and device for aligning components, electronic equipment and storage medium
CN109977570B (en) Vehicle body noise determination method, device and storage medium
CN109754439B (en) Calibration method, calibration device, electronic equipment and medium
CN108664300B (en) Application interface display method and device in picture-in-picture mode
CN111754564B (en) Video display method, device, equipment and storage medium
CN111010537A (en) Vehicle control method, device, terminal and storage medium
CN113099378B (en) Positioning method, device, equipment and storage medium
WO2021218926A1 (en) Image display method and apparatus, and computer device
CN112000337B (en) Method and device for adjusting vehicle identification, electronic equipment and readable storage medium
CN112184802B (en) Calibration frame adjusting method, device and storage medium
CN112612405B (en) Window display method, device, equipment and computer readable storage medium
CN115545592A (en) Display positioning method, device, equipment and storage medium
CN112699906B (en) Method, device and storage medium for acquiring training data
CN111369684B (en) Target tracking method, device, equipment and storage medium
CN114594885A (en) Application icon management method, device and equipment and computer readable storage medium

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