Navigation map image output method and device, electronic equipment and storage medium

By setting up a map drawing module that relies on GPU and CPU on the navigation device, it ensures that the navigation device can output navigation map images in the foreground and background states, solving the problem of the navigation device being unable to output images after the screen is turned off, and improving the user experience.

CN118548911APending Publication Date: 2024-08-27BEIJING AUTONAVI YUNMAP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410571380.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing navigation equipment cannot continue to output navigation map images to vehicle equipment after the screen is turned off, causing user navigation to be affected.

Method used

By arranging the first map drawing module and the second map drawing module on the navigation device, the GPU and the CPU are respectively used to draw the navigation map image, ensuring that the navigation map image can be output in both the foreground and background running states.

Benefits of technology

It realizes that the navigation device can continue to output navigation map images even after the screen is turned off, which improves the use experience of the vehicle equipment and avoids the impact of the navigation device on the navigation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118548911A
    Figure CN118548911A
Patent Text Reader

Abstract

The embodiment of the invention discloses a navigation map image output method and device, electronic equipment and a storage medium, and the method comprises the steps: calling a first map drawing module to draw a navigation map image in response to a request for outputting the navigation map image to vehicle equipment when a target application is in a foreground operation state, the first map drawing module is used for drawing the navigation map image by utilizing a GPU (Graphics Processing Unit); when a target application is in a background running state, in response to a request for outputting a navigation map image to the vehicle machine equipment, calling a second map drawing module to draw the navigation map image, and drawing the navigation map image by the second map drawing module by utilizing a CPU (Central Processing Unit); wherein the navigation map image drawn by the first map drawing module or the second map drawing module is output to the vehicle machine equipment. According to the technical scheme, the purpose that the navigation map image can still be drawn and output to the vehicle machine equipment even if the screen of the navigation equipment is turned off is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of navigation technology, and in particular to a method, device, electronic device and storage medium for outputting a navigation map image. Background Art

[0002] At present, some vehicle-mounted devices such as those for two-wheeled vehicles are usually embedded devices. Due to the limitation of hardware and software capabilities, they cannot directly use complete maps and navigation products for navigation. In the existing technology, after establishing a communication connection between a navigation device with navigation capabilities such as a mobile phone and a vehicle-mounted device, the navigation map image is rendered by a map rendering engine on the navigation device, and then the navigation map image is output to the vehicle-mounted device for display. However, the map rendering engines are all GPU-dependent rendering engines. Some navigation devices will disable the GPU after the screen is turned off, so that the map rendering engine cannot continue to be used to render the navigation map image, and the navigation map image cannot continue to be output to the vehicle-mounted device.

[0003] Therefore, it is necessary to provide a solution that can continue to output navigation map images to the vehicle equipment after the navigation device turns off the screen. Summary of the invention

[0004] The embodiments of the present disclosure provide a method, device, electronic device and storage medium for outputting a navigation map image.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for outputting a navigation map image, which includes:

[0006] When the target application is in the foreground running state, in response to a request to output the navigation map image to the vehicle device, calling a first map drawing module to draw the navigation map image, wherein the first map drawing module draws the navigation map image using a GPU;

[0007] When the target application is in the background running state, in response to a request to output the navigation map image to the vehicle device, calling the second map drawing module to draw the navigation map image, the second map drawing module using the CPU to draw the navigation map image;

[0008] The navigation map image drawn by the first map drawing module or the second map drawing module is output to the vehicle machine device.

[0009] In a second aspect, an embodiment of the present invention provides a method for displaying a navigation map image, which includes:

[0010] When the target application running on the navigation device is in the foreground running state, in response to a request to output the navigation map image to the vehicle device, calling the first map drawing module to draw the navigation map image;

[0011] When the target application is in the background running state, the navigation device calls the second map drawing module to draw the navigation map image in response to the request to output the navigation map image to the vehicle device, wherein the first map drawing module draws the navigation map image using the GPU; and the second map drawing module draws the navigation map image using the CPU;

[0012] The navigation device outputs the navigation map image drawn by the first map drawing module or the second map drawing module to the vehicle device;

[0013] The vehicle equipment displays the received navigation map image on a display screen.

[0014] In a third aspect, an embodiment of the present invention provides a device for outputting a navigation map image, comprising:

[0015] A first calling module is configured to call a first map drawing module to draw a navigation map image in response to a request to output a navigation map image to the vehicle device when the target application is in a foreground running state, wherein the first map drawing module draws the navigation map image using a GPU;

[0016] A second calling module is configured to call a second map drawing module to draw a navigation map image in response to a request to output a navigation map image to the vehicle device when the target application is in a background running state, and the second map drawing module draws the navigation map image using a CPU;

[0017] The navigation map image drawn by the first map drawing module or the second map drawing module is output to the vehicle machine device.

[0018] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method described in any one of the above aspects.

[0019] In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium for storing computer instructions used by any of the above-mentioned devices, and when the computer instructions are executed by a processor, they are used to implement the method described in any of the above-mentioned aspects.

[0020] In a sixth aspect, an embodiment of the present disclosure provides a computer program product, which includes computer instructions, and when the computer instructions are executed by a processor, they are used to implement the method described in any of the above aspects.

[0021] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0022] In order to continuously output the navigation map image to the vehicle device after the target application on the navigation device is switched to the background operation (for example, the navigation device is turned off, or the target application is switched to the background operation by the user), the embodiment of the present disclosure calls the second map drawing module that does not rely on the GPU to draw the navigation map image when the target application is in the background operation state, and calls the first map drawing module that relies on the GPU to draw the navigation map image when the target application is in the foreground operation state. The navigation map image output by the first map drawing module or the second map drawing module is output by the target application to the vehicle device for display, so as to guide the user to drive along the navigation route through the navigation map image displayed on the vehicle device. In the above-mentioned implementation, when the target application on the navigation device is in the background operation state, the first map drawing module that relies on the GPU may not be called, but the second map drawing module that relies on the CPU may be used to complete the drawing of the navigation map image, so as to achieve the purpose of still being able to draw and output the navigation map image to the vehicle device even after the navigation device is turned off, so that the vehicle device is no longer affected by the navigation device turning off the screen, etc., and the user's experience of using the vehicle device is improved.

[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0025] Figure 1 A flowchart showing a method for outputting a navigation map image according to an embodiment of the present disclosure;

[0026] Figure 2 A schematic diagram of a map image effect with roads drawn thereon according to an embodiment of the present disclosure is shown.

[0027] Figure 3 A schematic diagram of a navigation map image effect on which navigation information is drawn according to an embodiment of the present disclosure is shown.

[0028] Figure 4 A structural block diagram of a device for outputting a navigation map image according to an embodiment of the present disclosure is shown.

[0029] Figure 5 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0030] Figure 6 It is a structural diagram of a computer system suitable for implementing a method for outputting a navigation map image and / or a method for displaying a navigation map image according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0032] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the specification, and do not exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.

[0033] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0034] The user information (including but not limited to user device information such as location information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0035] The details of the embodiments of the present disclosure are described in detail below through specific examples.

[0036] Figure 1 FIG. 1 is a flow chart showing a method for outputting a navigation map image according to an embodiment of the present disclosure. Figure 1 As shown, the output method of the navigation map image includes the following steps:

[0037] In step S101, when the target application is in the foreground running state, in response to a request to output a navigation map image to the vehicle device, a first map drawing module is called to draw the navigation map image, and the first map drawing module draws the navigation map image using a GPU;

[0038] In step S102, when the target application is in the background running state, in response to the request to output the navigation map image to the vehicle device, the second map drawing module is called to draw the navigation map image, and the second map drawing module uses the CPU to draw the navigation map image;

[0039] The navigation map image drawn by the first map drawing module or the second map drawing module is output to the vehicle machine device.

[0040] In this embodiment, the output method of the navigation map image is executed by a target application installed and running on the navigation device. The target application may be an application developed by a third-party vehicle manufacturer, which may interact with the vehicle device. The target application uses the GPU or CPU of the navigation device to draw the navigation map image, and outputs the drawn navigation map image to the vehicle device for display, thereby realizing the solution of the vehicle device navigating for the user. The navigation device may be a device that can install and run a software development kit, such as a mobile phone. The vehicle device may be a low-end embedded device that is limited by hardware and software capabilities and cannot install and run a software development kit, such as a vehicle device suitable for a two-wheeled vehicle. Of course, it is understandable that if the vehicle device is a device that can install and run a software development kit, the solution disclosed in this disclosure is also applicable.

