Map display method, mobile device, electric two-wheeled vehicle, and storage medium
The map image is drawn through the mobile terminal's central processor, which solves the problem of electric two-wheeled vehicle navigation projection screen failure during the mobile terminal's screen break, lock screen or background operation, and realizes real-time map display and user experience improvement in low-hardware environments.
Patent Information
- Application Number
- CN202410545077.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2025-02-28
AI Technical Summary
Due to hardware performance limitations, electric two-wheeled vehicles on low-cost vehicles cannot support the navigation system, resulting in the screen projection navigation failure and map display cannot be achieved when the mobile terminal is running on the screen, lock screen or background.
Drawing a map image through the central processor of the mobile terminal, even if the image processor stops working or the mobile terminal is in the off-screen, lock screen or background operation state, the map video stream can continue to be generated and sent to the electronic device for display.
It realizes that in a low hardware environment, mobile terminals can display map videos in real time, improving user experience, and solving the problem of navigation screen failure when the image processor stops working.
Smart Images

Figure CN119536672A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of map display, and in particular to a map display method, a mobile device, an electric two-wheeled vehicle and a storage medium. Background Art
[0002] With the continuous development of vehicle networking technology, the number of times people travel by car is gradually increasing. In order to meet the diverse needs of users during travel, cars often have their own navigation systems, which use the car's own high-performance hardware to directly generate navigation videos and perform road network navigation.
[0003] However, on low-cost vehicles, such as electric two-wheeled vehicles (electric scooters, electric motorcycles, electric bicycles, etc.), due to the performance of low-cost hardware, these low-cost vehicles cannot support navigation systems, and navigation projection technology is often required to achieve vehicle navigation, such as projecting the navigation information of a mobile terminal device (e.g., a mobile phone) onto the vehicle's instrument panel for display.
[0004] However, in some mobile terminal systems, when the mobile terminal is in the screen-off state, the screen-locked state, or the application on the mobile terminal is switched to the background, the projection screen will disappear immediately, making it impossible for the electronic device to display the map. Summary of the invention
[0005] The present application provides a map display method, a mobile device, an electric two-wheeled vehicle and a storage medium, which draw a map image through a central processing unit so that the electronic device can display a map video in real time.
[0006] The present application provides a map display method, which is applicable to a mobile terminal and includes:
[0007] After receiving a drawing start instruction from a user, starting a drawing function of a target application in the mobile terminal, and obtaining location information of the mobile terminal through the target application;
[0008] When the image processor in the mobile terminal stops drawing, drawing a map image on the mobile terminal according to the location information of the mobile terminal by the central processor in the mobile terminal;
[0009] A map video stream is generated by the target application according to the map image drawn by the central processor, and the map video stream is sent to an electronic device, so that the electronic device displays a corresponding map video after receiving the map video stream.
[0010] Optionally, when the image processor in the mobile terminal stops drawing, drawing a map image on the mobile terminal according to the location information of the mobile terminal by a central processor in the mobile terminal includes:
[0011] When the target application switches to background operation, or when the mobile terminal is in a screen-off or screen-locked state, a map image is drawn on the mobile terminal according to the location information of the mobile terminal by a central processor in the mobile terminal.
[0012] Optionally, the target application includes a map navigation module, and the location information of the mobile terminal includes the current positioning position of the mobile terminal;
[0013] After starting the drawing function of the target application in the mobile terminal, the method further includes:
[0014] Receiving the destination information input by the user through the map navigation module of the target application;
[0015] Drawing a map image on the mobile terminal according to the location information by a central processor in the mobile terminal specifically includes:
[0016] A navigation map image is drawn on the mobile terminal by a central processor in the mobile terminal according to the current location of the mobile terminal and the destination information input by the user.
[0017] Optionally, the target application is integrated with a software development kit corresponding to the central processing unit, and the software development kit corresponding to the central processing unit is capable of calling a central processing unit interface;
[0018] Drawing a map image on the mobile terminal according to the location information of the mobile terminal by a central processor in the mobile terminal specifically includes:
[0019] A map image is drawn on the mobile terminal according to the location information of the mobile terminal through a software development kit corresponding to the central processor.
[0020] Optionally, the method further includes:
[0021] In the case where the image processor in the mobile terminal runs drawing, drawing a map image on the mobile terminal according to the location information of the mobile terminal by the image processor in the mobile terminal;
[0022] A map video stream is generated by the target application according to the map image drawn by the image processor and sent to the electronic device, so that the electronic device displays the map video stream generated according to the map image drawn by the image processor.
[0023] Optionally, before the target application is switched to background operation, or before the mobile terminal is in a screen-off or screen-locked state, the method further includes:
[0024] Detect whether the target application is switched to background operation, or whether the mobile terminal is in a screen-off or screen-locked state;
[0025] When the target application is not switched to background operation, or the mobile terminal is not in a screen-off or screen-locked state, drawing a map image on the mobile terminal according to the location information of the mobile terminal by an image processor in the mobile terminal;
[0026] A map video stream is generated by the target application according to the map image drawn by the image processor and sent to the electronic device, so that the electronic device displays the map video stream generated according to the map image drawn by the image processor.
[0027] Optionally, a software development kit corresponding to the image processor is integrated into the target application, and the software development kit corresponding to the image processor can call an image processor interface;
[0028] Drawing a map image on the mobile terminal according to the location information of the mobile terminal by an image processor in the mobile terminal specifically includes:
[0029] A map image is drawn on the mobile terminal according to the location information of the mobile terminal through a software development kit corresponding to the image processor.
[0030] Optionally, the map image drawn by the image processor contains more information than the map image drawn by the central processing unit;
[0031] And / or, the setting graphics included in the map image drawn by the central processing unit are simpler than the setting graphics included in the map image drawn by the image processor.
[0032] Optionally, generating a map video stream according to a map image drawn by the central processor through the target application specifically includes:
[0033] After the central processor draws the map image on the mobile terminal, screen recording or screenshotting the map image drawn by the central processor;
[0034] Generate a map video stream based on screen recording or screenshots.
[0035] Optionally, sending the map video stream to an electronic device so that the electronic device displays a corresponding map video after receiving the map video stream specifically includes:
[0036] The map video stream is encoded according to the audio and video encoding and decoding parameters of the electronic device and then sent to the electronic device, so that the electronic device displays the map video after decoding the received map video stream.
[0037] Optionally, sending the map video stream to an electronic device specifically includes:
[0038] The map video stream is transmitted to the electronic device via wireless communication.
[0039] In a second aspect, the present application provides a map display method, which is applicable to an electronic device, and includes:
[0040] receiving a first map video stream sent by a mobile terminal; the first map video stream is generated by the target application in the mobile terminal after the mobile terminal receives a drawing start instruction from the user, starts a drawing function of the target application in the mobile terminal, obtains the location information of the mobile terminal through the target application, and draws a map image on the mobile terminal according to the location information of the mobile terminal through the central processing unit in the mobile terminal when the image processor in the mobile terminal stops drawing, and is generated by the target application according to the map image drawn by the central processing unit;
[0041] Display the map video corresponding to the first map video stream.
[0042] Optionally, the method further includes:
[0043] receiving a second map video stream sent by a mobile terminal; the second map video stream is generated by the target application according to the map image drawn by the image processor when the image processor in the mobile terminal runs drawing and draws a map image on the mobile terminal according to the location information of the mobile terminal;
[0044] Display the map video corresponding to the second map video stream.
[0045] Optionally, the situation where the image processor in the mobile terminal stops drawing includes: the target application is switched to background operation, or the mobile terminal is in a screen-off or screen-locked state;
[0046] and / or,
[0047] The situation where the image processor in the mobile terminal stops drawing includes: the target application is not switched to background operation, or the mobile terminal is not in a screen-off or screen-locked state.
[0048] In a third aspect, the present application provides a mobile terminal comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes any possible method in the first aspect.
[0049] In a fourth aspect, the present application provides an electric two-wheeled vehicle, comprising an electronic device, the electronic device including a control module and a memory, the memory storing a computer program, and when the computer program is executed by the control module, the control module executes any possible method of the second aspect; the electronic device is an instrument of the two-wheeled vehicle.
[0050] In a fifth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute the above method.
[0051] The present application provides a map display method, a mobile device, an electric two-wheeled vehicle and a storage medium. When receiving a drawing start instruction from a user, the drawing function of a target application in a mobile terminal is started, and the location information of the mobile terminal is obtained through the target application; when the image processor in the mobile terminal stops drawing, the central processor in the mobile terminal draws a map image on the mobile terminal according to the location information of the mobile terminal; then, the target application generates a map video stream according to the map image drawn by the central processor, and the map video stream is sent to the electronic device, so that the electronic device displays the corresponding map video after receiving the map video stream. The scheme of the present application, when the image processor in the mobile terminal stops drawing, the central processor in the mobile terminal draws the map image, solves the problem that the image processor cannot draw the map image when the target application is switched to the background operation, or when the mobile terminal is in the screen-off or screen-locked state, so that the electronic device can display the map in real time. And the electronic device only needs to display the corresponding map video according to the received map video stream, and the hardware requirements of the electronic device are relatively low, so that the electronic device can display the map in a low hardware environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0053] Figure 1 A navigation schematic diagram provided by an embodiment of the present application is shown;
[0054] Figure 2 Another navigation schematic diagram provided by an embodiment of the present application is shown;
[0055] Figure 3 A schematic diagram of a scene of a map display method provided by an embodiment of the present application is shown;
[0056] Figure 4 A flowchart of a map display method provided by an embodiment of the present application is shown;
[0057] Figure 5 A schematic diagram showing a flow chart of a map display method provided by another embodiment of the present application is shown;
[0058] Figure 6 A signaling interaction diagram of a map display method provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0060] When some mobile devices, such as iOS phones, are in the screen-off state, locked state, or the application on the mobile terminal is switched to the background, the navigation screen will disappear immediately. The main reason for this problem is that map applications usually use the graphics processing unit (GPU) to draw the user interface (UI) and render the page as a map image. When the mobile terminal is in the screen-off state or locked state, when the application on the mobile terminal is switched to the background, the graphics processor on the mobile terminal stops working and no longer renders the page that the background application still needs to draw.
[0061] In some examples, when the mobile terminal is in the screen-off state or the screen-locked state and the application is switched to the background, the map image is abandoned and simple navigation data is transmitted to the electronic device through the mobile terminal to realize simple navigation information display on the electronic device, such as Figure 1 As shown, this method cannot realize road network navigation, such as Figure 2 As shown, the user visual experience is not good.
[0062] In addition, some applications, such as CarPlay, can realize navigation screen projection and achieve the effect of road network navigation by encoding and other processing according to specially designed technical specifications when the mobile terminal is unlocked and the application of the mobile terminal is in the foreground running state. However, the projection technology supported by its technical specifications has high hardware requirements for the projection object (such as the vehicle side). For example, the electronic device needs to have a minimum resolution of 800×480 or 710×570, the electronic device needs to support the digital video compression format of H264 and the supported encoding format of HEVC (High Efficiency Video Coding), and the electronic device needs to have audio input (such as microphone, etc.) and audio output (such as speakers, etc.). Therefore, these map display projection solutions are difficult to apply to low-cost hardware, such as electric two-wheeled vehicles, to realize the function of navigation screen projection.
[0063] To this end, the present application provides a map display method, which draws a map image by the central processing unit in the mobile terminal when the image processor in the mobile terminal stops drawing, thereby solving the problem that the image processor cannot draw the map image when the target application switches to background operation or the mobile terminal is in the screen-off or screen-locked state, so that the electronic device can display the map in real time.
[0064] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0065] Figure 3 FIG. 1 is a schematic diagram showing a scene of a map display method provided by an embodiment of the present application. Figure 3 As shown, a mobile terminal (such as a mobile phone, a tablet computer, etc.) 101 and an electronic device (such as an electric two-wheeled vehicle, an electric three-wheeled vehicle, etc., an electric two-wheeled vehicle such as an electric bicycle, an electric motorcycle, an electric scooter, etc.) 102 are configured with a wireless communication module (such as a Bluetooth communication module, a WiFi communication module), and a wireless communication connection can be established between the mobile terminal 101 and the electronic device 102.
[0066] After receiving the drawing start instruction from the user 103, the mobile terminal 101 starts the drawing function of the target application in the mobile terminal 101, and obtains the location information of the mobile terminal through the target application. When the target application in the mobile terminal 101 is switched to the background, or the mobile terminal 101 is in the screen-off state or the screen-locked state, the mobile terminal 101 draws a map image on the mobile terminal according to the location information of the mobile terminal through the central processor in the mobile terminal 101. Then, the mobile terminal 101 generates a map video stream according to the map image drawn by the central processor through the target application, and sends the map video stream to the electronic device 102 through the wireless communication module. The hardware configuration of the electronic device 102 is relatively low, and it only needs to display the corresponding map video according to the received map video stream.
[0067] Figure 4 FIG. 1 is a flowchart of a map display method provided by an embodiment of the present application. Figure 4 As shown, with the mobile terminal as the execution subject, the method of this embodiment may include the following steps:
[0068] S101 . After receiving a drawing start instruction from a user, start a drawing function of a target application in a mobile terminal, and obtain location information of the mobile terminal through the target application.
[0069] For example, the mobile terminal may be a smart terminal such as a mobile phone, a tablet computer, a smart watch, etc. The target application may be any application with a drawing function, such as various map applications.
[0070] In this step, after receiving the drawing start instruction from the user, the mobile terminal starts the drawing function of the target application. After the drawing function of the target application is started, the location information of the mobile terminal can be obtained through the target application.
[0071] The location information may include the current location of the mobile terminal, for example, a display screen of the current location, which may include roads, landmarks, etc. at the current location. The location information may also include a display screen of a target location input by a user, which may include roads, landmarks, etc. at the target location.
[0072] In some embodiments, the location information of the mobile terminal includes the current location of the mobile terminal. After starting the drawing function of the target application in the mobile terminal, the current location of the mobile terminal can be obtained through the target application. For example, the target application includes a map navigation module, and after starting the drawing function of the target application in the mobile terminal, the current location of the mobile terminal can be obtained through the map navigation module.
[0073] In some examples, after starting the drawing function of the target application in the mobile terminal, the destination information input by the user can be received through the map navigation module of the target application, for example, the destination name input by the user can be received through the map navigation module of the target application, and then the display screen of the current location of the mobile terminal and the display screen of the destination can be obtained through the target application. It should be noted that each time the mobile terminal arrives at a location, it has a corresponding current location, so the display screen of the current location of the mobile terminal can be obtained in real time through the target application, so that the navigation map image can be generated later according to the display screen of the current location and the display screen of the destination obtained in real time.
[0074] In other examples, the destination information may also be included in the drawing start instruction. For example, after receiving the destination name input by the user through the map navigation module of the target application, the drawing function of the target application in the mobile terminal is started to obtain the display screen of the current location of the mobile terminal and the display screen of the destination through the target application, so as to subsequently generate a navigation map image according to the display screen of the current location and the display screen of the destination. For example, the user can search for the destination, select the destination, and initiate navigation on the mobile terminal. The user initiating navigation is to send a drawing start instruction to the mobile terminal. After receiving the user's drawing start instruction, the mobile terminal starts the drawing function of the target application in the mobile terminal.
[0075] In other embodiments, the location information includes a display screen of the target location. For example, the drawing start instruction includes the target location. After the mobile terminal receives the drawing start instruction, the display screen of the target location is obtained through the target application, so that a map image between the target locations can be drawn later based on the display screen of the target location. For another example, after starting the drawing function of the target application in the mobile terminal, the target location input by the user can be received through the map navigation module of the target application, and the display screen of the target location is obtained through the target application, so that a map image between the target locations can be drawn later. The number of target locations can be determined according to actual conditions.
[0076] S102: When the image processor in the mobile terminal stops drawing, a central processor in the mobile terminal draws a map image on the mobile terminal according to the location information of the mobile terminal.
[0077] After the drawing function of the target application is started, a map image may be drawn on the mobile terminal by the central processor of the mobile terminal according to the location information of the mobile terminal, or by the image processor of the mobile terminal according to the location information of the mobile terminal.
[0078] It should be noted that when the target application is switched to the background, or the mobile terminal is in the screen-off or locked state, the image processor of the mobile terminal stops drawing the map image on the mobile terminal according to the location information of the mobile terminal. For example, when the target application is switched to the background or the mobile terminal is in the screen-off or locked state, the image processor of the mobile terminal stops working, and the image processor no longer renders the pages that still need to be drawn in the background, thereby stopping drawing the map image on the mobile terminal according to the location information of the mobile terminal.
[0079] Therefore, in some embodiments, when the target application is switched to background operation, or the mobile terminal is in a screen-off or locked state, the central processor in the mobile terminal draws a map image on the mobile terminal according to the location information of the mobile terminal, ensuring that the mobile terminal is in a screen-off or locked state, or the target application is switched to background operation, the mobile terminal can still generate map information, thereby enabling the electronic device to display map video in real time, thereby improving the user experience.
[0080] In other embodiments, when the image processor in the mobile terminal stops drawing due to driver problems, overheating problems, etc., the central processing unit in the mobile terminal can also draw a map image on the mobile terminal according to the location information of the mobile terminal.
[0081] For example, the location information of the mobile terminal includes the current positioning position of the mobile terminal. After obtaining the current positioning position of the mobile terminal and the destination information input by the user, the central processor in the mobile terminal can draw a navigation map image on the mobile terminal according to the current positioning position of the mobile terminal and the destination information input by the user, so that when the mobile terminal is in the screen-off or lock state, or the target application is switched to background operation, the electronic device can display the navigation video in real time, thereby improving the convenience and safety during driving.
[0082] In some examples, the target application is integrated with a software development kit corresponding to the central processing unit, and the software development kit corresponding to the central processing unit can call the central processing unit interface. When the target application is switched to background operation, or the mobile terminal is in a screen-off state or a screen-locked state, a map can be drawn on the mobile terminal according to the location information of the mobile terminal through the software development kit corresponding to the central processing unit. For example, a navigation map image is drawn on the mobile terminal according to the current location of the mobile terminal and the destination information input by the user through the software development kit corresponding to the central processing unit. Among them, the software development kit can be a software development kit (SDK) for various maps.
[0083] In some embodiments, when the image processor in the mobile terminal runs the drawing, the map image is drawn on the mobile terminal by the image processor in the mobile terminal according to the location information of the mobile terminal.
[0084] For example, when the target application is not switched to background operation, or the mobile terminal is not in a screen-off or screen-locked state, a map image can be drawn on the mobile terminal according to the location information of the mobile terminal by an image processor in the mobile terminal.
[0085] Specifically, it can detect whether the target application is switched to the background, or whether the mobile terminal is in the screen-off or lock state. If the target application is not switched to the background, or the mobile terminal is not in the screen-off or lock state, a map image is drawn on the mobile terminal according to the location information of the mobile terminal through the image processor in the mobile terminal.
[0086] For example, it is possible to detect whether the target application is included in the applications running in the background to determine whether the target application is switched to the background. It is possible to detect the brightness of the screen of the mobile terminal to determine whether the mobile terminal is in the screen-off or screen-locked state.
[0087] In other examples, the target application integrates a software development kit corresponding to the image processor, and the software development kit corresponding to the image processor can call the image processor interface. If the target application is not switched to background operation, or the mobile terminal is not in the screen-off or screen-locked state, the software development kit corresponding to the image processor draws a map image on the mobile terminal according to the location information of the mobile terminal. For example, the software development kit corresponding to the image processor draws a navigation map image on the mobile terminal according to the current location of the mobile terminal and the destination information entered by the user.
[0088] As an implementation method, the map image drawn by the image processor may contain more information than the map image drawn by the central processing unit, and / or the setting graphics contained in the map image drawn by the central processing unit are simpler than the setting images contained in the map image drawn by the image processor, thereby reducing the usage rate and power consumption of the central processing unit by simplifying the graphics (for example, simplifying route drawing) and reducing the display of non-critical information (for example, stores, place marks, etc.).
[0089] S103, generating a map video stream according to the map image drawn by the central processor through the target application, and sending the map video stream to the electronic device, so that the electronic device displays the corresponding map video after receiving the map video stream.
[0090] For example, the electronic device may be an electric two-wheeled vehicle such as an electric bicycle, an electric motorcycle, an electric scooter, or an electric three-wheeled vehicle.
[0091] In this step, a map video stream is generated by a target application according to a map image drawn by a central processor, and the map video stream is sent to an electronic device so that the electronic device can display the map video in real time.
[0092] For example, a target application generates a navigation video stream based on a navigation map image drawn by a central processor, and sends the navigation video stream to an electronic device, so that the electronic device can display the navigation video containing rich navigation data and content in real time, thereby improving the user experience.
[0093] Optionally, after the central processor draws the map image on the mobile terminal, the map image drawn by the central processor may be screen recorded or captured, and a map video stream may be generated according to the screen recording or the capture.
[0094] For example, after drawing a map image on a mobile terminal through the central processor, the map image can be displayed in the background of the mobile terminal. When the map image is displayed in the background of the mobile terminal, the map image drawn on the mobile terminal can be captured by performing background recording or screenshot of the mobile terminal, and then a map video stream can be generated according to the captured map image through the target application.
[0095] It should be noted that, when the image processor in the mobile terminal runs the drawing, the map image can be drawn on the mobile terminal by the image processor according to the location information of the mobile terminal. Accordingly, the map video stream can be generated by the target application according to the map image drawn by the image processor, and the map video stream can be sent to the electronic device so that the electronic device displays the map video stream generated according to the map image drawn by the image processor, so that the electronic device can display the map video.
[0096] For example, after a map image is drawn on a mobile terminal by an image processor, a screen recording or screenshot is performed on the map image drawn by the image processor, and a map video stream is generated according to the screen recording or screenshot.
[0097] For example, after drawing a map image on a mobile terminal through an image processor, the map image can be displayed in the background of the mobile terminal. When the map image is displayed in the background of the mobile terminal, the map image drawn on the mobile terminal can be captured by performing background recording or screenshot of the mobile terminal, and then a map video stream can be generated according to the captured map image through the target application.
[0098] For another example, after drawing a map image on a mobile terminal through an image processor, the map image can be displayed on the screen of the mobile terminal. When the map image is displayed on the screen of the mobile terminal, the map image drawn on the mobile terminal can be captured by recording or taking a screenshot of the screen of the mobile terminal, and then a map video stream can be generated according to the captured map image through the target application.
[0099] In some embodiments, after the map video stream is generated, the map video stream can be encoded according to the audio and video codec parameters of the electronic device and sent to the electronic device, so that the electronic device decodes the received map video stream and displays the corresponding map video. The audio and video codec parameters can include, for example, the frame rate and bit rate supported by the electronic device.
[0100] In some examples, the mobile terminal can transmit the map video stream to the electronic device via wireless communication. For example, a wireless communication connection is established between the mobile terminal and the electronic device, and the wireless communication connection may include a direct or indirect wireless communication connection, and specifically may include a Bluetooth communication connection and / or a Wifi communication connection, etc. For another example, the mobile terminal can transmit the video stream to the electronic device after transfer. After the mobile terminal generates the map video stream, the map video stream is sent to the electronic device via a wireless communication connection. In some embodiments, when the electronic device displays a map video, the mobile terminal may send an end display instruction to the electronic device so that the electronic device stops displaying the map video; and / or, after receiving the end display instruction sent by the electronic device, the mobile terminal stops sending the map video stream to the electronic device so that the electronic device stops displaying the map video.
[0101] The map display method provided by the present application uses the central processing unit in the mobile terminal to draw the map image when the image processor in the mobile terminal stops drawing, thereby solving the problem that the image processor cannot draw the map image when the target application is switched to the background or the mobile terminal is in the screen-off or screen-locked state, so that the electronic device can continue to display the map. In addition, the electronic device only needs to display the corresponding map video according to the received map video stream, which has low hardware requirements for the electronic device, so that the electronic device can display the map in a low hardware environment.
[0102] Figure 5 FIG. 1 is a flowchart of a map display method provided by an embodiment of the present application. Figure 5 As shown, with the electronic device as the execution subject, the method of this embodiment may include the following steps:
[0103] S201. Receive a first map video stream sent by a mobile terminal.
[0104] Among them, the first map video stream is generated by the target application in the mobile terminal starting the drawing function of the target application in the mobile terminal after receiving the user's drawing start instruction, obtaining the location information of the mobile terminal through the target application, and drawing the map image on the mobile terminal according to the location information of the mobile terminal through the central processing unit of the mobile terminal when the image processor in the mobile terminal stops drawing, and the target application is generated according to the map image drawn by the central processing unit.
[0105] For example, the situation where the image processor in the mobile terminal stops drawing includes: the target application is switched to background operation, or the mobile terminal is in the screen-off or screen-locked state.
[0106] S202. Display the map video corresponding to the first map video stream.
[0107] In some embodiments, the electronic device receives a first map video stream sent by a mobile terminal and encoded according to audio and video codec parameters of the electronic device, and may first encode the received first map video stream and then display a map video corresponding to the first map video stream.
[0108] In some embodiments, the electronic device stops displaying the map video after receiving an end display instruction sent by the mobile terminal or receiving a trigger operation from the user.
[0109] In some embodiments, the electronic device may also receive a second map video stream sent by the mobile terminal, and display a map video corresponding to the second map video stream. The second map video stream is generated by the target application according to the map image drawn by the image processor when the image processor in the mobile terminal runs the drawing, and the map image is drawn on the mobile terminal by the image processor in the mobile terminal according to the location information of the mobile terminal.
[0110] For example, the situation where the image processor in the mobile terminal stops drawing includes: the target application is not switched to background operation, or the mobile terminal is not in the screen-off or screen-locked state.
[0111] The map display method provided in this embodiment is that after receiving the first map video stream sent by the mobile terminal, the electronic device displays the corresponding map video, which has low hardware requirements for the electronic device, so that the electronic device can display the map in a low hardware environment. In addition, since the mobile terminal can generate a map video stream through the central processor when the target application is switched to the background, or the mobile terminal is in the screen-off or lock state, the electronic device can receive the map video stream in real time and display the map video in real time, thereby improving the user experience.
[0112] Figure 6 This is a signaling interaction diagram of a map display method provided in one embodiment of the present application. Figure 6 As shown, the method of this embodiment may include the following steps:
[0113] S301: After receiving a drawing start instruction from a user, the mobile terminal starts a drawing function of a target application in the mobile terminal, and obtains location information of the mobile terminal through the target application.
[0114] S302: When the target application is not switched to background operation or the mobile terminal is not in a screen-off or screen-locked state, the mobile terminal draws a map image on the mobile terminal through a software development kit corresponding to the image processor.
[0115] S303: The mobile terminal generates a first map video stream through a target application according to a map image drawn by a software development kit corresponding to the image processor, and sends the first map video stream to an electronic device.
[0116] S304: After receiving the first map video stream, the electronic device displays the corresponding map video.
[0117] S305: When the target application is switched to background operation or the mobile terminal is in a screen-off or screen-locked state, the mobile terminal draws a map image on the mobile terminal through a software development kit corresponding to the central processor.
[0118] S306: The mobile terminal generates a second map video stream through the target application according to the map image drawn by the software development kit corresponding to the central processor, and sends the second map video stream to the electronic device.
[0119] S307: After receiving the second map video stream, the electronic device displays the corresponding map video.
[0120] The map display method provided in this embodiment draws a map image on the mobile terminal through a software development kit corresponding to the central processing unit when the target application is switched to background operation or the mobile terminal is in the screen-off or lock state; and draws a map image on the mobile terminal through a software development kit corresponding to the image processor when the target application is not switched to background operation or the mobile terminal is not in the screen-off or lock state. Thus, the map image can be generated in real time, so that the electronic device can display the map video in real time, thereby improving the user experience.
[0121] An embodiment of the present application provides a mobile device, comprising a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the map display method of any of the above embodiments.
[0122] The memory may include high-speed random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.
[0123] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the invention may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0124] The mobile device provided in this embodiment can be used to execute the above-mentioned map display method, and its implementation method and technical effects are similar, which will not be described in detail in this embodiment.
[0125] The present application also provides an electric two-wheeled vehicle, comprising an electronic device, the electronic device comprising a control module and a memory, the memory storing a computer program, and when the computer program is executed by the control module, the control module executes the map display method described in any of the above embodiments. The electronic device may be an instrument of the electric two-wheeled vehicle.
[0126] The present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute the map display method described in any of the above embodiments with a mobile terminal as the execution subject.
[0127] The present application also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. At least one processor of a device can read the computer instructions from the computer-readable storage medium, and at least one processor executes the computer instructions so that the device implements the methods provided in the various embodiments described above.
[0128] An embodiment of the present application also provides a chip, which includes a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call and execute the computer instructions from the memory, so that a device equipped with the chip executes the methods described in the various possible implementation modes above.
[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some or all of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A map display method, characterized in that: The method is applicable to a mobile terminal, and the method comprises: After receiving a drawing start instruction from a user, starting a drawing function of a target application in the mobile terminal, and obtaining location information of the mobile terminal through the target application; When the image processor in the mobile terminal stops drawing, drawing a map image on the mobile terminal according to the location information of the mobile terminal by the central processor in the mobile terminal; A map video stream is generated by the target application according to the map image drawn by the central processor, and the map video stream is sent to an electronic device, so that the electronic device displays a corresponding map video after receiving the map video stream.
2. The method according to claim 1, characterized in that In the case where the image processor in the mobile terminal stops drawing, drawing a map image on the mobile terminal according to the location information of the mobile terminal by a central processor in the mobile terminal includes: When the target application switches to background operation, or when the mobile terminal is in a screen-off or screen-locked state, a map image is drawn on the mobile terminal according to the location information of the mobile terminal by a central processor in the mobile terminal.
3. The method according to claim 1, characterized in that The target application includes a map navigation module, and the location information of the mobile terminal includes the current positioning position of the mobile terminal; After starting the drawing function of the target application in the mobile terminal, the method further includes: Receiving the destination information input by the user through the map navigation module of the target application; Drawing a map image on the mobile terminal according to the location information by a central processor in the mobile terminal specifically includes: A navigation map image is drawn on the mobile terminal by a central processor in the mobile terminal according to the current location of the mobile terminal and the destination information input by the user.
4. The method according to claim 1, characterized in that: The target application is integrated with a software development kit corresponding to the central processing unit, and the software development kit corresponding to the central processing unit can call a central processing unit interface; Drawing a map image on the mobile terminal according to the location information of the mobile terminal by a central processor in the mobile terminal specifically includes: A map image is drawn on the mobile terminal according to the location information of the mobile terminal through a software development kit corresponding to the central processor.
5. The method according to claim 1, characterized in that The method further comprises: In the case where the image processor in the mobile terminal runs drawing, drawing a map image on the mobile terminal according to the location information of the mobile terminal by the image processor in the mobile terminal; A map video stream is generated by the target application according to the map image drawn by the image processor and sent to the electronic device, so that the electronic device displays the map video stream generated according to the map image drawn by the image processor.
6. The method according to claim 2, characterized in that Before the target application is switched to background operation, or before the mobile terminal is in a screen-off or screen-locked state, the method further includes: Detect whether the target application is switched to background operation, or whether the mobile terminal is in a screen-off or screen-locked state; When the target application is not switched to background operation, or the mobile terminal is not in a screen-off or screen-locked state, drawing a map image on the mobile terminal according to the location information of the mobile terminal by an image processor in the mobile terminal; A map video stream is generated by the target application according to the map image drawn by the image processor and sent to the electronic device, so that the electronic device displays the map video stream generated according to the map image drawn by the image processor.
7. The method according to claim 5 or 6, characterized in that: The target application is integrated with a software development kit corresponding to the image processor, and the software development kit corresponding to the image processor can call an image processor interface; Drawing a map image on the mobile terminal according to the location information of the mobile terminal by an image processor in the mobile terminal specifically includes: A map image is drawn on the mobile terminal according to the location information of the mobile terminal through a software development kit corresponding to the image processor.
8. The method according to claim 5 or 6, characterized in that: The map image drawn by the image processor contains more information than the map image drawn by the central processing unit; And / or, the setting graphics included in the map image drawn by the central processing unit are simpler than the setting graphics included in the map image drawn by the image processor.
9. The method according to any one of claims 1 to 6, characterized in that: The generating of a map video stream according to the map image drawn by the central processor through the target application specifically includes: After the central processor draws the map image on the mobile terminal, screen recording or screenshotting the map image drawn by the central processor; Generate a map video stream based on screen recording or screenshots.
10. The method according to any one of claims 1 to 6, characterized in that: The sending of the map video stream to the electronic device so that the electronic device displays the corresponding map video after receiving the map video stream specifically includes: The map video stream is encoded according to the audio and video encoding and decoding parameters of the electronic device and then sent to the electronic device, so that the electronic device displays the map video after decoding the received map video stream.
11. The method according to any one of claims 1 to 6, characterized in that: The sending of the map video stream to the electronic device specifically includes: The map video stream is transmitted to the electronic device via wireless communication.
12. A map display method, characterized in that: The method is applicable to an electronic device, and the method comprises: receiving a first map video stream sent by a mobile terminal; the first map video stream is generated by the target application in the mobile terminal after the mobile terminal receives a drawing start instruction from the user, starts a drawing function of the target application in the mobile terminal, obtains the location information of the mobile terminal through the target application, and draws a map image on the mobile terminal according to the location information of the mobile terminal through the central processing unit in the mobile terminal when the image processor in the mobile terminal stops drawing, and is generated by the target application according to the map image drawn by the central processing unit; Display the map video corresponding to the first map video stream.
13. The method according to claim 12, characterized in that The method further comprises: receiving a second map video stream sent by a mobile terminal; the second map video stream is generated by the target application according to the map image drawn by the image processor when the image processor in the mobile terminal runs drawing and draws a map image on the mobile terminal according to the location information of the mobile terminal; Display the map video corresponding to the second map video stream.
14. The method according to claim 13, characterized in that The situation where the image processor in the mobile terminal stops drawing includes: the target application is switched to background operation, or the mobile terminal is in a screen-off or screen-locked state; and / or, The situation where the image processor in the mobile terminal stops drawing includes: the target application is not switched to background operation, or the mobile terminal is not in a screen-off or screen-locked state.
15. A mobile device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 11.
16. An electric two-wheeled vehicle, characterized in that: It comprises an electronic device, which includes a control module and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the control module, the control module executes the method according to claim 12, 13 or 14; the electronic device is an instrument of the electric two-wheeled vehicle.
17. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Image processing method, electronic equipment and device having storage function
CN107680029A
Electronic equipment, display control method, display control device and readable storage medium
CN113010257A
Video stream acquisition method based on iOS system, medium, equipment and application system
CN114764317A
Navigation screen projection method, mobile terminal, server, electric two-wheeled vehicle and medium
CN117528174A
Navigation display method, mobile terminal, electric two-wheeled vehicle and storage medium
CN117760446A
Cited By
Map display method, mobile device, electric two-wheeled vehicle, and storage medium
WO2025228200A1