Image software testing method and device and electronic equipment

By running the primary functional module in the imaging software testing system to process the image data, and performing functional tests on the secondary functional module, the problem of low accuracy of the imaging software test results in the prior art is solved, and a higher accuracy of the test results is achieved.

CN119902972APending Publication Date: 2025-04-29WUHAN UNITED IMAGING HEALTHCARE SURGICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311388964.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

The test results of existing imaging software testing methods are not very accurate, especially because the algorithms and functions of imaging software are highly coupled, and the algorithms that test each function alone cannot guarantee the accuracy of the calculation results.

Method used

After running the first-level functional module in the test system to process the image data, the second-level functional module is functionally tested according to the processing results of the first-level functional module, so that the test process of the second-level functional module is consistent with the actual operating scenario, and the accuracy of the test results is improved.

Benefits of technology

By combining the coupling relationship between the various functional modules of the imaging software, the degree of coupling between functions and algorithms during the test process is improved, and the accuracy of the test results is significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902972A_ABST
    Figure CN119902972A_ABST
Patent Text Reader

Abstract

The invention provides an image software testing method and device and electronic equipment. The test method of the image software comprises the steps of detecting an operation instruction input by a user, responding to the operation instruction, running a test script, displaying first image data, running a primary function module to process the first image data, and performing function test on a secondary function module according to a first processing result of the primary function module on the first image data, and obtaining a test result of the image software. As the function test is performed on the secondary function module on the basis of the processing result of the primary function module on the first image data, the coupling degree of the image software function and the algorithm in the test process can be improved, and the accuracy of the obtained test result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software testing, and in particular to a testing method, device and electronic equipment for imaging software. Background Art

[0002] Imaging software is used to process the image data captured by the imaging data device to obtain processed images or obtain the detection results of the image data, thereby providing a basis for subsequent medical diagnosis. In order to ensure the stability of the imaging software during operation and avoid the occurrence of imaging software crashes due to algorithm failure in the imaging software, the imaging software needs to be tested and verified.

[0003] The efficiency of testing the functions of the imaging software is low when the functions are tested manually. In the prior art, the imaging software can be tested using the testing platform of the robot system where the imaging software is located. However, the coupling between the algorithms and functions of the imaging software is high, and the accuracy of the calculation results cannot be guaranteed by testing the algorithms of the functions of the imaging software alone. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a method, device and electronic device for testing image software, which are used to solve the problem of low test result accuracy of existing image software testing methods.

[0005] A first aspect of an embodiment of the present application provides a method for testing imaging software, comprising:

[0006] The test system detects the operation instructions input by the user;

[0007] In response to the operation instruction, the test system runs a test script and displays first image data;

[0008] The test system runs a primary function module to process the first image data to obtain a first processing result;

[0009] According to the first processing result, the test system runs the secondary function module to perform a function test to obtain a test result of the imaging software.

[0010] In one embodiment, the first-level function module processes the first image data to obtain second image data, and according to the first processing result, the test system runs the second-level function module to perform a functional test to obtain a test result of the image software, including:

[0011] According to the first processing result, the test system runs at least one test task to call the secondary function module to process the second image data;

[0012] A test result of the imaging software is determined according to a second processing result of the second imaging data.

[0013] In one embodiment, the second processing result includes image data processed by the secondary functional module, and determining the test result of the image software according to the second processing result of the second image data includes:

[0014] The test result of the imaging software is determined according to the operation status of the secondary functional module and the marking point information or pixel information of the image data processed by the secondary functional module.

[0015] In one embodiment, the primary functional module includes an image restoration module, which is used to remove targets in image data; the secondary functional module includes any one or more of the following sub-modules: moving marker points, adding marker points, deleting marker points, and positioning based on marker points.

[0016] In one embodiment, the first-level function module processes the first image data to obtain second image data, and according to the first processing result, the test system runs the second-level function module to perform a function test, including:

[0017] If it is determined according to the second image data that the first image data is restored successfully, the test system runs the secondary function module to perform a function test.

[0018] In one embodiment, the primary functional module includes an image fusion module, which is used to determine the degree of alignment between the first image data and the preset image data, and the secondary functional module has any one or more of the following functions: deleting mark points, image dotting, transparency adjustment, image page turning, and image resetting.

[0019] In one embodiment, according to the first processing result, the test system runs the secondary function module to perform a function test, including:

[0020] If the image fusion function processes the first image data to obtain a registration result, the test system runs a secondary function module to perform a function test.

[0021] In one embodiment, the method further comprises:

[0022] Determining a third-level functional module coupled to the second-level functional module according to the identifier of the second-level functional module;

[0023] The three-level functional module is tested to obtain a test result of the three-level functional module.

[0024] In one embodiment, the test system runs a test script and displays first image data, including:

