Methods, devices, electronic equipment and storage media for loading and displaying annotated images
By using two threads working together during the labeled image loading process—the second thread storing image information and the first thread displaying the image—the problems of slow loading speed and poor stability in existing technologies are solved, achieving fast and stable labeled image loading.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SUZHOU MEGAROBO TECH CO LTD
- Filing Date
- 2022-12-20
- Publication Date
- 2026-05-26
AI Technical Summary
Existing technologies are slow when loading labeled images and are prone to causing the interface to freeze when the data volume is large.
A two-thread collaborative approach is adopted. The second thread is responsible for reading image information from the labeled image library and storing it in the data structure, while the first thread is responsible for displaying the labeled images. The first thread determines whether the labeled information exists in the data structure. If it exists, it is read directly; otherwise, it reads the labeled file through the image information address and stores it. Thumbnails are used to speed up the display.
It improves the loading and display speed and stability of labeled images, especially maintaining a fast and time-efficient loading process when dealing with large amounts of data.
Smart Images

Figure CN116107674B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and in particular to a method, apparatus, electronic device, and storage medium for loading and displaying labeled images. Background Technology
[0002] With the continuous development of technology, people's demand for deep learning is increasing, and the amount of data required for deep learning is also growing. Humans have the ability to recognize and classify objects. In order for computers to recognize and classify objects, it is necessary to annotate the content of images, and the information related to the annotation is the annotation information. When performing deep learning on images, it is necessary to annotate the images to obtain labeled images.
[0003] Current technology uses a single thread to load and display labeled images. In deep learning scenarios, a large number of labeled images are often required, and loading such a large number of images is also accomplished using a single thread.
[0004] Existing technologies are often slow in loading labeled images, and may even cause the interface to freeze when there is a large amount of data. Therefore, how to load labeled images faster and more stably has become an urgent problem for those skilled in the art. Summary of the Invention
[0005] To address the aforementioned issues, this application provides a method, apparatus, electronic device, and storage medium for loading and displaying labeled images, thereby resolving the problems of long loading times and unstable loading in the prior art.
[0006] This application discloses a method for loading and displaying annotated images, the method comprising the following steps:
[0007] The first thread reads the annotation information and image information of the target labeled image to be displayed from the data structure in memory, loads the original image of the target labeled image based on the image information, displays a single target labeled image in the current image window based on the original image and annotation information, and displays a preset number of target labeled images in the image list window based on the original image.
[0008] The second thread reads the image information of the labeled images in the labeled image library based on the selection operation of the labeled image library, and stores the image information into the data structure;
[0009] The first thread and the second thread are two different threads.
[0010] Optionally, the step of reading the annotation information of the target annotated image to be displayed from the data structure in memory through the first thread further includes:
[0011] The first thread determines whether the annotation information of the target labeled image is stored in the data structure;
[0012] If so, then read the annotation information of the target labeled image from the data structure;
[0013] If not, the annotation file containing the annotation information is read from the address in the image information of the target annotation image in the data structure to obtain the annotation information of the target annotation image, and the annotation information is stored in the data structure.
[0014] Optionally, displaying a preset number of the target labeled images in the image list window based on the original image further includes:
[0015] The first thread obtains a thumbnail for each of the target labeled images using the original images of each of the target labeled images, based on a preset number of such images; the preset number is related to the size of the thumbnail and the size of the image list.
[0016] The image list window displays thumbnails of the original images of the target labeled images in a preset sorting order.
[0017] Optionally, displaying a preset number of the target labeled images in the image list window based on the original image further includes:
[0018] The first thread receives and responds to the scrolling request of the image list, determines the labeled image that needs to be added to the image list after scrolling, and uses it as the target labeled image;
[0019] The first thread displays thumbnails of the original images of the preset number of target labeled images in the image list window after scrolling.
[0020] Optionally, the step of reading the annotation information and image information of the target labeled image to be displayed from the data structure in memory through the first thread includes:
[0021] Based on a selection request for a single target labeled image in the image list window, the first thread reads the labeling information and image information of the selected target image from a data structure in memory.
[0022] Optionally, displaying a single target labeled image in the current image window based on the original image and annotation information further includes:
[0023] The first thread generates a labeled region using the annotation information of a single target labeled image, and displays the labeled region on the original image in the current image display window.
[0024] This application also provides a loading and display device for labeled images, the device comprising the following modules:
[0025] The image loading and display module is used to read the annotation information and image information of the target annotation image to be displayed from the data structure in memory through the first thread, load the original image of the target annotation image based on the image information, display a single target annotation image in the current image window based on the original image and annotation information, and display a preset number of target annotation images in the image list window based on the original image;
[0026] The storage module is used to read image information of labeled images in the labeled image library based on a selection operation of the labeled image library by a second thread, and store the image information into the data structure;
[0027] The first thread and the second thread are two different threads.
[0028] Optionally, the image loading and display module further includes:
[0029] The judgment submodule is used to determine, through the first thread, whether the annotation information of the target annotation image is stored in the data structure;
[0030] If so, the first thread reads the annotation information of the target annotation image to be displayed from the data structure;
[0031] If not, the first thread reads the annotation file containing the annotation information in the data structure according to the address in the image information of the target annotation image to obtain the annotation information of the target annotation image and stores it in the data structure.
[0032] Optionally, the image loading and display module further includes:
[0033] The thumbnail loading submodule is used to obtain a thumbnail of each of the target labeled images by the first thread using the original images of each of the target labeled images of a preset number; the preset number is related to the size of the thumbnail and the size of the image list.
[0034] The first loading and display submodule is used to display thumbnails of the original images of the target labeled images in the image list window in a preset order through the first thread.
[0035] Optionally, the image loading and display module further includes:
[0036] The scrolling request response submodule is used to receive and respond to the scrolling request for the image list through the first thread, determine the labeled image that needs to be added to the image list after scrolling, and use it as the target labeled image;
[0037] The second loading and display submodule is used to display thumbnails of the original images of the preset number of target labeled images in the image list window via the first thread.
[0038] Optionally, the image loading and display module further includes:
[0039] The data structure reading submodule is used to read the annotation information and image information of the selected target image from the data structure in memory based on the selection request of a single target labeled image in the image list window by the first thread.
[0040] Optionally, the image loading and display module further includes:
[0041] The annotation region generation submodule is used to generate an annotation region using the annotation information of a single target annotation image through the first thread;
[0042] The annotation area display submodule is used to display the annotation area on the original image in the current image display window via a first thread.
[0043] This application also provides an electronic device, including a memory and a processor, wherein:
[0044] The memory is used to store computer programs;
[0045] The processor is used to execute the computer program to implement the above-described method for loading and displaying the labeled image.
[0046] This application also provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the above-described method for loading and displaying annotated images.
[0047] Compared with the prior art, this application has the following beneficial effects:
[0048] The method for loading and displaying labeled images disclosed in this application, after selecting a labeled image library, reads the image information of the labeled images through a second thread and stores the image information into a data structure. Even if the amount of labeled image data in the labeled image library is large, this process is fast and time-saving because it does not read the labeled information. Then, the labeled image to be displayed is displayed through a first thread. The method provided in this application uses two threads working together, which improves the loading and display speed of labeled images and enhances loading stability compared to existing technologies that use a single thread to complete all work. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 A flowchart illustrating a method for loading and displaying annotated images provided in this application;
[0051] Figure 2 A flowchart of another method for loading and displaying annotated images provided in this application;
[0052] Figure 3 It serves as a visual interface for a deep learning platform.
[0053] Figure 4 A flowchart illustrating yet another method for loading and displaying annotated images provided in this application;
[0054] Figure 5 This is a schematic diagram of the structure of a loading and display device for annotated images provided in this application. Detailed Implementation
[0055] As described earlier, existing technologies use a single thread to load and display labeled images. In deep learning scenarios, a large number of labeled images are often required, and loading these images is also done using a single thread. Furthermore, existing technologies require waiting for the thread to complete its loading process before other operations, such as viewing the labeled images, can be performed. Therefore, existing technologies are inefficient, slow, and prone to freezing during the loading process.
[0056] Research into the aforementioned technical problems in existing technologies revealed that labeled images are divided into labeled parts and image parts. Existing technologies use a single thread to load the labeled parts and image parts of a labeled image, and the loaded parts are stored in a data structure. When displaying a labeled image, the corresponding labeled parts and image parts can be found in the data structure to display the labeled image.
[0057] Understandably, this method can be applied to processing devices capable of data processing, such as terminal devices or servers. This method can be executed independently by a terminal device or server, or it can be applied in network scenarios where a terminal device and a server communicate, executing in cooperation. The terminal device can be a computer, mobile phone, or similar device. The server can be an application server or a web server; in actual deployment, this server can be a standalone server or a cluster of servers.
[0058] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0059] Figure 1 A flowchart of a method for loading and displaying annotated images provided in this application is included, the method comprising the following steps:
[0060] S101: The second thread reads the image information of the labeled images in the labeled image library based on the selection operation of the labeled image library, and stores the image information into the data structure. The image information includes the address of each labeled image.
[0061] At the beginning of deep learning, it is necessary to select labeled images to add to the deep learning task. There can be one or more labeled images to add to the deep learning task. Generally, a large number of labeled images will be added to the deep learning task. The labeled images used in the same deep learning task are often found in the labeled image library.
[0062] Once a labeled image library is selected, the second thread can read the image information of the labeled images in the selected library. After reading this information, the second thread can store it in a data structure.
[0063] S102: The first thread reads the annotation information and image information of the target annotation image to be displayed from the data structure in memory, loads the original image of the target annotation image based on the image information, displays a single target annotation image in the current image window based on the original image and annotation information, and displays a preset number of target annotation images in the image list window based on the original image.
[0064] A computer process is a running activity of a program on a certain set of data in a computer. It is the basic unit for resource allocation and scheduling in a system and is the foundation of the operating system structure. In one possible scenario of this application, the loading and display of the annotated image is considered a process.
[0065] A computer thread is the smallest unit of computation that an operating system can schedule. It is contained within a process and is the actual unit of operation within that process. A thread refers to a single, sequential flow of control within a process; multiple threads can run concurrently within a process, each executing different tasks in parallel. In one possible implementation of this application, there are two threads: a first thread and a second thread.
[0066] Data structure is a way of storing and organizing data in a computer. In this application, data structure refers to a collection of data elements.
[0067] When displaying labeled images in the first thread, there are two scenarios: displaying in the current image window and displaying in the image list window. Both scenarios require at least the image information of the image to be displayed. Furthermore, displaying the image to be displayed in the current image window also requires the image's labeling information. If the image to be displayed is in the image list window, it only requires reading the image information from the data structure, loading the original image based on the image information, and then displaying the image to be displayed in the image list window based on the original image. If the image to be displayed is in the current image window, in addition to the image information, it also requires reading the image's labeling information from the data structure, loading the original image based on the image information, and then displaying the image to be displayed based on both the original image and the labeling information.
[0068] When the first thread reads the annotation information of the target image to be displayed from the data structure, it can determine whether the annotation information is stored in the data structure. If the annotation information is stored in the data structure, it can be read directly from the data structure. If the annotation information is not yet stored in the data structure, the image information of the target image to be displayed, which includes the address of the target image, can be used to find the annotation file of the target image, thereby obtaining the annotation information. After obtaining the annotation information of the target image to be displayed, it can be stored in the data structure. This judgment step allows for direct reading when the annotation information exists in the data structure, and for reading the annotation information according to the address and storing it in the data structure when no annotation information exists. This makes it convenient to directly read the annotation data from the data structure the next time the labeled image is loaded, thus improving the efficiency of loading labeled images to a certain extent.
[0069] The method for loading and displaying labeled images provided in this application, after selecting a labeled image library, reads the image information of the labeled images through a second thread and stores the image information into a data structure. Even if the amount of labeled image data in the labeled image library is large, this process is fast and time-saving because it does not read the labeled information. Then, the labeled image to be displayed is displayed through a first thread. The method provided in this application uses two threads working together, which improves the loading and display speed and loading stability of labeled images compared to existing technologies that use a single thread to complete all work.
[0070] When displaying labeled images in the first thread, if multiple labeled images need to be displayed, loading the information corresponding to multiple labeled images and displaying multiple labeled images takes a long time. Therefore, this application provides an alternative method... Figure 2 The flowchart shown illustrates a method for loading and displaying annotated images. This method includes the following steps:
[0071] S201: The first thread obtains a thumbnail of each target labeled image using the original images of each of the preset number of target labeled images.
[0072] A thumbnail is a smaller version of the original image that has been compressed.
[0073] In a practical deep learning platform, there may be such... Figure 3The interface shown is as follows. The image list window can display thumbnails of some labeled images. The number of thumbnails can be one or more preset, usually determined by the size of the image list window and the size of the thumbnails. For example, if the image list window is 100*100 pixels and a thumbnail is 20*20 pixels, then the image list window can display twenty-five thumbnails. The first thread uses the original twenty-five labeled images to obtain twenty-five thumbnails. Of course, other preset numbers of thumbnails can also be used, such as one or twenty. The number of thumbnails obtained by the first thread can be adjusted, generally based on the size of the image list window and the size of the thumbnails.
[0074] The size of each thumbnail can also be set. For example, if the thumbnail size is set to 10*10 and the image list window size is 100*100, then the first thread needs to use 100 original images of labeled images to obtain 100 thumbnails. Of course, the size of the image list window can also be set. The specific size of the image list window and the size of each thumbnail can be adjusted according to the actual needs of the deep learning task.
[0075] S202: Display thumbnails of the original images of a preset number of target labeled images in the image list window according to a preset sorting order.
[0076] After the first thread obtains a preset number of thumbnails, these thumbnails are displayed in the image list in a preset order. This preset order can be the order in which the thumbnails were obtained, the order in which the target labeled images are located in the labeled image library, or any other arbitrary order.
[0077] S203: The first thread receives and responds to the scrolling request for the image list, determines the new labeled images that need to be added to the image list after scrolling, and uses them as the target labeled images.
[0078] A scroll request is a request made by scrolling the mouse wheel. In this case, the scroll request for the image list is to allow users to scroll down the image list to view more thumbnails.
[0079] The system receives and responds to scrolling requests for the image list. Some thumbnails in the image list disappear during scrolling. Therefore, new thumbnails of labeled images need to be added to compensate for the disappearing thumbnails. The first thread obtains the number of disappeared thumbnails; this number is the number of new thumbnails to be added. The first thread uses the newly added labeled images as target labeled images. These newly added labeled images undergo steps such as S201 and S202 to obtain thumbnails.
[0080] S204: Display thumbnails of the original images of a preset number of labeled images in the image list window via the first thread after scrolling.
[0081] After the first thread obtains the newly added thumbnails, the image list window displays thumbnails of the original images of the target labeled images for a preset number of scrolled images. In other words, it displays thumbnails that did not disappear during the scrolling request and newly added thumbnails.
[0082] The above-described method for loading and displaying labeled images is faster because it uses thumbnails instead of displaying the original images in their entirety, and because the first thread only loads a preset number of thumbnails of the original images supported by the image list.
[0083] Specifically, loading and displaying labeled images can either show a thumbnail of the original image in an image list, or display the complete labeled image in the current image display window. This application provides yet another method, such as... Figure 4 The flowchart shown illustrates a method for loading and displaying annotated images. This method includes the following steps:
[0084] S401: Based on the selection request of a single target labeled image in the image list window, the first thread reads the labeling information and image information of the selected single target image from the data structure in memory.
[0085] Selecting a single labeled image in the image list window allows the selected image to be displayed in the current image display window. Displaying a single labeled image in the current image display window requires both its labeling and image information. The first thread reads the labeling and image information of this labeled image from a data structure in memory.
[0086] S402: Display the target labeled image in the current image display window using the image information and annotation information of a single target labeled image.
[0087] After obtaining the image information and annotation information of the target labeled image, the first thread can use the image information to obtain the original image of the target labeled image. When displaying the target labeled image, the annotation information of the target labeled image can be used to generate a labeled region, and the original image of the target labeled image can be displayed in the current image display window, with the labeled region displayed on the original image.
[0088] The above-described method for loading and displaying labeled images can display the complete labeled image in the current image display window. When displaying the labeled image, a labeled area can be generated based on the labeled information. When displaying the labeled image, the image information and labeled information that are the same as the labeled image identifier can be searched in the data structure, which can find the information and display the labeled image more quickly.
[0089] This application also provides a method such as Figure 5 The image loading and display device 500 shown includes:
[0090] The image loading and display module 501 is used to read the annotation information and image information of the target annotation image to be displayed from the data structure in memory through the first thread, load the original image of the target annotation image based on the image information, display a single target annotation image in the current image window based on the original image and annotation information, and display a preset number of target annotation images in the image list window based on the original image.
[0091] Storage module 502 is used to read the annotation information and image information of the annotated images in the annotated image library based on the selection operation of the annotated image library by the second thread, and store the annotation information and the image information into the data structure;
[0092] The first thread and the second thread are two different threads.
[0093] The image loading and display module further includes:
[0094] The judgment submodule is used to determine, through the first thread, whether the annotation information of the target annotation image is stored in the data structure;
[0095] If so, the first thread reads the annotation information of the target annotated image to be displayed from the data structure;
[0096] If not, the annotation information of the target annotation image is obtained by the first thread reading the annotation file containing the annotation information in the image information of the target annotation image in the data structure according to the address in the image information of the target annotation image, and stored in the data structure.
[0097] The image loading and display module further includes:
[0098] The thumbnail loading submodule is used to obtain a thumbnail of each of the target labeled images by the first thread using the original images of each of the target labeled images of a preset number; the preset number is related to the size of the thumbnail and the size of the image list.
[0099] The first loading and display submodule is used to display thumbnails of the original images of the target labeled images in the image list window in a preset order through the first thread.
[0100] The image loading and display module further includes:
[0101] The scrolling request response submodule is used to receive and respond to the scrolling request for the image list through the first thread, determine the labeled image that needs to be added to the image list after scrolling, and use it as the target labeled image;
[0102] The second loading and display submodule is used to display thumbnails of the original images of the preset number of target labeled images in the image list window via the first thread.
[0103] The image loading and display module further includes:
[0104] The data structure reading submodule is used to read the annotation information and image information of the selected target image from the data structure in memory based on the selection request of a single target labeled image in the image list window by the first thread.
[0105] The image loading and display module further includes:
[0106] The annotation region generation submodule is used to generate an annotation region using the annotation information of a single target annotation image through the first thread;
[0107] The annotation area display submodule is used to display the annotation area on the original image in the current image display window through the first thread.
[0108] In practical applications, the computer-readable storage medium can be any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium.
[0109] Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0110] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0111] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0112] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0113] It should be noted that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments. The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate. The components indicated as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment solution according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0114] The above description is merely one specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for loading and displaying annotated images, characterized in that, include: The second thread reads the image information of the labeled images in the labeled image library based on the selection operation of the labeled image library, and stores the image information into a data structure in memory; The first thread reads the annotation information and image information of the target labeled image to be displayed from the data structure, loads the original image of the target labeled image based on the image information, displays a single target labeled image in the current image window based on the original image and annotation information, and displays a preset number of target labeled images in the image list window based on the original image. The first thread and the second thread are two different threads.
2. The method according to claim 1, characterized in that, The step of reading the annotation information of the target annotated image to be displayed from the data structure in memory through the first thread further includes: The first thread determines whether the annotation information of the target labeled image is stored in the data structure; If so, then read the annotation information of the target labeled image from the data structure; If not, then in the data structure, according to the address in the image information of the target labeled image, the label file including the label information is read to obtain the label information of the target labeled image, and the label information is stored in the data structure.
3. The method according to claim 1, characterized in that, The step of displaying a preset number of the target labeled images in the image list window based on the original image further includes: The first thread obtains a thumbnail for each of the target labeled images using the original images of each of the target labeled images, based on a preset number of such images; the preset number is related to the size of the thumbnail and the size of the image list. The image list window displays thumbnails of the original images of the target labeled images in a preset sorting order.
4. The method according to claim 3, characterized in that, The step of displaying a preset number of the target labeled images in the image list window based on the original image further includes: The first thread receives and responds to the scrolling request of the image list, determines the labeled image that needs to be added to the image list after scrolling, and uses it as the target labeled image; The first thread displays thumbnails of the original images of the preset number of target labeled images in the image list window after scrolling.
5. The method according to claim 1, characterized in that, The step of reading the annotation information and image information of the target labeled image to be displayed from the data structure in memory through the first thread includes: Based on a selection request for a single target labeled image in the image list window, the first thread reads the annotation information and image information of the selected single target labeled image from the data structure in memory.
6. The method according to claim 5, characterized in that, The step of displaying a single target labeled image in the current image window based on the original image and annotation information further includes: The first thread generates a labeled region using the annotation information of a single target labeled image, and displays the labeled region on the original image in the current image window.
7. A device for loading and displaying annotated images, characterized in that, include: The storage module is used to read the image information of the labeled images in the labeled image library based on the selection operation of the labeled image library through the second thread, and store the image information into the data structure in memory; The image loading and display module is used to read the annotation information and image information of the target annotation image to be displayed from the data structure through the first thread, load the original image of the target annotation image based on the image information, display a single target annotation image in the current image window based on the original image and annotation information, and display a preset number of target annotation images in the image list window based on the original image. The first thread and the second thread are two different threads.
8. The apparatus according to claim 7, characterized in that, The image loading and display module further includes: The judgment submodule is used to determine, through the first thread, whether the annotation information of the target annotation image is stored in the data structure; If so, the annotation information of the target annotation image to be displayed is read from the data structure; If not, then in the data structure, according to the address in the image information of the target labeled image, the label file including the label information is read to obtain the label information of the target labeled image, and the label information is stored in the data structure.
9. The apparatus according to claim 7, characterized in that, The image loading and display module further includes: The thumbnail loading submodule is used to obtain a thumbnail of each of the target labeled images by the first thread using the original images of each of the target labeled images of a preset number; the preset number is related to the size of the thumbnail and the size of the image list. The first loading and display submodule is used to display thumbnails of the original images of the target labeled images in the image list window in a preset order through the first thread.
10. The apparatus according to claim 7, characterized in that, The image loading and display module further includes: The scrolling request response submodule is used to receive and respond to the scrolling request for the image list through the first thread, determine the labeled image that needs to be added to the image list after scrolling, and use it as the target labeled image; The second loading and display submodule is used to display thumbnails of the original images of the preset number of target labeled images in the image list window via the first thread.
11. The apparatus according to claim 7, characterized in that, The image loading and display module further includes: The data structure reading submodule is used to read the annotation information and image information of the selected target annotation image from the data structure in memory based on the selection request of a single target annotation image in the image list window by the first thread.
12. The apparatus according to claim 7, characterized in that, The image loading and display module further includes: The annotation region generation submodule is used to generate an annotation region using the annotation information of a single target annotation image through the first thread; The annotation area display submodule is used to display the annotation area on the original image in the current image window via the first thread.
13. An electronic device, characterized in that, Includes memory and processor, wherein: The memory is used to store computer programs; The processor is configured to execute the computer program to implement the method for loading and displaying labeled images as described in any one of claims 1-6.
14. A computer-readable storage medium, characterized in that, Used to store a computer program, wherein the computer program, when executed by a processor, implements the method for loading and displaying labeled images as described in any one of claims 1-6.