CN110737985B - Method, apparatus, computer device and readable storage medium for verifying operation data - Google Patents

Method, apparatus, computer device and readable storage medium for verifying operation data Download PDF

Info

Publication number
CN110737985B
CN110737985B CN201910978756.6A CN201910978756A CN110737985B CN 110737985 B CN110737985 B CN 110737985B CN 201910978756 A CN201910978756 A CN 201910978756A CN 110737985 B CN110737985 B CN 110737985B
Authority
CN
China
Prior art keywords
data
program
software implementation
running
implementation program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910978756.6A
Other languages
Chinese (zh)
Other versions
CN110737985A (en
Inventor
郭新路
李山奎
李俊杰
黄灿鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai United Imaging Healthcare Co Ltd
Original Assignee
Shanghai United Imaging Healthcare Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai United Imaging Healthcare Co Ltd filed Critical Shanghai United Imaging Healthcare Co Ltd
Priority to CN201910978756.6A priority Critical patent/CN110737985B/en
Publication of CN110737985A publication Critical patent/CN110737985A/en
Application granted granted Critical
Publication of CN110737985B publication Critical patent/CN110737985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/81Indexing, e.g. XML tags; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/003Reconstruction from projections, e.g. tomography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10072Tomographic images
    • G06T2207/10081Computed x-ray tomography [CT]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to an operation data verification method, an operation data verification device, computer equipment and a readable storage medium, wherein the operation data verification method comprises the following steps: standard data of an algorithm development program is obtained; running a complete software implementation program to obtain running data, and storing the running data in a text form; and comparing the running data with the standard data, and verifying the software implementation program. The running data verification method provided by the application realizes the program by running complete software at one time and stores the running data in a text form, so that the comparison between the file and the program can be converted into the comparison between the file and the file, the running data obtained by manually debugging the program is converted into the automatic generation running data, and the comparison efficiency and accuracy are improved.

Description

Method, apparatus, computer device and readable storage medium for verifying operation data
Technical Field
The present invention relates to the field of data processing, and in particular, to a method, apparatus, computer device, and readable storage medium for verifying operation data.
Background
Successful reconstruction of CT images depends on algorithm development and software implementation. The algorithm development requires abundant numerical calculation functions, calculation results and programming visualization, and has low requirements on operation speed, so MATLAB language is mainly adopted at the stage; the software implementation stage pays attention to algorithm function implementation, the operation is efficient, the best state is to use the least language to operate for the least time to realize a complex function, and meanwhile, the software implementation stage can be compatible with other components, and the C++ language can meet the requirements of the software development stage. In the CT image reconstruction process, a large amount of image data is required to be processed for Unit Testing (UT), and two different languages and multiple data interactions take a large amount of time and labor to compare data, so that the correctness of the data in the program operation process is ensured, and the problem caused by reconstruction parameters or a certain step of input data error in the subsequent result Testing and verification process is reduced.
Conventionally, in the development process of a CT image reconstruction algorithm, a developer performs optimization processing on scanned image data based on MATLAB language to obtain a high-quality image, and meanwhile, the unit test and the system test of the function of c++ development are transferred to software function realization personnel to input information such as reconstruction parameters and input data, so that whether the algorithm function is realized or not is verified, whether the performance meets the requirement or not is verified, and meanwhile, the software developer is required to perform corresponding test on the algorithm to prevent the algorithm from being changed arbitrarily, so that the two personnel need to exchange data information for multiple times, and data deviation is generated due to the exchange. In summary, the conventional method stores the running data of the algorithm in steps or directly debugs and verifies the current data, so that the operation is complex, the overall algorithm structure of the two parties is disordered, data transmission errors are easy to occur, and the time is long.
Disclosure of Invention
The application provides an operation data verification method, an operation data verification device, computer equipment and a readable storage medium, which can effectively reduce the complexity of data comparison in the algorithm development and software implementation stages and can improve the comparison efficiency and accuracy.
A method of operating data validation, the method comprising:
standard data of an algorithm development program is obtained;
running a complete software implementation program to obtain running data, and storing the running data in a text form;
And comparing the running data with the standard data, and verifying the software implementation program.
In one embodiment, running the complete software implementation program to obtain the operational data includes:
Initializing and setting a pre-stored function in a software implementation program;
setting a keyword of the pre-stored function, and adjusting a default value of the pre-stored function to be a first numerical value;
And running the complete software implementation program, recording and storing running data in the running process of the software implementation program by utilizing a pre-storage function.
In one embodiment, the operational data is stored in XML format.
In one embodiment, comparing the operational data to the standard data, verifying the software implementation includes: the standard data comprises input data, output data and operation parameters; the operation data comprises input data, output data and operation parameters;
Comparing the input data of the operation data with the input data of the standard data;
comparing the output data of the operation data with the output data of the standard data;
comparing the operation parameters of the operation data with the operation parameters of the standard data;
And verifying the software implementation program according to the comparison result.
In an embodiment, after verifying the software implementation program according to the comparison result, the method further includes: the software implemented program includes a plurality of sub-functions;
if the verification result of the software implementation program is an error, independently operating all the sub-functions, and acquiring operation data of the corresponding sub-functions;
and determining the sub-functions causing the software implementation program errors according to the operation data of all the sub-functions.
In an embodiment, after verifying the software implementation program according to the comparison result, the method further includes: the software implemented program includes a plurality of sub-functions;
If the verification result of the software implementation program is an error, standard data of algorithm development programs corresponding to all sub-functions are obtained;
inputting the standard data into corresponding subfunctions, and determining the subfunctions causing the software implementation program errors.
In an embodiment, after verifying the software implementation program according to the comparison result, the method further includes:
And if the verification result of the software implementation program is correct, adjusting the default value of the pre-stored function in the software implementation program to be a second numerical value.
An operational data verification apparatus, the apparatus comprising:
The acquisition module is used for acquiring standard data of the algorithm development program;
the running module is used for running the complete software implementation program to obtain running data and storing the running data in a text form;
And the comparison module is used for comparing the operation data with the standard data and verifying the software implementation program.
A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the above method when executing the computer program.
A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor realizes the steps of the above-mentioned method.
The method, the device, the computer equipment and the readable storage medium for verifying the operation data provided by the embodiment of the application comprise the steps of obtaining standard data of an algorithm development program; running a complete software implementation program to obtain running data, and storing the running data in a text form; and comparing the running data with the standard data, and verifying the software implementation program. According to the operation data verification method, the program is realized by one-time operation of complete software, and the operation data is stored in the text form, so that the stored data text can be compared with standard data, and the comparison efficiency and accuracy are improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of verifying operational data according to an embodiment;
FIG. 2 is a flow chart of a method for acquiring operational data for running a complete software implementation program according to one embodiment;
FIG. 3 is a flow chart comparing the operational data with the standard data according to one embodiment;
FIG. 4 is a block diagram of an embodiment of an operational data verification device;
Fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order that the above objects, features and advantages of the application will be readily understood, a more particular description of the application will be rendered by reference to the appended drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, and the preferred embodiments of the present application are presented in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. The present application may be embodied in many other forms than described herein and similarly modified by those skilled in the art without departing from the spirit of the application, so that the application is not limited to the specific embodiments disclosed below.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise. In the description of the present application, the meaning of "several" means at least one, such as one, two, etc., unless specifically defined otherwise.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Fig. 1 is a flowchart of an operation data verification method according to an embodiment, as shown in fig. 1, the operation data verification method includes steps 110 to 130, wherein:
step 110, standard data of the algorithm development program is obtained.
Step 120, running the complete software implementation program to obtain running data, and storing the running data in text form.
The application is illustrated by using C++ to develop algorithm program and MATLAB as algorithm research, wherein MATLAB mainly provides some data to check image quality and the like. After the algorithm program is developed, the C++ executes the algorithm program by acquiring standard data provided by MATLAB so as to verify the algorithm program. Specifically, the standard data provided by MATLAB include: input data, operating parameters, and output data. And C++ operates a complete software implementation program by taking input data and operation parameters provided by MATLAB as initial parameters and data, and stores all operation data obtained after the operation is completed in a text form.
And 130, comparing the running data with the standard data, and verifying the software implementation program.
When the method is compared with standard data generated by MATLAB, the operation data text generated by C++ is only required to be compared with the standard data. In the embodiment, the software realizes the one-time operation of the program, the obtained all operation data direct generation file is compared with the standard data generated by MATLAB, single-step operation check contents in the program are not required to be followed and then are compared with MATLAB results one by one, the program debugging time is shortened, and therefore the failure problem caused by input item errors can be rapidly eliminated.
The operation data verification method provided by the embodiment comprises the steps of obtaining standard data of an algorithm development program; running a complete software implementation program to obtain running data, and storing the running data in a text form; and comparing the running data with the standard data, and verifying the software implementation program. According to the running data verification method, the running data is stored in a text form through one-time running of the complete software implementation program, so that the comparison between the file and the program can be converted into the comparison between the file and the file, the running data obtained by manually debugging the program is converted into the automatic generation running data, and the comparison efficiency and accuracy are improved.
In one embodiment, the operational data is stored in XML format.
Writing a record code and an interface frame in C++, recording a plurality of parameters and input and output data of a software implementation program function into an XML file, automatically generating the XML file containing the parameters and the data paths and related input and output data by running a program, and comparing whether the contents of parameter values, input data and the like are correct or not with the file generated by an algorithm group in the later stage, so as to eliminate image reconstruction failure caused by input errors in the initial stage or data transmission errors in the running process of a scanning protocol. Reading parameters and input data in XML to a program can execute the complete program to generate a result, and comparing the generated result with a standard result generated after MATLAB operation is completed to verify the software implementation program, wherein the process can be automatically performed in a C++ program or manually completed for data comparison.
In one embodiment, running the complete software implementation program to obtain the operational data includes steps 210 through 230, wherein:
Step 210, initializing and setting a pre-stored function in the software implementation program.
Step 220, setting a keyword of the pre-stored function, and adjusting a default value of the pre-stored function to a first value.
And 230, running the complete software implementation program, and recording and storing running data in the running process of the software implementation program by utilizing a pre-storage function.
The pre-storage function can be preset in the C++ program, and initial parameters and operation data are recorded and stored through a framework of the pre-storage function.
Specifically, the framework of the pre-stored function includes initialization settings, switch default settings, parameter storage, and data storage. The key words of the pre-stored functions are parameter names, and different parameter names define different meanings. The switch default values include two states, on (True) and off (False). In this embodiment, when the default value of the switch is the first value True, the pre-stored function may be operated (stored or read data), and when the default value of the switch is the second value False, the operation of the pre-stored function is prohibited, so as to prevent the performance of the algorithm implementation from being affected.
The present embodiment is described taking a metal artifact reconstruction algorithm (MAC) as an example. In the development process, the required parameters are close to 50, including float, int, array, enum and other types, and meanwhile, a plurality of function interfaces are required for data interaction, so that the data are not easy to execute no matter the developer performs self-verification on the data or interacts with algorithm personnel. By utilizing the pre-stored function provided by the application, the initial data and the operation data are recorded to form automatic comparison, so that the operation of developers on the data is convenient, and the efficiency and the accuracy of the data comparison are improved. The pre-stored function of the MAC algorithm is as follows:
a. initializing an object ParaRecordXML Obj;
b. setting a function default bRecord =true;
c. Setting a keyword obj.setpath ("MAC");
d. storing a parameter obj. Insert (MakePair (fMFov));
Obj.insert(MakePair(eBpTypes));……
e. Store data obj. Insert (STRINGPARA (PORIIMG), (char x) pOriImg, iViewSize);
f. storing the above parameters and data paths as XML format obj.
The data path specifically refers to a data path of input data and an execution result, and the C++ program can acquire the input data and the execution result of the software implementation program by reading the data path.
The framework of the pre-storage function provided by the application is used in the C++ program, and the XML file and the data in the dat format generated after the program is operated are stored in a certain position in a local disk, for example, D: \ ReconPara \and the XML file contains parameters and data paths (D: \ ReconPara \MAC. Dat) required by the algorithm function. The algorithm group provides parameters and input and output results (corresponding to content in C++) in MATLAB, software implementation personnel can use parameter values and data in XML obtained by C++ to compare and verify with data provided by MATLAB (MATLAB provides a MATLAB format file containing parameter values and input and output data, but MATLAB implementation algorithm takes longer, has poor flexibility with other language interfaces and the like, and is not suitable for being used as a function implementation language).
In one embodiment, the standard data includes input data, output data, and operating parameters; the operation data comprises input data, output data and operation parameters; comparing the operational data with the standard data, verifying the software implementation includes steps 310 to 340, wherein:
step 310, comparing the input data of the operation data with the input data of the standard data;
step 320, comparing the output data of the operation data with the output data of the standard data;
step 330, comparing the operation parameters of the operation data with the operation parameters of the standard data;
And step 340, verifying the software implementation program according to the comparison result.
The comparison method in this embodiment has two implementation modes: 1. writing a record code in the C++ code, and comparing the content required by the running program record with the running data of MATLAB; 2. and comparing the read operation data of the MATLAB with the operation data generated by the MATLAB.
The first implementation mode is to check the contents in the two files manually to see whether the two files are wrong, and the comparison method is suitable for the condition that parameters are relatively few. The manual check is only to open two files for comparison, so that the time for running the program is shorter than that of the program, and the manual check is more convenient.
The second implementation mode is suitable for the condition that a large number of parameters exist, manual comparison can be disordered due to the fact that the parameters are more, the program is adopted for reading, and automatic comparison is more accurate.
The data reading process by adopting the program mainly uses an XML file to obtain the specific value of the parameter and the data path, and further finds the correct and positioning problems of the data operation program verification algorithm, the data and the like according to the path. The specific implementation framework is as follows:
a. Initializing an object ParaReadXml Obj;
b. setting a read XML file path obj. Setpath ("D: \ ReconPara \MAC. XML");
c. get (GetPara (t_ MetDist)) parameters and input data path obj;
std::string RawPath=“”;Obj.Get(StringPara(pOriImg),RawPath)。
The parameters and input data required by the algorithm can be obtained through the codes, namely, the initialization process in the C++ program is completed, then the program is executed to reconstruct the image, whether the generated image is correct (whether the correctness of the XML file content is checked, whether the positioning failure cause is the initialization parameters and data errors) or whether the algorithm function is correctly realized is verified.
In an embodiment, after verifying the software implementation program according to the comparison result, the method further includes: the software implemented program includes a plurality of sub-functions;
if the verification result of the software implementation program is an error, independently operating all the sub-functions, and acquiring operation data of the corresponding sub-functions;
and determining the sub-functions causing the software implementation program errors according to the operation data of all the sub-functions.
In the image scanning reconstruction protocol of CT, a plurality of integrated functional functions are called according to a specific topological structure to realize image reconstruction, and when the reconstructed image is wrong or the reconstruction function cannot be realized, it cannot be directly judged which sub-function (Functor) has parameters or data errors, and because the method of constructing functions by both sides is complex and belongs to different development categories, it is necessary for algorithm developers and software realization personnel to participate in searching error sources at the same time. Functor is a module containing an algorithm, which can be understood as that a layer of interface is packaged outside the algorithm for transmitting data, so that integration with a plurality of Functor of external interaction , can be better achieved, and the complete image reconstruction process of the image can be completed.
In the CT reconstruction scanning protocol, if a reconstruction task fails, namely, an error occurs in the comparison result of the C++ running data and the standard data, and when an investigation needs to be made about which Functor has the error, all the sub-functions can be independently run, the running data of the corresponding sub-functions are obtained, the running data of the sub-functions are stored into an XML file through a framework of a pre-stored function, and the XML file is compared with the standard data provided by MATLAB, so that the sub-functions causing the software to realize the program error are determined. Specifically, the preset storage switch of the function may be turned on in the composition algorithm of Functor, the input and output items of the subfunction are recorded, and whether the Functor generated image is correct or not is checked. If the subsequent reconstruction is problematic, the comparison method can be used for rapidly positioning and eliminating the problem of input item errors, and the problem solving efficiency is improved.
In an embodiment, after verifying the software implementation program according to the comparison result, the method further includes: the software implemented program includes a plurality of sub-functions;
If the verification result of the software implementation program is an error, standard data of algorithm development programs corresponding to all sub-functions are obtained;
inputting the standard data into corresponding subfunctions, and determining the subfunctions causing the software implementation program errors.
In the embodiment, standard data generated by MTALAB are read into Functor to check whether the Functor function is wrong, so that a failure problem is caused, and the operation of different working group members is convenient. If the subsequent reconstruction is problematic, the comparison method can be used for rapidly positioning and eliminating the problem of input item errors, and the problem solving efficiency is improved.
In an embodiment, after verifying the software implementation program according to the comparison result, the method further includes:
And if the verification result of the software implementation program is correct, adjusting the default value of the pre-stored function in the software implementation program to be a second numerical value.
After the function development is completed, the switch default value of the pre-stored function is set to be in a closed (False) state, so that the influence on the algorithm performance can be reduced.
In conclusion, MATLAB and C++ are automatically compared by utilizing a pre-stored function, and operation and positioning errors are performed on different Functor data in a reconstruction protocol, so that the operability of the CT integral reconstruction function data is improved, the complexity of contrast data of developers is effectively reduced, and the working efficiency and the accuracy of data contrast verification are improved.
It should be understood that, although the steps in the flowcharts of fig. 1-3 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or phases that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or phases are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or phases of other steps or other steps.
In one embodiment, as shown in fig. 4, there is provided an operation data authentication apparatus including: an acquisition module 410, a run module 420, and a contrast module 430, wherein:
An obtaining module 410, configured to obtain standard data of an algorithm development program;
The operation module 420 is configured to operate the complete software implementation program to obtain operation data, and store the operation data in a text form;
and a comparison module 430, configured to compare the running data with the standard data, and verify the software implementation program.
In one embodiment, the operation module 420 is configured to perform initialization setting on a prestored function in a software implementation program;
setting a keyword of the pre-stored function, and adjusting a default value of the pre-stored function to be a first numerical value;
And running the complete software implementation program, recording and storing running data in the running process of the software implementation program by utilizing a pre-storage function.
In one embodiment, the operational data is stored in XML format.
In one embodiment, the standard data includes input data, output data, and operating parameters; the operation data comprises input data, output data and operation parameters; the comparison module 430 is configured to compare the input data of the operation data with the input data of the standard data;
comparing the output data of the operation data with the output data of the standard data;
comparing the operation parameters of the operation data with the operation parameters of the standard data;
And verifying the software implementation program according to the comparison result.
In one embodiment, the software implemented program includes a plurality of sub-functions; the operation module 420 is configured to operate all the sub-functions independently and obtain operation data of the corresponding sub-functions if the verification result of the software implementation program is an error;
and determining the sub-functions causing the software implementation program errors according to the operation data of all the sub-functions.
In one embodiment, the software implemented program includes a plurality of sub-functions; the operation module 420 is configured to obtain standard data of the algorithm development program corresponding to all the sub-functions if the verification result of the software implementation program is an error;
inputting the standard data into corresponding subfunctions, and determining the subfunctions causing the software implementation program errors.
In an embodiment, the operation data verification device further includes an adjustment module, after verifying the software implementation program according to the comparison result, the adjustment module is configured to adjust a default value of the prestored function in the software implementation program to a second value if the verification result of the software implementation program is correct.
The operation data verification device provided by the embodiment of the application comprises: the acquisition module 410, the operation module 420 and the comparison module 430 acquire standard data of the algorithm development program through the acquisition module 410; running the complete software implementation program through the running module 420 to obtain running data, and storing the running data in a text form; the software implementation is verified by comparing the operating data with the standard data by the comparison module 430. The running data verification device realizes a program by running complete software at one time and stores the running data in a text form, so that the stored data text can be compared with standard data, and the comparison efficiency and accuracy are improved.
For specific limitations on the operation data verification device, reference may be made to the above limitation on the operation data verification method, and no further description is given here. The above-described respective modules in the operation data authentication device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of operating data validation. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
standard data of an algorithm development program is obtained;
running a complete software implementation program to obtain running data, and storing the running data in a text form;
And comparing the running data with the standard data, and verifying the software implementation program.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
standard data of an algorithm development program is obtained;
running a complete software implementation program to obtain running data, and storing the running data in a text form;
And comparing the running data with the standard data, and verifying the software implementation program.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (8)

1. A method of operating data validation, the method comprising:
standard data of an algorithm development program is obtained;
running a complete software implementation program to obtain running data, and storing the running data in a text form;
the method for acquiring the operation data by the complete software implementation program comprises the following steps: presetting a pre-stored function in a software implementation program, wherein a framework of the pre-stored function comprises initialization setting, switch default setting, parameter storage and data storage; initializing and setting the prestored function in the software implementation program; setting a keyword of the pre-stored function, and adjusting a switch default value of the pre-stored function to a first numerical value; running the complete software implementation program, and recording and storing initial parameters and running data in the running process of the software implementation program through the framework of the pre-stored function; when the switch default value of the pre-storage function is the first numerical value, the pre-storage function can be operated;
Comparing the operation data with the standard data, and verifying the software implementation program; if the verification result of the software implementation program is correct, adjusting a switch default value of the pre-stored function in the software implementation program to a second numerical value, and prohibiting the operation of the pre-stored function; the running data corresponds to the C++ language used in the software implementation process, and the standard data corresponds to the MATLAB language used in the algorithm development process.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
The operational data is stored in XML format.
3. The method of claim 1, wherein comparing the operational data to the standard data, validating the software implemented program comprises: the standard data comprises input data, output data and operation parameters; the operation data comprises input data, output data and operation parameters;
Comparing the input data of the operation data with the input data of the standard data;
comparing the output data of the operation data with the output data of the standard data;
comparing the operation parameters of the operation data with the operation parameters of the standard data;
And verifying the software implementation program according to the comparison result.
4. A method according to claim 3, wherein said verifying said software implemented program based on the comparison result further comprises: the software implemented program includes a plurality of sub-functions;
if the verification result of the software implementation program is an error, independently operating all the sub-functions, and acquiring operation data of the corresponding sub-functions;
and determining the sub-functions causing the software implementation program errors according to the operation data of all the sub-functions.
5. A method according to claim 3, wherein said verifying said software implemented program based on the comparison result further comprises: the software implemented program includes a plurality of sub-functions;
If the verification result of the software implementation program is an error, standard data of algorithm development programs corresponding to all sub-functions are obtained;
inputting the standard data into corresponding subfunctions, and determining the subfunctions causing the software implementation program errors.
6. An operational data verification device, the device comprising:
The acquisition module is used for acquiring standard data of the algorithm development program;
the running module is used for running the complete software implementation program to obtain running data and storing the running data in a text form;
The operation module is also used for presetting a pre-stored function in a software implementation program, and the framework of the pre-stored function comprises initialization setting, switch default setting, parameter storage and data storage; initializing and setting the prestored function in the software implementation program; setting a keyword of the pre-stored function, and adjusting a switch default value of the pre-stored function to a first numerical value; running the complete software implementation program, and recording and storing initial parameters and running data in the running process of the software implementation program through the framework of the pre-stored function; when the switch default value of the pre-storage function is the first numerical value, the pre-storage function can be operated;
The comparison module is used for comparing the operation data with the standard data and verifying the software implementation program; if the verification result of the software implementation program is correct, adjusting a switch default value of the pre-stored function in the software implementation program to a second numerical value, and prohibiting the operation of the pre-stored function; the running data corresponds to the C++ language used in the software implementation process, and the standard data corresponds to the MATLAB language used in the algorithm development process.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
CN201910978756.6A 2019-10-15 2019-10-15 Method, apparatus, computer device and readable storage medium for verifying operation data Active CN110737985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910978756.6A CN110737985B (en) 2019-10-15 2019-10-15 Method, apparatus, computer device and readable storage medium for verifying operation data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910978756.6A CN110737985B (en) 2019-10-15 2019-10-15 Method, apparatus, computer device and readable storage medium for verifying operation data

Publications (2)

Publication Number Publication Date
CN110737985A CN110737985A (en) 2020-01-31
CN110737985B true CN110737985B (en) 2024-07-16

Family

ID=69269013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910978756.6A Active CN110737985B (en) 2019-10-15 2019-10-15 Method, apparatus, computer device and readable storage medium for verifying operation data

Country Status (1)

Country Link
CN (1) CN110737985B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112560393B (en) * 2020-12-17 2023-01-24 中科芯云微电子科技有限公司 Comparison verification method and device of EDA software tool
CN113907776B (en) * 2021-10-13 2024-04-23 武汉联影生命科学仪器有限公司 Medical equipment component debugging system, device and method and electronic equipment
CN117436391B (en) * 2023-12-21 2024-03-26 四川思凌科微电子有限公司 Method for joint simulation of algorithm and hardware

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853660A (en) * 2013-12-30 2014-06-11 中山大学深圳研究院 Component-oriented model-based software construction and verification method
CN109582559A (en) * 2018-09-28 2019-04-05 阿里巴巴集团控股有限公司 Verification method, device, electronic equipment and the storage medium of system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NL9002460A (en) * 1990-11-09 1992-06-01 Tech Force B V METHOD FOR ANALYZING AND FORECASTING A PROGRAM DEVELOPMENT PROCESS
SE522408C2 (en) * 2000-04-27 2004-02-10 Microsoft Corp Computer program and procedure for automated testing of a computer's functionality
EP1274013A1 (en) * 2001-07-03 2003-01-08 Hewlett-Packard Company Process monitor module
EP2626784A1 (en) * 2012-02-09 2013-08-14 MIMOON GmbH Method and apparatus for automated MATLAB interfacing
CN104239219B (en) * 2014-10-21 2017-05-03 中国科学院软件研究所 Software defect positioning technology on-line evaluating and experimenting platform and method based on coverage
CN104331658A (en) * 2014-11-14 2015-02-04 北京视博数字电视科技有限公司 Installing verification method for intelligent terminal application program and system
CN105808731A (en) * 2016-03-09 2016-07-27 北京小米移动软件有限公司 Data storage method and device
CN108228467B (en) * 2018-01-30 2021-07-13 北京航天长征飞行器研究所 Embedded flight control software algorithm rapid verification method and system
CN108776640A (en) * 2018-05-07 2018-11-09 深圳壹账通智能科技有限公司 Distributed test method, device, computer equipment and storage medium
CN109492197A (en) * 2018-09-18 2019-03-19 深圳壹账通智能科技有限公司 The file information comparison method, device, computer equipment and storage medium
CN109800152A (en) * 2018-12-14 2019-05-24 平安普惠企业管理有限公司 A kind of automated testing method and terminal device
CN110069415B (en) * 2019-04-28 2023-03-31 苏州科达科技股份有限公司 Software integrity checking and software testing method used in software testing process

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853660A (en) * 2013-12-30 2014-06-11 中山大学深圳研究院 Component-oriented model-based software construction and verification method
CN109582559A (en) * 2018-09-28 2019-04-05 阿里巴巴集团控股有限公司 Verification method, device, electronic equipment and the storage medium of system

Also Published As

Publication number Publication date
CN110737985A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN110737985B (en) Method, apparatus, computer device and readable storage medium for verifying operation data
US9740586B2 (en) Flexible configuration and control of a testing system
US7272752B2 (en) Method and system for integrating test coverage measurements with model based test generation
CN112131829A (en) Verification method, system and related device of chip register
JP2010539576A (en) Method for automatic script generation for testing the validity of operational software of an airborne system and device for implementing the method
JP2009087354A (en) Automatic test generation system and method for web application
JP7309306B2 (en) Formal verification method, system, computer equipment and readable storage medium for certificate storage smart contract
CN109766264A (en) Method of calibration, device, computer equipment and the storage medium of interface parameters
CN114895935A (en) Method and device for flashing vehicle ECU, electronic equipment and storage medium
CN113094251A (en) Embedded system testing method and device, computer equipment and storage medium
CN110347588A (en) Software verification method, device, computer equipment and storage medium
CN112463633B (en) Method, device, equipment and medium for checking address decoding of on-chip memory
US8037357B2 (en) System and method for generating test job control language files
CN110633213B (en) Unit test method, unit test device, computer equipment and storage medium
CN116521538A (en) Automatic testing method and device for command line interface, electronic equipment and storage medium
Talib Testing closed source software: computer forensic tool case study
CN113094281B (en) Test method and device for hybrid App
CN114528213A (en) Automatic baffle plate testing method, device, equipment and storage medium
JP2022050315A (en) Chip, design method therefor, and failure analysis method
Wilsdon et al. Validation of forensic computing software utilizing Black Box testing techniques
CN117631655B (en) Secure communication method, apparatus, device and storage medium for vehicle diagnosis
JP2005174045A (en) Source program conversion device, source program conversion method, source program conversion program and program recording medium
CN114996249B (en) Data processing method, device, electronic equipment, storage medium and product
Kapular et al. Testing of Model Verifier within Software Development in Automotive Industry
CN116594883A (en) Code testing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 201807 Shanghai City, north of the city of Jiading District Road No. 2258

Applicant after: Shanghai Lianying Medical Technology Co.,Ltd.

Address before: 201807 Shanghai City, north of the city of Jiading District Road No. 2258

Applicant before: SHANGHAI UNITED IMAGING HEALTHCARE Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant