A method, apparatus, wearable device, and computer storage medium for displaying an image.

CN122569775APending Publication Date: 2026-08-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-14
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0003]然而,在某些硬件资源受限的嵌入式设备(例如rtos手表等),在数据量特别大的场景下,即使已经提前经过上述的预处理,也会存在处理计算超时,最终导致掉帧或者显示卡顿的现象

Benefits of technology

[0015]第四方面,本申请实施例提供了一种计算机存储介质,存储有可执行指令,当所述可执行指令被一个或多个处理器执行的时候,所述处理器执行上述的一个或多个实施例所述的图像的显示方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122569775A_ABST
    Figure CN122569775A_ABST
Patent Text Reader

Abstract

This application discloses an image display method, comprising: in response to an operation on an image displayed on the display screen of a wearable device, determining a current display area and a buffer area of ​​the current display area, wherein the buffer area is adjacent to the current display area; locally storing display data of the current display area and display data of the buffer area; and displaying the current display area. This application also provides an image display device, a wearable device, and a computer storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to display technology for wearable devices, and more particularly to an image display method, apparatus, wearable device, and computer storage medium. Background Technology

[0002] Currently, when mobile devices draw map trajectory data, in order to ensure the efficiency and aesthetics of the drawing, they perform preprocessing on the real trajectory data (denoising, smoothing, and thinning, etc.). This greatly reduces the amount of data that needs to be processed during subsequent drawing, thus improving rendering efficiency.

[0003] However, in some embedded devices with limited hardware resources (such as RTOS watches), even with the above preprocessing, processing timeouts can still occur in scenarios with particularly large amounts of data, ultimately leading to frame drops or display stuttering. Summary of the Invention

[0004] This application provides an image display method, apparatus, wearable device, and computer storage medium, which can improve the problem of frame drops or stuttering in map display in wearable devices.

[0005] The technical solution of this application is implemented as follows:

[0006] In a first aspect, embodiments of this application provide a method for displaying an image, including:

[0007] In response to an operation on an image displayed on the display screen of a wearable device, a current display area and a buffer area of ​​the current display area are determined; wherein the buffer area is adjacent to the current display area;

[0008] The display data of the current display area and the display data of the buffer area are stored locally.

[0009] Display the current display area.

[0010] Secondly, embodiments of this application provide an image display device, comprising:

[0011] A determination module is configured to determine, in response to an operation on an image displayed on the display screen of a wearable device, a current display area and a buffer area of ​​the current display area; wherein the buffer area is adjacent to the current display area;

[0012] The storage module is used to locally store the display data of the current display area and the display data of the buffer area;

[0013] The display module is used to display the current display area.

[0014] Thirdly, embodiments of this application provide a wearable device, including: a processor and a storage medium storing processor-executable instructions; the storage medium performs operations via a communication bus dependent on the processor, and when the instructions are executed by the processor, it performs the image display method described in one or more of the above embodiments.

[0015] Fourthly, embodiments of this application provide a computer storage medium storing executable instructions, which, when executed by one or more processors, execute the image display method described in one or more of the above embodiments.

[0016] This application provides an image display method, apparatus, wearable device, and computer storage medium, comprising: in response to an operation on an image displayed on the display screen of the wearable device, determining a current display area and a buffer area of ​​the current display area, wherein the buffer area is adjacent to the current display area; locally storing the display data of the current display area and the display data of the buffer area; and displaying the current display area. In other words, by responding to an operation on a displayed map, determining the current display area and the buffer area adjacent to the current display area, and locally storing the display data of the current display area and the display data of the buffer area, the local storage not only stores the display data of the current display area but also the display data of the buffer area. Thus, by setting a buffer area and storing the display data of the buffer area, it is beneficial to directly obtain the display data of the next display area from the display data of the buffer area when the user performs the next operation, avoiding the computing power consumed by the wearable device in filtering the display data of the next display area from all image data. This saves the computing power of the wearable device while enabling timely response to user operations, improving frame drops or stuttering issues in image display, and enhancing the response efficiency of the wearable device to image display. Attached Figure Description

[0017] Figure 1 A flowchart illustrating an optional image display method provided in an embodiment of this application;

[0018] Figure 2 A flowchart illustrating an example of an optional image display method provided in this application embodiment;

[0019] Figure 3a A schematic diagram of an optional original trajectory point and original trajectory provided for an embodiment of this application;

[0020] Figure 3b A schematic diagram of an optional original trajectory and a thinned trajectory provided for an embodiment of this application;

[0021] Figure 3c A schematic diagram of an optional thinned trajectory provided for an embodiment of this application;

[0022] Figure 4 A schematic diagram illustrating an optional display area and buffer area provided in an embodiment of this application;

[0023] Figure 5 A schematic diagram of the structure of an optional image display device provided in an embodiment of this application;

[0024] Figure 6 This is a schematic diagram of an optional electronic device provided in an embodiment of this application. Detailed Implementation

[0025] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0026] In related technologies, when processing vectorized data, records often contain a lot of duplicate data, causing considerable inconvenience for further data processing. Redundant data wastes storage space and results in unsmooth or non-standard graphics. Therefore, a method called thinning is needed to minimize the number of data points while maintaining the shape of the vector curve, according to certain rules.

[0027] In Geographic Information Systems (GIS), vector and raster data are two main spatial data structures. They differ in data sources, structure, and format. The biggest difference is that a raster is a regular array (matrix) where individual pixels are independent of each other; while a vector map consists of coordinates and lines, surfaces, and volumes composed of these coordinates, which are closely related. BMP images are the most typical example of raster graphics, as are JPEG images. CAD drawings are vector graphics.

[0028] In order to ensure efficiency and aesthetics when drawing map trajectory data, mobile devices typically perform preprocessing on the actual trajectory data. For example, preprocessing may include noise reduction, smoothing, and thinning. This greatly reduces the amount of data that needs to be processed during subsequent drawing, thus improving rendering efficiency.

[0029] In some embedded devices with limited hardware resources (e.g., RTOS watches), even with the aforementioned preprocessing, processing timeouts can still occur when dealing with extremely large amounts of data, ultimately leading to frame drops or stuttering during map display.

[0030] To address the technical issues of frame drops or stuttering in map displays on existing wearable devices, this application provides an image display method. Figure 1A flowchart illustrating an optional image display method provided in an embodiment of this application is shown below. Figure 1 As shown, the method for displaying the image may include:

[0031] S101: In response to an operation on an image displayed on the display screen of a wearable device, determine the current display area and the buffer area of ​​the current display area;

[0032] The image display method provided in this application is applied to wearable devices with limited computing power. When dynamically loading all image data, wearable devices may experience frame drops or stuttering when loading the display area due to their limited computing power. In this application embodiment, when displaying an image on the wearable device's screen, the user performs an operation on the image displayed on the screen, thereby enabling the wearable device to receive the operation information. This operation can be a swipe operation, a zoom-in operation, or a zoom-out operation; this application embodiment does not specifically limit the specific operation in this regard.

[0033] The image here can be a photograph or a map; however, this application does not specifically limit this.

[0034] In some embodiments, the current display area can be understood as the area to be determined for display in this round.

[0035] In some embodiments, the size of the buffer area should take into account one or more factors such as storage space, data filtering time, and the range of images that the user can move each time, so as to minimize lag when the user changes the image, provided that the storage space allows it.

[0036] Additionally, it should be noted that this operation can be used to move the area of ​​the image displayed on the display screen at a fixed display scale, and can also be used to change the display scale to change the area of ​​the image displayed on the display screen. Here, the embodiments of this application do not specifically limit this.

[0037] In addition, the above operations can be touch operations on the screen of the displayed image, such as swiping operations, or oscillation operations on the physical buttons of the displayed map, such as pressing operations or rotating operations. Here, the embodiments of this application do not specifically limit this.

[0038] In S101, the wearable device, in response to the operation on the image displayed on the display screen, determines the current display area and the buffer area of ​​the current display area. Here, the current display area and the buffer area of ​​the current display area can be obtained locally. The local area can be local memory or other types of local storage, such as cache. Here, this application embodiment does not specifically limit this.

[0039] The buffer area is adjacent to the current display area. That is, after the current display area is determined, an area adjacent to the current display area is determined as the buffer area of ​​the current display area. In addition, the buffer area can also surround the current display area.

[0040] Here, the buffer area of ​​the current display area can be determined by preset rules, or it can be determined by artificial intelligence (AI) models. However, this application embodiment does not specifically limit this.

[0041] As can be seen, the buffer area is determined differently depending on the current display area. In other words, there is a one-to-one correspondence between the current display area and the buffer area. Therefore, when a wearable device displays an image, the corresponding buffer area changes continuously as the displayed image changes.

[0042] In some embodiments, pre-storing the display data of the filtered buffer area can make the display smoother when the user slides or zooms the image, and avoid the stuttering problem caused by having to traverse all the data to filter the display data each time.

[0043] S102: Store the display data of the current display area and the display data of the buffer area locally;

[0044] Through the above S101, the current display area and the buffer area of ​​the current display area can be determined. In order to obtain the display data of the next image to be displayed in a timely manner when the displayed image changes, in S102, the display data of the current display area and the display data of the buffer area are stored locally.

[0045] In other words, after determining the buffer area of ​​the current display area, it is necessary to update the local data for the displayed image. Here, the display data of the current display area and the display data of the buffer area are stored locally, overwriting the display data of the previous display area and the display data of the buffer area of ​​the previous display area.

[0046] S103: Display the current display area.

[0047] After storing the display data of the current display area and the display data of the buffer area locally in S102, in order to display the image, in S103, the display data of the current display area is rendered to obtain the rendered image and then displayed.

[0048] In this way, the system completes the response to the operation of the image displayed on the wearable device's screen. In addition to displaying the current display area on the wearable device's screen, it also stores the display data of the current display area and the display data of the buffer area locally, which facilitates the response to the user's next operation and prevents frame drops or stuttering in the image display.

[0049] It should be noted that the image display method provided in this application embodiment can apply various graphic formats, such as bitmap (bmp) format, Joint Photographic Experts Group (jpeg) format, or Computer-Aided Design (CAD) graphics, etc. This application embodiment does not specifically limit these formats. Furthermore, the form of the displayed data differs for different formats.

[0050] In order to determine the current display area and the buffer area of ​​the current display area, in an optional embodiment, S101 may include:

[0051] Determine the current display center in response to operations on the image displayed on the wearable device's screen;

[0052] If the current display center is different from the previous display center, the current display area is determined with the current display center as the center.

[0053] Determine the buffer area based on the current display area.

[0054] Understandably, in response to an operation on the displayed image, the display center corresponding to the operation information can be determined based on the operation information. It is then determined whether the display center is the same as the previous display center. If they are the same, it means that the displayed image has not changed, and the process ends. If they are different, the current display area corresponding to the operation information can be determined based on the current display center, display scale, and display screen size.

[0055] After obtaining the current display area, a buffer area can be determined based on the current display area. Here, the buffer area is determined using a preset rule based on the current display area. Alternatively, the buffer area can be determined using an AI model based on the current display area. This embodiment of the application does not specifically limit the determination in this way.

[0056] Thus, by first determining the current display center, then the current display area, and finally the buffer area of ​​the current display area, a buffer area can be determined for the next user operation, which is conducive to timely response to the user's operation.

[0057] In order to determine a suitable buffer area for the current display area, in one optional embodiment, determining the buffer area based on the current display area may include:

[0058] Determine the buffer area based on the shape of the current display area.

[0059] Understandably, a buffer area can be determined for the current display area based on its shape. The shape of the current display area generally matches the shape of the wearable device's display screen. For example, the current display area can be a regular shape or an irregular shape. Generally, for regular shapes, the buffer area can be determined based on the shape of the current display area.

[0060] The shape of the currently displayed area can be a rectangle, a circle, an ellipse, or a regular polygon. This application embodiment does not specifically limit this.

[0061] Different rules are set for different shapes to determine the buffer area, so that the buffer area is adjacent to and surrounds the current display area.

[0062] In this way, the determined buffer area is related to the shape of the current display area. Different buffer areas are determined according to different shapes, thereby determining a suitable buffer area for the current display area, which facilitates the response to the user's next operation and prevents frame drops or stuttering in image display.

[0063] For different shapes, in order to determine the buffer area, in one optional embodiment, when the current display area is circular, determining the buffer area based on the current display area may include:

[0064] A circular area is defined with the center of the current display area as the center and a preset multiple of the diameter of the current display area as the diameter.

[0065] The area outside the currently displayed area within the circular region is designated as the buffer area.

[0066] Understandably, if the current display area is circular, a new central region can be determined using the center of the current display area as the center and a preset multiple of the diameter of the current display area as the diameter. The area within this central region, excluding the current display area, can serve as a buffer region. The preset multiple is greater than or equal to 2.

[0067] In other words, a circular area can be defined with the center of the current display area as the center and twice the diameter of the current display area as the diameter, or with a diameter greater than twice the diameter of the current display area as the diameter. The area outside the current display area within this circular area can then be used as a buffer area. Here, the embodiments of this application do not specifically limit this.

[0068] In this way, by determining a circular area first by setting the center and the diameter of the current display area as a preset multiple, and then using the area outside the current display area in the circular area as a buffer area, it is beneficial to determine a buffer area with a small amount of data that can respond to the user's next operation in a timely manner, thus improving the problem of frame drops or stuttering in image display.

[0069] For a current display area that is rectangular, in order to determine the buffer area, in one optional embodiment, when the current display area is rectangular, determining the buffer area based on the current display area may include:

[0070] A rectangular area is defined with the center of the current display area as the center and a preset multiple of the diagonal of the current display area as the diagonal.

[0071] Define the area outside the currently displayed area within the rectangular region as the buffer area.

[0072] Understandably, if the current display area is rectangular, a new rectangular area can be defined with the center of the current display area as the center and a preset multiple of the diagonal of the current display area as the diagonal. The area outside the current display area in this rectangular area can be used as a buffer area. The preset multiple is greater than or equal to 2.

[0073] In other words, a rectangular area can be defined with the center of the current display area as the center and twice the diagonal of the current display area as the diameter, or with a diameter greater than twice the diagonal of the current display area. The area within this rectangular area, excluding the current display area, can then be used as a buffer area. This embodiment of the application does not specifically limit this approach.

[0074] In this way, by determining the center position and using a preset multiple of the diagonal as the diagonal, a rectangular area is first determined. Then, the area outside the currently displayed area in the rectangular area is used as a buffer area. This helps to determine a buffer area with a small amount of data that can respond to the user's next operation in a timely manner, thus improving the problem of frame drops or stuttering in image display.

[0075] Additionally, for a rectangular current display area, in order to determine the buffer area, in one optional embodiment, when the current display area is rectangular, determining the buffer area based on the current display area may include:

[0076] A circular area is defined with the center of the current display area as the center and a preset multiple of the diagonal of the current display area as the diameter.

[0077] The area outside the currently displayed area within the circular region is designated as the buffer area.

[0078] Understandably, if the current display area is rectangular, a new central area can be defined with the center of the current display area as the center and a diameter equal to a preset multiple of the diagonal of the display area. The area within this central area, excluding the current display area, can serve as a buffer area. The preset multiple is greater than or equal to 2.

[0079] In other words, a circular area can be defined with the center of the current display area as the center and twice the diagonal of the current display area as the diameter, or with a diameter greater than twice the diagonal of the current display area. The area outside the current display area within this circular area can then be used as a buffer area. Here, this application embodiment does not specifically limit this.

[0080] In this way, by determining the center of the circle and using a preset multiple of the diagonal as the diameter, a circular area is first determined. Then, the area outside the currently displayed area in the circular area is used as a buffer area. This helps to determine a buffer area with a small amount of data that can respond to the user's next operation in a timely manner, thus improving the problem of frame drops or stuttering in image display.

[0081] Additionally, to determine the buffer area based on the current display area, in one optional embodiment, determining the buffer area based on the current display area may include:

[0082] The circular area is defined with the center of the display area as the center and the default value as the diameter.

[0083] The area outside the currently displayed area within the circular region is designated as the buffer area.

[0084] Understandably, regardless of whether the shape is regular or irregular, a new central region is first defined with the center of the target display area as the center and a preset value as the diameter. The area within this central region, excluding the current display area, can serve as a buffer region. The preset value is a multiple of the maximum distance between any two points on the boundary of the current display area; the preset multiple is greater than or equal to 2.

[0085] Of course, a circular region can also be defined with the center of the current display area as the center and twice the maximum distance between any two points on the boundary of the current display area as the diameter. Another circular region can be defined with a diameter greater than twice the maximum distance between any two points on the boundary of the current display area. The area outside the current display area within this circular region can then be used as a buffer region. This embodiment of the application does not specifically limit this approach.

[0086] In this way, by determining the center and using a preset value as the diameter, a circular area is first determined, and then the area outside the currently displayed area in the circular area is used as a buffer area. This helps to determine a buffer area with a small amount of data that can respond to the user's next operation in a timely manner, thus improving the problem of frame drops or stuttering in image display.

[0087] Here, other methods can also be used to determine the buffer area of ​​the current display area. In one optional embodiment, determining the buffer area based on the current display area may include:

[0088] Determine the responsive actions based on the current display area;

[0089] Determine the buffer area based on the responsive operation.

[0090] Understandably, after determining the current display area, the responsive operations can be identified. These responsive operations are those that can be received and responded to on the current display area for changing the display area. In other words, based on the current display area, the responsive operations for changing the display area on the current display area can be determined.

[0091] The operations here refer to all operations that can be received and responded to on the current display area to change the display area. For example, these operations may include sliding, zooming in, or zooming out. In addition, for each operation, all operation information that can be received and responded to is also included. For example, for a sliding operation, all sliding information that can be received and responded to is included.

[0092] After determining the response operation, a buffer area can be determined based on the response operation. Here, the buffer area can be determined using preset rules based on the response operation, or it can be determined using an AI model based on the response operation. This application embodiment does not specifically limit this.

[0093] In this way, the buffer area is determined by the operations that can be received and responded to on the current display area to change the display area. The buffer area is related to the operations that the user can perform on the current display area to change the target display area. This helps to determine the buffer area with small data volume and timely response to the user's next operation, thereby improving the response efficiency of wearable devices.

[0094] To enable the determination of a buffer region based on a responsive operation, in one alternative embodiment, determining the buffer region based on a responsive operation may include:

[0095] In response to a responsive action, obtain the display area corresponding to the responsive action;

[0096] The area outside the current display area in the display region corresponding to the responsive operation is defined as the buffer area.

[0097] Understandably, in response to a responsive operation, the display area corresponding to the responsive operation is obtained. This is similar to the operation on the image displayed on the screen of the wearable device described above. The current display center corresponding to the response operation is obtained. It is then determined whether the current display center is the same as the previous display center. If they are the same, it means that the displayed image has not changed, and the process ends. If they are different, the display area of ​​the operation information can be determined based on the display center, display scale, and screen size corresponding to the operation information.

[0098] Here, the display area that can receive and respond to all operations that change the display area can be determined as the display area corresponding to the responsive operation. Then, the area outside the current display area in the display area corresponding to the responsive operation is determined as the buffer area.

[0099] In this way, by determining the buffer area through the above-mentioned response-responsive operation method, the determined buffer area can include the display area corresponding to all operations that the user can receive and respond to in the current display area to change the display area. This makes the data volume of the determined buffer area small, which can meet the capabilities of wearable devices with low computing power, and can also provide a buffer area that can respond to the user's next operation in a timely manner, thereby improving the response efficiency of the wearable device.

[0100] In order to ensure that the display data in the stored buffer area can respond to user operations in a timely manner, in an optional embodiment, S102 may include:

[0101] From the thinned data, filter out the display data for the current display area and the display data for the buffer area;

[0102] Store the display data of the current display area and the display data of the buffer area locally.

[0103] Understandably, taking an image as a map as an example, in related technologies, when displaying a map, the display data of the current display area can be directly filtered from the thinned data and rendered. In this embodiment, the display data of the current display area and the display data of the buffer area can be filtered from the thinned data and stored locally.

[0104] This allows for pre-filtering of display data in the current display area and the buffer area. When displaying the map, the display data of the current display area can be directly obtained from the stored filtered display data, which helps to respond to user operations in a timely manner and improves the problems of frame drops or lag.

[0105] In order to obtain the thinned data, in an optional embodiment, when the image is a map, the method may further include:

[0106] In response to opening the map application on the wearable device, map data is downloaded from the map server;

[0107] The map data is thinned to obtain the thinned data.

[0108] Understandably, taking an image as a map as an example, after opening a map application, the wearable device will download map data and process it, such as denoising, flattening, and thinning the map data, so as to obtain thinned data and store it locally.

[0109] In this way, the thinned data can be obtained, which makes it easier to filter out the display data for the display area and render it, providing a data foundation for timely response to user operations.

[0110] To improve the integrity of the image display, in an optional embodiment, S102 may include:

[0111] The display data of the current display area, the display data of the buffer area, and the display data of the boundary of the buffer area are stored locally.

[0112] Understandably, in this embodiment of the application, the display data of the current display area, the display data of the buffer area, and the display data of the boundary of the buffer area are used to update the previously stored data locally. In this way, the local data includes not only the display data of the current display area and the display data of the buffer area, but also the display data of the boundary of the buffer area.

[0113] In this way, when displaying data involving the boundaries of the buffer area is required, the complete map can be displayed, improving the problem of frame drops or stuttering in image display while ensuring the integrity of image display.

[0114] Alternatively, when the image is a vector map, in an optional embodiment, S103 may include:

[0115] Render and display the trajectory points in the current display area.

[0116] Understandably, when the map is in vector format, the display data of the current display area is stored in the form of trajectory points. After obtaining the trajectory points of the current display area, the trajectory points of the current display area can be rendered to obtain the current display area of ​​the map, and then the current display area of ​​the map can be displayed.

[0117] In this way, by rendering the trajectory points, it is possible to display a vector map, thereby improving the frame drop or stuttering issues in map display.

[0118] The following examples illustrate the image display methods described in one or more of the above embodiments.

[0119] In related technologies, embedded devices typically display map tracks using a raster image solution. This requires converting the track data into a raster image in advance, and then dynamically loading the image when the user drags and zooms.

[0120] The drawbacks of the raster image scheme are also obvious. When users drag and zoom, images need to be loaded dynamically, which results in problems such as long loading time, lag, and high power consumption.

[0121] The solutions in related technologies generally only support the display of vector maps on Android, iOS and other devices. This example can solve the need for displaying vector trajectories on embedded devices with limited hardware resources.

[0122] Currently, devices that support vector trajectory display all have a certain computing power. The processing of trajectory data generally involves the noise reduction, smoothing, and thinning mentioned above, which mainly simplifies the full amount of data. During subsequent rendering, the platform's high computing power ensures low processing time and avoids frame drops.

[0123] The main problem addressed in this example is how to further reduce the amount of data processed in a single rendering. The existing spatial region is divided into regularly shaped grid units, with the size of the grid units dynamically changing according to the map scale. When the user swipes or zooms, the set of grid units needed for display is extracted based on the currently visible area of ​​the screen. Subsequent rendering only needs to process the data within this selected set, rather than traversing all the data, thus reducing computation time and avoiding the possibility of dropped frames.

[0124] Figure 2 A flowchart illustrating an example of an optional map display method provided in this application embodiment, such as... Figure 2 As shown, the method may include:

[0125] S201: Slide the screen;

[0126] S202: Does the center point of the trajectory display change when the hand is raised? If yes, execute S204.

[0127] S203: Trajectory thinning;

[0128] S204: Update the data list used for display based on the current center point;

[0129] S205: Trajectory rendering.

[0130] For trajectory processing services, when displaying a map on the user interface (UI), after the UI receives a swipe gesture, it determines whether the center point of the trajectory display changes when the user raises their hand. If so, it determines the data list for updating the display based on the current center point from the thinned trajectory data, thus obtaining a filtering list. The target display data in the filtering list is then used for trajectory rendering to obtain an image and display it.

[0131] In other words, after opening the map application, the map data is downloaded, the map data is thinned to obtain the thinned data, and based on the current screen display area, all data points are traversed, the data points that fall within the area are filtered out and added to a specified linked list. Subsequent UI drawing obtains the data points needed for drawing by accessing the linked list.

[0132] Figure 3a A schematic diagram of an optional original trajectory point and original trajectory provided for an embodiment of this application, such as... Figure 3a As shown, it includes the original trajectory point 31 and the original trajectory 32.

