CN112000337A - 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
CN112000337A
CN112000337A CN202010778686.2A CN202010778686A CN112000337A CN 112000337 A CN112000337 A CN 112000337A CN 202010778686 A CN202010778686 A CN 202010778686A CN 112000337 A CN112000337 A CN 112000337A
Authority
CN
China
Prior art keywords
display position
target window
adjusting
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.)
Granted
Application number
CN202010778686.2A
Other languages
Chinese (zh)
Other versions
CN112000337B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Navigation (AREA)
  • User Interface Of Digital Computer (AREA)

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 in response to detecting that the target window is displayed on the navigation interface, determining the position information and the size information of the target window on the navigation interface. The method comprises the steps of obtaining first attribute information of a navigation interface before a target window is displayed, and obtaining a first display position of a 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 identification from the first display position to the second display position through the called position adjusting 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 adjusting interface. The adjustment effect to the vehicle identification is better, the adjustment mode is comparatively nimble.

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 an apparatus for adjusting a vehicle identifier, an electronic device, and a readable storage medium.
Background
With the development of display technology, the application scenarios of display technology are increasing, and a vehicle navigation scenario is one of the scenarios. In a vehicle navigation scenario, a vehicle identifier is often displayed on a navigation interface to indicate where a vehicle driven by a user is located in a navigation path. When the window on the navigation interface is updated, the display position of the vehicle identifier needs to be adaptively adjusted, so that the updated window is prevented from influencing the display of the vehicle identifier.
In the related art, the position adjustment interface of the vehicle identifier is provided by the designer of each window. When any window is updated, the display position of the vehicle identifier is adjusted by calling the position adjusting interface corresponding to any window.
Therefore, in the related art, the designer needs 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 between the plurality of position adjustment interfaces, an incorrect adjustment of the display position of the vehicle identification may result. Therefore, the method provided by the related technology is not only complex to implement, but also poor in adjustment effect and inflexible in adjustment mode.
Disclosure of Invention
The embodiment of the application provides a method and a device for adjusting a vehicle identifier, an electronic device and a readable storage medium, so as to solve the problems of complex implementation, poor adjustment effect and inflexible adjustment mode of the related art. The technical scheme is as follows:
in one aspect, a method of adjusting vehicle identification is provided, the method comprising:
in response to detecting that the 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 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, 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 determining the position information and the size information of the target window on the navigation interface.
In an exemplary embodiment, the 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 includes: determining 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 with the first area 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 in the position adjustment direction with the first display position and has no deviation in other directions except the position adjustment direction.
In an exemplary embodiment, said adjusting said vehicle identification from said first display position to said second display position via said 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 adjusting 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, through 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 adjusting interface.
In an exemplary embodiment, after the adjusting the vehicle identifier from the first display position to the second display position through the position adjustment interface, the method further comprises: in response to the fact that the target window is detected to be stopped being displayed on the navigation interface, second attribute information of the navigation interface before the target window is stopped being displayed and a third display position of the vehicle identification on the navigation interface before the target window is stopped being displayed are obtained; 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 one aspect, an apparatus for adjusting a vehicle logo is provided, the apparatus comprising:
the first determination module is used for determining the position information and the size information of the target window on a navigation interface in response to the fact that the target window is detected to be 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 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 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 profile, where the window profile 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 position information and size information of the target window on the navigation interface in response to the window configuration file indicating that the target window affects the display position of the vehicle identifier.
In an exemplary embodiment, the second determining module is configured to determine a first area 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 with the first area 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 determination 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 in the position adjustment direction with the first display position and has no deviation in other directions except the position adjustment direction.
In an exemplary embodiment, the adjusting 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 adjusting 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; 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 adjusting module is further configured to, in response to detecting that the target window stops being displayed on the navigation interface, obtain 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 identification 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 a method of adjusting vehicle identification as provided in 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 for adjusting vehicle identification provided in any of the exemplary embodiments of the present application.
In another aspect, there is provided a computer program or computer program product comprising: computer instructions which, when executed by a computer, cause the computer to implement a method of adjusting vehicle identification as provided in any one 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 identifier is adaptively adjusted after the target window is displayed, a different position adjustment interface does not need to be respectively called for each window on each navigation interface, and only one position adjustment interface is called after the second display position is determined. Therefore, even if a plurality of windows are displayed on the navigation interface, the display position of the vehicle identifier cannot be adjusted incorrectly due to the conflict among the plurality of position adjustment interfaces. Therefore, the adjustment effect on the vehicle identification is better, and the adjustment mode is more flexible. In addition, for the designer of the target window, a corresponding position adjustment interface does not need to be provided for the target window, so that the workload of the designer is reduced, and the method is simpler to implement.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
FIG. 2 is a flow chart of a method for adjusting vehicle identification provided by an embodiment of the present application;
FIG. 3 is a schematic flow chart of adjusting vehicle identification according to an embodiment of the present application;
FIG. 4 is a schematic view of a window profile provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a first region provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of a first region provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of a first region provided by an embodiment of the present application;
FIG. 8 is a schematic structural diagram of an apparatus for adjusting a vehicle identification according to an embodiment of the present application;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, 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 vehicle identification, which can be applied to the implementation environment shown in fig. 1. In fig. 1, at least one electronic device 11 and a server 12 are included, and the electronic device 11 may be communicatively connected to the server 12 to download a window profile from the server 12, where the window profile is used to indicate each window that may affect the display position of the vehicle identifier.
The electronic device 11 may be any electronic product that can perform human-Computer interaction with a user through one or more modes such as a keyboard, a touch pad, a touch screen, a remote controller, voice interaction, or handwriting equipment, for example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a pocket PC (pocket PC), a tablet Computer, a smart car, a smart television, a smart sound box, and the like.
The server 12 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center.
It should be understood by those skilled in the art that the above-mentioned electronic device 11 and server 12 are only examples, and other existing or future electronic devices or servers may be suitable for the present application and are included within the scope of the present application and are incorporated herein by reference.
Based on the implementation environment shown in fig. 1, referring to fig. 2, an embodiment of the present application provides a method for adjusting a vehicle identifier, where the method is applicable to the electronic device shown in fig. 1. As shown in fig. 2, the method includes the following steps 201 and 204.
And 201, in response to the detection that the target window is displayed on the navigation interface, determining the position information and the size information of the target window on the navigation interface.
The navigation interface is an interface provided by a navigation APP (Application program) and used for displaying a window. When the application icon of the navigation type APP is selected, the navigation type APP is correspondingly started, and therefore the interface where the application icon is located is switched to the navigation interface. The windows that the navigation interface is capable of displaying include, but are not limited to, page-type windows and message box windows. The page type window is a user login page, an electronic map page, a user setting page and the like, and the message frame window is a message frame generated by pushing messages through the APP, such as a message frame generated by pushing real-time traffic events through the navigation APP. It should be understood that the page type window and the message frame window are only examples, and other windows not listed may be used for displaying on the navigation interface. Additionally, the navigation interface can be used to display a vehicle identification. The vehicle identification is used for indicating the current position of the vehicle driven by the user in the navigation path, so that the user can know information such as road section shapes of various road sections which are not reached temporarily in the navigation path in advance, and the driving experience of the user is guaranteed.
The position and size information of the target window on the navigation interface is the inherent property of the target window, and is often provided by the designer of the target window or 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. It should be noted that the size information is used to indicate that the length and width are for the case where the target window is a rectangular window. In response to the shape of the target window being other shapes, the size information is any information that can describe other shapes, e.g., the size information includes the length of each side of the other shapes.
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, the detection module can send a control instruction 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 command is a map view update (MapViewChange) command.
It can be understood that the determination of the position information and the size information of the target window on the navigation interface is performed by: and adjusting the display position of the vehicle identifier on the navigation interface. Therefore, the position and size information of the target window need only be determined if the displayed target window affects the display position of the vehicle logo. And for the condition that the displayed target window does not influence the display position of the vehicle identifier, the position and the size information of the target window do not need to be determined.
For this reason, in an exemplary embodiment and referring to FIG. 3, before determining the position information and the size information of the target window on the navigation interface, the method further comprises: and 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 display position of the target window influencing the vehicle identifier indicated by the window configuration file, and determining the position and the size information of the target window on the navigation interface.
Wherein, the window configuration file stores at least one window which influences the display position of the vehicle identification. In response to the target window being one of the windows stored in the window profile, the target window may affect the display position of the vehicle identifier, and thus the position information and the size information of the target window on the navigation interface may need to be determined. For example, fig. 4 is an exemplary window profile (offsetConfig) provided by an embodiment of the present application, in which windows stored in the window profile that affect the display position of the vehicle identifier include an electronic map window (NaviPanelView) and a point of interest detail window (PoiDetailView).
Illustratively, because 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 an installation package of an 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 it is determined whether the target window affects the display position of the vehicle identifier according to the position information and the size information of the target window. And then, the window which influences the display position of the vehicle identifier, and the position information and the size information of the window are correspondingly stored in the window configuration file. Therefore, after the display position of the target window, which affects the vehicle identifier, is determined according to the video configuration file, the window configuration file is continuously read, and 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 identifier can be determined according to the position information and the size information of the target window is as follows: before and after the target window is displayed, the area and the shape of the area which can be used for displaying the vehicle mark on the navigation interface can be determined according to the position information and the size information. In response to the change affecting the display location of the vehicle identification, the target window may be determined to be a window that would affect the vehicle identification.
For example, a center point on the navigation interface is displayed with a vehicle identification before the target window is displayed. 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, and indicating that the target window covers the vehicle identifier after being displayed, so that the target window can be determined to be a window which can influence the display position of the vehicle identifier. 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 may be determined to be a window that does not affect the display position of the vehicle identifier.
Of course, the above-mentioned manner of determining whether the target window affects the display position of the vehicle identifier based on the position information and the size information is only an example. In practical application, the window configuration file can be configured by a designer according to experience or actual needs, 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 identifier is not affected by determining the target window based on the position information and the size information, the target window may be stored in the window configuration file for reasons such as beauty, and when the target window is updated on the navigation interface, the display position of the vehicle identifier may still be adaptively adjusted according to the target window.
202, 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 are obtained.
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 interface sizes determined in different display modes are different. And under the condition that the display mode is the vertical screen mode, the length of the bottom edge of the interface is equal to that of the bottom edge of the electronic equipment, and the length of the side edge of the interface is equal to that of the side edge of the electronic equipment. And under the condition that the display mode is the horizontal screen mode, the length of the bottom edge of the interface is the same as that of the side edge of the electronic equipment, and the length of the side edge of the interface is the same as that of the bottom edge of the electronic equipment. And responding to that other windows are displayed on the navigation interface before the target window is displayed, wherein 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 matched with the screen type of the electronic equipment. 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 device is a screen including an image pickup device mounting area (also referred to as a bang screen), the interface shape of the navigation interface is a rectangle with a notch, and the shape of the notch is the same as the shape of the image pickup device 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 target window is displayed with the vehicle identifier displayed on the navigation interface. In the latter case, the vehicle identifier is not displayed on the navigation interface before the target window is displayed.
It should be noted that 201 and 202 are not limited to 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 in the embodiment according to the needs.
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.
And the second display position of the vehicle identifier on the navigation interface is the position which the vehicle identifier should be displayed after the target window is displayed. 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 moved from the original first display position to the second display position for display. Alternatively, the second display location may be a virtual location indicating that the vehicle identification is not located on the navigation interface. In this case, after the target window is displayed, the vehicle logo directly stops being displayed on the navigation interface.
In the exemplary embodiment, determining the second display location of the vehicle identifier on the navigation interface based on the location information, the size information, and the first attribute information includes steps 2031 and 2034 as follows.
2031, based on the position information, the size information, and the first attribute information, a first area is determined on the navigation interface.
The first area is an area which can be used for displaying the vehicle identification after the target window is displayed. As shown 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 a second area capable of displaying the vehicle identifier on the navigation interface before the target window is displayed according to the first attribute information, and determine the first area based on the second area by combining 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 indicates 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 comprises 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 then, deleting the area which cannot be used for displaying the vehicle identifier from the maximum display area, wherein the rest area in the maximum display area is the second area.
For example, in consideration that the remaining area in the maximum display area may be an irregular area, the present embodiment may further cut out an area of the reference shape from the irregular area as the second area. For example, the present embodiment may intercept the largest inscribed rectangle (rect) from the irregular area as the second area. Of course, the present embodiment does not limit the above reference shape. The reference shape may be other than rectangular for example, such as circular, oval, diamond, etc., determined empirically or as actually needed.
After determining the second area, the first area may be determined on the basis of the second area in combination with the position information and the size information of the target window. The manner of determining the first area includes, but is not limited to, the following three cases:
the first condition is as follows: if the target window can be used for displaying the vehicle identifier, 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 the first area, or taking the area of the reference shape obtained by intercepting from the union area as the first area.
Case two: if the target window cannot be used for displaying the vehicle logo, but the area where the target window is located does not have an overlapping area with the second area, the second area can be directly used as the first area.
Case three: if the target window cannot be used for displaying the vehicle logo and the area where the target window is located and the second area have an overlapping area, deleting the overlapping area from the second area, and taking the remaining area in the second area as the first area, or taking the area of the reference shape obtained by cutting out the remaining area as the first area.
Further, in case three, the present embodiment may also determine the first area as follows. In an exemplary embodiment, determining the first area on the navigation interface based on the location information, the size information, and the first attribute information includes: and determining the position adjustment direction of the vehicle mark. And determining a first area according to the position adjusting 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 in the position adjusting direction with the first display position and has no deviation in other directions except the position adjusting direction.
For example, the position adjustment direction in the present embodiment includes at least one of a first direction and a second direction perpendicular to each other. The first direction includes a direction parallel to a bottom side of the electronic device and perpendicular to a side edge of the electronic device, and the second direction includes a direction perpendicular to the bottom side 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, wherein 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 is involved in the calculation, the x-axis direction is the above-described position adjustment direction. In addition, the first direction and the second direction are only examples, and other directions may be used as the position adjustment directions according to actual needs in this embodiment.
When the first area is determined according to 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 the other directions except the position adjustment direction are respectively determined. And then, calculating the length difference between the length of the second area in the position adjustment direction and the length of the target window in the position adjustment direction, and determining the length difference as the length of the first area in the position adjustment direction. Next, the length of the second region in the direction other than the position adjustment direction is directly taken 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 and second regions after display of the target window differ only in length in the first direction and not in the second direction compared to the second region before display of the target window. That is, the display of the target window affects the second area only 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 area and the second area are different only in the position adjustment direction, when the first display position in the second area is subsequently adjusted according to the first area, the obtained second display position and the first display position are also deviated only in the position adjustment direction, and are not deviated in other directions except the position adjustment direction.
2032, a second area of the navigation interface is obtained before the target window is displayed, wherein the second area can be used for displaying the vehicle identifier, and a first position relationship between the first display position and the second area is determined.
The manner of obtaining the second region may refer to the description in 2031, and is not described herein again. Since both the first display position and the second region are obtained, the first positional relationship between the first display position and the second region can be determined. For example, the first positional relationship may indicate that the first display position is located at a center point of the second area, and may also indicate that the first display position is located at any point other than the center point in the second area.
2033, based on the first positional relationship, determining a second positional relationship of the second display position to the first area.
Illustratively, determining a second positional relationship of the second display location to the first area based on the first positional relationship comprises: the first positional relationship is taken as the second positional relationship. Taking the first positional relationship indicating that the first display position is located at the center point of the second area as an example, the second positional 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 comprises: and acquiring 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. Then, after the first positional relationship is obtained, the positional relationship of the reference point corresponding to the first positional relationship and indicating that the second display position is located in the first area may be taken as the second positional relationship. The reference point is exemplarily a point of a reference distance from the center point, and the reference distance is not limited in the present embodiment.
2034 and determining a second display position in the first area based on the second positional relationship between the second display position and the first area.
Since the first area has already been determined 2031, the second display position can be determined based on the second positional relationship between the second display position and the first area. For example, if the second positional relationship indicates that the second display position is located at the center point of the first area, the center point of the first area may be determined, and thus the center point of the first area may be used as the second display position.
And 204, 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.
The position adjusting interface is an interface which can be used for controlling the display position of the vehicle mark. In an exemplary embodiment, adjusting the vehicle identification from the first display position to the second display position via the position adjustment interface includes: and 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 a position adjusting interface.
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 by adjusting the called interface according to the position deviation value. Alternatively, the second display position is a virtual position indicating that the vehicle identifier is not located on the navigation interface, and the first display position may be used as the position deviation value. And the position adjusting interface adjusts according to the position deviation value, so that the vehicle identifier stops being displayed at the first display position, namely the vehicle identifier stops being displayed 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 not sufficiently conform to the viewing preference of the user and may not be aesthetically pleasing. 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. Then 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, the first display position is adjusted according to the position deviation value through the position adjusting interface, and the method comprises the following steps: and adjusting the first display position according to the compensated position deviation value through a position adjusting interface.
Illustratively, referring to fig. 4, the custom shown in fig. 4 is the position compensation value. 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 position compensation value is not limited in this embodiment, and 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 that the second display position is not located in the reference display area, the minimum distance between the second display position and the reference display area is used 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 the central area and not aesthetically pleasing, and thus needs to be compensated for. 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, the second display position is not in accordance with the user's personal viewing preferences and needs to be compensated.
In an exemplary embodiment, after adjusting the vehicle identification from the first display position to the second display position through the position adjustment interface, the method further comprises: and in response to the detection 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. And 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, so that the vehicle identifier 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 another third display position because other windows may be continuously displayed or stopped being displayed on the navigation interface. Compared with the first attribute information in the above description, 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 also include position information and size information of other windows displayed on the navigation interface before the target window stops being displayed. For example, when the fourth display position is determined according to the position information, the size information, and the second attribute information of the target window, the embodiment first determines a third area available for displaying the vehicle identifier after the target window stops displaying on the navigation interface, and then determines the fourth display position from the third area. The determination process can be referred to the above description, and is not repeated herein.
Of course, the third display position and the second display position may be the same position. In this case, the present embodiment may take the first display position as the fourth display position. That is, after the target window stops displaying, the present embodiment restores the vehicle identifier from the second display position to the first display position where the vehicle identifier was located before the target window was displayed.
In summary, in the embodiment, when the display position of the vehicle identifier is adaptively adjusted after the target window is displayed, it is not necessary to call a different position adjustment interface for each window on each navigation interface, but only one position adjustment interface is called after the second display position is determined. Therefore, even if a plurality of windows are displayed on the navigation interface, the display position of the vehicle identifier cannot be adjusted incorrectly due to the conflict among the plurality of position adjustment interfaces. Therefore, the adjustment effect on the vehicle identification is better, and the adjustment mode is more flexible. In addition, for the designer of the target window, a corresponding position adjustment interface does not need to be provided for the target window, so that the workload of the designer is reduced, and the method is simpler to implement.
The embodiment of the present application provides an apparatus for adjusting a vehicle identifier, referring to fig. 8, the apparatus 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;
an obtaining module 802, configured to obtain first attribute information of a navigation interface before a target window is displayed, and a first display position of a 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 adjusting interface, and adjust 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 802 is further configured to obtain a window profile, where the window profile is used to indicate whether a target window affects a display position of the vehicle identifier; the first determining module 801 is further configured to determine the position information and the size information of the target window on the navigation interface in response to the window profile indicating that the target window affects the display position of the vehicle identifier.
In an exemplary embodiment, the second determining module 803 is configured to determine a first area 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 a vehicle identifier on a 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 position relation between the second display position and the first area based on the first position relation; and determining a 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 for determining a position adjustment direction of the vehicle identification; and determining a first area according to the position adjusting 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 in the position adjusting direction with the first display position and has no deviation in other directions except the position adjusting direction.
In an exemplary embodiment, the adjusting module 804 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 a position adjusting 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 adjusting module 804 is further configured to, in response to detecting that the target window stops being displayed on the navigation interface, obtain 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 mark from the third display position to a fourth display position.
In summary, in the embodiment, when the display position of the vehicle identifier is adaptively adjusted after the target window is displayed, it is not necessary to call a different position adjustment interface for each window on each navigation interface, but only one position adjustment interface is called after the second display position is determined. Therefore, even if a plurality of windows are displayed on the navigation interface, the display position of the vehicle identifier cannot be adjusted incorrectly due to the conflict among the plurality of position adjustment interfaces. Therefore, the adjustment effect on the vehicle identification is better, and the adjustment mode is more flexible. In addition, for the designer of the target window, a corresponding position adjustment interface does not need to be provided for the target window, so that the workload of the designer is reduced, and the method is simpler to implement.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 9, a schematic structural diagram of an electronic device 900 provided in 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 video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Electronic device 900 may also be referred to by other names as user equipment, portable electronic device, laptop electronic device, desktop electronic device, and so on.
In general, 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 so forth. The processor 901 may be implemented in at least one hardware form selected from the group consisting of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen 905. In some embodiments, the processor 901 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
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 the method of adjusting vehicle identification provided by the method embodiments herein.
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 buses or signal lines. Various peripheral devices may be connected to the peripheral interface 903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of the group consisting of radio frequency circuitry 904, display screen 905, camera 906, audio circuitry 907, positioning component 908, and power supply 909.
The peripheral interface 903 may be used to connect at least one peripheral related to 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, any one or two of the processor 901, the memory 902 and the peripheral interface 903 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 904 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 904 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 904 may communicate with other electronic devices via at least one wireless communication protocol. The wireless communication protocols include, but are 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 screen 905 is used to display a UI (User Interface). The UI may include graphics, text, logos, video, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to capture touch signals on or over the surface of the display screen 905. The touch signal may be input to the processor 901 as a control signal for processing. At this point, 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 screen 905 may be one, providing the front panel of the electronic device 900; in other embodiments, the number of the display panels 905 may be at least two, and the at least two display panels are respectively disposed on different surfaces of the electronic device 900 or are in a folding design; in still other embodiments, the display 905 may be a flexible display disposed on a curved surface or on a folded surface of the electronic device 900. Even more, the display screen 905 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display panel 905 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 906 is used to capture images or video. Optionally, camera assembly 906 includes a front camera and a rear camera. Generally, a front camera is disposed on a front panel of an electronic apparatus, and a rear camera is disposed on a rear surface of the electronic apparatus. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user 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 realizing voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and located at different locations of the electronic device 900. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuit 907 may also include a headphone jack.
The positioning component 908 is used to locate a current geographic Location of the electronic device 900 to implement navigation or LBS (Location Based Service). The Positioning component 908 may be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
The power supply 909 is used to supply power to various components in the electronic device 900. The power source 909 may be alternating current, direct current, disposable or rechargeable. When power source 909 comprises a rechargeable battery, the rechargeable battery may 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, gyro sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 910 may detect acceleration magnitudes 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 the components of the gravitational acceleration in three coordinate axes. The processor 901 can control the display screen 905 to display a navigation interface in a horizontal view or a vertical view according to the gravitational acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 may also be used for 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 and the acceleration sensor 911 cooperate to acquire a 3D motion of the user on the electronic device 900. The processor 901 can implement the following functions according to the data collected by the gyro sensor 912: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 913 may be disposed on a side bezel of the electronic device 900 and/or underneath the display screen 905. When the pressure sensor 913 is disposed on the side frame of the electronic device 900, the user's holding signal of the electronic device 900 may be detected, and the processor 901 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is disposed at a lower layer of the display screen 905, the processor 901 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 905. The operability control comprises at least one of a group consisting of a button control, a scroll bar control, an identification control and a menu control.
The fingerprint sensor 914 is used for collecting a fingerprint of the user, and the processor 901 identifies the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 914 may be disposed on the front, back, or side of the electronic device 900. When a physical button or vendor Logo is provided on the electronic device 900, the fingerprint sensor 914 may be integrated with the physical button or vendor Logo.
The optical sensor 915 is used to collect ambient light intensity. In one embodiment, the processor 901 may control the display brightness of the display screen 905 based on the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the display screen 905 is increased; when the ambient light intensity is low, the display brightness of the touch screen 909 is turned down. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera assembly 906 according to the ambient light intensity collected by the optical sensor 915.
The proximity sensor 916, also known as a distance sensor, is typically disposed 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 dark screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the electronic device 900 gradually becomes larger, the processor 901 controls the display 905 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 9 does not constitute a limitation of the electronic device 900, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
The embodiment of the application provides electronic equipment, which comprises a memory and a processor; the memory has stored therein at least one instruction that is loaded and executed by the processor to implement a method of adjusting vehicle identification as provided by any of the exemplary embodiments of the present application.
The embodiment of the application provides a readable storage medium, and at least one instruction is stored in the readable storage medium and is loaded and executed by a processor to realize the method for adjusting the vehicle identification provided by any one of the exemplary embodiments of the application.
An embodiment of the present application provides a computer program or a computer program product, where the computer program or the computer program product includes: computer instructions which, when executed by a computer, cause the computer to implement a method of adjusting vehicle identification as provided in any one of the exemplary embodiments of the present application.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
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 instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method of adjusting vehicle identification, the method comprising:
in response to detecting that the 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 adjusting interface, and adjusting the vehicle identifier from the first display position to the second display position through the position adjusting interface.
2. The method of claim 1, wherein prior to determining the position and 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 determining 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 second display location of the vehicle identification on the navigation interface from the location information, the size information, and the first attribute information comprises:
determining 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 with the first area 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.
4. The method of claim 3, wherein determining a first area 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 in the position adjustment direction with the first display position and has no deviation in other directions except the position adjustment direction.
5. The method of any of claims 1-4, 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 adjusting interface.
6. The method of claim 5, wherein after calculating the positional 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, through 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 adjusting interface.
7. The method of any of claims 1-4, wherein after the adjusting the vehicle identification from the first display position to the second display position via the position adjustment interface, the method further comprises:
in response to the fact that the target window is detected to be stopped being displayed on the navigation interface, second attribute information of the navigation interface before the target window is stopped being displayed and a third display position of the vehicle identification on the navigation interface before the target window is stopped being displayed are obtained;
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.
8. An apparatus for adjusting a vehicle logo, the apparatus comprising:
the first determination module is used for determining the position information and the size information of the target window on a navigation interface in response to the fact that the target window is detected to be 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 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 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.
9. 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 vehicle identification of any of claims 1-7.
10. A readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to implement a method of adjusting a vehicle identification according to any one of claims 1-7.
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 true CN112000337A (en) 2020-11-27
CN112000337B 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
郭君斌;郭晓松;左森;刘勇;孙立江;: "基于计算机视觉的车辆辅助导航定位方法", 自动化技术与应用, no. 07 *