[0025] The test system calls the image data recognition module to recognize image data;

[0026] According to the recognition result of the image data recognition module, qualified image data in the image data is used as the first image data, and the first image data is displayed; the qualified image data refers to image data that meets preset conditions, and the preset conditions include at least one of the array in the image data is visible, the number of targets in the image data exceeds a preset threshold, and the targets in the image data are visible.

[0027] A second aspect of an embodiment of the present application provides a testing device for imaging software, including:

[0028] A detection module, used to detect operation instructions input by a user;

[0029] A display module, for executing a test script and displaying the first image data in response to the operation instruction;

[0030] A processing module, used for running a primary function module to process the first image data to obtain a first processing result;

[0031] A testing module is used to run the secondary function module to perform a functional test according to the first processing result to obtain a test result of the imaging software.

[0032] A third aspect of an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.

[0033] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect above is implemented.

[0034] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes any one of the methods described in the first aspect.

[0035] Compared with the prior art, the embodiment of the present application has the following beneficial effects: after the test system runs the primary function module to process the first image data, the test system performs a functional test on the secondary function module according to the first processing result of the primary function module on the first image data, so as to obtain the test result of the image software. Since the functional test of the secondary function module is performed on the basis of the first processing result of the primary function module on the first image data, the test process of the secondary function module can be made consistent with the actual operation scenario, and then the coupling degree between the image software function and the algorithm during the test can be improved by combining the image software function modules, thereby improving the accuracy of the obtained test results. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0037] Figure 1 This is a schematic diagram of an application scenario of a testing method for imaging software provided in an embodiment of the present application;

[0038] Figure 2 It is a flowchart of a testing method for imaging software provided in an embodiment of the present application;

[0039] Figure 3 is a flow chart of a method for testing imaging software provided by an embodiment of the present application;

[0040] Figure 4 is a flow chart of a method for testing imaging software provided by another embodiment of the present application;

[0041] Figure 5 is a schematic diagram of a testing device for imaging software provided in an embodiment of the present application;

[0042] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0044] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

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

[0046] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0047] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0048] In order to solve the problem of poor test result stability of the imaging software testing method in the prior art, the present application provides an imaging software testing method, which displays the first image data, runs the first-level functional module to process the first image data, and then performs a functional test on the second-level functional module based on the first processing result of the first image data by the first-level functional module. Therefore, the testing process of the second-level functional module can be made consistent with the actual operation scenario, and further, the coupling degree between the imaging software functions and algorithms during the testing process can be improved by combining the functional modules of the imaging software, thereby improving the accuracy of the obtained test results.

[0049] The following is an exemplary description of the testing method of the imaging software provided in the embodiment of the present application.

[0050] The imaging software testing method provided in the embodiment of the present application is executed on an electronic device, which may be a computing device such as a desktop computer, a notebook, a palm computer, or a server.

[0051] like Figure 1 As shown, Figure 1 The scenario to which the imaging software testing method provided in the embodiment of the present application is applicable includes: an electronic device 100, a first storage device 200, and a second storage device 300.

[0052] At least one image data is stored in the first storage device 200. For example, the first storage device 200 may be a server, such as a cache server.

[0053] At least one test task is stored in the second storage device 300. For example, the second storage device 300 may be a server.

[0054] As an example, the first storage device 200 and the second storage device 300 in the embodiment of the present application can both communicate with the electronic device 100. For example, the electronic device 100 can call image data from the first storage device 200 and call test tasks from the second storage device 300. Of course, the electronic device 100 can also store the called image data or test tasks in the first storage device 200 and the second storage device 300.

[0055] As an example, the first storage device 200 and the second storage device 300 may be two independently deployed servers. Of course, the first storage device 200 and the second storage device 300 may also be different storage modules in the same server. For example, the first storage device 200 and the second storage device 300 may be cloud servers.

[0056] As another example, the first storage device 200 and the second storage device 300 may also be storage modules in the electronic device 100. For example, taking the electronic device 100 as a computer, the first storage device 200 and the second storage device 300 may be a hard disk or a disk of the electronic device. Of course, the first storage device 200 and the second storage device 300 may also be storage devices external to the electronic device 100. Alternatively, one of the first storage device 200 and the second storage device 300 may be a storage module inside the electronic device 100, and the other may be a server or a storage device external to the electronic device 100. This is not limited in the embodiments of the present application.

[0057] For example, the second storage device 300 includes one or more databases, and different databases are used to store different test tasks. For example, one or more databases may include a test task database and an abnormal test task database. The test task database is used to store test tasks, and may also be used to store test tasks and running scripts of the imaging software to be tested. The abnormal test task database is used to store test tasks that have failed.

