WebWorker-based image data lazy loading method and system

Through the lazy loading method based on WebWorker, the on-demand loading of medical image data is realized according to the hierarchical structure of the DICOM file, solving the problems of large resource consumption and long user waiting time in the traditional loading method, and improving the loading efficiency and performance of image data .

CN119108084AActive Publication Date: 2024-12-10安徽福晴医疗装备有限公司
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411106212.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-12-10
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

When traditional browsers load large-scale medical image data, users will wait for a long time and consume resources, which will affect system performance and stability.

Method used

Using the lazy loading method based on WebWorker, according to the hierarchical structure of the DICOM file, the metadata of the first series is obtained first and the instance image is automatically loaded. Only when the user checks the other series, the corresponding instance image is loaded, and the concurrent request characteristics of WebWorker are used. Perform asynchronous concurrent loading.

Benefits of technology

It realizes on-demand loading, reduces resource consumption and user waiting time, avoids the lag caused by traditional full loading, and improves the loading efficiency and performance of image data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119108084A_ABST
    Figure CN119108084A_ABST
Patent Text Reader

Abstract

The invention discloses a WebWorker-based image data lazy loading method and system, and the method comprises the steps: obtaining a series list of a DICOM file in response to the consulting operation of a user on a certain DICOM file; obtaining metadata of each series in the series list of the DICOM file according to the series list of the DICOM file; wherein after the metadata of the first series of the series list is acquired, the instance images of the first series are automatically loaded according to the metadata of the first series; and after the metadata of the other series of the series list is acquired, loading the instance image of the series according to the metadata of the series only when responding to the lookup operation of the user on a certain series of the other series of the series list. According to the method and the device, loading on demand can be realized, and unnecessary resource consumption caused by traditional full-amount loading is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical image data processing, and in particular to a WebWorker-based image data lazy loading method and system. Background Art

[0002] At present, based on various modern front-end technologies, image data can be viewed by building image viewing software running in the browser environment, allowing users to access image data anytime and anywhere, no longer subject to access restrictions of client software. However, the medical image data generated by machines such as CT and MR are usually large in size. Loading the full amount of image data based on a single thread of a traditional browser will take a long time, causing users to wait for a long time during the loading process, affecting the user experience. On the other hand, it will also take up more bandwidth resources, affecting the system performance and stability of the browser. Summary of the invention

[0003] In order to solve the technical problems existing in the background technology, the present invention proposes a method and system for lazy loading of image data based on WebWorker.

[0004] The present invention proposes a WebWorker-based image data lazy loading method, comprising:

[0005] In response to a user's viewing operation on a certain DICOM file, obtaining a series list of the DICOM file;

[0006] According to the series list of the DICOM file, obtain the metadata of each series in the series list of the DICOM file;

[0007] After the metadata of the first series in the series list is obtained, the instance image of the first series is automatically loaded according to the metadata of the first series;

[0008] After metadata of the remaining series in the series list are acquired, only in response to a user's query operation on a certain series among the remaining series in the series list, the instance image of the series is loaded according to the metadata of the series.

[0009] Preferably, in response to a user's viewing operation on a certain DICOM file, obtaining a series list of the DICOM file specifically includes:

[0010] In response to a user's review operation on a certain DICOM file, generating a series list acquisition request for the DICOM file;

[0011] According to the series list acquisition request of the DICOM file, the series list of the DICOM file is acquired.

[0012] Preferably, according to the series list of the DICOM file, obtaining metadata of each series in the series list of the DICOM file specifically includes:

[0013] Generate a metadata acquisition request for each series in the series list of the DICOM file according to the series list of the DICOM file;

[0014] The metadata of each series in the series list of the DICOM file is obtained according to the metadata acquisition request of each series in the series list of the DICOM file.

[0015] Preferably, after the metadata of the remaining series in the series list are obtained, only in response to a user's query operation on a series in the remaining series in the series list, the example image of the series is loaded according to the metadata of the series, specifically including:

[0016] After the metadata of the remaining series in the series list are acquired, only in response to a user's query operation on a series in the remaining series in the series list, a request for loading an instance image of the series is generated according to the metadata of the series;

[0017] A request for loading the instance images of the series is generated according to the metadata of the series, and the instance images of the series are loaded.

[0018] Preferably, automatically loading the instance images of the first series according to the metadata of the first series specifically includes:

[0019] According to the metadata of the first series, an image asynchronous loading request is automatically generated;

[0020] According to the image asynchronous loading request, the asynchronously loaded instance image is obtained;

[0021] Load the asynchronously loaded instance image;

[0022] Preferably, loading the asynchronously loaded instance image specifically includes:

[0023] Concurrently load asynchronously loaded instance images.

[0024] The present invention also proposes a WebWorker-based image data lazy loading system, comprising:

[0025] Data acquisition module and data lazy loading module;

[0026] The data acquisition module is used for acquiring a series list of a DICOM file in response to a user's viewing operation on a DICOM file;

[0027] According to the series list of the DICOM file, obtain the metadata of each series in the series list of the DICOM file;

[0028] The data lazy loading module is used to automatically load the instance image of the first series in the series list according to the metadata of the first series after the metadata of the first series is obtained;

[0029] It is also used to load the instance image of a series according to the metadata of the series only in response to a user's query operation on a series among the remaining series in the series list after the metadata of the remaining series in the series list are acquired.

[0030] Preferably, the data lazy loading module is further used to generate a series list acquisition request for a DICOM file in response to a user's viewing operation on a DICOM file;

[0031] The data acquisition module is used to acquire the series list of the DICOM file according to the series list acquisition request of the DICOM file.

[0032] Preferably, the data lazy loading module is further used to generate a metadata acquisition request for each series in the series list of the DICOM file according to the series list of the DICOM file;

[0033] The data acquisition module is also used to acquire the metadata of each series in the series list of the DICOM file according to the metadata acquisition request of each series in the series list of the DICOM file.

[0034] Preferably, the data lazy loading module is further used to generate an instance image loading request of a series according to the metadata of the series only in response to a user's query operation on a series among the remaining series in the series list after the metadata of the remaining series in the series list are obtained;

[0035] And according to the instance image loading request of the series, the instance images of the series are loaded.

[0036] Preferably, the data lazy loading module is used to automatically load the instance image of the first series in the series list according to the metadata of the first series after the metadata of the first series is obtained, specifically including:

[0037] The data lazy loading module is used to automatically generate image asynchronous loading requests according to the metadata of the first series;

[0038] The data acquisition module is used to obtain the asynchronously loaded instance image according to the image asynchronous loading request;

[0039] The data lazy loading module is also used to load asynchronously loaded instance images;

[0040] Preferably, it also includes a WebWorker control loading module;

[0041] The data lazy loading module is also used to load asynchronously loaded instance images, including:

[0042] The data lazy loading module is also used to concurrently load asynchronously loaded instance images by calling the WebWorker control loading module.

[0043] In the present invention, the proposed lazy loading method and system of image data based on WebWorker can load data according to the hierarchical structure of DICOM, which can help better organize and manage DICOM data, so that medical image data can be organized and retrieved according to the hierarchical relationship of Patient, Study, Series and Instance. Moreover, in the hierarchical loading process, after the metadata of the first series in the series list is obtained, the instance image of the first series is automatically loaded according to the metadata of the first series; after the metadata of the remaining series in the series list is obtained, no loading is performed temporarily, and only when the user consults a series in the remaining series in the series list, that is, in response to the user's consultation operation on a series in the remaining series in the series list, the instance image of the series is loaded (i.e., lazy loading), which can realize on-demand loading, avoid unnecessary resource consumption caused by traditional full loading, reduce the occupation of network bandwidth and storage resources, and reduce the jamming problem caused by the main thread processing too many tasks and the time for users to wait for data loading. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a structural schematic diagram of a WebWorker-based image data lazy loading method proposed by the present invention. DETAILED DESCRIPTION

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

[0046] It is important to know that the DICOM data model presents a hierarchical structure from Patient to Study, then to Series, and finally to Instance. Patient is the top-level entity in the DICOM data model. Each Patient has one or more Studies, each Study contains multiple Series, and each Series also contains multiple Instances. This hierarchical structure can help better organize and manage DICOM data, so that medical imaging data can be organized and retrieved according to the hierarchical relationship of Patient, Study, Series, and Instance.

