Image display method and device, ultrasonic equipment and storage medium

By obtaining and merging the interface parameter information when the ultrasound equipment mode is switched, the problem of synchronous display of image elements when the ultrasound equipment interface is switched is solved and the user experience is improved.

CN118796141APending Publication Date: 2024-10-18SONOSCAPE MEDICAL (WUHAN) CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310400217.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-13
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Ultrasound equipment cannot ensure synchronous display of image elements when switching interfaces, resulting in a degraded user experience.

Method used

By obtaining the interface parameter information when switching modes, generate and cache images of different image types, and merge the target images to output a complete interface image when the preset conditions are met, ensuring the synchronous display of image elements.

Benefits of technology

It effectively avoids the problem that image elements cannot be displayed synchronously when switching interfaces, and improves the user experience of using ultrasound equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796141A_ABST
    Figure CN118796141A_ABST
Patent Text Reader

Abstract

The invention provides an image display method and device, ultrasonic equipment and a storage medium, and relates to the field of image display, and the method comprises the steps: obtaining interface parameter information generated when mode switching is detected; different numbers are marked on each group of interface parameter information; generating images of different image types according to the interface parameter information, and writing the images into a cache region; the image is marked with a serial number of the interface parameter information; when it is determined that the target images meeting the preset conditions exist in the cache region, all the target images are combined to obtain an interface image, and the interface image is output and displayed; the preset condition comprises that each target image has the same number and the corresponding image type number is equal to a preset value; all the target images belonging to the same interface can be combined in advance to obtain the complete interface image, and the complete interface image is output and displayed, so that the situation that image elements in a visual interface cannot be synchronously displayed is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image display, and in particular to an image display method, device, ultrasound equipment and computer-readable storage medium. Background Art

[0002] For the convenience of users, each functional mode of ultrasound equipment is usually provided with a corresponding visual interface, and these visual interfaces often contain multiple image elements. However, in the related art, when the ultrasound equipment receives the mode switching instruction input by the user and switches the interface, it usually cannot ensure that the image elements in the visual interface are displayed synchronously, thereby reducing the user's experience of using the ultrasound equipment. Summary of the invention

[0003] The purpose of the present application is to provide an image display method, device, ultrasound equipment and computer-readable storage medium, which can pre-merge all target images belonging to the same visualization interface to obtain a complete interface image, so as to output and display the complete interface image, thereby avoiding the situation where image elements in the visualization interface cannot be displayed synchronously.

[0004] In order to solve the above technical problems, the present application provides an image display method, comprising:

[0005] Acquire interface parameter information generated when mode switching is detected; each group of interface parameter information is marked with a different number;

[0006] Generate images of different image types according to the interface parameter information, and write the images into a buffer area; the images are marked with the numbers of the interface parameter information;

[0007] When it is determined that there are target images that meet preset conditions in the cache area, each of the target images is merged to obtain an interface image to output and display the interface image; the preset conditions include that each of the target images has the same number and the corresponding number of image types is equal to a preset value.

[0008] Optionally, the cache area includes a cache queue corresponding to each of the image types, and writing the image into the cache area includes:

[0009] The image is written into a cache queue corresponding to the image type of the image.

[0010] Optionally, after writing the image into a cache queue corresponding to the image type of the image, the method further includes:

[0011] When it is determined that each of the cache queues is not empty, determining whether the images at the head of each of the cache queues have the same number;

[0012] If yes, determining that the image at the head of each cache queue is a target image that meets the preset condition; the preset value is equal to the total number of the cache queues;

[0013] If not, the images at the head of each cache queue except the image with the largest number are removed from the cache queue.

[0014] Optionally, the image type includes a first image type and a second image type, the image generation module generates only one image of the first image type according to the latest interface parameter information, and continuously generates images of the second image type according to the latest interface parameter information, the cache area includes sub-caches corresponding to each of the first image types, and after merging each of the target images to obtain an interface image, further includes:

[0015] Move the target image in the cache queue out of the cache queue, and use the target image in the cache queue that belongs to the first image type to update the corresponding sub-cache;

[0016] Correspondingly, after writing the image into the cache queue corresponding to the image type of the image, the method further includes:

[0017] When it is determined that the cache queue of the first image type is empty, the cache queue of the second image type is not empty, and the sub-cache of the first image type is not empty, the image at the head of the cache queue of the second image type and the image in the sub-cache of the first image type are determined to be the target image.

[0018] Optionally, the image of the first image type is a user interface image, and the image of the second image type is an ultrasound image.