[0058] As an example, when the electronic device 100 detects an operation instruction input by the user, the electronic device 100 runs a test script and calls image data from the first storage device 200, and then the electronic device calls the image data recognition algorithm to perform target, target number, and array recognition detection on one or more image data, and according to the return value, the image data that meets the conditions is filtered from the image data as the first image data and displayed. As an example, when the electronic device itself has a display screen, the electronic device can use its own display screen to display the first image data. Alternatively, the electronic device can also use a display device external to the electronic device to display the first image data, which is not limited in the embodiments of the present application.

[0059] For example, the electronic device 100 is a computer, the display interface of the electronic device 100 displays an icon of the test software, the operation instruction is to click the icon of the test software, and when the electronic device detects that the user clicks the icon of the test software, the electronic device runs the test script of the imaging software in response to the click operation.

[0060] As an example, the image data is image data obtained by scanning a human body using an image data device (such as CT, X-RAY, or MRI equipment). The image data is generally image data including a three-dimensional image, and the electronic device can display the corresponding image data on a display interface. Exemplarily, the image software can be orthopedic image software.

[0061] The imaging software includes multiple functional modules, which are used to detect or process the imaging data through each functional module to obtain the imaging data detection result or the imaging data processing result. For example, the orthopedic imaging software is used to process the orthopedic imaging data, align the processed image with the preoperative CT imaging data, and obtain the alignment result.

[0062] After the electronic device 100 displays the first image data, it can call the test task of the second storage device 300 and run the test task, thereby testing each functional module of the image software. Among them, each functional module of the image software can be stored in the electronic device 100, or in the second storage device 300. Calling the test task to test each functional module of the image software can be to run the script corresponding to each functional module, process the image data, and determine the test result of each functional module according to the running result of each functional module and the image data processed by each functional module. After the test of each functional module is completed, the electronic device 100 determines the test result of the image software according to the test result of each functional module.

[0063] The following is a detailed description of the imaging software testing method provided in the embodiment of the present application. The imaging software testing method provided in the embodiment of the present application is executed by a testing system on an electronic device.

[0064] Please see attached Figure 2 , a method for testing imaging software provided by an embodiment of the present application includes:

[0065] S201: The test system detects an operation instruction input by a user.

[0066] The operation instruction may be an instruction to start the test software, or an instruction to start testing the imaging software.

[0067] In one embodiment, the operation instruction may further include the identification or storage path of the image software to be tested, and the operation instruction may further include the identification or storage path of the image data to be tested. The test system reads the image data to be tested according to the operation instruction, and tests the image software to be tested according to the image data to be tested.

[0068] S202: In response to the operation instruction, the test system runs a test script and displays first image data.

[0069] In one embodiment, the first storage device stores image data, and the image data is all or part of the image data stored in the first storage device. The operation instruction includes the storage path of the image data, and the test system responds to the operation instruction to obtain the image data from the first storage device, determine the first image data from the image data, and display it.

[0070] In one embodiment, after the test system acquires the image data, it runs the test script to call the image data recognition module of the image software to recognize the image data and determine whether the image data is qualified image data. Then the test system uses the qualified image data in the image data as the first image data.

[0071] Specifically, the image data recognition module refers to a module integrated with an image data recognition algorithm. The main functions of the image data recognition module may include, for example, identifying any one or more of the array, target, and L-shaped target of the image data. Among them, the array is a symbol used to mark the preset position of the image data. For example, if the image data is a human body image, the array is located on the pelvis, and the array can assist in detecting the position of the pelvis. The L-shaped target is used to calibrate the position of the C-arm of the image data device.

[0072] The test system determines whether each image data meets the preset conditions according to the recognition results of the image data recognition module. Among them, meeting the preset conditions includes any one or more of the existence of an array, the number of targets being a preset number, and the L-shaped target being unobstructed. For example, if according to the recognition results of the image data recognition module, it is determined that there is an array in the image data, the number of targets is greater than 30, and the L-shaped target is not obstructed, the image data is determined to be qualified image data, otherwise it is unqualified image data.

[0073] Afterwards, the test system uses the image data that meets the preset conditions as the first image data and displays the first image data on the display interface. It can be understood that the first image data can be one or more, and the test system can display all of the first image data or part of the first image data.

[0074] In another embodiment, the first storage device may also only store qualified image data, and the operation instruction includes an identifier or storage path of the first image data. The test system responds to the operation instruction, runs the test script to obtain the first image data from the first storage device and displays the corresponding image data.

[0075] In one embodiment, the first storage device is a cache server. The test system can store one or more image data to be tested in the cache server according to the user's needs for testing the image software. The subsequent test system can read the image data from the cache server, thereby improving the reading efficiency of the image data.

[0076] In one embodiment, a plurality of image data and a first identifier corresponding to each image data are stored in a database, and the first identifier is used to indicate whether each image data is qualified image data. After the test system runs the image recognition function module to identify each image data, it obtains an operation result of whether each image data is qualified image data. Afterwards, the test system determines whether the operation result is consistent with the corresponding first identifier. If they are consistent, it is determined that the test result of the image recognition function module is a normal test, and the qualified image data is used as the first image data and displayed. If they are inconsistent, it is determined that the test result of the image recognition function module is a test abnormality, and the test system can output a prompt message of the test abnormality or store the test record.

[0077] S203: The test system runs a primary function module to process the first image data to obtain a first processing result.

[0078] Specifically, the primary functional module may be an image restoration module or an image fusion module of the imaging software, in other words, the primary functional module has an image restoration function or an image fusion function. The image restoration function is used to remove the target point in the image data, and the image fusion function is used to calculate the registration degree between the first image data and the preset image data.

[0079] Exemplarily, the first image data includes images of interference objects (such as bone screws, target points), and the image restoration function is used to remove the images of the interference objects in the first image data to obtain restored image data.

[0080] The image fusion function is used to determine the registration degree between the first image data and the preset CT image position, and output the registration result. For example, the output registration result of level 0 indicates poor registration, and the output registration result of level 1 indicates good registration, which is the recommended image data. For example, the test system runs the test script of the imaging software, selects a preset number of marker points on the first image data, performs a rough registration calculation on the positions of the marker points in the marker point list and the positions of the marker points on the image data, obtains the input parameters of the fusion registration, and performs the registration calculation between the restored image data and the preset CT image position according to the input parameters.

[0081] The test system may run the image restoration module and the image fusion module in sequence. For example, after running the image restoration module, the test system may dot the restored image. When the dot number is greater than a preset value (e.g., 3), the test system may run the image fusion module. The test system may directly run the primary function module or call the primary function module by running a test task.

[0082] S204: According to the first processing result, the test system runs the secondary function module to perform a function test to obtain a test result of the imaging software.

[0083] Among them, the secondary function module is associated with the primary function module, the secondary function module associated with the primary function module can be preset, and the test system can determine the secondary function module associated with the primary function module according to the identifier of the primary function module. The second storage device stores the test task, and after the primary function module is completed, the test system calls at least one test task corresponding to the processing result from the second storage device according to the first processing result of any primary function module on the first image data to perform functional testing on the secondary function module of the image software to obtain the test result of the image software.

[0084] In one embodiment, the primary functional module processes the first image data to obtain the second image data. For example, the primary functional module is an image restoration module. After the test system processes the first image data using the image restoration module, the restored image data is obtained, which is the second image data. The primary functional module is an image fusion function. After the test system runs the image fusion module to process the first image data, the second image data obtained is an image after the first image data is aligned with the preset image. The test system runs a test task to call the secondary functional module to process the second image data, and determines the test result of the secondary functional module according to the processing result of the second image data.

[0085] In one embodiment, the primary functional module is an image restoration module, and the secondary functional module includes any one or more of the following sub-modules: moving marker points, adding marker points, deleting marker points, positioning based on marker points, moving image data, scaling image data, and page layout.

[0086] The newly added mark point module is used to mark the image data. It can mark any position of the image data or a specified position of the image data. The function module of moving mark points is used to move the position of the mark points on the image data, and the function module of deleting mark points is used to delete the mark points on the image data.

[0087] The module for positioning based on the marker points is used to select any marker point in the marker point list information after adding marker points on the image data, and locate the selected marker point.

[0088] The image data moving module is used to move the position of the image data on the display interface according to the instruction of moving the image data (such as clicking the move tool button), and the image data scaling function module is used to scale the image data by a preset multiple according to the scaling instruction (such as clicking the zoom button or sliding the mouse).

[0089] The image layout module is used to adjust the layout of the page when a preset operation (such as clicking a layout switch button) is detected, for example, adjusting the image layout in the page to 1*3, 2*2, etc.

[0090] After the test system runs the image restoration module to obtain the second image data, it runs the test task to call the secondary function module to process the second image data. That is, it can perform any one or more operations on the second image data, including moving mark points, adding mark points, deleting mark points, positioning according to mark points, moving image data, scaling image data, and page layout.

[0091] The second processing result of the second image data includes the image data processed by the secondary functional module, and the image data processed by the secondary functional module is the third image data. The test system can determine the test result of the secondary functional module according to the marking point information or pixel information of the third image data. Each image data includes an associated marking point list, and the test system can determine the marking point information according to the marking point list. The test system can also determine the marking point information of the image data by performing image recognition on the image data.

[0092] Exemplarily, if the secondary functional module is a moving marking point module, the secondary functional module is run to obtain the third image data. If the position of the marking point in the second image data is inconsistent with the position of the marking point in the first image data, the test result of the secondary functional module is determined to be a successful test.