[0041] The navigation device and the vehicle-mounted device can communicate via Bluetooth, WI FI, etc. The target application running on the navigation device can output the navigation map image to the vehicle-mounted device for display, so as to guide the user to drive along the route on the navigation map image. It should be noted that the first map drawing module and the second map drawing module can also be installed and run on the navigation device. The first map drawing module can use the GPU to draw the navigation map image, and the second map drawing module can use the CPU to draw the navigation map image. The first map drawing module and the second map drawing module can be independently developed software development kits relative to the target application. After the target application draws the navigation map image by calling the first map drawing module or the second map drawing module, the navigation map image is output to the vehicle-mounted device for display. After the navigation map image is drawn, the target application may not display it on the screen of the navigation device, or it may display it on the screen of the navigation device. The target application can assemble the navigation map image output by the navigation device into a video stream at a certain frame rate and output it to the vehicle-mounted device.

[0042] In some embodiments, the request to output the navigation map image to the vehicle device can be generated by the user through the operation of the target application, for example, after the user clicks on the navigation page on the interface provided by the target application and enters the starting point and destination for navigation, the above request will be generated. In this embodiment, when the navigation map image starts to be output to the vehicle device, since the target application is in the foreground running state, the target application detects the request to output the navigation map image to the vehicle device initiated by the user through the operation of the target application, and calls the first map drawing module to draw the navigation map image.

[0043] In other embodiments, if the hardware conditions of the vehicle-mounted device support it, the user can also operate the vehicle-mounted device, so that the vehicle-mounted device sends the above-mentioned request to the navigation device, and the above-mentioned request is responded to by the target application running on the navigation device. If the target application is in the foreground running state, the target application responds to the request and calls the first map drawing module to draw the navigation map image; if the target application is in the background running state, since the first map drawing module needs to rely on the GPU to draw the navigation map image, and some navigation devices are restricted by system permissions, the target application running in the background cannot call the rendering engine on the GPU. Therefore, in this case, the target application can call the second map drawing module to draw the navigation map image, and the second map image draws the navigation map image by calling the system interface running on the CPU.

[0044] Afterwards, if the target application is in the foreground running state and the first map drawing module is called up by the target application, since the first map drawing module draws the navigation map image through the rendering engine on the GPU, and the rendering engine itself supports outputting the navigation map image at a preset frame rate, the target application can continuously output the navigation map image to the vehicle device based on the navigation map image output by the rendering engine at a certain frame rate.

[0045] If the target application is in the background running state, and the second map drawing module is called by the target application, since the second map drawing module needs to call the system interface running on the CPU to draw the navigation map image, calling the second map drawing module once can only output one navigation map image, and all target applications need to continuously call the second map drawing module at a certain frame rate, so as to continuously output the navigation map image to the vehicle device at a certain frame rate. In some embodiments, the target application can call the second map drawing module to continuously draw the navigation map image by setting a timer and continuously triggering the timer.

[0046] In order to continuously output the navigation map image to the vehicle device after the target application on the navigation device is switched to the background operation (for example, the target application will be switched to the background operation after the navigation device is turned off, or the target application is switched to the background operation by the user), the embodiment of the present disclosure calls the second map drawing module that does not rely on the GPU to draw the navigation map image when the target application is in the background operation state, and calls the first map drawing module that relies on the GPU to draw the navigation map image when the target application is in the foreground operation state. The navigation map image output by the first map drawing module or the second map drawing module is output by the target application to the vehicle device for display, so as to guide the user to drive along the navigation route through the navigation map image displayed on the vehicle device. In the above implementation, when the target application on the navigation device is in the background operation state, the first map drawing module that relies on the GPU may not be called, but the second map drawing module that relies on the CPU may be used to complete the drawing of the navigation map image, so as to achieve the purpose of still being able to draw and output the navigation map image to the vehicle device even after the navigation device is turned off, so that the vehicle device is no longer affected by the navigation device turning off the screen, and the user's experience of using the vehicle device is improved.

[0047] In an optional implementation of this embodiment, in step S102, the step of calling the second map drawing module to draw the navigation map image can be implemented as follows:

[0048] Acquire map data required for drawing a navigation map image to be displayed on a vehicle device; the map data includes road data expressing roads in the navigation map image;

[0049] The system interface running on the CPU of the navigation device is called to draw the road data into a navigation map image.

[0050] In this optional implementation, the map data required to draw the navigation map image to be displayed on the vehicle device can be determined based on the first state information of the navigation map image, and the first state information may include but is not limited to map size, map center point, map zoom level and direction angle, etc. The map size may depend on the size of the window displaying the navigation map image on the vehicle device, and may be pre-configured, or obtained directly from the vehicle device, or obtained from other applications on the navigation device that send the navigation map image to the vehicle device. It can be set according to actual needs, and the present disclosure does not impose specific restrictions on this. The map center point, map zoom level and direction angle can be provided by a first map drawing module installed and running on the navigation device. The first map drawing module may be a navigation software development kit, which can implement all or part of the functions of the navigation application. In this embodiment, the first map drawing module performs path planning according to the starting point and destination provided by the user of the vehicle device, and generates corresponding navigation information based on the path planning. The navigation information may include the above-mentioned first state information. The first state information may be implemented by setting a callback function in the first map drawing module, that is, during the operation of the first map drawing module, the callback function is triggered to run based on the corresponding callback event, and then the generated first state information is provided to the second map drawing module that executes the output method of the navigation map image disclosed in the present invention. It should be noted that when the target application is in the background running state, although the first map drawing module cannot call the rendering engine on the GPU to draw the navigation map image, other functions can be used normally. Therefore, under the premise that both the first map drawing module and the second map drawing module are installed and run on the navigation device, the second map drawing module can request the navigation route planning result, the navigation information determined based on the positioning position, etc. from the first map drawing module, and the same function does not need to be repeatedly implemented on the first map drawing module, which can simplify the second map drawing module.

[0051] Among them, the center point of the map is usually configured as the center point of the navigation map image, or the middle and lower position; in addition, in the navigation map image, the current driving direction can be defaulted to the direction directly above the screen, so that when the current driving direction changes, the navigation map image needs to be rotated if the current driving direction does not change relative to the screen. The direction angle in the first state information can be the direction indicated in the positioning information that the user using the vehicle device is currently facing, usually relative to the north direction. Based on the direction angle, when it can be determined that the top of the screen is the direction pointed by the direction angle, the rotation angle of the navigation map image relative to the screen is different. The map data that needs to be displayed on the screen is different.

[0052] The map data required for the navigation map image may include road data expressing the roads in the navigation map image, and the road data may include vector data such as position coordinates of shape points corresponding to each road. In some embodiments, the position coordinates may be longitude and latitude coordinates. The map data may be data after unnecessary graphical interface elements such as point of interest data, area data, base map road names, road signs, etc. in the navigation state are deleted based on the parent library data.

[0053] In order to enable the target application to continue to draw the navigation map image after being switched to the background running state, the disclosed embodiment calculates the map data required for drawing the navigation map image without relying on the map rendering engine running on the GPU, and then calls the system interface running on the CPU to draw the road data used to express the road in the map data into a navigation map image, thereby outputting the navigation map image to the vehicle device. The system interface can be understood as some drawing-related interfaces running on the operating system of the navigation device CPU, such as an interface for drawing lines on a canvas, an interface for drawing text on a canvas, and an interface for drawing an image on a canvas. These interfaces can be interfaces that come with the operating system, or they can be interfaces that are extended by the program developer within the scope of authorization.

[0054] As mentioned above, the map data required for drawing the navigation map image is the map data that retains the road data expressing the road after deletion, and the road data includes, for example, the latitude and longitude coordinates of the road shape points. The road expressed by the above road shape points can be drawn on the image by calling the corresponding system interface, thereby forming the road on the navigation map image. Taking the IOS operating system installed on the navigation device as an example, the system interface for drawing the road on the navigation map image may include but is not limited to: CGContextMoveToPoint (adding the starting point of the road), CGContextAddLineToPoint (adding other points starting from the starting point), CGContextStrokePath (drawing the added starting point and other points on the pre-created canvas to obtain a navigation map image including the road), etc.

[0055] As described above, the target application on the navigation device can send the drawn navigation map image to the vehicle device through a short-range communication method such as Bluetooth, and then display it on the screen of the vehicle device. Figure 2As shown, an image effect with a road drawn is shown. It is understandable that when the target application is not switched to the background, the navigation map image can also be displayed on the interface of the target application, and when the navigation device is off screen or the navigation device is not off screen but the target application is switched to the background, only the navigation map image is output and not displayed on the screen of the navigation device.

[0056] In an optional implementation of this embodiment, the step of obtaining the map data required for drawing the navigation map image to be displayed on the vehicle device may be implemented as follows:

[0057] Acquiring first status information of the navigation map image;

[0058] A first target map slice required for drawing the navigation map image is calculated based on the first state information; wherein the first target map slice is a partial slice of all map slices constituting the entire map.

[0059] In this optional implementation, as described above, the first state information includes the map size, map center point, map zoom level and direction angle in the navigation map image to be drawn. It is understandable that the map size depends on the window size of the navigation map image displayed on the vehicle equipment. When the map size remains unchanged, the larger the map zoom level, the larger the map range, and the smaller the map zoom level, the smaller the map range. In addition, the map range that needs to be displayed on the screen is different for different direction angles. In order to ensure that the direction pointed by the direction angle always points to the top of the screen, the navigation map image needs to be rotated after the direction angle changes. Since the map rotation is based on the map center point as the anchor point, the map center point is different, and the map range after the navigation map image is rotated is also different. Therefore, the map range presented in the navigation map image is related to the map size, map center point, map zoom level and direction angle in the first state information.

[0060] Based on the map range, the map data within the map range can be extracted from the original map data, and the extracted map data includes the map data of all roads to be presented on the navigation map image. The map data includes road data, and the road data includes the position coordinates (such as longitude and latitude coordinates) of each shape point on the road. It should be noted that the original map data can be used to implement the method described in the present disclosure, and the map data set, for example, the original map data can be obtained after filtering and processing on the basis of the mother library data, and the road data expressing the road is retained.

[0061] It is understandable that the map data is stored in the form of map slices, that is, the map data is stored by dividing the complete map into multiple map slices, and the size of each map slice can be pre-set, for example, it can be a map slice within a 1*1 kilometer geographical range. Therefore, the map range determined based on the first state information can be one or more first target map slices included in the map range. Each first target map slice includes road data of part of the roads in the navigation map image. The road data in all first target map slices can express all the roads in the navigation map image. It should be noted that the position coordinates of the road data of the map data in the first target map slice are stored in the form of offsets, that is, each first map slice corresponds to a reference position, and the position coordinates of all road data in the first map slice are offsets from the reference position. Therefore, the real position coordinates of each road data in the first target map slice, such as longitude and latitude coordinates, can be calculated by the offset corresponding to the road data and the reference position of the first target map slice.

[0062] In an optional implementation of this embodiment, the step of calling the system interface running on the CPU of the navigation device to draw the road data into a navigation map image can be implemented as follows:

[0063] Converting the road data in the first target map slice into the image coordinate system corresponding to the navigation map image to obtain the first pixel point coordinates for drawing the road;

[0064] Calling the corresponding first system interface to set the drawing attribute corresponding to the first pixel point coordinates;

[0065] The corresponding second system interface is called to draw a road at the first pixel point coordinates according to the drawing attributes.

[0066] In this optional implementation, in order to present the road data as a road on the navigation map image, the position coordinates in the road data can be converted to the image coordinate system of the navigation map image to obtain the first pixel point coordinates corresponding to the road data, that is, the first pixel point coordinates correspond to each shape point on the road in the road data and other points between each shape point. By image drawing, the pixel values ​​of these first pixel point coordinates are assigned to the set drawing attributes, and the road can be presented in the navigation map image. It should be noted that image drawing can be understood as assigning the color value corresponding to the first pixel point coordinate on the initially created canvas with the color value set for presenting the road, so that a navigation map image presenting the road can be obtained.

[0067] It is understandable that the first system interface and the second system interface may include multiple, respectively, depending on the navigation device. Drawing attributes may be set based on pre-configured data, and the drawing attributes may include but are not limited to: the color, width, end shape (such as round head) corresponding to the road in the navigation map image, the shape of the connecting part between the roads, etc. Taking the IOS operating system installed on the navigation device as an example, the first system interface may include but is not limited to: CGContextSetStrokeColorWithColor (setting color), CGContextSetLineWidth (setting width), CGContextSetLineCap (setting end shape), CGContextSetLineJoin (setting connecting part shape), etc.; the second system interface may include but is not limited to: CGContextMoveToPoint (adding the starting point of the road), CGContextAddLineToPoint (adding other points from the starting point), CGContextStrokePath (drawing the added starting point and other points on the pre-created canvas to obtain a navigation map image including the road), etc.

[0068] In an optional implementation of this embodiment, step S102, i.e., calling the second map drawing module to draw the navigation map image, further includes the following steps:

[0069] The corresponding third system interface is called to draw navigation information on the upper layer of the road in the navigation map image; the navigation information includes at least one of the following: a navigation route, vehicle logo related information, and text information on the navigation route.

[0070] In this optional implementation, as described above, the first map drawing module can plan the navigation route according to the user's navigation needs, and provide the navigation information to the second map drawing module in real time based on the user's positioning position (that is, the positioning position of the vehicle equipment), so that after each road on the navigation map image is drawn, the navigation information can be drawn on the road layer.

[0071] The first map drawing module may pre-set a callback function for navigation events, such as navigation events caused by a user deviating from the original navigation route and causing a change in the navigation route, navigation events caused by a change in the location of the vehicle equipment, etc. After the first map drawing module detects the above navigation events, the navigation event may be sent to the second map drawing module, and the navigation event may carry the navigation information. After the second map drawing module draws a navigation map image expressing the road, it may continue to draw the navigation information on the road layer of the navigation map image.

[0072] Drawing navigation information on the road layer can be understood as covering the navigation route, vehicle logo related information and / or text information included in the navigation information on the road. The navigation route includes road data on the navigation route, such as the starting point, the end point, and the position coordinates of the shape points on the road between the starting point and the end point of the navigation route. Vehicle logo related information may include the positioning position of the vehicle equipment (the vehicle logo image needs to be drawn at the positioning position on the map. When the vehicle equipment does not have a positioning module, the positioning position of the navigation device can be used as the standard) and the direction angle. The positioning position and the direction angle can be obtained based on the positioning information of the positioning module (such as GPS information). In some embodiments, the vehicle logo image on the navigation map image can be represented by an arrow, and the arrow points to the same direction angle. As described above, after the direction angle is presented on the navigation map image, it always points to the top of the screen. Therefore, after the user's driving direction changes, the vehicle logo image will rotate to a certain extent, and the rotation angle of the vehicle logo image is related to the direction angle. In some embodiments, while drawing the vehicle logo image, a compass image can also be drawn. The compass image is used to indicate various directions on the navigation map image, such as the four directions of southeast, northwest, and northeast. The compass image may be a ring, and various directions are marked on the ring. The ring may be nested outside the vehicle logo image, such as Figure 3 shown.

[0073] The third system interface may include one or more, and the third system interface may be the same as, different from, or partially the same as the first system interface and the second system interface. Different navigation information may call the same third system interface for drawing, or may call different system interfaces for drawing, depending on the specific content of the navigation information and the navigation device.

[0074] If the navigation information also includes information related to the car logo, the car logo image can be drawn at the center point of the map in the navigation map image. Since the center point of the map corresponds to one pixel, and the car logo image needs to occupy multiple pixels, the drawing area of ​​the car logo image can also be set first, such as aligning the origin of the car logo image with the center point of the map for drawing. In addition, it is necessary to rotate the navigation map image with the center point of the map as the anchor point according to the direction angle in the relevant information of the car logo, so that the arrow in the car logo image always points to the top of the screen, and then draw the car logo image on the upper layer of the road in the navigation map image. The effect diagram of the navigation map image with the navigation information drawn is shown in the figure below. Figure 3Still taking the IOS operating system as an example, the third system interface related to drawing the car logo includes but is not limited to CGRect imageRect (used to specify the drawing area of ​​the car logo image in the navigation map image), CGContextDrawImage (used to draw the car logo image in the drawing area), CGContextTrans l ateCTM and CGContextRotateCTM (these two system interfaces can use the position point where the car logo image is to be drawn as the anchor point to rotate the navigation map image, so that after the car logo image is drawn on the navigation map image, the arrow direction points to the correct direction) and the like.

[0075] In addition, if the navigation information also includes text information, the text information may be the road name on the navigation route, etc. Therefore, the text information in the navigation information corresponds to the road on the navigation route. After drawing the navigation route, the text information can be drawn at the corresponding position of the navigation route. For example, the navigation route includes 3 sections of road and 3 corresponding road names. After drawing the navigation route, the three road names can be drawn at the corresponding positions of the respective roads on the navigation route. Still taking the IOS operating system as an example, the third system interface used for drawing text information may include but is not limited to: CGRectMake (constructing the area information for drawing text), drawI nRect:withAttr ibutes (drawing the specified text in the area indicated by the area information for drawing text), etc.

[0076] In an optional implementation of this embodiment, when the navigation information includes a navigation route, the step of calling the corresponding third system interface to draw the navigation information on an upper layer of the road in the navigation map image may be implemented as follows:

[0077] Converting the navigation route to an image coordinate system corresponding to the navigation map image to obtain second pixel point coordinates for drawing the navigation route;

[0078] Calling the third system interface to set the drawing attribute corresponding to the coordinates of the second pixel point;

[0079] The third system interface is called to draw the navigation route at the second pixel point coordinates according to the drawing attributes.

[0080] In this optional implementation, as described above, the navigation route also includes road data, so the drawing of the navigation route is similar to the drawing of the road. The third system interface called for drawing the navigation route can be the same as the first system interface and the second system interface. For example, each coordinate point on the navigation route can be converted to the image coordinate system of the navigation map image to obtain the corresponding second pixel point coordinates, and the color and other drawing properties of the navigation route can be set by calling the system interface for drawing attributes. The system interface for drawing lines can also be called to draw the navigation route at the second pixel point coordinates according to the set drawing properties of the navigation route. In this way, the navigation route will be presented at the second pixel point coordinates corresponding to the navigation route, and the drawn roads that overlap with the navigation route will be covered by the navigation route. For the specific drawing details of the navigation route, please refer to the drawing details of the road above, which will not be repeated here.

[0081] In an optional implementation of this embodiment, calling the second map drawing module to draw the navigation map image may further include the following steps:

[0082] In response to a request to draw a next navigation map image, obtaining second state information of the next navigation map image;

[0083] If there is a difference between the second state information of the next navigation map image and the first state information of the previous navigation map image, jumping to the step of obtaining map data required for drawing the navigation map image to be displayed on the vehicle device;

[0084] If there is no difference between the second state information of the next navigation map image and the first state information of the previous navigation map image, the navigation map image corresponding to the previous navigation map image is output.

[0085] In this optional implementation, as described above, the second map drawing module does not rely on the rendering engine on the GPU and cannot automatically draw the next navigation map image by setting the frame rate. However, in the present disclosure, the target application can set and start a timer on the CPU so that after the timer's timing is reached, a request to draw the next navigation map image is sent to the second map drawing module. If there is no difference between the second state information corresponding to the next navigation map image to be drawn and the first state information corresponding to the navigation map image that has been drawn and displayed on the vehicle device, in this case, there is no difference between the next navigation map image and the currently drawn navigation map image. At this time, the navigation map image can no longer be redrawn, but the drawn navigation map image can continue to be used, and the navigation device can send the drawn navigation map image to the requester. It should be noted that the requester can be other applications installed and running on the navigation device, and the above-mentioned timer can also be set by the other application. The other application obtains the drawn navigation map image and sends it to the vehicle device.

[0086] If the second state information is different from the first state information, it means that the next navigation map image to be drawn has undergone some changes compared to the navigation map image that has been drawn, such as the position of the map center point has changed (when the positioning position of the vehicle device changes, the position of the map center point on the navigation map image will change accordingly), and the map rotation direction has changed (when the driving direction changes, since the top of the screen on the navigation map image is always consistent with the driving direction, the map will rotate to a certain extent in the next navigation map image). At this time, you can jump to the step of obtaining the map data required to draw the navigation map image to be displayed on the vehicle device, so as to redraw the next navigation map image.

[0087] In an optional implementation of this embodiment, when the navigation map image to be displayed on the vehicle-mounted device is the next navigation map image, the step of acquiring the map data required for drawing the navigation map image to be displayed on the vehicle-mounted device may be implemented as follows:

[0088] Determining a second target map slice required for drawing the next navigation map image based on the second state information of the next navigation map image;

[0089] Compared with the first target map slice, a newly added map slice in the second target map slice is determined.

[0090] In this optional implementation, since the difference between the currently drawn navigation map image and the next navigation map image to be drawn is small, the second map range of the map data required for drawing the next navigation map image can be calculated based on the second state information corresponding to the next navigation map image, and then the map range is compared with the first map range of the map data required for the currently drawn navigation map image, and the additional range of the second map range compared to the first map range is determined, the map data within the additional range is obtained, and the map data within the additional range is drawn into a new image. The drawn navigation map image can be translated and / or rotated based on the difference between the first state information and the second state information, and then spliced ​​with the newly drawn image to obtain the next navigation map image.

[0091] As described above, maps are stored according to map slices. For the convenience of description, the map slice within the first map range corresponding to the previous navigation map image is called the first target map slice, and the map slice within the second map range corresponding to the next navigation map image is called the second target map slice. The extra map slices of the second target map slice compared to the first target map slice are the newly added map slices that need to be drawn. For example, the first target map slices include A1, A2, A3 and A4, and the second target map slices include A3, A4, A5 and A6, then the newly added map slices are A5 and A6. The above implementation is not applicable to the first frame of navigation map image, but is applicable to all subsequent navigation map images starting from the second frame.

[0092] In an optional implementation of this embodiment, the step of calling the system interface running on the CPU of the navigation device to draw the road data into a navigation map image can be implemented as follows:

[0093] adjusting the previous navigation map image according to the difference between the first state information and the second state information to obtain an adjusted image; the state information of the adjusted image is consistent with the second state information;

[0094] Converting the road data in the newly added map slice to the image coordinate system corresponding to the adjusted image to obtain the second pixel point coordinates for drawing the road;

[0095] Calling the corresponding first system interface to set the drawing attribute corresponding to the coordinates of the second pixel point;

[0096] The corresponding second system interface is called to draw a road at the second pixel point coordinates according to the drawing attributes.

[0097] In this optional implementation, when drawing the next navigation map image using the newly added map slice, it is first necessary to adjust the previous navigation map image into an adjusted image based on the difference between the first state information and the second state information. The adjustment process may include but is not limited to image translation, scaling and rotation. The direction and distance of the translation may depend on the change in the center position of the map in the first state information and the second state information. The degree of scaling depends on the difference in map zoom levels between the first state information and the second state information. The angle of rotation depends on the difference in direction angles between the first state information and the second state information.

[0098] After obtaining the adjusted image, the road data in the newly added map slice may be converted to an image coordinate system corresponding to the adjusted image to obtain the second pixel point coordinates required to present the road in the newly added map slice.

[0099] In accordance with the method of drawing the road on the first pixel point coordinates described above, the road is drawn on the second pixel point coordinates of the adjusted image. It is understandable that in the adjusted image obtained after the navigation map image is adjusted, all or part of the area corresponding to the second pixel point coordinates is a blank area, so after the road data in the newly added map slice is drawn on the second pixel point coordinates, the blank area can be filled so as to form a complete next navigation map image with the image of the non-blank area.

[0100] In an optional implementation of this embodiment, in response to a state event in which the target application is switched to background operation, the method further includes the following steps:

[0101] Start the preset timer;

[0102] After the timing time of the timer is reached, sending a timing event to the second map drawing module;

[0103] The second map drawing module draws a navigation map image based on the timing event.

[0104] In this optional implementation, after the target application is switched to the background, the target application cannot call the first map drawing module that depends on the GPU, so it needs to call the second map drawing module. Since the second map drawing module uses the system interface running on the CPU, it cannot continuously draw the navigation map image at a certain frame rate like the rendering engine on the GPU. Therefore, it is necessary to set a timer. After the timer is started, each time the timing time is reached, the second map drawing module is triggered to call the system interface running on the CPU of the navigation device to draw the navigation map image, and the target application outputs it to the vehicle device. The timing time of the timer can be set according to the frame rate of outputting the navigation map image to the vehicle device. After the timing events are continuously generated at intervals of the timing time, the second map drawing module continuously draws the navigation map image at the timing time interval, and the target application outputs it to the vehicle device, so that the target application can achieve the purpose of outputting the navigation map image to the vehicle device at a certain frame rate.

[0105] According to a method for displaying a navigation map image in one embodiment of the present disclosure, the method for displaying a navigation map image includes the following steps:

[0106] When the target application running on the navigation device is in the foreground running state, in response to a request to output the navigation map image to the vehicle device, calling the first map drawing module to draw the navigation map image;

[0107] When the target application is in the background running state, the navigation device calls the second map drawing module to draw the navigation map image in response to the request to output the navigation map image to the vehicle device, wherein the first map drawing module draws the navigation map image using the GPU; and the second map drawing module draws the navigation map image using the CPU;

[0108] The navigation device outputs the navigation map image drawn by the first map drawing module or the second map drawing module to the vehicle device;

[0109] The vehicle equipment displays the received navigation map image on a display screen.

[0110] In this embodiment, the navigation device and the vehicle device can communicate via Bluetooth, WI FI, etc., and the target application running on the navigation device can output the navigation map image to the vehicle device for display, so as to guide the user to travel along the route on the navigation map image. In some embodiments, the request to output the navigation map image to the vehicle device can be generated by the user by operating the target application. For example, after the user clicks on the navigation page on the interface provided by the target application, the above request will be generated when the user enters the starting point and destination for navigation. In other embodiments, if the hardware conditions of the vehicle device support it, the user can also operate the vehicle device, so that the vehicle device sends the above request to the navigation device, and the above request is responded to by the target application running on the navigation device.

[0111] The specific details involved in the above process can be found in the description of the output method of the navigation map image above, which will not be repeated here.

[0112] In this embodiment, the received navigation map image can be displayed on the screen of the vehicle device. Every time a new navigation map image is received, the new navigation map image is updated and displayed on the screen. After the navigation device sends the navigation map image to the vehicle device at a certain frame rate, the navigation map image can be dynamically updated and displayed on the screen of the vehicle device at the frame rate, thereby dynamically guiding the user to travel along the route on the dynamically updated navigation map image.

[0113] The following are embodiments of the apparatus of the present disclosure, which can be used to execute embodiments of the method of the present disclosure.

[0114] Figure 4 FIG. 1 is a block diagram showing a device for outputting a navigation map image according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 4 As shown, the output device of the navigation map image includes:

[0115] The first calling module 401 is configured to call a first map drawing module to draw a navigation map image in response to a request to output a navigation map image to the vehicle device when the target application is in the foreground running state, wherein the first map drawing module draws the navigation map image using a GPU;

[0116] The second calling module 402 is configured to call a second map drawing module to draw a navigation map image in response to a request to output a navigation map image to the vehicle device when the target application is in a background running state, and the second map drawing module draws the navigation map image using a CPU;

[0117] The navigation map image drawn by the first map drawing module or the second map drawing module is output to the vehicle machine device.

[0118] In this embodiment, the output device of the navigation map image is executed by a target application installed and running on the navigation device. The target application may be an application developed by a third-party vehicle manufacturer, which can interact with the vehicle device. The target application uses the GPU or CPU of the navigation device to draw the navigation map image, and outputs the drawn navigation map image to the vehicle device for display, thereby realizing the solution of the vehicle device navigating for the user. The navigation device may be a device that can install and run a software development kit, such as a mobile phone. The vehicle device may be a low-end embedded device that is limited by hardware and software capabilities and cannot install and run a software development kit, such as a vehicle device suitable for a two-wheeled vehicle. Of course, it is understandable that if the vehicle device is a device that can install and run a software development kit, the solution disclosed in this disclosure is also applicable.

[0119] The navigation device and the vehicle-mounted device can communicate via Bluetooth, WI FI, etc. The target application running on the navigation device can output the navigation map image to the vehicle-mounted device for display, so as to guide the user to drive along the route on the navigation map image. It should be noted that the first map drawing module and the second map drawing module can also be installed and run on the navigation device. The first map drawing module can use the GPU to draw the navigation map image, and the second map drawing module can use the CPU to draw the navigation map image. The first map drawing module and the second map drawing module can be independently developed software development kits relative to the target application. After the target application draws the navigation map image by calling the first map drawing module or the second map drawing module, the navigation map image is output to the vehicle-mounted device for display. After the navigation map image is drawn, the target application may not display it on the screen of the navigation device, or it may display it on the screen of the navigation device. The target application can assemble the navigation map image output by the navigation device into a video stream at a certain frame rate and output it to the vehicle-mounted device.

[0120] In some embodiments, the request to output the navigation map image to the vehicle device can be generated by the user through the operation of the target application, for example, after the user clicks on the navigation page on the interface provided by the target application and enters the starting point and destination for navigation, the above request will be generated. In this embodiment, when the navigation map image starts to be output to the vehicle device, since the target application is in the foreground running state, the target application detects the request to output the navigation map image to the vehicle device initiated by the user through the operation of the target application, and calls the first map drawing module to draw the navigation map image.

[0121] In other embodiments, if the hardware conditions of the vehicle-mounted device support it, the user can also operate the vehicle-mounted device, so that the vehicle-mounted device sends the above-mentioned request to the navigation device, and the above-mentioned request is responded to by the target application running on the navigation device. If the target application is in the foreground running state, the target application responds to the request and calls the first map drawing module to draw the navigation map image; if the target application is in the background running state, since the first map drawing module needs to rely on the GPU to draw the navigation map image, and some navigation devices are restricted by system permissions, the target application running in the background cannot call the rendering engine on the GPU. Therefore, in this case, the target application can call the second map drawing module to draw the navigation map image, and the second map image draws the navigation map image by calling the system interface running on the CPU.

[0122] Afterwards, if the target application is in the foreground running state and the first map drawing module is called up by the target application, since the first map drawing module draws the navigation map image through the rendering engine on the GPU, and the rendering engine itself supports outputting the navigation map image at a preset frame rate, the target application can continuously output the navigation map image to the vehicle device based on the navigation map image output by the rendering engine at a certain frame rate.

[0123] If the target application is in the background running state, and the second map drawing module is called by the target application, since the second map drawing module needs to call the system interface running on the CPU to draw the navigation map image, calling the second map drawing module once can only output one navigation map image, and all target applications need to continuously call the second map drawing module at a certain frame rate, so as to continuously output the navigation map image to the vehicle device at a certain frame rate. In some embodiments, the target application can call the second map drawing module to continuously draw the navigation map image by setting a timer and continuously triggering the timer.

[0124] In order to continuously output the navigation map image to the vehicle device after the target application on the navigation device is switched to the background operation (for example, the target application will be switched to the background operation after the navigation device is turned off, or the target application is switched to the background operation by the user), the embodiment of the present disclosure calls the second map drawing module that does not rely on the GPU to draw the navigation map image when the target application is in the background operation state, and calls the first map drawing module that relies on the GPU to draw the navigation map image when the target application is in the foreground operation state. The navigation map image output by the first map drawing module or the second map drawing module is output by the target application to the vehicle device for display, so as to guide the user to drive along the navigation route through the navigation map image displayed on the vehicle device. In the above implementation, when the target application on the navigation device is in the background operation state, the first map drawing module that relies on the GPU may not be called, but the second map drawing module that relies on the CPU may be used to complete the drawing of the navigation map image, so as to achieve the purpose of still being able to draw and output the navigation map image to the vehicle device even after the navigation device is turned off, so that the vehicle device is no longer affected by the navigation device turning off the screen, and the user's experience of using the vehicle device is improved.

[0125] In an optional implementation of this embodiment, the second calling module can be implemented as follows:

[0126] Acquire map data required for drawing a navigation map image to be displayed on a vehicle device; the map data includes road data expressing roads in the navigation map image;

[0127] The system interface running on the CPU of the navigation device is called to draw the road data into a navigation map image.

[0128] In this optional implementation, the map data required to draw the navigation map image to be displayed on the vehicle device can be determined based on the first state information of the navigation map image, and the first state information may include but is not limited to map size, map center point, map zoom level and direction angle, etc. The map size may depend on the size of the window displaying the navigation map image on the vehicle device, and may be pre-configured, or obtained directly from the vehicle device, or obtained from other applications on the navigation device that send the navigation map image to the vehicle device. It can be set according to actual needs, and the present disclosure does not impose specific restrictions on this. The map center point, map zoom level and direction angle can be provided by a first map drawing module installed and running on the navigation device. The first map drawing module may be a navigation software development kit, which can implement all or part of the functions of the navigation application. In this embodiment, the first map drawing module performs path planning according to the starting point and destination provided by the user of the vehicle device, and generates corresponding navigation information based on the path planning. The navigation information may include the above-mentioned first state information. The first state information may be realized by setting a callback function in the first map drawing module, that is, during the operation of the first map drawing module, the callback function is triggered to run based on the corresponding callback event, and then the generated first state information is provided to the second map drawing module of the output device for executing the navigation map image of the present disclosure. It should be noted that when the target application is in the background running state, although the first map drawing module cannot call the rendering engine on the GPU to draw the navigation map image, other functions can be used normally. Therefore, under the premise that both the first map drawing module and the second map drawing module are installed and run on the navigation device, the second map drawing module can request the navigation route planning result, the navigation information determined based on the positioning position, etc. from the first map drawing module, and the same function does not need to be repeatedly implemented on the first map drawing module, which can simplify the second map drawing module.

[0129] Among them, the center point of the map is usually configured as the center point of the navigation map image, or the middle and lower position; in addition, in the navigation map image, the current driving direction can be defaulted to the direction directly above the screen, so that when the current driving direction changes, the navigation map image needs to be rotated if the current driving direction does not change relative to the screen. The direction angle in the first state information can be the direction indicated in the positioning information that the user using the vehicle device is currently facing, usually relative to the north direction. Based on the direction angle, when it can be determined that the top of the screen is the direction pointed by the direction angle, the rotation angle of the navigation map image relative to the screen is different. The map data that needs to be displayed on the screen is different.

[0130] The map data required for the navigation map image may include road data expressing the roads in the navigation map image, and the road data may include vector data such as position coordinates of shape points corresponding to each road. In some embodiments, the position coordinates may be longitude and latitude coordinates. The map data may be data after unnecessary graphical interface elements such as point of interest data, area data, base map road names, road signs, etc. in the navigation state are deleted based on the parent library data.