[0047] Reference Figure 1 The present invention also proposes a lazy loading method of image data based on WebWorker, comprising:

[0048] In response to a user's review operation on a certain DICOM file, a series list (Series list) of the DICOM file is obtained;

[0049] According to the series list of the DICOM file, obtain metadata (MetaData) of each series in the series list of the DICOM file;

[0050] After the metadata of the first series in the series list is obtained, the instance image (Instance) of the first series is automatically loaded according to the metadata of the first series;

[0051] After the metadata of the remaining series in the series list are obtained, only when the user queries a certain series among the remaining series in the series list, that is, in response to the user's query operation on a certain series among the remaining series in the series list, the instance image of the series is loaded according to the metadata of the series.

[0052] The present invention loads data according to the hierarchical structure of DICOM, which can help to better organize and manage DICOM data, so that medical image data can be organized and retrieved according to the hierarchical relationship of Patient, Study, Series and Instance. Moreover, after the metadata of the first series in the series list is obtained, the instance image of the first series is automatically loaded according to the metadata of the first series; after the metadata of the remaining series in the series list are obtained, no loading is performed temporarily, and only when the user consults a series among the remaining series in the series list, that is, in response to the user's consultation operation on a series among the remaining series in the series list, the instance image of the series is loaded (that is, lazy loading), which can realize on-demand loading, avoid unnecessary resource consumption caused by traditional full loading, reduce the occupation of network bandwidth and storage resources, and reduce the jamming problem caused by the main thread processing too many tasks and the time for users to wait for data loading.

[0053] In this embodiment, in response to a user's viewing operation on a DICOM file, obtaining a series list of the DICOM file specifically includes:

[0054] In response to a user's review operation on a certain DICOM file, generating a series list acquisition request for the DICOM file;

[0055] According to the series list acquisition request of the DICOM file, the series list of the DICOM file is acquired.

[0056] In this embodiment, according to the series list of the DICOM file, the metadata of each series in the series list of the DICOM file is obtained, which specifically includes:

[0057] Generate a metadata acquisition request for each series in the series list of the DICOM file according to the series list of the DICOM file;

[0058] The metadata of each series in the series list of the DICOM file is obtained according to the metadata acquisition request of each series in the series list of the DICOM file.

[0059] In this embodiment, after the metadata of the remaining series in the series list are obtained, only when the user searches for a certain series in the remaining series in the series list, that is, in response to the user's search operation on a certain series in the remaining series in the series list, the instance image of the series is loaded according to the metadata of the series, specifically including:

[0060] After the metadata of the remaining series in the series list are obtained, only when the user searches for a certain series in the remaining series in the series list, that is, in response to the user's search operation on a certain series in the remaining series in the series list, an instance image loading request of the series is generated according to the metadata of the series;

[0061] A request for loading the instance images of the series is generated according to the metadata of the series, and the instance images of the series are loaded.

[0062] In order to further reduce the time users spend waiting for data loading and reduce the jamming problem caused by the main thread processing too many tasks, in this embodiment, the example images of the first series are automatically loaded according to the metadata of the first series, specifically including:

[0063] According to the metadata of the first series, an image asynchronous loading request is automatically generated;

[0064] According to the image asynchronous loading request, the asynchronously loaded instance image is obtained;

[0065] Loads the asynchronously loaded instance image.

[0066] Since traditional image data loading executes all operations sequentially on a single main thread, it cannot fully utilize the advantages of multi-core CPUs and has low processing efficiency. To solve this problem, in a further embodiment, the asynchronously loaded instance image is loaded, specifically including:

[0067] Concurrently load asynchronously loaded instance images.

[0068] This embodiment utilizes the concurrent request characteristics of the browser's WebWorker to concurrently load asynchronously loaded instance images, which can further optimize the data loading method. While ensuring high-performance loading of image data, it can also reduce the resource waste caused by full data loading, greatly reducing the time users wait for data loading, and further avoiding the problem of lag caused by the main thread processing too many tasks.

[0069] The present invention also proposes a WebWorker-based image data lazy loading system, comprising:

[0070] Data acquisition module and data lazy loading module;

[0071] The data acquisition module is used for acquiring a series list of a DICOM file in response to a user's viewing operation on a DICOM file;

[0072] According to the series list of the DICOM file, obtain the metadata of each series in the series list of the DICOM file;