[0093] If the secondary function module is a new marking point module, run the secondary function module to obtain the third image data. If the number of marking points in the third image data is greater than the number of marking points in the second image data, determine that the test result of the secondary function module is a successful test, otherwise determine that the test has failed.

[0094] If the secondary function module is a mark point deletion module, run the secondary function module to obtain the third image data. If there is no mark point in the third image data, determine that the test result of the secondary function module is a test success, otherwise determine that the test fails.

[0095] If the secondary functional module is a module for positioning based on the marking point, the secondary functional module is used to move the positioning mark (such as a crosshair) to the position of the selected marking point, run the secondary functional module, and obtain the third image data. If the pixels of the third image data change relative to the second image data, it means that the positioning mark has moved, and the test result of the primary functional module can be determined as a successful test, otherwise the test is determined to have failed.

[0096] If the secondary functional module is a mobile image data module, run the secondary functional module to obtain the third image data. If the pixels of the third image data change relative to the first image data, it means that the position of the third image data on the display interface has changed relative to the first image data. Therefore, it can be determined that the test result of the secondary functional module is a successful test. Otherwise, it is determined that the test has failed.

[0097] If the secondary functional module is a scaling image data module, run the secondary functional module to obtain the third image data. If the pixels of the third image data change relative to the first image data, it means that the third image data is scaled relative to the first image data, and then the test result of the secondary functional module can be determined as a successful test, otherwise the test is determined to have failed.

[0098] If the secondary functional module is a page layout module, running the secondary functional module can also indicate that the page layout has changed if it is determined that the pixels of the third image data have changed relative to the first image data, and determine that the test result of the secondary functional module is a success, otherwise determine that the test has failed.

[0099] In one embodiment, the primary function module has an image fusion function, and the secondary function module includes any one or more of the following submodules: deleting mark points, dotting images, adjusting transparency, turning images, and resetting images.

[0100] The image marking module is used to add marking points at the specified position of the fused image, so as to determine the registration difference between the restored image data and the preset CT image. The function of deleting marking points is used to delete the specified marking points in the fused image.

[0101] The transparency adjustment module is used to adjust the transparency of the image data according to the adjustment instruction, that is, to adjust the window width and window position of the image data. Exemplarily, the test system calls the test task to activate the transparency adjustment function, and inputs the mouse sliding instruction. The function module for adjusting the transparency of the image data adjusts the transparency of the image data to a corresponding value according to the mouse sliding length.

[0102] The image resetting module is used to restore the original transparency after adjusting the transparency of the image data according to the resetting instruction.

[0103] The first image data is a three-dimensional image, which is composed of multiple layers of two-dimensional images. The image page turning module is used to turn the pages of the three-dimensional image according to a page turning instruction (such as clicking a page turning button or sliding a mouse).

[0104] After the test system runs the image fusion module to obtain the second image data, it runs the test task to call the secondary function module to process the second image data, that is, it can perform any one or more operations of deleting mark points, dotting images, adjusting transparency, turning images, and resetting images on the second image data.

[0105] The test system can determine the test result of the secondary functional module according to the marking point information or pixel information of the third image data.

[0106] Exemplarily, if the secondary functional module is an image dotting module, the secondary functional module is run to obtain the third image data. If the number of marking points in the third image data changes relative to the second image data, the test result of the secondary functional module is determined to be a successful test, otherwise the test is determined to be a failed test.

[0107] If the secondary function module is a mark point deletion module, the secondary function module is run, and if it is determined according to the third image data that the selected mark point is deleted, the test result of the secondary function module is determined to be a test success, otherwise the test is determined to be a test failure.

[0108] If the secondary functional module is a transparency adjustment module, run the secondary functional module to obtain the third image data. If the pixels of the third image data relative to the second image data change, it means that the transparency of the third image data relative to the second image data has changed, and then determine that the test result of the secondary functional module is a successful test, otherwise determine that the test has failed.

[0109] If the secondary functional module is an image reset module, run the secondary functional module to obtain the third image data. If the transparency of the third image data relative to the first image data changes, and the change in transparency is consistent with the currently displayed transparency parameter, it means that the transparency reset is successful, and then determine that the test result of the secondary functional module is a successful test, otherwise determine that the test failed.

[0110] If the secondary functional module is an image page turning module, run the secondary functional module. If the pixels of the third image data change relative to the first image data, it means that the third image data is the image data after page turning, which means that page turning is completed. The test result of the secondary functional module is a successful test, otherwise it is determined that the test has failed.

