Image generation method, wearable device and AR glasses

By determining the read information in the on-chip memory of the wearable device and directly positioning and reading image data in the off-chip memory, the problem of secondary data reading is solved, image generation efficiency is improved and memory and processor resources are saved.

CN120525701AActive Publication Date: 2025-08-22ZHUHAI MOJIE TECH CO LTD

Patent Information

Application Number
CN202511031337.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-25
Publication Date
2025-08-22
Estimated Expiration
2045-07-25

AI Technical Summary

Technical Problem

In wearable devices, the reading of image data in the prior art requires secondary data reading, resulting in slow image generation efficiency.

Method used

By determining the reading information of the target image, including the target image metadata, the first reading address and the offset data, the target pixel data is directly positioned and read in the off-chip memory, the secondary copy of the data is avoided.

Benefits of technology

Improves the efficiency of image generation, saves memory footprint and processor performance, and reduces data reading time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120525701A_ABST
    Figure CN120525701A_ABST
Patent Text Reader

Abstract

The invention provides an image generation method, wearable equipment and AR glasses, and the method comprises the steps: responding to a generation instruction of a target image, determining the reading information of the target image in an on-chip memory, and enabling the reading information to comprise the metadata of the target image, a first reading address and offset data; according to the first reading address, determining a target memory in the plurality of off-chip memories and determining at least one target memory block in the target memory, the target memory block at least storing target pixel data of the target image; and determining and reading target pixel data in the target storage block according to the offset data so as to generate a target image according to the target image metadata and the target pixel data. According to the method and the device, the problem of data secondary copying generated when the off-chip memory reads the image data can be solved, and the image generation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image processing, and in particular to an image generation method, a wearable device, and AR glasses. Background Art

[0002] In the related art, wearable devices store image data corresponding to images through memories. However, since most memories set in wearable devices are read according to storage blocks, if the image data is not stored according to the storage size of the storage blocks, in the process of reading the required image data, it is necessary to first read the data in the storage blocks, and then read the actually required image data to generate the image, thereby causing the problem of secondary data reading and resulting in slower image generation efficiency. Summary of the Invention

[0003] The present application provides an image generation method, a wearable device and AR glasses, aiming to solve the problem of needing to read data twice during the image reading process and to improve the image generation efficiency.

[0004] In a first aspect, the present application provides an image generation method, which is applied to a wearable device, wherein the wearable device includes an on-chip memory and at least one off-chip memory, and the image generation method includes the following steps: In response to a target image generation instruction, determining read information of the target image in an on-chip memory, the read information including target image metadata, a first read address, and offset data; According to the first read address, determining a target memory from a plurality of off-chip memories and determining at least one target storage block in the target memory, wherein the target storage block at least stores target pixel data of a target image; According to the offset data, target pixel data is determined and read in the target storage block to generate a target image according to the target image metadata and the target pixel data.

[0005] In a second aspect, the present application also provides a wearable device, which includes a processor, an on-chip memory, at least one off-chip memory, a third memory, and a computer program stored on the third memory and executable by the processor, wherein the on-chip memory is used to store read information of the target image, and the off-chip memory is used to store pixel data of the image. When the computer program is executed by the processor, the steps of the image generation method as described above are implemented.

[0006] In a third aspect, the present application also provides an AR glasses, which include at least a display module, an on-chip memory and at least one off-chip memory. When the AR glasses receive a display instruction, they read the target image metadata of the target image from the on-chip memory and the target pixel data of the target image from the off-chip memory to generate a target image based on the target image metadata and the target pixel data, and display it on the display module.

[0007] The present application provides an image generation method, a wearable device, and AR glasses. In response to a target image generation instruction, the present application determines read information of a target image in an on-chip memory of the wearable device. The read information includes target image metadata, a first read address, and offset data. Then, based on the first read address, a target memory is determined from multiple off-chip memories, and at least one target storage block is determined in the target memory. Based on the offset data, target pixel data of the target image is located in the target storage block to read the target pixel data from the target storage block. By storing the read information in the on-chip memory, the rate of reading relevant data of the target image can be increased. Furthermore, the offset data can be determined based on the read information, enabling direct reading of target pixel data from the off-chip memory. This avoids the problem of secondary reading of image-related data, thereby saving memory usage and processor performance, and improving image generation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. 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 any creative work.

[0009] Figure 1 A flowchart of an image generation method provided in one embodiment of the present application; Figure 2 A schematic block diagram of the internal structure of a memory in the related art; Figure 3 A schematic diagram of data storage in a memory provided in the related art in one embodiment; Figure 4 A schematic diagram of data storage in a memory provided in one embodiment of the present application; Figure 5 This is a schematic block diagram of the structure of a wearable device provided in one embodiment of the present application.

[0010] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0011] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0012] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.

[0013] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.

[0014] Please refer to Figure 1 , Figure 1 A flowchart of an image generation method provided in one embodiment of the present application.

[0015] like Figure 1 As shown, the image generating method includes steps S101 to S103.

[0016] Step S101 : In response to a target image generation instruction, read information of the target image is determined in an on-chip memory, where the read information includes target image metadata, a first read address, and offset data.

[0017] Exemplarily, when a target image needs to be generated, a target image generation instruction is generated, and based on the generation instruction, relevant data of the target image is read to generate the target image. Specifically, the target image generation instruction is determined based on user operation information on the wearable device; and / or based on user operation information on a terminal device that is communicatively connected to the wearable device. This application does not limit the method for determining the generation instruction.

[0018] Exemplarily, in response to a generation instruction, read information corresponding to the target image is obtained in the on-chip memory, wherein the read information includes at least target image metadata corresponding to the target image, a first read address, and offset data; it should be understood that the offset data is used to indicate the offset between two data, including but not limited to the offset between the read addresses of two different data, so that the read address of one of the data and the offset data can be used to obtain the read address of the other data.

[0019] Step S102: According to the first read address, determine a target memory from a plurality of off-chip memories and determine at least one target storage block in the target memory, wherein the target storage block at least stores target pixel data of a target image.

[0020] Exemplarily, the off-chip memory includes a plurality of memory blocks, each of which can be used for data storage, wherein the memory blocks are of the same size. It should be understood that a wearable device may include one or more off-chip memories, and those skilled in the art may increase or decrease the number of off-chip memories based on the actual data storage capacity of the wearable device.

[0021] Exemplarily, the target storage block storing the target pixel data of the target image is determined by reading the first read address in the information, thereby locating the storage block from which data is to be read. In some embodiments, in response to an instruction to generate the target image, read information of the target image is retrieved from an on-chip memory to determine the first read address, and then the target storage block storing the target pixel data of the target image is located based on the first read address.

[0022] In some embodiments, the off-chip memory includes embedded memory.

[0023] Exemplarily, the target image metadata and the read information corresponding to the target image are stored in an on-chip memory, and when a target image generation instruction is received, the on-chip memory is accessed to read the data corresponding to the target image. Since the on-chip memory has the characteristic of fast access speed, the information acquisition rate can be improved when accessing the read information and target image metadata stored in the on-chip memory, and the target pixel data of the target image is stored in the embedded memory, saving the memory occupancy of the on-chip memory to ensure the image generation efficiency.

[0024] In other embodiments, the off-chip memory can also be an external memory, which is not a limitation of this application. It should be noted that in one embodiment of this application, when storing an image, an image parsing tool is used to parse the image into image metadata and pixel data. The image metadata includes attribute data such as width, height, resolution, storage format, data layout, color, depth, grayscale, and data length, which are used to describe image features and guide parsing; the pixel data includes actual pixel values ​​(such as RGB color values) that constitute the visual content of the image. After the image is parsed, the image metadata is stored in the on-chip memory, and the pixel data is stored in the off-chip memory. The offset data indicates the offset between the actual storage location of the target pixel data of the target image in the off-chip memory and the read address of the off-chip memory.

[0025] In some embodiments, the steps of determining a target memory among multiple off-chip memories and determining at least one target storage block in the target memory based on a first read address include: determining at least one off-chip memory as a target memory based on first address fragment information of the first read address; and determining at least one target storage block in the target memory based on second address fragment information of the first read address.

[0026] Exemplarily, the first read address includes different fragment information, so that the off-chip memory pointed to and the target storage block in the off-chip memory can be determined based on the different fragment information in the first read address, thereby improving the positioning rate of the target pixel data. For example, the first read address is 0×12340000; wherein the fragment 0×12 is used to indicate a certain off-chip memory, and the fragment 34 is used to indicate a certain storage block in the off-chip memory indicated by 0×12, and then the storage block storing the target pixel data can be determined through the first read address, and the storage block is determined as the target storage block to read the corresponding target pixel data from the target storage block. It should be understood that when the pixel data corresponding to the image is stored, the corresponding first read address is generated, so that the first read address can be obtained in the on-chip memory.

[0027] In other embodiments, if there are multiple off-chip memories and the target pixel data is stored in different off-chip memories, the read information of the target image obtained from the on-chip memory includes a first read address, and the first read address can point to the corresponding storage blocks in different off-chip memories; or the read information of the target image obtained from the on-chip memory includes multiple first read addresses to point to storage blocks in different off-chip memories; this application does not limit the first read address to pointing to storage blocks in one or more off-chip memories.

[0028] Step S103: Determine and read target pixel data in the target storage block according to the offset data, so as to generate a target image according to the target image metadata and the target pixel data.

[0029] Exemplarily, after the target storage block is determined, the storage location of the target pixel data in the target storage block is determined in the target storage block using the offset data, so as to read the target pixel data from the target storage block.

[0030] See also Figure 2 and Figure 3 , Figure 2 A schematic block diagram of the internal structure of a memory in the related art; Figure 3 A schematic diagram of data storage in a memory provided in the related art in one embodiment.

[0031] It should be noted that if Figure 2As shown, in the related art, most wearable devices use EMMC memory for data storage. EMMC memory has the characteristic of storing data in the form of storage blocks, such as Figure 2 The EMMC memory in the memory includes a memory block A1, a memory block A2, etc., and the storage space of the memory block is fixed; therefore, in the related art, if the image data corresponding to one or more images cannot just fill the storage space of the memory block or the space occupied by some image data is larger than the storage space of the memory block, the image data needs to be stored in sequence in multiple memory blocks, such as Figure 3 As shown, at this time, the capacity of storage blocks A1, A2, A3, and A4 is the same, assuming it is 5, and the image data A and B are stored in storage blocks A1, A2, and A3 in sequence, where the size of A is 8 and the size of B is 7. When reading the image data A, since the EMMC memory has the feature of block access, when generating the image, it is necessary to first read the image data A from the starting position zero to the 8th position in the EMMC memory for identification, and then copy the data in the storage blocks A1 and A2 in the EMMC memory, and then copy the image data A corresponding to the starting position zero to the 8th position from the storage blocks A1 and A2. That is to say, in the related art, the data stored in the EMMC memory needs to be read once and copied twice. During the first copy, the contents of the storage block A1 and the storage block A2 storing the image data A need to be read and copied. When the storage block A2 is not completely filled with the image data A, part of the data of the other image data B will also be stored in the storage block A2 by default, and the other part will be stored in the storage block A3. Therefore, the image data copied from the storage block A2 will also contain unnecessary noise data (that is, part of the image data B stored in the storage block A2). Therefore, the read and copied data needs to be copied a second time to obtain the final required image data. It can be seen that the above method has the problem of secondary copying when reading the required image data.

[0032] To solve the problems existing in related technologies, in this embodiment, when the image data is parsed into image metadata and pixel data using an image parsing tool, the offset data corresponding to the target image can be obtained according to the parsing results. Figure 4 , Figure 4A data storage diagram of a memory provided for an embodiment of the present application. Specifically, after image parsing is completed, the pixel data A' of image A is stored in A1 and A2. Since the image metadata is not included in the pixel data A', the pixel data A' is smaller than the size of image A, for example, 6. At this time, the pixel data A' is stored in storage blocks A1 and A2, thereby identifying the storage location read address of the off-chip memory where A1 and A2 are located as the original storage location 0-10, and identifying the read address of the pixel data A' storage location as the actual storage location 0-6. The difference between these two addresses is the offset. The actual storage location, original storage location, actual storage size, original storage size, offset data, and image metadata are all stored in the on-chip memory.

[0033] Then, after the target storage block is determined by the first read address, the storage location of the target pixel data in the target storage block is directly determined using the offset data. Specifically, the first read address can directly locate the target storage block of the off-chip memory, and then the specific location of the target pixel data in the target storage block can be determined by the offset data and the first read address, thereby achieving the positioning of the target pixel data and the extraction of the target pixel data. For example, in one embodiment, image A is determined as the target image, and the original storage location of the target pixel data A' is obtained by the offset data. The target pixel data A' is stored in the storage blocks A1 and A2, so that the data in the storage blocks A1 and A2 can be copied; and then the actual storage location of the target pixel data A' is obtained according to the offset data, so that the target pixel data A' located in the 0-6 area can be extracted from the storage blocks A1 and A2 copied in the previous step.

[0034] Thus, the target pixel data can be obtained through one copy and one extraction, avoiding the data access burden brought to the off-chip memory by the second copy. At the same time, parsing the image into image metadata and pixel data can also make the image occupy less off-chip memory, and can better utilize the storage space. In addition, since the first read address and other information are stored in the on-chip memory, the on-chip memory is on-chip storage, which is integrated into the chip and has the advantages of low access latency, high broadband efficiency, timely response, and strong anti-interference ability. When responding to the target image generation instruction, the wearable device can quickly access the on-chip memory and obtain the corresponding first read address from the on-chip memory, thereby improving the rate of determining the storage location of the target pixel data. Since the off-chip memory stores less image data, it can reduce the time spent on reading the required data stored in the off-chip memory, thereby improving the generation rate of the target image.

[0035] In some embodiments, the steps of determining and reading target pixel data in a target storage block based on the offset data include: determining a second read address based on the offset data and a first read address corresponding to the target storage block; determining a storage location of the target pixel data in the target storage block based on the second read address; and reading the target pixel data from the target storage block based on the storage location.

[0036] Exemplarily, a second read address is determined based on the offset data and the first read address of the target storage block, wherein the second read address is used to indicate the actual storage location of the target pixel data in the target storage block. Therefore, based on the second read address, the target pixel data can be directly extracted from the target storage block, avoiding the problem of secondary read copy of the data.

[0037] In some embodiments, the method also includes: acquiring the image to be stored; performing image analysis processing on the image to be stored to obtain metadata of the image to be stored and pixel data to be stored; determining the reading information corresponding to the image to be stored based on the metadata of the image to be stored and the pixel data to be stored, and storing the reading information in the on-chip memory; archiving the pixel data to be stored based on the read information to store the archived pixel data to be stored in the off-chip memory.

[0038] Exemplarily, after acquiring the image to be stored, the image to be stored is parsed based on an image parsing tool to obtain the image metadata to be stored and the pixel data to be stored corresponding to the image to be stored; and the read information of the image to be stored is determined based on the image metadata to be stored and the pixel data to be stored, wherein the read information is used to read the relevant data of the image from the memory to generate the image; after obtaining the read information, the read information is stored in the on-chip memory so that the corresponding read information can be accessed from the on-chip memory when the image is generated. In some embodiments, the read information is defined as a variable and declared in the on-chip memory for fast access. Then, the pixel data to be stored is archived based on the read information to store the pixel data to be stored in the off-chip memory. Specifically, the pixel data to be stored is arranged according to preset rules and archived as a binary file, so that it is stored in the off-chip memory. It should be understood that since the target image metadata, first read address, and offset data corresponding to the target image are stored in the on-chip memory, when generating the target image, the first read address pre-stored in the on-chip memory can be used to locate the read address of the target storage block in the off-chip memory, and the offset data stored in the on-chip memory can be used to determine the actual storage location of the target pixel data in the target storage block, thereby completing the reading of the target pixel data. The target image metadata pre-stored in the on-chip memory and the read target pixel data are then used to complete the generation of the target image. The determination of the actual storage location of the target pixel data based on the offset data and the first read address can be referred to the steps of the above embodiments and will not be repeated here.

[0039] In some embodiments, the pixel data to be stored is archived according to the read information so as to store the archived pixel data to be stored in an off-chip memory, including: determining an off-chip memory for storing the archived pixel data to be stored according to the read information; storing the archived pixel data to be stored in n storage blocks of the off-chip memory, and the remaining storage space of at least n-1 storage blocks is zero.

[0040] Exemplarily, in the process of storing the archived pixel data in the off-chip memory, the storage blocks in the off-chip memory can be stored one by one. Taking the off-chip memory as an example, which includes at least storage block A1 and storage block A2, when storing the archived pixel data to be stored, all the archived pixel data to be stored are first stored in storage block A1. If the storage space of storage block A1 is greater than or equal to the occupied space of the archived pixel data to be stored, the storage is completed; if the storage space of storage block A1 is less than the occupied space of the archived pixel data to be stored, after the storage space of storage block A1 is full, the data is stored in storage block A2, and so on, until all the archived pixel data to be stored are stored. It should be understood that through the above storage method, when there are n storage blocks in a certain memory that store archived pixel data to be stored, by storing one storage block full and then storing in the next storage block, the remaining storage space of at least n-1 storage blocks in the memory can be made zero, thereby improving the storage space utilization of the off-chip memory.

[0041] In some embodiments, the step of determining the read information corresponding to the image to be stored based on the image metadata to be stored and the pixel data to be stored includes: determining the storage location of the pixel data to be stored based on the storage status of the off-chip memory; determining the first read address and offset data based on the storage location; and generating read information based on the image metadata to be stored, the first read address and the offset data.

[0042] Exemplarily, after parsing and obtaining the pixel data to be stored, the storage status of the off-chip memory is determined, such as the free storage blocks in the off-chip memory, so that the storage location can be determined, and then the first read address and offset data are determined according to the corresponding off-chip memory and storage block, and then the image metadata to be stored, the first read address and offset data are stored as read information in the on-chip memory.

[0043] The image generation method provided in the above embodiment determines the read information of the target image in the on-chip memory in response to the target image generation instruction, the read information including the target image metadata, the first read address and the offset data, so as to determine the target memory among multiple off-chip memories and determine at least one target storage block in the target memory according to the first read address; thereby determining the target pixel data in the target storage block according to the offset data, and then completing the reading of the target pixel data, avoiding the problem of secondary copying when generating the target image, that is, reading and copying all the data stored in the storage block and then filtering and extracting the read and copied data, thereby reducing memory usage and processor performance usage; and by storing the target image metadata of the target image in the on-chip memory and the target pixel data of the target image in the off-chip memory, the data stored in the off-chip memory of the target image is reduced, thereby reducing the amount of data required to be read from the off-chip memory during the generation of the target image, thereby reducing the time consumed in acquiring data from the off-chip memory, and thus achieving the effect of improving the target image generation rate.

[0044] See also Figure 4 , Figure 4 This is a schematic block diagram of the structure of a wearable device provided in one embodiment of the present application.

[0045] like Figure 4 As shown, the wearable device includes a processor, an on-chip memory, an off-chip memory, a third memory, and a network interface connected via a system bus.

[0046] The on-chip memory is used to store the image read information.

[0047] The off-chip memory is used to store the pixel data of the image.

[0048] The third memory is used to store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any one of the image generation methods.

[0049] The processor is used to provide computing and control capabilities to support the operation of the entire wearable device.

[0050] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the present application scheme, and does not constitute a limitation on the wearable device to which the present application scheme is applied. The specific wearable device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0051] It should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0052] In one embodiment, the processor is configured to execute a computer program stored in the third memory to implement the following steps: In response to a target image generation instruction, determining read information of the target image in an on-chip memory, the read information including target image metadata, a first read address, and offset data; According to the first read address, determining a target memory from a plurality of off-chip memories and determining at least one target storage block in the target memory, wherein the target storage block at least stores target pixel data of a target image; According to the offset data, target pixel data is determined and read in the target storage block to generate a target image according to the target image metadata and the target pixel data.

[0053] In one embodiment, when determining and reading target pixel data in a target storage block according to offset data, the processor is configured to implement: Determine a second read address according to the offset data and the first read address corresponding to the target storage block; determining a storage location of the target pixel data in the target storage block according to the second read address; The target pixel data is read from the target storage block according to the storage location.

[0054] In one embodiment, when determining the second read address based on the offset data and the first read address corresponding to the target storage block, the processor is configured to implement: The second read address is determined according to the sum of the address offset indicated by the offset data and the first read address.

[0055] In one embodiment, when determining a target memory from a plurality of off-chip memories and determining at least one target storage block in the target memory according to the first read address, the processor is configured to implement: determining at least one off-chip memory as a target memory according to first address fragment information of the first read address; At least one target storage block is determined in the target memory according to the second address segment information of the first read address.

[0056] In one embodiment, when implementing the image generation method, the processor is further configured to implement: Get the image to be stored; Perform image analysis on the image to be stored to obtain metadata of the image to be stored and pixel data to be stored; Determining read information corresponding to the image to be stored according to the metadata of the image to be stored and the pixel data to be stored, and storing the read information in an on-chip memory; The pixel data to be stored is archived according to the read information, so as to store the archived pixel data to be stored in an off-chip memory.

[0057] In one embodiment, when the processor implements archiving processing of the pixel data to be stored according to the read information so as to store the archived pixel data to be stored in the off-chip memory, the processor is configured to implement: determining an off-chip memory for storing pixel data to be stored after archiving based on the read information; The pixel data to be stored after archiving is stored in n storage blocks of the off-chip memory, and the remaining storage space of at least n-1 storage blocks is zero.

[0058] In one embodiment, when determining the read information corresponding to the image to be stored based on the metadata of the image to be stored and the pixel data to be stored, the processor is configured to implement: Determining a storage location of the pixel data to be stored according to a storage state of the off-chip memory; determining a first read address and offset data according to a location to be stored; Read information is generated according to the image metadata to be stored, the first read address and the offset data.

[0059] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the wearable device described above can refer to the corresponding process in the aforementioned image generation method embodiment, and will not be repeated here.

[0060] In some embodiments, the wearable device is a near-eye display device. For example, the wearable device can be a near-eye display device, wherein the near-eye display device includes AR glasses, VR glasses, AR helmets, VR helmets, and other devices that can provide near-eye display technology. Specifically, when the near-eye display device performs image display and / or audio playback, the image generation method provided above can be used to read the required display image from the memory of the near-eye display device, thereby avoiding the problem of secondary data reading and copying, improving image generation efficiency, and achieving the effect of improving storage space utilization of the near-eye display device.

[0061] An embodiment of the present application also provides an AR glasses, which includes at least a display module, an on-chip memory and an off-chip memory, and a computer program is also stored on the AR glasses. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the image generation method of the present application.

[0062] Among them, the on-chip memory is the internal storage unit of the AR glasses, such as the memory of the AR glasses. The off-chip memory can also be the embedded memory and / or external storage device of the AR glasses, such as the plug-in hard disk equipped on the AR glasses, the smart memory card (Smart Media Card, SMC), the secure digital (Secure Digital, SD) card, the flash card (Flash Card), etc. When the AR glasses receive the display instruction, they can refer to the steps of the image generation method provided in any of the above embodiments to read the corresponding target pixel data from the off-chip memory to display it on the display module according to the target pixel data.

[0063] It should be understood that the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0064] It should also be understood that the term "and / or" used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article or system. In the absence of further limitations, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system that includes the element.

[0065] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments. The above description is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. An image generation method, characterized in that: Applied to a wearable device, the wearable device includes at least one on-chip memory and at least one off-chip memory, and the image generation method includes: In response to a target image generation instruction, determining read information of the target image in the on-chip memory, the read information including target image metadata, a first read address, and offset data; According to the first read address, determining a target memory from the plurality of off-chip memories and determining at least one target storage block in the target memory, wherein the target storage block at least stores target pixel data of the target image; The target pixel data is determined and read in the target storage block according to the offset data, so as to generate the target image according to the target image metadata and the target pixel data.

2. The image generation method according to claim 1, wherein: The step of determining and reading the target pixel data in the target storage block according to the offset data comprises: determining a second read address according to the offset data and a first read address corresponding to the target storage block; determining a storage location of the target pixel data in the target storage block according to the second read address; The target pixel data is read from the target storage block according to the storage location.

3. The image generation method according to claim 2, wherein: The determining the second read address according to the offset data and the first read address corresponding to the target storage block includes: A second read address is determined according to a sum of an address offset indicated by the offset data and the first read address.

4. The image generation method according to any one of claims 1 to 3, wherein: The step of determining a target memory from the plurality of off-chip memories and determining at least one target storage block in the target memory according to the first read address comprises: determining at least one of the off-chip memories as a target memory according to the first address fragment information of the first read address; At least one target storage block is determined in the target memory according to the second address segment information of the first read address.

5. The image generation method according to any one of claims 1 to 3, wherein: The method further comprises: Get the image to be stored; Performing image analysis processing on the image to be stored to obtain image metadata to be stored and pixel data to be stored; Determining read information corresponding to the image to be stored according to the metadata of the image to be stored and the pixel data to be stored, and storing the read information in the on-chip memory; The pixel data to be stored is archived according to the read information, so as to store the archived pixel data to be stored in the off-chip memory.

6. The image generation method according to claim 5, wherein: The archiving of the pixel data to be stored according to the read information to store the archived pixel data to be stored in the off-chip memory includes: determining an off-chip memory for storing the pixel data to be stored after archiving according to the read information; The pixel data to be stored after archiving is stored in n storage blocks of the off-chip memory, and the remaining storage space of at least n-1 of the storage blocks is zero.

7. The image generation method according to claim 5, wherein: The determining the read information corresponding to the image to be stored according to the metadata of the image to be stored and the pixel data to be stored includes: determining a storage location of the pixel data to be stored according to a storage state of the off-chip memory; determining a first read address and offset data according to the location to be stored; Read information is generated according to the image metadata to be stored, the first read address and the offset data.

8. The image generation method according to any one of claims 1 to 3, wherein: The off-chip memory includes an embedded memory.

9. A wearable device, characterized in that: The wearable device includes a processor, an on-chip memory, at least one off-chip memory, a third memory, and a computer program stored on the third memory and executable by the processor, wherein the on-chip memory is used to store image read information, and the off-chip memory is used to store image pixel data. When the computer program is executed by the processor, the steps of the image generation method according to any one of claims 1 to 8 are implemented.

10. AR glasses, characterized in that: The AR glasses include at least a display module, an on-chip memory, and at least one off-chip memory. When the AR glasses receive a display instruction, they execute the steps of the image generation method according to any one of claims 1 to 8 to read the target image metadata of the target image from the on-chip memory and the target pixel data of the target image read from the off-chip memory, so as to generate a target image based on the target image metadata and the target pixel data, and display the target image on the display module.

Citation Information

Patent Citations

  • JAVA card object management method and JAVA card

    CN101777061A

  • Systems and methods for processing large medical image data

    CN110268477A

  • Pixel sampling device and method and image compression system

    CN119052481A

  • Image processing apparatus

    US20090238478A1

Cited By

  • Micro-display system and method and display equipment

    CN120915934A