[0019] Optionally, generating images of different image types according to the interface parameter information includes:

[0020] The interface parameter information is sent to an image generation module, and images of different image types generated by the image generation module according to the interface parameter information are received.

[0021] Optionally, the numbers marked on the groups of interface parameter information are incremented in sequence with the generation order, and sending the interface parameter information to the image generation module includes:

[0022] The interface parameter information is written into the parameter buffer of the image generation module, so that the image generation module generates an image based on the target interface parameter information with the largest number in the parameter buffer each time it generates an image.

[0023] Optionally, the parameter buffer is a parameter buffer queue, and writing the interface parameter information into the parameter buffer of the image generation module includes:

[0024] The interface parameter information is written into the parameter cache queue of the image generation module, so that the image generation module extracts the target interface parameter information from the tail of the parameter cache queue, and removes the target interface parameter information and all the interface parameter information before it from the parameter cache queue.

[0025] Optionally, writing the image into a buffer area comprises:

[0026] Obtaining a preset layer corresponding to the image type of the image, marking the preset layer with a number of the image, and adding the image to a specified position in the preset layer to obtain layer data;

[0027] Writing the layer data into the buffer area;

[0028] Correspondingly, the step of merging the target images to obtain an interface image includes:

[0029] The layer data corresponding to each of the target images are merged to obtain an interface image.

[0030] The present application also provides an image display device, comprising:

[0031] An interface parameter information acquisition module, used to acquire interface parameter information generated when mode switching is detected; each group of interface parameter information is marked with a different number;

[0032] An image generation and cache module, used to generate images of different image types according to the interface parameter information, and write the images into a cache area; the images are marked with the numbers of the interface parameter information;

[0033] A merging module is used to merge each target image to obtain an interface image when it is determined that there are target images that meet preset conditions in the cache area, so as to output and display the interface image; the preset conditions include that each target image has the same number and the corresponding number of image types is equal to a preset value.

[0034] The present application also provides an ultrasonic device, comprising:

[0035] Memory for storing computer programs;

[0036] A processor is used to implement the image display method as described above when executing the computer program.

[0037] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the image display method as described above is implemented.

[0038] The present application provides an image display method, comprising: obtaining interface parameter information generated when a mode switch is detected; each group of the interface parameter information is marked with a different number; generating images of different image types according to the interface parameter information, and writing the images into a cache area; the images are marked with the numbers of the interface parameter information; when it is determined that there are target images that meet preset conditions in the cache area, merging the target images to obtain an interface image, so as to output and display the interface image; the preset conditions include that the target images have the same number and the number of corresponding image types is equal to a preset value.

[0039] It can be seen that the present application can first obtain the interface parameter information generated when the mode switching is detected, and can generate images of different image types according to the interface parameter information, wherein the interface parameter information is specially marked with a number, which is used to identify images belonging to the same visual interface, and the number can be marked for the image when the image is generated; and the image type is used to characterize the element type corresponding to the image in the visual interface. Subsequently, the present application can write these images into the cache area, and can determine whether there is a group of target images in the cache area that meet the preset conditions, and the preset conditions include that each target image has the same number and the number of corresponding image types is equal to the preset value. When it is determined that the above target images exist in the cache area, it means that all elements in the visual interface corresponding to this group of target images have been generated, and then only the target images need to be merged to obtain a complete interface image, which can avoid the problem that the image elements in the visual interface cannot be displayed synchronously when the interface in the ultrasound device is switched, and can improve the user experience of using the ultrasound device. The present application also provides an image display method, device, ultrasound device and computer-readable storage medium, which have the above beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0041] Figure 1 A flowchart of an image display method provided in an embodiment of the present application;

[0042] Figure 2A schematic diagram of an image generation scenario provided in an embodiment of the present application;

[0043] Figure 3 A schematic diagram of another image generation scenario provided in an embodiment of the present application;

[0044] Figure 4 A schematic diagram of image pre-synthesis provided in an embodiment of the present application;

[0045] Figure 5 A structural block diagram of an image display device provided in an embodiment of the present application;