[0111] In one embodiment, the test system may also determine the test result of the secondary function module based on the operation status of the secondary function module and the marking point information or pixel information of the third image data. Exemplarily, if the script of the secondary function module is completed and no error information appears during the operation of the secondary function module, the operation status of the secondary function module is determined to be normal. When the test system determines that the secondary function module is operating normally and the marking point information or pixel information of the third image data is consistent with the set situation, it determines that the test result of the secondary function module is a successful test, so that the test status of the imaging software can be determined in combination with the operation status and processing results of each functional module, thereby improving the accuracy of the test results obtained.

[0112] In one embodiment, after running the primary functional module, the test system determines whether the primary functional module runs successfully based on the processing result of the primary functional module on the first image data. If the primary functional module runs successfully, the secondary functional module is functionally tested.

[0113] For example, the primary functional module has an image restoration function, and the primary functional module is run to obtain the second image data. If the first image data is determined to be successfully restored based on the second image data (for example, there is no interference in the second image data relative to the first image data), it is determined that the primary functional module is successfully run. For another example, if the primary functional module has an image fusion function, the primary functional module can be run to obtain the registration result of the first image data and the preset CT image. For example, if the obtained registration result is 0 or 1, or the obtained registration result is recommended or not recommended, it is determined that the primary functional module is successfully run.

[0114] In another embodiment, the test system may also determine whether the test of the primary function module is successful based on the operation of the primary function module and the processing result of the primary function module on the first image data. For example, if the script of the primary function module is completed and no error message appears during the operation of the primary function module, the operation of the primary function module is determined to be normal. When the test system determines that the primary function module is operating normally and the first processing result of the primary function module on the first image data is consistent with the set situation, the test result of the primary function module is determined to be a successful test.

[0115] It can be understood that when the test system runs the first-level functional module and the second-level functional module, the second image data and the third image data obtained after processing can be displayed on the display interface, and then the operation status of the first-level functional module and the second-level functional module can be further determined based on the image data information displayed on the display interface.

[0116] In one embodiment, after running the primary functional module, if the test result of the primary functional module is determined to be a test failure according to the first processing result of the primary functional module on the first image data, the test system may not test the secondary functional module and output a prompt message of an abnormal test. The test system may also store the test task corresponding to the primary functional module in the abnormal test database.

[0117] In one embodiment, after the test system runs the first-level functional module, if it is determined that the test result of the first-level functional module is a test failure based on the first processing result of the first-level functional module on the first image data, the test task corresponding to the second-level functional module will be stored in the abnormal test database, so that the test personnel can determine the test result of the imaging software based on the storage information of the abnormal test database.

[0118] In one embodiment, when the test result of the primary functional module is determined to be a test failure, the test system further determines the third-level functional module coupled with the second function according to the identifier of the secondary functional module, tests the third-level functional module, and obtains the test result of the third-level functional module. The electronic device stores the coupling relationship of each functional module, and the test system retrieves the third-level functional module from the storage device according to the identifier of the secondary functional module and the corresponding coupling relationship, runs the test task corresponding to the third-level functional module to perform a functional test on the third-level functional module, and obtains the test result of the third-level functional module, so that the imaging software can be tested more fully, and the accuracy of the obtained imaging software test result is improved.

[0119] Among them, functional testing of the tertiary functional module may refer to calling the tertiary functional module to process the second image data, and the test result of the tertiary functional module may be determined based on the marking point information or pixel information of the image data processed by the tertiary functional module.

[0120] Exemplarily, all functional modules related to the marking points are associated functional modules, the transparency adjustment module and the image reset module are associated functional modules, and the image page turning module, the moving image data module, and the scaling image data module are associated functional modules. For example, after running the marking point deletion module, it is determined based on the running result that the marking point has not been deleted, and it is determined that the marking point deletion module has failed to run, then the moving marking point module, the adding marking point module, and the positioning module based on the marking point are tested. For another example, if the transparency adjustment module fails to run, the image reset module is tested. For another example, if the image page turning module fails to run, the moving image data module and the scaling image data module are tested.

[0121] In one embodiment, after the test system runs the third-level functional module, if it is determined that the test result of the third-level functional module is a test failure based on the processing result of the third-level functional module on the second image data, the test task corresponding to the third-level functional module is stored in the abnormal test database.

[0122] It can be understood that the tertiary functional module coupled with the secondary functional module can be tested only when the secondary functional module fails the test. When the secondary functional module is tested successfully, the tertiary functional module may not be tested, thereby improving test efficiency.

[0123] The test system determines and outputs the test results of the imaging software based on the operation status of the primary functional modules, the secondary functional modules, and the tertiary functional modules and the processing results of each functional module. The test results of the imaging software may include the identification of the functional modules that have been successfully tested, the identification of the functional modules that have failed to be tested, the number of functional modules that have been successfully tested, and the number of functional modules that have failed to be tested.