[0073] The data lazy loading module is used to automatically load the instance image of the first series in the series list according to the metadata of the first series after the metadata of the first series is obtained;

[0074] It is also used to load the instance image of the series according to the metadata of the series only when the user queries a certain series among the remaining series in the series list, that is, in response to the user's query operation on a certain series among the remaining series in the series list, after the metadata of the remaining series in the series list are obtained.

[0075] The present invention can load data according to the hierarchical structure of DICOM, which can help to better organize and manage DICOM data, so that medical image data can be organized and retrieved according to the hierarchical relationship of Patient, Study, Series and Instance. Moreover, after the metadata of the first series in the series list is obtained, the instance image of the first series is automatically loaded according to the metadata of the first series; after the metadata of the remaining series in the series list are obtained, no loading is performed temporarily, and only when the user consults a certain series in the remaining series in the series list, that is, in response to the user's consultation operation on a certain series in the remaining series in the series list, the instance image of the series is loaded, which can realize on-demand loading, avoid unnecessary resource consumption caused by traditional full loading, reduce the occupation of network bandwidth and storage resources, and reduce the jamming problem caused by the main thread processing too many tasks and the time for users to wait for data loading.

[0076] Specifically, the data acquisition module is a DICOMweb request module, which has QIDO (image data query) and WADO (image data loading) interfaces based on standard DICOMweb.

[0077] In this embodiment, the data lazy loading module is also used to generate a series list acquisition request for a DICOM file in response to a user's viewing operation on a DICOM file;

[0078] The data acquisition module is used to acquire the series list of the DICOM file according to the series list acquisition request of the DICOM file.

[0079] In a further embodiment, the data lazy loading module is further used to generate a metadata acquisition request for each series in the series list of the DICOM file according to the series list of the DICOM file;

[0080] The data acquisition module is also used to acquire the metadata of each series in the series list of the DICOM file according to the metadata acquisition request of each series in the series list of the DICOM file.

[0081] In a further embodiment, the data lazy loading module is further used to generate an instance image loading request of a series according to the metadata of the series only when the user searches for a series among the remaining series in the series list, that is, in response to the user's search operation for a series among the remaining series in the series list, after the metadata of the remaining series in the series list are obtained;

[0082] And according to the instance image loading request of the series, the instance images of the series are loaded.

[0083] In this embodiment, the data lazy loading module is used to automatically load the instance image of the first series in the series list according to the metadata of the first series after the metadata of the first series is obtained, specifically including:

[0084] The data lazy loading module is used to automatically generate image asynchronous loading requests according to the metadata of the first series;

[0085] The data acquisition module is used to obtain the asynchronously loaded instance image according to the image asynchronous loading request;

[0086] The data lazy loading module is also used to load asynchronously loaded instance images.

[0087] In this embodiment, a WebWorker control loading module is also included;

[0088] The data lazy loading module is also used to load asynchronously loaded instance images, including:

[0089] The data lazy loading module is also used to concurrently load asynchronously loaded instance images by calling the WebWorker control loading module.

[0090] Specifically, the WebWorker control loading module is used to adapt to the interface of the standard object storage and implement the interface storage of the image data file in the object storage. The data lazy loading module can realize the concurrent loading of the asynchronously loaded instance images by calling the WebWorker control loading module. While ensuring the high-performance loading of the image data, it can also reduce the resource waste caused by the full loading of the data, greatly reducing the time users wait for data loading, and further avoiding the jamming problem caused by the main thread processing too many tasks.

[0091] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A lazy loading method of image data based on WebWorker, It is characterized in that include: In response to a user's viewing operation on a certain DICOM file, obtaining a series list of the DICOM file; According to the series list of the DICOM file, obtain the metadata of each series in the series list of the DICOM file; After the metadata of the first series in the series list is obtained, the instance image of the first series is automatically loaded according to the metadata of the first series; After metadata of the remaining series in the series list are acquired, only in response to a user's query operation on a certain series among the remaining series in the series list, the instance image of the series is loaded according to the metadata of the series.

2. According to the WebWorker-based lazy loading method for image data according to claim 1, It is characterized in that In response to a user's viewing operation on a DICOM file, a series list of the DICOM file is obtained, specifically including: In response to a user's review operation on a certain DICOM file, generating a series list acquisition request for the DICOM file; According to the series list acquisition request of the DICOM file, the series list of the DICOM file is acquired.