[0046] Figure 6 This is a structural block diagram of an ultrasonic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] For the convenience of users, each functional mode of the ultrasound device is usually provided with a corresponding visual interface, and these visual interfaces often include a variety of image elements, such as user interface image elements (UI, UserInterface, user interface) such as sampling boxes and rulers, and ultrasound image elements. However, in the related art, when the ultrasound device receives the mode switching command input by the user and switches the visual interface, it is usually unable to ensure that the image elements in the visual interface are displayed synchronously. This is because the time consumed to generate different image elements is not the same. For example, the time consumed to generate the user interface image is shorter, while the time consumed to generate the ultrasound image is longer, which makes it easy for the user interface image to be displayed first and the ultrasound image to be displayed later. It is impossible to ensure that the user interface image and the ultrasound image in the visual interface are displayed at the same time, thereby reducing the user experience of using the ultrasound device. In view of this, the present application can provide an image display method, which can pre-merge all target images belonging to the same visual interface to obtain a complete interface image, and output the complete interface image to display, thereby avoiding the situation where the image elements in the visual interface cannot be displayed synchronously.

[0049] Please refer to Figure 1 , Figure 1 This is a flow chart of an image display method provided in an embodiment of the present application. This method can be applied to ultrasound equipment and may include:

[0050] S101, obtaining interface parameter information generated when mode switching is detected; each group of interface parameter information is marked with a different number.

[0051] In the embodiment of the present application, the interface parameter information corresponds to each working mode of the ultrasound device, which is automatically generated by the ultrasound device when the working mode is detected to be switched, and is used to generate an image corresponding to the visual interface of the working mode. It is worth pointing out that the interface parameter information is marked with a number, which is used to mark images belonging to the same visual interface, and the numbers corresponding to the interface parameter information of different visual interfaces are not the same. This is because the visual interface may contain multiple images of different types, and images belonging to different visual interfaces may be generated in a short time. In order to distinguish images of different visual interfaces and merge images belonging to the same visual interface, it is necessary to mark the image according to the visual interface to which the image belongs. Therefore, the embodiment of the present application can set the number in the interface parameter information, and when the image generation is completed, the number in the interface parameter information can be marked for the image, so as to facilitate the distinction and merging of the image. It should be noted that the embodiment of the present application does not limit the setting method of the number, for example, it can be set randomly, or it can be set in increments or decrements according to the generation order of the interface parameter information. As long as it can be ensured that the numbers marked by each group of interface parameter information are different, the basic application requirements can be met. Of course, in addition to the number, other information content may be set in the interface parameter information, such as working mode information, etc., which may be set according to application requirements, and the embodiments of the present application do not limit this.

[0052] Furthermore, the embodiments of the present application do not limit the specific method of triggering the ultrasound device to switch the working mode. For example, the user can trigger the ultrasound device to switch the working mode by clicking a screen button, turning a knob, etc.

[0053] S102. Generate images of different image types according to the interface parameter information, and write the images into the cache area; the images are marked with the numbers of the interface parameter information. Considering that each image generation module may not be able to simultaneously generate different types of images belonging to the same visual interface, in order to wait for the generation of the image, the embodiment of the present application also sets up a cache area for caching images, and merges the images in the cache area according to the actual situation of image generation. It should be noted that the embodiment of the present application does not limit how the cache area caches images, for example, it can be stored arbitrarily, or it can be stored based on a specific data structure such as a queue, and can be set according to actual application requirements.

[0054] Furthermore, it should be noted that the embodiments of the present application do not limit specific image types, for example, it can be a user interface image type or an ultrasound image type. The embodiments of the present application do not limit how to generate corresponding images based on interface parameter information. For details, please refer to the relevant technologies for generating user interface images and ultrasound images. The embodiments of the present application do not limit the number of images generated based on a single set of interface parameter information. For example, before receiving new interface parameter information, only one image of a certain type can be generated based on the current interface parameter information, or multiple images of a certain type can be generated based on the current interface parameter information, or images of a certain type can be continuously generated based on the current interface parameter information. This can be set according to actual application requirements.

[0055] Further, in order to improve the efficiency of image generation, the embodiment of the present application may set an image generation module, which is a module dedicated to generating images of different image types according to the above-mentioned interface parameter information. In other words, the ultrasound device can send the interface parameter information to the image generation module to trigger the module to perform the image generation action and return the corresponding image to the ultrasound device. It should be noted that the embodiment of the present application does not limit the corresponding relationship between the image generation module and the image type. For example, it can be one-to-one or one-to-many, that is, a single image generation module can generate only one type of image or multiple types of images. The embodiment of the present application also does not limit the specific form of the image generation module. For example, it can be a software module or a hardware module such as FPGA (Field Programmable Gate Array). The embodiment of the present application also does not limit the number of image generation modules. The ultrasound device can be connected to or built-in with one or more image generation modules, which can be set according to actual application requirements. Based on this, generating images of different image types according to the interface parameter information can include:

[0056] Step 11: Send the interface parameter information to the image generation module, and receive images of different image types generated by the image generation module according to the interface parameter information.

[0057] S103, when it is determined that there are target images satisfying preset conditions in the cache area, the target images are merged to obtain an interface image to output a display interface image; the preset conditions include that the target images have the same number and the number of corresponding image types is equal to a preset value.

[0058] After caching the image, the ultrasound device can further determine whether there is a target image in the cache area that meets the preset conditions. The preset conditions include that each target image has the same number and the corresponding number of image types is equal to a preset value, where the preset value can be set according to the number of image types specifically included in the visual interface. In other words, when it is determined that the above-mentioned target images exist in the cache area, it means that the image generation module has completed the generation of all image elements in the visual interface corresponding to this set of target images, and then it is only necessary to merge all the target images to obtain a complete interface image, which can ensure that all image elements in the visual interface are displayed at the same time, and can avoid the problem in the related technology that the image elements in the visual interface cannot be displayed synchronously when the ultrasound device switches the interface, which can enhance the user experience of using the ultrasound device.

[0059] It is worth pointing out that although the embodiment of the present application sequentially introduces steps S101, S102, and S103, in actual situations, the above three steps can be executed in parallel. At the same time, considering that the image generation module can continue to generate images based on the current interface parameter information before receiving new interface image parameters, the number of times the ultrasound device executes step S101 may be less than the number of times it executes steps S102 and S103.

[0060] Based on the above embodiment, the present application can first obtain the interface parameter information generated when the mode switching is detected, and can generate images of different image types according to the interface parameter information, wherein the interface parameter information is specially marked with a number, which is used to identify images belonging to the same visual interface, and the number can be marked for the image when the image is generated; and the image type is used to characterize the element type corresponding to the image in the visual interface. Subsequently, the present application can write these images into the cache area, and can determine whether there is a group of target images in the cache area that meet the preset conditions, and the preset conditions include that each target image has the same number and the number of corresponding image types is equal to the preset value. When it is determined that the above target images exist in the cache area, it means that all elements in the visual interface corresponding to this group of target images have been generated, and then only the target images need to be merged to obtain a complete interface image, which can avoid the problem that the image elements in the visual interface cannot be displayed synchronously when the interface in the ultrasound device is switched, and can improve the user experience of using the ultrasound device.

[0061] Based on the above embodiments, in order to further improve the efficiency of interface image synthesis and improve the timeliness of interface images, the embodiment of the present application can further optimize the way in which the image generation module stores interface parameter information and the form of the buffer area. Based on this, the method can also include:

[0062] S201. Obtain interface parameter information generated when a mode switch is detected, and write the interface parameter information into a parameter buffer of an image generation module, so that the image generation module generates an image based on the target interface parameter information with the largest number in the parameter buffer each time it generates an image; the numbers of each group of interface parameter information are incremented in sequence with the generation order.

[0063] In the embodiment of the present application, the image generation module is provided with a parameter buffer area for storing the interface parameter information sent by the ultrasound device; at the same time, since the numbers of each group of interface parameter information are marked in ascending order with the generation order, the number of the latest generated interface parameter information should be greater than the number of the previously generated interface parameter information. Furthermore, each time the image generation module generates an image, it can generate the image based on the target interface parameter information with the largest number in the parameter buffer area, thereby avoiding the generation of outdated images.

[0064] It should be noted that the embodiment of the present application does not limit the specific form of storing parameter information in the parameter buffer area. For example, it can be stored arbitrarily or based on a specific data structure such as a queue. In order to improve the efficiency of the image generation module in obtaining the target interface parameter information with the largest number, the parameter buffer area can store the interface parameter information based on the data structures such as queues or stacks, so that the image generation module can quickly obtain the target interface parameter information with the largest number from the tail of the queue or the top of the stack; of course, in order to improve the cleaning speed of outdated interface parameter information, the image generation module can also use the queue as a parameter buffer area to quickly clean up expired interface parameter information from the head of the queue. Therefore, preferably, the parameter buffer area can be a parameter cache queue. Specifically, the latest interface parameter information can be written from the tail of the parameter cache queue, that is, from the head to the tail of the parameter cache queue, the number of the interface parameter information increases successively, and then the image generation module can quickly take out the latest and largest-numbered interface parameter information from the tail, and can remove expired and smaller-numbered interface parameter information from the head.