[0131] In order to enable the target application to continue to draw the navigation map image after being switched to the background running state, the disclosed embodiment calculates the map data required for drawing the navigation map image without relying on the map rendering engine running on the GPU, and then calls the system interface running on the CPU to draw the road data used to express the road in the map data into a navigation map image, thereby outputting the navigation map image to the vehicle device. The system interface can be understood as some drawing-related interfaces running on the operating system of the navigation device CPU, such as an interface for drawing lines on a canvas, an interface for drawing text on a canvas, and an interface for drawing an image on a canvas. These interfaces can be interfaces that come with the operating system, or they can be interfaces that are extended by the program developer within the scope of authorization.

[0132] As mentioned above, the map data required for drawing the navigation map image is the map data that retains the road data expressing the road after deletion, and the road data includes, for example, the latitude and longitude coordinates of the road shape points. The road expressed by the above road shape points can be drawn on the image by calling the corresponding system interface, thereby forming the road on the navigation map image. Taking the IOS operating system installed on the navigation device as an example, the system interface for drawing the road on the navigation map image may include but is not limited to: CGContextMoveToPoint (adding the starting point of the road), CGContextAddLineToPoint (adding other points starting from the starting point), CGContextStrokePath (drawing the added starting point and other points on the pre-created canvas to obtain a navigation map image including the road), etc.

[0133] As described above, the target application on the navigation device can send the drawn navigation map image to the vehicle device through a short-range communication method such as Bluetooth, and then display it on the screen of the vehicle device. Figure 2As shown, an image effect with a road drawn is shown. It is understandable that when the target application is not switched to the background, the navigation map image can also be displayed on the interface of the target application, and when the navigation device is off screen or the navigation device is not off screen but the target application is switched to the background, only the navigation map image is output and not displayed on the screen of the navigation device.

[0134] In an optional implementation of this embodiment, obtaining the map data required for drawing the navigation map image to be displayed on the vehicle device may be implemented as follows:

[0135] Acquiring first status information of the navigation map image;

[0136] A first target map slice required for drawing the navigation map image is calculated based on the first state information; wherein the first target map slice is a partial slice of all map slices constituting the entire map.

[0137] In this optional implementation, as described above, the first state information includes the map size, map center point, map zoom level and direction angle in the navigation map image to be drawn. It is understandable that the map size depends on the window size of the navigation map image displayed on the vehicle equipment. When the map size remains unchanged, the larger the map zoom level, the larger the map range, and the smaller the map zoom level, the smaller the map range. In addition, the map range that needs to be displayed on the screen is different for different direction angles. In order to ensure that the direction pointed by the direction angle always points to the top of the screen, the navigation map image needs to be rotated after the direction angle changes. Since the map rotation is based on the map center point as the anchor point, the map center point is different, and the map range after the navigation map image is rotated is also different. Therefore, the map range presented in the navigation map image is related to the map size, map center point, map zoom level and direction angle in the first state information.

[0138] Based on the map range, the map data within the map range can be extracted from the original map data, and the extracted map data includes the map data of all roads to be presented on the navigation map image. The map data includes road data, and the road data includes the position coordinates (such as longitude and latitude coordinates) of each shape point on the road. It should be noted that the original map data can be used to implement the device described in the present disclosure, and the map data set, for example, the original map data can be obtained after filtering and processing on the basis of the mother library data, retaining the road data expressing the road.

[0139] It is understandable that the map data is stored in the form of map slices, that is, the map data is stored by dividing the complete map into multiple map slices, and the size of each map slice can be pre-set, for example, it can be a map slice within a 1*1 kilometer geographical range. Therefore, the map range determined based on the first state information can be one or more first target map slices included in the map range. Each first target map slice includes road data of part of the roads in the navigation map image. The road data in all first target map slices can express all the roads in the navigation map image. It should be noted that the position coordinates of the road data of the map data in the first target map slice are stored in the form of offsets, that is, each first map slice corresponds to a reference position, and the position coordinates of all road data in the first map slice are offsets from the reference position. Therefore, the real position coordinates of each road data in the first target map slice, such as longitude and latitude coordinates, can be calculated by the offset corresponding to the road data and the reference position of the first target map slice.

[0140] In an optional implementation of this embodiment, calling the system interface running on the CPU of the navigation device to draw the road data into a navigation map image can be implemented as follows:

[0141] Converting the road data in the first target map slice into the image coordinate system corresponding to the navigation map image to obtain the first pixel point coordinates for drawing the road;

[0142] Calling the corresponding first system interface to set the drawing attribute corresponding to the first pixel point coordinates;

[0143] The corresponding second system interface is called to draw a road at the first pixel point coordinates according to the drawing attributes.

[0144] In this optional implementation, in order to present the road data as a road on the navigation map image, the position coordinates in the road data can be converted to the image coordinate system of the navigation map image to obtain the first pixel point coordinates corresponding to the road data, that is, the first pixel point coordinates correspond to each shape point on the road in the road data and other points between each shape point. By image drawing, the pixel values ​​of these first pixel point coordinates are assigned to the set drawing attributes, and the road can be presented in the navigation map image. It should be noted that image drawing can be understood as assigning the color value corresponding to the first pixel point coordinate on the initially created canvas with the color value set for presenting the road, so that a navigation map image presenting the road can be obtained.

[0145] It is understandable that the first system interface and the second system interface may include multiple, respectively, depending on the navigation device. Drawing attributes may be set based on pre-configured data, and the drawing attributes may include but are not limited to: the color, width, end shape (such as round head) corresponding to the road in the navigation map image, the shape of the connecting part between the roads, etc. Taking the IOS operating system installed on the navigation device as an example, the first system interface may include but is not limited to: CGContextSetStrokeColorWithColor (setting color), CGContextSetLineWidth (setting width), CGContextSetLineCap (setting end shape), CGContextSetLineJoin (setting connecting part shape), etc.; the second system interface may include but is not limited to: CGContextMoveToPoint (adding the starting point of the road), CGContextAddLineToPoint (adding other points from the starting point), CGContextStrokePath (drawing the added starting point and other points on the pre-created canvas to obtain a navigation map image including the road), etc.

[0146] In an optional implementation of this embodiment, the second calling module may also be implemented as follows:

[0147] The corresponding third system interface is called to draw navigation information on the upper layer of the road in the navigation map image; the navigation information includes at least one of the following: a navigation route, vehicle logo related information, and text information on the navigation route.

[0148] In this optional implementation, as described above, the first map drawing module can plan the navigation route according to the user's navigation needs, and provide the navigation information to the second map drawing module in real time based on the user's positioning position (that is, the positioning position of the vehicle equipment), so that after each road on the navigation map image is drawn, the navigation information can be drawn on the road layer.

[0149] The first map drawing module may pre-set a callback function for navigation events, such as navigation events caused by a user deviating from the original navigation route and causing a change in the navigation route, navigation events caused by a change in the location of the vehicle equipment, etc. After the first map drawing module detects the above navigation events, the navigation event may be sent to the second map drawing module, and the navigation event may carry the navigation information. After the second map drawing module draws a navigation map image expressing the road, it may continue to draw the navigation information on the road layer of the navigation map image.

[0150] Drawing navigation information on the road layer can be understood as covering the navigation route, vehicle logo related information and / or text information included in the navigation information on the road. The navigation route includes road data on the navigation route, such as the starting point, the end point, and the position coordinates of the shape points on the road between the starting point and the end point of the navigation route. Vehicle logo related information may include the positioning position of the vehicle equipment (the vehicle logo image needs to be drawn at the positioning position on the map. When the vehicle equipment does not have a positioning module, the positioning position of the navigation device can be used as the standard) and the direction angle. The positioning position and the direction angle can be obtained based on the positioning information of the positioning module (such as GPS information). In some embodiments, the vehicle logo image on the navigation map image can be represented by an arrow, and the arrow points to the same direction angle. As described above, after the direction angle is presented on the navigation map image, it always points to the top of the screen. Therefore, after the user's driving direction changes, the vehicle logo image will rotate to a certain extent, and the rotation angle of the vehicle logo image is related to the direction angle. In some embodiments, while drawing the vehicle logo image, a compass image can also be drawn. The compass image is used to indicate various directions on the navigation map image, such as the four directions of southeast, northwest, and northeast. The compass image may be a ring, and various directions are marked on the ring. The ring may be nested outside the vehicle logo image, such as Figure 3 shown.

[0151] The third system interface may include one or more, and the third system interface may be the same as, different from, or partially the same as the first system interface and the second system interface. Different navigation information may call the same third system interface for drawing, or may call different system interfaces for drawing, depending on the specific content of the navigation information and the navigation device.