[0133] Figure 3b A schematic diagram of an optional original trajectory and a thinned trajectory provided for an embodiment of this application, as shown below. Figure 3bAs shown, it includes the original trajectory point 31, the original trajectory 32, the thinned trajectory point 33, and the thinned trajectory 34.

[0134] Figure 3c A schematic diagram of an optional thinned trajectory provided for an embodiment of this application, as shown below. Figure 3c As shown, it includes trajectory point 33 and trajectory 34 after thinning.

[0135] above Figures 3a-3c The general process of data thinning is roughly described. After data thinning, the amount of data is greatly reduced, and the basic shape characteristics of the original graph or curve are basically guaranteed to be reflected, which can save space and time for further processing.

[0136] The key to curve thinning is defining the thinning factor. Different thinning factors determine the diversity of thinning algorithms. In existing thinning theories, the thinning factor can be defined by step size, line segment length, perpendicular distance, etc.

[0137] For the step size method:

[0138] The step-size method involves sampling a point at regular intervals along a continuous curve, compressing all other points, and then approximating the curve between adjacent sampling points using linear continuity or curve fitting. This method has two main drawbacks:

[0139] First, characteristic points on the curve, such as where the curve bends, may be compressed due to thinning, causing the curve to deform.

[0140] Second, in some cases, some redundant points may still remain that cannot be deleted. For example, if there is a relatively straight section of the curve with a small step size, multiple extraction points may be found on this straight section. In reality, it is only necessary to keep the first and last points of the straight section.

[0141] Therefore, the extracted curve will have some error compared to the original curve. The magnitude of the error depends on the step size setting and the curve fitting method. A better result might be achieved by considering both step size and curvature, but currently there are no explicit regulations regarding step size and curvature; these are generally determined by the programmer based on the specific circumstances.

[0142] For line segment filtering:

[0143] The segment filtering method replaces a segment with its midpoint when the length of a segment is less than a certain filter value, just as the two ends of the segment are reduced to the midpoint. Like the length-based method, the accuracy of the segment filtering algorithm is determined by the filter value, which is usually determined by the programmer.

[0144] For the Douglas-Peuker (DP) algorithm:

[0145] Generally, when considering a complete curve or a defined line segment from a holistic perspective, the basic idea is as follows:

[0146] 1. Connect the first and last points of the curve with a straight line, calculate the distances between all points on the curve and the straight line, and find the maximum distance value dmax. Compare dmax with a pre-defined threshold D:

[0147] 2. If dmax < D, then discard all midpoints on this curve;

[0148] If dmax ≥ D, retain the coordinate point corresponding to dmax, and divide the curve into two parts using this point as the boundary. Repeat this method for these two parts, that is, repeat steps 1 and 2, until all dmax < D, thus completing the thinning of the curve.

[0149] Obviously, the thinning accuracy of this algorithm is also related to the threshold. The larger the threshold, the greater the simplification and the more points are reduced. Conversely, the lower the simplification, the more points are retained and the shape is closer to the original curve.

[0150] Compared with the two methods above, the DP algorithm has significantly improved the thinning accuracy. Firstly, its threshold is generally taken as the corresponding maximum allowable error. Secondly, the algorithm can achieve a good balance between deletion and retention, that is, it can reduce the number of points sufficiently while retaining feature points as much as possible. However, since loops or recursion are used in the programming implementation, the efficiency will be affected when the number of points is large.

[0151] For the vertical distance limit method:

[0152] The perpendicular distance limit method works on the same principle as the dynamic programming (DP) algorithm, but instead of considering a complete curve from a holistic perspective, it sequentially filters and removes redundant points starting from the first point. Specifically, starting from the first point, it calculates the perpendicular distance from the second point to the line connecting the first and third points. If this distance is greater than a certain threshold, the second point is retained and used as the new starting point to calculate the distance from the third point to the line connecting the second and fourth points; otherwise, the second point is removed, and the distance from the third point to the line connecting the first and fourth points is calculated, and so on, until the last point on the curve. The threshold is generally taken as the maximum permissible error or less.

[0153] The vertical distance limit method has the same thinning accuracy as the dynamic programming (DP) algorithm, but its loop is simpler and easier to program. It is a relatively ideal thinning algorithm.

[0154] Figure 4 This is a schematic diagram illustrating an optional display area and buffer area provided in an embodiment of this application, as shown below. Figure 4 As shown, it includes: thinned trajectory point 41, thinned trajectory 42, visible area on the screen 43, buffer area 44, and intersection point 45.

[0155] After the initial thinning, the necessary data points are further filtered based on the current display area of ​​the screen. A buffer area needs to be reserved during filtering to prevent lag when the user scrolls. After the scrolling ends, the points needed for display are recalculated based on the new screen center.

[0156] It should be noted that if only the points within the defined area are retained, the display will be incomplete. It is also necessary to add an intersection point 45 with the buffer area to ensure complete display.

[0157] Based on this example, it is possible to maintain a high frame rate for displaying vector trajectories on embedded devices.