[0124] Among them, outputting the test results of the imaging software may include: displaying the test results of the imaging software on a display screen so that the tester can view the test results of the imaging software. Or sending the test results of the imaging software to a third-party device (such as a mobile phone, a computer, etc.) so that the third-party device can display the test results of the imaging software. Or storing the test results of the imaging software in a specified location (for example, storing it in a specified path on an electronic device, or uploading it to a third-party server) so that the tester can query the test results.

[0125] In one embodiment, the process of the imaging software testing method is as follows: Figure 3 shown.

[0126] When the test system detects the image software detection request, it stores the image data to be tested in the cache server, and then calls the functional module of the image software to detect the image data to be tested. If the detection is determined to be successful based on the processing results of the image data by the functional module of the image software, the test system reads the test task from the test task library, triggers the running of the test task, and determines the task request of the test task. After that, the test system receives the task request, tests the functional module of the image software according to the task request, obtains the test result and displays it. If the task test fails, the test system stores the failed test task in the abnormal test database. At the same time, the test system determines the functional module corresponding to the task that failed the test, reads the test task corresponding to the functional module from the test task requirement database, tests the functional module until the test is completed, and outputs the test result of the image software.

[0127] In one embodiment, the imaging software includes three primary functional modules: image data recognition function, image restoration function, and image fusion function, and also includes a secondary functional module associated with the primary functional module and a tertiary functional module coupled with the secondary functional module. The specific process of the imaging software testing method is as follows: Figure 4 shown.

[0128] When the detection module of the test system detects the image software detection request, it obtains the image data to be tested, runs the image data recognition function, detects the array, target and L-shaped target in the image data, and determines the first image data from the image data to be tested and displays it according to the detection result. After that, the test system runs the image restoration module. If the restoration of the first image data fails, the test result is returned. If the restoration of the first image data succeeds and the restored image data is obtained, the test system calls the test task from the test task database to perform a functional test on the secondary functional module associated with the image restoration module according to the restored image data to obtain the test result. After that, the test system runs the image fusion module. If the operation fails, the test result is returned. If the operation succeeds and a fused image is obtained, the test system calls the test task from the test task database to perform a functional test on the secondary functional module associated with the image fusion module according to the fused image to obtain the test result. In the case of a test failure, the test system stores the test task that failed the test in the abnormal test database, determines the third-level functional module coupled to the functional module corresponding to the task that failed the test, tests the third-level functional module, obtains the test result and outputs it.

[0129] In the above embodiment, after the primary function module is run to process the first image data, the secondary function module is functionally tested according to the processing result of the primary function module on the first image data to obtain the test result of the image software. Since the secondary function module is functionally tested based on the processing result of the primary function module on the first image data, the test process of the secondary function module can be made consistent with the actual operation scenario, and then the coupling degree between the image software function and the algorithm can be improved during the test process by combining the various function modules of the image software, thereby improving the accuracy of the obtained test results.

[0130] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0131] Corresponding to the testing method of the imaging software described in the above embodiment, Figure 5 A structural block diagram of an imaging software testing device provided in an embodiment of the present application is shown. For ease of explanation, only the portion related to the embodiment of the present application is shown.

[0132] As shown in the image software test, the image software test device includes:

[0133] A detection module 51, used to detect an operation instruction input by a user;

[0134] The display module 52 is used to run the test script and display the first image data in response to the operation instruction;

[0135] A processing module 53, configured to run a primary function module to process the first image data to obtain a first processing result;

[0136] The testing module 54 is used to run the secondary function module to perform a functional test according to the first processing result, so as to obtain the test result of the imaging software.

[0137] In one embodiment, the primary function module processes the first image data to obtain the second image data, and the test module 54 is specifically used to:

[0138] According to the first processing result, the test system runs at least one test task to call the secondary function module to process the second image data;

[0139] A test result of the imaging software is determined according to a second processing result of the second imaging data.

[0140] In one embodiment, the second processing result includes image data processed by the secondary functional module, and the testing module 54 is further configured to:

[0141] The test result of the imaging software is determined according to the operation status of the secondary functional module and the marking point information or pixel information of the image data processed by the secondary functional module.

[0142] In one embodiment, the primary functional module includes an image restoration module, which is used to remove targets in image data; the secondary functional module includes any one or more of the following sub-modules: moving marker points, adding marker points, deleting marker points, and positioning based on marker points.

[0143] In one embodiment, the primary function module processes the first image data to obtain the second image data, and the test module 54 is further used to:

[0144] If it is determined according to the second image data that the first image data is restored successfully, the test system runs the secondary function module to perform a function test.

[0145] In one embodiment, the primary functional module includes an image fusion module, which is used to determine the degree of alignment between the first image data and the preset image data, and the secondary functional module has any one or more of the following functions: deleting mark points, image dotting, transparency adjustment, image page turning, and image resetting.

[0146] In one embodiment, the testing module 54 is further configured to:

[0147] If the image fusion function processes the first image data to obtain a registration result, the test system runs a secondary function module to perform a function test.

[0148] In one embodiment, the testing module 54 is further configured to:

[0149] Determining a third-level functional module coupled to the second-level functional module according to the identifier of the second-level functional module;

[0150] The three-level functional module is tested to obtain a test result of the three-level functional module.

[0151] In one embodiment, the display module 52 is specifically used for:

[0152] The test system calls the image data recognition module to recognize image data;

[0153] According to the recognition result of the image data recognition module, qualified image data in the image data is used as the first image data, and the first image data is displayed; the qualified image data refers to image data that meets preset conditions, and the preset conditions include at least one of the array in the image data is visible, the number of targets in the image data exceeds a preset threshold, and the targets in the image data are visible.

[0154] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0155] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0156] like Figure 6 As shown, the electronic device of this embodiment includes: a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and executable on the processor 61. When the processor 61 executes the computer program 63, the steps in the above-mentioned imaging software testing method embodiment are implemented, for example Figure 2 Alternatively, when the processor 61 executes the computer program 63, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 5 The functions of the detection module 51 to the test module 54 are shown.

[0157] Exemplarily, the computer program 63 may be divided into one or more modules / units, which are stored in the memory 62 and executed by the processor 61 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 63 in the electronic device.

[0158] Those skilled in the art will understand that Figure 6 These are merely examples of electronic devices and do not constitute a limitation of the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

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

[0160] The memory 62 may be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device. The memory 62 may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device. Further, the memory 62 may also include both an internal storage unit of the electronic device and an external storage device. The memory 62 is used to store the computer program and other programs and data required by the electronic device. The memory 62 may also be used to temporarily store data that has been output or is to be output.

[0161] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0162] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0163] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0164] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0165] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0166] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can 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.

[0167] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for testing imaging software, characterized in that: include: The test system detects the operation instructions input by the user; In response to the operation instruction, the test system runs a test script and displays first image data; The test system runs a primary function module to process the first image data to obtain a first processing result; According to the first processing result, the test system runs the secondary function module to perform a function test to obtain a test result of the imaging software.

2. The method according to claim 1, characterized in that The first-level function module processes the first image data to obtain second image data, and according to the first processing result, the test system runs the second-level function module to perform a functional test to obtain a test result of the image software, including: According to the first processing result, the test system runs at least one test task to call the secondary function module to process the second image data; A test result of the imaging software is determined according to a second processing result of the second imaging data.

3. The method according to claim 2, characterized in that The second processing result includes the image data processed by the secondary functional module, and the determining the test result of the image software according to the second processing result of the second image data includes: The test result of the imaging software is determined according to the operation status of the secondary functional module and the marking point information or pixel information of the image data processed by the secondary functional module.

4. The method according to claim 1, characterized in that The primary function module includes an image restoration module, which is used to remove target points in image data; the secondary function module includes any one or more of the following sub-modules: moving marker points, adding marker points, deleting marker points, and positioning based on marker points.

5. The method according to claim 4, characterized in that The first-level function module processes the first image data to obtain second image data, and according to the first processing result, the test system runs the second-level function module to perform a function test, including: If it is determined according to the second image data that the first image data is restored successfully, the test system runs the secondary function module to perform a function test.

6. The method according to claim 1, characterized in that The primary functional module includes an image fusion module, which is used to determine the alignment between the first image data and the preset image data. The secondary functional module has any one or more of the following functions: deleting mark points, dotting images, adjusting transparency, turning images, and resetting images.

7. The method according to claim 6, characterized in that According to the first processing result, the test system runs the secondary function module to perform a function test, including: If the image fusion function processes the first image data to obtain a registration result, the test system runs a secondary function module to perform a function test.

8. The method according to claim 1, characterized in that The method further comprises: Determining a third-level functional module coupled to the second-level functional module according to the identifier of the second-level functional module; The three-level functional module is tested to obtain a test result of the three-level functional module.

9. The method according to any one of claims 1 to 8, characterized in that: The test system runs a test script and displays first image data, including: The test system calls the image data recognition module to recognize image data; According to the recognition result of the image data recognition module, qualified image data in the image data is used as the first image data, and the first image data is displayed; the qualified image data refers to image data that meets preset conditions, and the preset conditions include at least one of the array in the image data is visible, the number of targets in the image data exceeds a preset threshold, and the targets in the image data are visible.

10. A testing device for imaging software, characterized in that: include: A detection module, used to detect operation instructions input by a user; A display module, for executing a test script and displaying the first image data in response to the operation instruction; A processing module, used for running a primary function module to process the first image data to obtain a first processing result; A testing module is used to run the secondary function module to perform a functional test according to the first processing result to obtain a test result of the imaging software.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.