[0152] If the navigation information also includes information related to the car logo, the car logo image can be drawn at the center point of the map in the navigation map image. Since the center point of the map corresponds to one pixel, and the car logo image needs to occupy multiple pixels, the drawing area of ​​the car logo image can also be set first, such as aligning the origin of the car logo image with the center point of the map for drawing. In addition, it is necessary to rotate the navigation map image with the center point of the map as the anchor point according to the direction angle in the relevant information of the car logo, so that the arrow in the car logo image always points to the top of the screen, and then draw the car logo image on the upper layer of the road in the navigation map image. The effect diagram of the navigation map image with the navigation information drawn is shown in the figure below. Figure 3Still taking the IOS operating system as an example, the third system interface related to drawing the car logo includes but is not limited to CGRect imageRect (used to specify the drawing area of ​​the car logo image in the navigation map image), CGContextDrawImage (used to draw the car logo image in the drawing area), CGContextTrans l ateCTM and CGContextRotateCTM (these two system interfaces can use the position point where the car logo image is to be drawn as the anchor point to rotate the navigation map image, so that after the car logo image is drawn on the navigation map image, the arrow direction points to the correct direction) and the like.

[0153] In addition, if the navigation information also includes text information, the text information may be the road name on the navigation route, etc. Therefore, the text information in the navigation information corresponds to the road on the navigation route. After drawing the navigation route, the text information can be drawn at the corresponding position of the navigation route. For example, the navigation route includes 3 sections of road and 3 corresponding road names. After drawing the navigation route, the three road names can be drawn at the corresponding positions of the respective roads on the navigation route. Still taking the IOS operating system as an example, the third system interface used for drawing text information may include but is not limited to: CGRectMake (constructing the area information for drawing text), drawI nRect:withAttr ibutes (drawing the specified text in the area indicated by the area information for drawing text), etc.

[0154] In an optional implementation of this embodiment, when the navigation information includes a navigation route, calling the corresponding third system interface to draw the navigation information on an upper layer of the road in the navigation map image may be implemented as follows:

[0155] Converting the navigation route to an image coordinate system corresponding to the navigation map image to obtain second pixel point coordinates for drawing the navigation route;

[0156] Calling the third system interface to set the drawing attribute corresponding to the coordinates of the second pixel point;

[0157] The third system interface is called to draw the navigation route at the second pixel point coordinates according to the drawing attributes.

[0158] In this optional implementation, as described above, the navigation route also includes road data, so the drawing of the navigation route is similar to the drawing of the road. The third system interface called for drawing the navigation route can be the same as the first system interface and the second system interface. For example, each coordinate point on the navigation route can be converted to the image coordinate system of the navigation map image to obtain the corresponding second pixel point coordinates, and the color and other drawing properties of the navigation route can be set by calling the system interface for drawing attributes. The system interface for drawing lines can also be called to draw the navigation route at the second pixel point coordinates according to the set drawing properties of the navigation route. In this way, the navigation route will be presented at the second pixel point coordinates corresponding to the navigation route, and the drawn roads that overlap with the navigation route will be covered by the navigation route. For the specific drawing details of the navigation route, please refer to the drawing details of the road above, which will not be repeated here.

[0159] In an optional implementation of this embodiment, the calling of the second map drawing module to draw the navigation map image in the second calling module may also be implemented as follows:

[0160] In response to a request to draw a next navigation map image, obtaining second state information of the next navigation map image;

[0161] If there is a difference between the second state information of the next navigation map image and the first state information of the previous navigation map image, jump to obtaining map data required for drawing the navigation map image to be displayed on the vehicle device;

[0162] If there is no difference between the second state information of the next navigation map image and the first state information of the previous navigation map image, the navigation map image corresponding to the previous navigation map image is output.

[0163] In this optional implementation, as described above, the second map drawing module does not rely on the rendering engine on the GPU and cannot automatically draw the next navigation map image by setting the frame rate. However, in the present disclosure, the target application can set and start a timer on the CPU so that after the timer's timing is reached, a request to draw the next navigation map image is sent to the second map drawing module. If there is no difference between the second state information corresponding to the next navigation map image to be drawn and the first state information corresponding to the navigation map image that has been drawn and displayed on the vehicle device, in this case, there is no difference between the next navigation map image and the currently drawn navigation map image. At this time, the navigation map image can no longer be redrawn, but the drawn navigation map image can continue to be used, and the navigation device can send the drawn navigation map image to the requester. It should be noted that the requester can be other applications installed and running on the navigation device, and the above-mentioned timer can also be set by the other application. The other application obtains the drawn navigation map image and sends it to the vehicle device.

[0164] If the second state information is different from the first state information, it means that the next navigation map image to be drawn has undergone some changes compared to the navigation map image that has been drawn, such as the position of the map center point has changed (when the positioning position of the vehicle device changes, the position of the map center point on the navigation map image will change accordingly), the map rotation direction has changed (when the driving direction changes, since the top of the screen on the navigation map image is always consistent with the driving direction, the map will rotate to a certain extent in the next navigation map image). At this time, you can jump to obtain the map data required to draw the navigation map image to be displayed on the vehicle device, so as to redraw the next navigation map image.

[0165] In an optional implementation of this embodiment, when the navigation map image to be displayed on the vehicle-mounted device is the next navigation map image, the obtaining of the map data required for drawing the navigation map image to be displayed on the vehicle-mounted device may be implemented as follows:

[0166] Determining a second target map slice required for drawing the next navigation map image based on the second state information of the next navigation map image;

[0167] Compared with the first target map slice, a newly added map slice in the second target map slice is determined.

[0168] In this optional implementation, since the difference between the currently drawn navigation map image and the next navigation map image to be drawn is small, the second map range of the map data required for drawing the next navigation map image can be calculated based on the second state information corresponding to the next navigation map image, and then the map range is compared with the first map range of the map data required for the currently drawn navigation map image, and the additional range of the second map range compared to the first map range is determined, the map data within the additional range is obtained, and the map data within the additional range is drawn into a new image. The drawn navigation map image can be translated and / or rotated based on the difference between the first state information and the second state information, and then spliced ​​with the newly drawn image to obtain the next navigation map image.

[0169] As described above, maps are stored according to map slices. For the convenience of description, the map slice within the first map range corresponding to the previous navigation map image is called the first target map slice, and the map slice within the second map range corresponding to the next navigation map image is called the second target map slice. The extra map slices of the second target map slice compared to the first target map slice are the newly added map slices that need to be drawn. For example, the first target map slices include A1, A2, A3 and A4, and the second target map slices include A3, A4, A5 and A6, then the newly added map slices are A5 and A6. The above implementation is not applicable to the first frame of navigation map image, but is applicable to all subsequent navigation map images starting from the second frame.

[0170] In an optional implementation of this embodiment, calling the system interface running on the CPU of the navigation device to draw the road data into a navigation map image can be implemented as follows:

[0171] adjusting the previous navigation map image according to the difference between the first state information and the second state information to obtain an adjusted image; the state information of the adjusted image is consistent with the second state information;

[0172] Converting the road data in the newly added map slice to the image coordinate system corresponding to the adjusted image to obtain the second pixel point coordinates for drawing the road;

[0173] Calling the corresponding first system interface to set the drawing attribute corresponding to the coordinates of the second pixel point;

[0174] The corresponding second system interface is called to draw a road at the second pixel point coordinates according to the drawing attributes.

[0175] In this optional implementation, when drawing the next navigation map image using the newly added map slice, it is first necessary to adjust the previous navigation map image into an adjusted image based on the difference between the first state information and the second state information. The adjustment process may include but is not limited to image translation, scaling and rotation. The direction and distance of the translation may depend on the change in the center position of the map in the first state information and the second state information. The degree of scaling depends on the difference in map zoom levels between the first state information and the second state information. The angle of rotation depends on the difference in direction angles between the first state information and the second state information.

[0176] After obtaining the adjusted image, the road data in the newly added map slice may be converted to an image coordinate system corresponding to the adjusted image to obtain the second pixel point coordinates required to present the road in the newly added map slice.

[0177] In accordance with the method of drawing the road on the first pixel point coordinates described above, the road is drawn on the second pixel point coordinates of the adjusted image. It is understandable that in the adjusted image obtained after the navigation map image is adjusted, all or part of the area corresponding to the second pixel point coordinates is a blank area, so after the road data in the newly added map slice is drawn on the second pixel point coordinates, the blank area can be filled so as to form a complete next navigation map image with the image of the non-blank area.

[0178] In an optional implementation of this embodiment, in response to a state event in which the target application is switched to background operation, the device further includes:

[0179] A starting module is configured to start a preset timer;

[0180] a sending module, configured to send a timed event to the second map drawing module after the timer time is reached;

[0181] The drawing module is configured so that the second map drawing module draws a navigation map image based on the timing event.

[0182] In this optional implementation, after the target application is switched to the background, the target application cannot call the first map drawing module that depends on the GPU, so it needs to call the second map drawing module. Since the second map drawing module uses the system interface running on the CPU, it cannot continuously draw the navigation map image at a certain frame rate like the rendering engine on the GPU. Therefore, it is necessary to set a timer. After the timer is started, each time the timing time is reached, the second map drawing module is triggered to call the system interface running on the CPU of the navigation device to draw the navigation map image, and the target application outputs it to the vehicle device. The timing time of the timer can be set according to the frame rate of outputting the navigation map image to the vehicle device. After the timing events are continuously generated at intervals of the timing time, the second map drawing module continuously draws the navigation map image at the timing time interval, and the target application outputs it to the vehicle device, so that the target application can achieve the purpose of outputting the navigation map image to the vehicle device at a certain frame rate.