[0158] This application provides an image display method, comprising: in response to an operation on an image displayed on the display screen of a wearable device, determining a current display area and a buffer area adjacent to the current display area, storing the display data of the current display area and the display data of the buffer area locally, and displaying the current display area; that is, by responding to an operation on a displayed map, determining the current display area and the buffer area adjacent to the current display area, and storing the display data of the current display area and the display data of the buffer area locally, so that not only the display data of the current display area is stored, but also the display data of the buffer area is stored locally. Thus, by setting a buffer area and storing the display data of the buffer area, it is beneficial to be able to directly obtain the display data of the next display area from the display data of the buffer area when the user performs the next operation, thereby avoiding the computing power consumed by the wearable device to filter the display data of the next display area from all image data, thereby saving the computing power of the wearable device while responding to the user's operation in a timely manner, improving the frame drop or stuttering problem in image display, and improving the response efficiency of the wearable device to image display.

[0159] Based on the same inventive concept as the foregoing embodiments, this application provides an image display device. Figure 5 A schematic diagram of an optional image display device provided in an embodiment of this application is shown below. Figure 5 As shown, the image display device includes: a determining module 51, a storage module 52, and a display module 53; wherein,

[0160] The determining module 51 is used to determine the current display area and the buffer area of ​​the current display area in response to an operation on the image displayed on the display screen of the wearable device; wherein the buffer area is adjacent to the current display area;

[0161] Storage module 52 is used to locally store the display data of the current display area and the display data of the buffer area;

[0162] Display module 53 is used to display the current display area.

[0163] In an optional embodiment, the determining module 51 is specifically configured to: determine the current display center in response to an operation on an image displayed on the display screen of the wearable device; determine the current display area centered on the current display center if the current display center is different from the previous display center; and determine a buffer area based on the current display area.

[0164] In one optional embodiment, the determining module 51 determines the buffer area based on the current display area, including: determining the buffer area based on the shape of the current display area.

[0165] In one optional embodiment, the determining module 51 determines the buffer area based on the current display area, including: when the shape of the current display area is circular, determining a circular area with the center of the current display area as the center and twice the diameter of the current display area as the diameter; and determining the area in the circular area other than the current display area as the buffer area.

[0166] In an optional embodiment, the determining module 51 determines the buffer area based on the current display area, including: when the shape of the current display area is rectangular, determining a rectangular area with the center position of the current display area as the center and twice the diagonal of the current display area as the diagonal; and determining the area in the rectangular area other than the current display area as the buffer area.

[0167] In one optional embodiment, the determining module 51 determines the buffer area based on the current display area, including: when the shape of the current display area is rectangular, determining a circular area with the center of the current display area as the center and a preset multiple of the diagonal of the current display area as the diameter; wherein the preset multiple is greater than or equal to 2; and determining the area outside the current display area in the circular area as the buffer area.

[0168] In an optional embodiment, the determining module 51 determines a buffer area based on the current display area, including: determining a circular area with the center position of the current display area as the center and a preset value as the diameter; wherein, the preset value is a preset multiple of the maximum distance between any two points on the boundary of the current display area; the preset multiple is greater than or equal to 2; and determining the area outside the current display area in the circular area as the buffer area.

[0169] In one optional embodiment, the determining module 51 determines the buffer area based on the current display area, including: determining a responsive operation based on the current display area; wherein the responsive operation is: an operation that can be received and responded to on the current display area for changing the display area; and determining the buffer area based on the responsive operation.

[0170] In one optional embodiment, the determining module 51 determines a buffer area based on a responsive operation, including: in response to the responsive operation, obtaining a display area corresponding to the responsive operation; and determining the area outside the current display area in the display area corresponding to the responsive operation as a buffer area.

[0171] In an optional embodiment, the storage module 52 is specifically used to: filter out the display data of the current display area and the display data of the buffer area from the thinned data; and store the display data of the current display area and the display data of the buffer area locally.

[0172] In an alternative embodiment, when the image is a map, the device is further configured to: download map data from a map server in response to opening a map application on a wearable device; and thin the map data to obtain thinned data.

[0173] In an optional embodiment, the storage module 52 is specifically used to store the display data of the current display area and the display data of the buffer area into local memory.

[0174] In an optional embodiment, the storage module 52 is specifically used to: locally store the display data of the current display area, the display data of the buffer area, and the display data of the boundary of the buffer area.

[0175] In an optional embodiment, the display module 53 is specifically used to: render and display the trajectory points of the current display area when the image is a vector map.

[0176] In practical applications, the aforementioned determining module 51, storage module 52, and display module 53 can be implemented by a processor located on the image display device, specifically a CPU, microprocessor unit (MPU), digital signal processor (DSP), or field programmable gate array (FPGA), etc.

[0177] Figure 6 The following is a schematic diagram of an optional electronic device provided as an embodiment of this application, such as... Figure 6 As shown, this application embodiment provides an electronic device 600, which includes:

[0178] The processor 61 and the storage medium 62 storing instructions executable by the processor 61; the storage medium 62 performs operations dependent on the processor 61 via a communication bus 63, and when the instructions are executed by the processor 61, the image display method described in one or more of the above embodiments is executed.