3. According to claim 2, the WebWorker-based image data lazy loading method, It is characterized in that According to the series list of the DICOM file, the metadata of each series in the series list of the DICOM file is obtained, including: Generate a metadata acquisition request for each series in the series list of the DICOM file according to the series list of the DICOM file; The metadata of each series in the series list of the DICOM file is obtained according to the metadata acquisition request of each series in the series list of the DICOM file.

4. According to claim 3, the WebWorker-based image data lazy loading method, It is characterized in that After the metadata of the remaining series in the series list are obtained, only in response to a user's query operation on a series in the remaining series in the series list, the instance image of the series is loaded according to the metadata of the series, specifically including: After the metadata of the remaining series in the series list are acquired, only in response to a user's query operation on a series in the remaining series in the series list, a request for loading an instance image of the series is generated according to the metadata of the series; A request for loading the instance images of the series is generated according to the metadata of the series, and the instance images of the series are loaded.

5. The WebWorker-based lazy loading method for image data according to claim 1, It is characterized in that According to the metadata of the first series, the instance images of the first series are automatically loaded, including: According to the metadata of the first series, an image asynchronous loading request is automatically generated; According to the image asynchronous loading request, the asynchronously loaded instance image is obtained; Load the asynchronously loaded instance image; Preferably, loading the asynchronously loaded instance image specifically includes: Concurrently load asynchronously loaded instance images.

6. A lazy loading system for image data based on WebWorker, It is characterized in that include: Data acquisition module and data lazy loading module; The data acquisition module is used for acquiring a series list of a DICOM file in response to a user's viewing operation on a DICOM file; According to the series list of the DICOM file, obtain the metadata of each series in the series list of the DICOM file; The data lazy loading module is used to automatically load the instance image of the first series in the series list according to the metadata of the first series after the metadata of the first series is obtained; It is also used to load the instance image of a series according to the metadata of the series only in response to a user's query operation on a series among the remaining series in the series list after the metadata of the remaining series in the series list are acquired.

7. The WebWorker-based image data lazy loading system according to claim 6, It is characterized in that The data lazy loading module is also used to generate a series list acquisition request for a DICOM file in response to a user's viewing operation on a DICOM file; The data acquisition module is used to acquire the series list of the DICOM file according to the series list acquisition request of the DICOM file.

8. According to claim 7, the WebWorker-based image data lazy loading system, It is characterized in that The data lazy loading module is also used to generate a metadata acquisition request for each series in the series list of the DICOM file according to the series list of the DICOM file; The data acquisition module is also used to acquire the metadata of each series in the series list of the DICOM file according to the metadata acquisition request of each series in the series list of the DICOM file.

9. The WebWorker-based image data lazy loading system according to claim 8, It is characterized in that The data lazy loading module is also used for generating an instance image loading request of a series according to the metadata of the series only in response to a user's query operation on a series in the remaining series in the series list after the metadata of the remaining series in the series list are obtained; And according to the instance image loading request of the series, the instance images of the series are loaded.

10. The WebWorker-based image data lazy loading system according to claim 6, It is characterized in that The data lazy loading module is used to automatically load the instance image of the first series in the series list according to the metadata of the first series after the metadata of the first series is obtained, specifically including: The data lazy loading module is used to automatically generate image asynchronous loading requests according to the metadata of the first series; The data acquisition module is used to obtain the asynchronously loaded instance image according to the image asynchronous loading request; The data lazy loading module is also used to load asynchronously loaded instance images; Preferably, it also includes a WebWorker control loading module; The data lazy loading module is also used to load asynchronously loaded instance images, including: The data lazy loading module is also used to concurrently load asynchronously loaded instance images by calling the WebWorker control loading module.

Citation Information

Patent Citations

  • Image loading method, device and computer storage medium

    CN110176293A

  • Method and equipment for preloading DICOM image

    CN110310724A

  • Medical image loading method and system, computing device and computer readable medium

    CN113628727A

  • Method for loading medical image data and device for performing the method

    US20130266242A1

  • System and method for retrieving and processing metadata

    US20140074985A1