Also Published As

Publication number Publication date
CN112000337B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN110971930A (en) Live virtual image broadcasting method, device, terminal and storage medium
CN109862412B (en) Method and device for video co-shooting and storage medium
WO2022134632A1 (en) Work processing method and apparatus
CN112396076A (en) License plate image generation method and device and computer storage medium
CN109783176B (en) Page switching method and device
CN111565309A (en) Display equipment and distortion parameter determination method, device and system thereof, and storage medium
CN111385525B (en) Video monitoring method, device, terminal and system
CN108664300B (en) Application interface display method and device in picture-in-picture mode
CN112612405B (en) Window display method, device, equipment and computer readable storage medium
CN114299468A (en) Method, device, terminal, storage medium and product for detecting convergence of lane
CN111324293B (en) Storage system, data storage method, data reading method and device
CN111275607A (en) Interface display method and device, computer equipment and storage medium
CN110992954A (en) Method, device, equipment and storage medium for voice recognition
CN112596730B (en) Layout adjustment method, device, terminal and storage medium
CN114594885A (en) Application icon management method, device and equipment and computer readable storage medium
CN110134393B (en) Method and device for processing operation signal
CN114550717A (en) Voice sound zone switching method, device, equipment and storage medium
CN110471613B (en) Data storage method, data reading method, device and system
CN112184802B (en) Calibration frame adjusting method, device and storage medium
CN115545592A (en) Display positioning method, device, equipment and storage medium
CN109275015B (en) Method, device and storage medium for displaying virtual article
CN112000337B (en) Method and device for adjusting vehicle identification, electronic equipment and readable storage medium
CN108519913B (en) Application program running state management method and device, storage medium and terminal
CN110717365B (en) Method and device for obtaining picture
CN110889391A (en) Method and device for processing face image, computing equipment and 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