[0179] It should be noted that in practical applications, the various components in a computer device are coupled together via a communication bus 63. This means that the communication bus 63 is used to enable communication between these components. In addition to a data bus, the communication bus 63 also includes a power bus, a control bus, and a status signal bus.

[0180] This application provides a computer storage medium storing executable instructions. When the executable instructions are executed by one or more processors, the processors execute the image display method described in one or more of the above embodiments.

[0181] The computer-readable storage medium can be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM), etc.

[0182] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0183] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0184] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0185] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0186] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application.

Claims

1. A method for displaying an image, characterized in that, include: In response to an operation on an image displayed on the display screen of a wearable device, a current display area and a buffer area of ​​the current display area are determined; wherein the buffer area is adjacent to the current display area; The display data of the current display area and the display data of the buffer area are stored locally. Display the current display area.

2. The method according to claim 1, characterized in that, The step of determining the current display area and a buffer area of ​​the current display area in response to an operation on an image displayed on the screen of a wearable device includes: Determine the current display center in response to operations on the image displayed on the wearable device's screen; If the current display center is different from the previous display center, the current display area is determined with the current display center as the center; The current buffer area is determined based on the current display area.

3. The method according to claim 2, characterized in that, Determining the buffer area based on the current display area includes: The buffer area is determined based on the shape of the currently displayed area.

4. The method according to claim 3, characterized in that, When the current display area is circular in shape; determining the buffer area based on the current display area includes: A circular area is defined with the center of the current display area as the center and a preset multiple of the diameter of the current display area as the diameter; wherein the preset multiple is greater than or equal to 2. The area outside the currently displayed area within the circular region is defined as the buffer area.

5. The method according to claim 3, characterized in that, When the shape of the current display area is rectangular; determining the buffer area based on the current display area includes: A rectangular area is defined with the center of the current display area as the center and a preset multiple of the diagonal of the current display area as the diagonal; wherein the preset multiple is greater than or equal to 2. The area outside the currently displayed area within the rectangular region is defined as the buffer area.

6. The method according to claim 3, characterized in that, When the shape of the current display area is rectangular; determining the buffer area based on the current display area includes: A circular area is defined with the center of the current display area as the center and a preset multiple of the diagonal of the current display area as the diameter; wherein the preset multiple is greater than or equal to 2. The area outside the currently displayed area within the circular region is defined as the buffer area.

7. The method according to claim 2, characterized in that, Determining the buffer area based on the current display area includes: A circular area is defined with the center of the current display area as the center and a preset value as the diameter; wherein, the preset value is a preset multiple of the maximum distance between any two points on the boundary of the current display area; the preset multiple is greater than or equal to 2; The area outside the currently displayed area within the circular region is defined as the buffer area.

8. The method according to claim 2, characterized in that, Determining the buffer area based on the current display area includes: Based on the current display area, a responsive operation is determined; wherein, the responsive operation is: an operation that can be received and responded to on the display area for changing the display area; The buffer region is determined based on the responsive operation.

9. The method according to claim 8, characterized in that, Determining the buffer region based on the responsive operation includes: In response to the responsive operation, obtain the display area corresponding to the responsive operation; The area outside the current display area in the display area corresponding to the responsive operation is defined as the buffer area.

10. The method according to any one of claims 1 to 9, characterized in that, The step of locally storing the display data of the current display area and the display data of the buffer area includes: From the thinned data, the display data of the current display area and the display data of the buffer area are selected; The display data of the current display area and the display data of the buffer area are stored locally.

11. The method according to claim 10, characterized in that, When the image is a map, the method further includes: In response to opening the map application on the wearable device, map data is downloaded from the map server; The map data is thinned to obtain the thinned data.

12. The method according to any one of claims 1 to 9, characterized in that, The step of locally storing the display data of the current display area and the display data of the buffer area includes: The display data of the current display area and the display data of the buffer area are stored in local memory.

13. The method according to any one of claims 1 to 9, characterized in that, The step of locally storing the display data of the current display area and the display data of the buffer area includes: The display data of the current display area, the display data of the buffer area, and the display data of the boundary of the buffer area are stored locally.

14. The method according to any one of claims 1 to 9, characterized in that, When the image is a vector map, displaying the current display area includes: The trajectory points of the current display area are rendered and displayed.

15. An image display device, characterized in that, include: A determination module is configured to determine, in response to an operation on an image displayed on the display screen of a wearable device, a current display area and a buffer area of ​​the display area; wherein the buffer area is adjacent to the current display area; The storage module is used to locally store the display data of the current display area and the display data of the buffer area; The display module is used to display the current display area.

16. A wearable device, characterized in that, include: A processor and a storage medium storing processor-executable instructions; The storage medium performs operations via a communication bus dependent on the processor. When the instruction is executed by the processor, the image display method according to any one of claims 1 to 14 is performed.

17. A computer storage medium, characterized in that, The device stores executable instructions that, when executed by one or more processors, enable the processors to perform the image display method according to any one of claims 1 to 14.