[0065] Based on this, the parameter buffer is a parameter buffer queue, and the interface parameter information is written into the parameter buffer of the image generation module, which may include:

[0066] Step 21: write the interface parameter information into the parameter cache queue of the image generation module, so that the image generation module extracts the target interface parameter information from the tail of the parameter cache queue, and removes the target interface parameter information and all the interface parameter information before it from the parameter cache queue.

[0067] S202, receiving images of different image types generated by the image generation module according to the interface parameter information, and writing the images into a cache queue corresponding to the image type; the cache area includes a cache queue corresponding to each image type; the images are marked with the number of the interface parameter information.

[0068] To facilitate the comparison of image numbers, the embodiment of the present application may set a cache queue corresponding to each image type in the cache area. After receiving the image returned by the image generation module, it can be stored in the cache queue corresponding to its image type. Specifically, the image will be written from the end of the cache queue and taken from the head of the cache queue, that is, the image at the head of the cache queue is generated earliest, and the image at the end is generated latest. Furthermore, the ultrasound device can determine whether there is a target image that meets the preset conditions in the cache area by comparing the images at the head of each cache queue.

[0069] In addition, the cache area can also set up sub-caches corresponding to each image type. The purpose of setting up a sub-cache is to take into account that the image generation module can only generate one image of a certain type based on a set of interface parameter information, and the image will be removed from the queue and lost after being synthesized. In order to keep samples of this type of image, so that the image generation module no longer generates such images, the historical images can continue to be used for interface image synthesis. The embodiment of the present application can also set up corresponding sub-caches for such images. Specifically, this type of image can be updated to the corresponding sub-cache after being synthesized, and then when the ultrasound device finds that the cache queue is empty, it can further determine whether the sub-cache corresponding to the queue is empty, and when it is determined that the sub-cache is not empty, the image of the sub-cache is used for synthesis.

[0070] S303, when it is determined that there are target images meeting preset conditions in the cache area, the target images are merged to obtain an interface image to output a display interface image; the preset conditions include that the target images have the same number and the number of corresponding image types is equal to a preset value.

[0071] The following is a detailed introduction to the method of determining the target image based on the specific cache area structure. First, since each image type is provided with a corresponding cache queue, the ultrasound device can determine whether the number of image types reaches a preset value based on whether the cache queue is empty, where the preset value is the total number of cache queues. When it is determined that each cache queue is not empty, the ultrasound device can further determine whether the image numbers at the head of each cache queue are the same. If it is determined that these numbers are the same, it can be determined that the image at the head of each cache queue is the target image that meets the preset conditions. If it is determined that these numbers are not the same, it means that there are expired images in the images at the head of each cache queue. At this time, the image with the largest number can be determined among these images, and the images other than the image with the largest number (i.e., expired images) can be removed from the cache queue.

[0072] Based on this, after writing the image into the cache queue corresponding to the image type of the image, the following may also be included:

[0073] Step 31: when it is determined that each cache queue is not empty, determine whether the images at the head of each cache queue have the same number; if so, proceed to step 32; if not, proceed to step 33;

[0074] Step 32: Determine that the image at the head of each cache queue is a target image that meets a preset condition; the preset value is equal to the total number of cache queues;

[0075] Step 33: remove the images at the head of each cache queue except the image with the largest number from the cache queue.

[0076] For ease of understanding, the following will introduce the process of determining the above target image based on a specific schematic diagram. Figure 2 , Figure 2 A schematic diagram of an image generation scenario provided by an embodiment of the present application. In one possible scenario, when it is detected that the user switches the working mode, the parameter adjustment module of the ultrasound device can generate three groups of interface image parameters in sequence, namely parameters 1, 2, and 3, and send them to the parameter cache queue of the ultrasound image generation module (FPGA) and the parameter cache queue of the user interface image generation module (not shown) in sequence. When parameter 1 is received, the ultrasound image generation module and the user interface image generation module can start generating corresponding images at the same time. When parameter 2 is received, since it takes a long time to generate the ultrasound image, the ultrasound image generation module is still generating ultrasound image 1; and the time taken to generate the user interface image is short, so the user interface image generation module has completed UI image 1 (i.e., user interface image 1) and starts generating UI image 2. When parameter 3 is received, the ultrasound image generation module completes the generation of ultrasound image 1, but since the latest interface image parameter at this time is parameter 3, the ultrasound image generation module ignores ultrasound image 2 and directly starts generating ultrasound image 3; while the user interface image generation module has completed UI image 2 and starts generating UI image 3. Therefore, UI image 2 has no corresponding ultrasound image, and when it and ultrasound image 3 are at the head of the cache queue, UI image 2 will be removed from the cache queue.