[0183] According to a navigation map image display system of an embodiment of the present disclosure, the navigation map image display system includes a navigation device and a vehicle device, wherein:

[0184] When the target application running on the navigation device is in the foreground running state, in response to a request to output the navigation map image to the vehicle device, calling the first map drawing module to draw the navigation map image;

[0185] When the target application is in the background running state, the navigation device calls the second map drawing module to draw the navigation map image in response to the request to output the navigation map image to the vehicle device, wherein the first map drawing module draws the navigation map image using the GPU; and the second map drawing module draws the navigation map image using the CPU;

[0186] The navigation device outputs the navigation map image drawn by the first map drawing module or the second map drawing module to the vehicle device;

[0187] The vehicle equipment displays the received navigation map image on a display screen.

[0188] In this embodiment, the navigation device and the vehicle device can communicate via Bluetooth, WI FI, etc., and the target application running on the navigation device can output the navigation map image to the vehicle device for display, so as to guide the user to travel along the route on the navigation map image. In some embodiments, the request to output the navigation map image to the vehicle device can be generated by the user by operating the target application. For example, after the user clicks on the navigation page on the interface provided by the target application, the above request will be generated when the user enters the starting point and destination for navigation. In other embodiments, if the hardware conditions of the vehicle device support it, the user can also operate the vehicle device, so that the vehicle device sends the above request to the navigation device, and the above request is responded to by the target application running on the navigation device.

[0189] The specific details involved in the above process can be found in the above description of the output device of the navigation map image, which will not be repeated here.

[0190] In this embodiment, the received navigation map image can be displayed on the screen of the vehicle device. Every time a new navigation map image is received, the new navigation map image is updated and displayed on the screen. After the navigation device sends the navigation map image to the vehicle device at a certain frame rate, the navigation map image can be dynamically updated and displayed on the screen of the vehicle device at the frame rate, thereby dynamically guiding the user to travel along the route on the dynamically updated navigation map image.

[0191] The present disclosure also discloses an electronic device, Figure 5 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. Figure 5 As shown, the electronic device 500 includes a memory 501 and a processor 502; wherein,

[0192] The memory 501 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 502 to implement the above method steps.

[0193] Figure 6 It is a structural diagram of a computer system suitable for implementing a method for outputting a navigation map image and / or a method for displaying a navigation map image according to an embodiment of the present disclosure.

[0194] like Figure 6As shown, the computer system 600 includes a processing unit 601, which can be implemented as a processing unit such as a CPU, a GPU, an FPGA, and an NPU. The processing unit 601 can perform various processes in the embodiments of any of the above methods of the present disclosure according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. In RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The processing unit 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0195] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0196] In particular, according to an embodiment of the present disclosure, any method in the above referenced embodiment of the present disclosure may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes a program code for executing any method in the embodiment of the present disclosure. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from a removable medium 611.

[0197] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0198] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.

[0199] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the device described in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.

[0200] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. A method for outputting a navigation map image, wherein: include: When the target application is in the foreground running state, in response to a request to output the navigation map image to the vehicle device, calling a first map drawing module to draw the navigation map image, wherein the first map drawing module draws the navigation map image using a GPU; When the target application is in a background running state, in response to a request to output a navigation map image to the vehicle device, calling a second map drawing module to draw the navigation map image, the second map drawing module using a CPU to draw the navigation map image; The navigation map image drawn by the first map drawing module or the second map drawing module is output to the vehicle machine device.

2. The method according to claim 1, wherein: The calling of the second map drawing module to draw the navigation map image includes: Acquire map data required for drawing a navigation map image to be displayed on a vehicle device; the map data includes road data expressing roads in the navigation map image; The system interface running on the CPU of the navigation device is called to draw the road data into a navigation map image.

3. The method according to claim 2, wherein: The obtaining of map data required for drawing a navigation map image to be displayed on the vehicle device includes: Acquiring first status information of the navigation map image; A first target map slice required for drawing the navigation map image is calculated based on the first state information; wherein the first target map slice is a partial slice of all map slices constituting the entire map.

4. The method according to claim 3, wherein: The calling of the system interface running on the navigation device CPU to draw the road data into a navigation map image includes: Converting the road data in the first target map slice into the image coordinate system corresponding to the navigation map image to obtain the first pixel point coordinates for drawing the road; Calling the corresponding first system interface to set the drawing attribute corresponding to the first pixel point coordinates; The corresponding second system interface is called to draw a road at the first pixel point coordinates according to the drawing attributes.

5. The method according to any one of claims 2 to 4, wherein: The calling of the second map drawing module to draw the navigation map image also includes: The corresponding third system interface is called to draw navigation information on the upper layer of the road in the navigation map image; the navigation information includes at least one of the following: navigation route, vehicle logo related information, and text information on the navigation route.

6. The method according to claim 5, wherein: When the navigation information includes a navigation route, calling a corresponding third system interface to draw the navigation information on an upper layer of the road in the navigation map image includes: Converting the navigation route to an image coordinate system corresponding to the navigation map image to obtain second pixel point coordinates for drawing the navigation route; Calling the third system interface to set the drawing attribute corresponding to the coordinates of the second pixel point; The third system interface is called to draw the navigation route at the second pixel point coordinates according to the drawing attributes.

7. The method according to any one of claims 2 to 4 and 6, wherein: The calling of the second map drawing module to draw the navigation map image also includes: In response to a request to draw a next navigation map image, obtaining second state information of the next navigation map image; If there is a difference between the second state information of the next navigation map image and the first state information of the previous navigation map image, jumping to the step of obtaining map data required for drawing the navigation map image to be displayed on the vehicle device; If there is no difference between the second state information of the next navigation map image and the first state information of the previous navigation map image, the navigation map image corresponding to the previous navigation map image is output.

8. The method according to claim 7, wherein: When the navigation map image to be displayed on the vehicle-mounted device is the next navigation map image, the acquiring of map data required for drawing the navigation map image to be displayed on the vehicle-mounted device includes: Determining a second target map slice required for drawing the next navigation map image based on the second state information of the next navigation map image; Compared with the first target map slice, a newly added map slice in the second target map slice is determined.

9. The method according to claim 8, wherein: The calling of the system interface running on the navigation device CPU to draw the road data into a navigation map image includes: adjusting the previous navigation map image according to the difference between the first state information and the second state information to obtain an adjusted image; the state information of the adjusted image is consistent with the second state information; Converting the road data in the newly added map slice to the image coordinate system corresponding to the adjusted image to obtain the second pixel point coordinates for drawing the road; Calling the corresponding first system interface to set the drawing attribute corresponding to the coordinates of the second pixel point; The corresponding second system interface is called to draw a road at the second pixel point coordinates according to the drawing attributes.

10. The method according to claim 1, wherein: In response to the state event that the target application is switched to background operation, the method further includes: Start the preset timer; After the timing time of the timer is reached, sending a timing event to the second map drawing module; The second map drawing module draws a navigation map image based on the timing event.

11. A method for displaying a navigation map image, wherein: include: When the target application running on the navigation device is in the foreground running state, in response to a request to output the navigation map image to the vehicle device, calling the first map drawing module to draw the navigation map image; When the target application is in the background running state, the navigation device calls the second map drawing module to draw the navigation map image in response to the request to output the navigation map image to the vehicle device, wherein the first map drawing module draws the navigation map image using the GPU; and the second map drawing module draws the navigation map image using the CPU; The navigation device outputs the navigation map image drawn by the first map drawing module or the second map drawing module to the vehicle device; The vehicle equipment displays the received navigation map image on a display screen.

12. A device for outputting a navigation map image, wherein: include: A first calling module is configured to call a first map drawing module to draw a navigation map image in response to a request to output a navigation map image to the vehicle device when the target application is in a foreground running state, wherein the first map drawing module draws the navigation map image using a GPU; A second calling module is configured to call a second map drawing module to draw a navigation map image in response to a request to output a navigation map image to the vehicle device when the target application is in a background running state, wherein the second map drawing module draws the navigation map image using a CPU; The navigation map image drawn by the first map drawing module or the second map drawing module is output to the vehicle machine device.

13. An electronic device, wherein: The method comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 11.

14. A computer-readable storage medium having computer instructions stored thereon, wherein: When the computer instructions are executed by a processor, the method according to any one of claims 1 to 11 is implemented.

15. A computer program product comprising computer instructions, wherein: When the computer instructions are executed by a processor, the method according to any one of claims 1 to 11 is implemented.