[0077] Furthermore, considering that the image generation module can generate only one image of a certain type based on a set of interface parameter information, in order to avoid the loss of this type of image, the embodiment of the present application can also use the sub-cache corresponding to the image type to cache it. Specifically, after being synthesized, this type of image will be updated to the corresponding sub-cache. Furthermore, when the ultrasound device determines that the cache queue is empty, it can further determine whether the corresponding sub-cache is empty. If it is not empty, the image in the sub-cache can be used to continue the image merging.

[0078] Based on this, the image type includes a first image type and a second image type. The image generation module generates only one image of the first image type according to the latest interface parameter information, and continuously generates images of the second image type according to the latest interface parameter information. The cache area includes sub-caches corresponding to each first image type. After merging each target image to obtain an interface image, it may also include:

[0079] Step 31: moving the target image in the cache queue out of the cache queue, and using the target image of the first image type in the cache queue to update the corresponding sub-cache;

[0080] Accordingly, after writing the image into the cache queue corresponding to the image type of the image, it also includes:

[0081] Step 41: When it is determined that the cache queue of the first image type is empty, the cache queue of the second image type is not empty, and the sub-cache of the first image type is not empty, determine that the image at the head of the cache queue of the second image type and the image in the sub-cache of the first image type are target images.

[0082] For ease of understanding, the following will introduce the process of determining the above target image based on a specific schematic diagram. Figure 3 , Figure 3 A schematic diagram of another image generation scenario provided by an embodiment of the present application. In one possible scenario, for the same set of parameters n, the user interface image generation module will only generate one UI image n, but the ultrasound image generation module will continuously generate ultrasound image n. At this time, after the first synthesis is completed, the UI image n will be moved from the cache queue to the corresponding sub-cache. Furthermore, when the ultrasound device determines that the cache queue of the ultrasound image is not empty and the cache queue of the UI image is empty, it can further determine whether the sub-cache corresponding to the UI image is empty. If it is determined that the sub-cache is not empty, the ultrasound device can use the UI image n in the sub-cache to synthesize with the ultrasound image n in the ultrasound image cache queue. Of course, it is understandable that in order to avoid inconsistent numbering, the ultrasound device may also determine whether the image in the sub-cache and the image in the cache queue are set with the same number before synthesis.

[0083] It should be noted that the embodiments of the present invention do not limit which types of images belong to the first image type and which types of images belong to the second image type. For example, considering that the user interface image remains unchanged for a long time, the user interface image may belong to the first image type; while the ultrasound image has a strong real-time nature and needs to be generated in real time, so the ultrasound image may belong to the second image type.

[0084] Based on the above embodiment, in order to further improve the efficiency of image merging, an image template corresponding to each image type can be preset to record the position of the image in the interface, and the image can be pre-merged based on the image template, thereby improving the efficiency of image merging. Based on this, writing the image into the cache area can include:

[0085] S301, obtaining a preset layer corresponding to the image type of the image, marking the preset layer with the image number, and adding the image to a specified position in the preset layer to obtain layer data.

[0086] In the embodiment of the present application, the preset layer corresponds to the image type and is mainly used to record the position and drawable area corresponding to the image type in the visual interface. After the image is acquired, it can be superimposed on the specified position specified by the corresponding preset layer to obtain the layer data, and the layer data is cached; then, when synthesizing the interface image, it is only necessary to simply superimpose the layer data, and there is no need to additionally determine the position corresponding to the image during the synthesis process, thereby improving the synthesis efficiency.

[0087] S302, writing the layer data into the buffer area.

[0088] Accordingly, merging the target images to obtain the interface image may include:

[0089] S303: Merge the layer data corresponding to each target image to obtain an interface image.

[0090] For ease of understanding, the following will introduce the process of determining the above target image based on a specific schematic diagram. Figure 4 , Figure 4 A schematic diagram of image pre-synthesis provided in an embodiment of the present application. When a UI image and an ultrasound image are obtained, they can be added to the corresponding UI image layer and ultrasound image layer, and the UI image layer and ultrasound image layer are cached. Subsequently, when performing image synthesis, only the UI image layer and the ultrasound image layer need to be synthesized.

[0091] The image display device, ultrasound equipment and computer-readable storage medium provided in the embodiments of the present application are introduced below. The image display device, ultrasound equipment and computer-readable storage medium described below can be referenced to each other with the image display method described above.

[0092] Please refer to Figure 5 , Figure 5 This is a structural block diagram of an image display device provided in an embodiment of the present application. The device may include:

[0093] The interface parameter information acquisition module 501 is used to acquire the interface parameter information generated when the mode switching is detected; each group of interface parameter information is marked with a different number;

[0094] The image generation and cache module 502 is used to generate images of different image types according to the interface parameter information and write the images into the cache area; the images are marked with the numbers of the interface parameter information;

[0095] The merging module 503 is used to merge the target images to obtain an interface image when it is determined that there are target images meeting preset conditions in the cache area, so as to output the display interface image; the preset conditions include that the target images have the same number and the corresponding number of image types is equal to a preset value.

[0096] Optionally, the cache area includes a cache queue corresponding to each image type, and the image generation and cache module 502 may include:

[0097] The cache queue writing submodule is used to write the image into the cache queue corresponding to the image type of the image.

[0098] Optionally, the device may further include:

[0099] The first target image determination module is used to determine whether the images at the head of each cache queue have the same number when it is determined that each cache queue is not empty; if so, determine that the image at the head of each cache queue is a target image that meets a preset condition; the preset value is equal to the total number of cache queues; if not, remove the images at the head of each cache queue except the image with the largest number from the images.

[0100] Optionally, the image type includes a first image type and a second image type, the image generation module generates only one image of the first image type according to the latest interface parameter information, and continuously generates images of the second image type according to the latest interface parameter information, the cache area includes sub-caches corresponding to each first image type, and the device may further include:

[0101] A clearing module, used to remove the target image in the cache queue from the cache queue, and update the corresponding sub-cache with the target image of the first image type in the cache queue;

[0102] Accordingly, the device may further include:

[0103] The second target image determination module is used to determine that the image at the head of the cache queue of the second image type and the image in the sub-cache of the first image type are target images when it is determined that the cache queue of the first image type is empty, the cache queue of the second image type is not empty, and the sub-cache of the first image type is not empty.

[0104] Optionally, the image of the first image type is a user interface image, and the image of the second image type is an ultrasound image.

[0105] Optionally, the image generation and caching module 502 may include:

[0106] The interface parameter information sending submodule is used to send the interface parameter information to the image generation module, and receive images of different image types generated by the image generation module according to the interface parameter information.

[0107] Optionally, the numbers marked on each group of interface parameter information are incremented in sequence with the generation order, and the interface parameter information sending submodule may include:

[0108] The interface parameter information sending unit is used to write the interface parameter information into the parameter buffer area of ​​the image generation module, so that the image generation module generates an image based on the target interface parameter information with the largest number in the parameter buffer area each time it generates an image.

[0109] Optionally, the parameter buffer area is a parameter buffer queue, and the interface parameter information sending unit may include:

[0110] The interface parameter information sending subunit is used to write the interface parameter information into the parameter cache queue of the image generation module, so that the image generation module extracts the target interface parameter information from the tail of the parameter cache queue and removes the target interface parameter information and all the interface parameter information before it from the parameter cache queue.

[0111] Optionally, the image generation and caching module 502 may include:

[0112] The layer overlay submodule is used to obtain the preset layer corresponding to the image type of the image, mark the image number for the preset layer, and add the image to the specified position in the preset layer to obtain the layer data;

[0113] The cache submodule is used to write layer data into the cache area;

[0114] Accordingly, the merging module 503 includes:

[0115] The merging submodule is used to merge the layer data corresponding to each target image to obtain an interface image.

[0116] Please refer to Figure 6 , Figure 6 This is a structural block diagram of an ultrasound device provided in an embodiment of the present application. The embodiment of the present application provides an ultrasound device 20, including a processor 21 and a memory 22; wherein the memory 22 is used to store a computer program; and the processor 21 is used to execute the image display method provided in the aforementioned embodiment when executing the computer program.

[0117] For the specific process of the above-mentioned image display method, reference may be made to the corresponding contents provided in the aforementioned embodiments, which will not be elaborated here.

[0118] Furthermore, the memory 22 as a carrier for storing resources may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the storage method may be temporary storage or permanent storage.

[0119] In addition, the ultrasonic device 20 also includes a power supply 23, a communication interface 24, an input / output interface 25 and a communication bus 26; wherein the power supply 23 is used to provide working voltage for each hardware device on the ultrasonic device 20; the communication interface 24 can create a data transmission channel between the ultrasonic device 20 and external devices, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input / output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0120] Furthermore, an embodiment of the present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the image display method provided in the aforementioned embodiment.

[0121] For the specific process of the above-mentioned image display method, reference may be made to the corresponding contents provided in the aforementioned embodiments, which will not be elaborated here.

[0122] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0123] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0124] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0125] The above is a detailed introduction to an image display method, device, ultrasonic equipment and computer-readable storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. An image display method, characterized in that: include: Acquire interface parameter information generated when mode switching is detected; each group of interface parameter information is marked with a different number; Generate images of different image types according to the interface parameter information, and write the images into a buffer area; the images are marked with the numbers of the interface parameter information; When it is determined that there are target images that meet preset conditions in the cache area, each of the target images is merged to obtain an interface image to output and display the interface image; the preset conditions include that each of the target images has the same number and the corresponding number of image types is equal to a preset value.

2. The image display method according to claim 1, characterized in that: The buffer area includes a buffer queue corresponding to each of the image types, and writing the image into the buffer area includes: The image is written into a cache queue corresponding to the image type of the image.

3. The image display method according to claim 2, characterized in that: After writing the image into a cache queue corresponding to the image type of the image, the method further includes: When it is determined that each of the cache queues is not empty, determining whether the images at the head of each of the cache queues have the same number; If yes, determining that the image at the head of each cache queue is a target image that meets the preset condition; the preset value is equal to the total number of the cache queues; If not, the images at the head of each cache queue except the image with the largest number are removed from the cache queue.

4. The image display method according to claim 3, characterized in that: The image type includes a first image type and a second image type, the image generation module generates only one image of the first image type according to the latest interface parameter information, and continuously generates images of the second image type according to the latest interface parameter information, the cache area includes sub-caches corresponding to each of the first image types, and after merging each of the target images to obtain an interface image, further includes: Move the target image in the cache queue out of the cache queue, and use the target image in the cache queue that belongs to the first image type to update the corresponding sub-cache; Correspondingly, after writing the image into the cache queue corresponding to the image type of the image, the method further includes: When it is determined that the cache queue of the first image type is empty, the cache queue of the second image type is not empty, and the sub-cache of the first image type is not empty, the image at the head of the cache queue of the second image type and the image in the sub-cache of the first image type are determined to be the target image.

5. The image display method according to claim 4, characterized in that: The image of the first image type is a user interface image, and the image of the second image type is an ultrasound image.

6. The image display method according to claim 1, characterized in that: The generating of images of different image types according to the interface parameter information includes: The interface parameter information is sent to an image generation module, and images of different image types generated by the image generation module according to the interface parameter information are received.

7. The image display method according to claim 6, characterized in that: The numbers of the interface parameter information of each group are marked in ascending order according to the generation order, and the interface parameter information is sent to the image generation module, including: The interface parameter information is written into the parameter buffer of the image generation module, so that the image generation module generates an image based on the target interface parameter information with the largest number in the parameter buffer each time it generates an image.

8. The image display method according to claim 7, characterized in that: The parameter buffer is a parameter buffer queue, and the step of writing the interface parameter information into the parameter buffer of the image generation module includes: The interface parameter information is written into the parameter cache queue of the image generation module, so that the image generation module extracts the target interface parameter information from the tail of the parameter cache queue, and removes the target interface parameter information and all the interface parameter information before it from the parameter cache queue.

9. The image display method according to any one of claims 1 to 8, characterized in that: Writing the image into a buffer area comprises: Obtaining a preset layer corresponding to the image type of the image, marking the preset layer with a number of the image, and adding the image to a specified position in the preset layer to obtain layer data; Writing the layer data into the buffer area; Correspondingly, the step of merging the target images to obtain an interface image includes: The layer data corresponding to each of the target images are merged to obtain an interface image.

10. An image display device, characterized in that: include: An interface parameter information acquisition module, used to acquire interface parameter information generated when mode switching is detected; each group of interface parameter information is marked with a different number; An image generation and cache module, used to generate images of different image types according to the interface parameter information, and write the images into a cache area; the images are marked with the numbers of the interface parameter information; A merging module is used to merge each target image to obtain an interface image when it is determined that there are target images that meet preset conditions in the cache area, so as to output and display the interface image; the preset conditions include that each target image has the same number and the corresponding number of image types is equal to a preset value.

11. An ultrasonic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the image display method according to any one of claims 1 to 9 when executing the computer program.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by a processor, the image display method according to any one of claims 1 to 9 is implemented.