Data processing method and apparatus, device, storage medium and program product

By setting conversion conditions on the interactive interface, the data transmission between modules is automatically adjusted, solving the problem of cumbersome data transmission between modules in the existing technology and realizing flexible and rapid data adjustment.

WO2026032093A1PCT designated stage Publication Date: 2026-02-12HANGZHOU HIKROBOT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/111219
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-08-09
Filing Date
2025-07-29
Publication Date
2026-02-12

AI Technical Summary

Technical Problem

In existing technologies, data transfer between modules requires manually writing new modules and integrating them into the released software, which makes adjustments cumbersome and difficult to respond flexibly to business needs.

Method used

By setting conversion conditions on the interactive interface and recording them in the configuration information of the functional modules, the data transmission between modules is automatically adjusted to achieve data conversion.

Benefits of technology

It improves the flexibility of data transmission between modules, eliminating the need to manually write new modules and update software, and enabling rapid response to business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025111219_12022026_PF_FP_ABST
    Figure CN2025111219_12022026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a data processing method and apparatus, a device, a storage medium and a program product, the method comprising: obtaining conversion conditions set for data of functional modules by a user on an interactive interface; in response to calling a first functional module, if data to be converted is data output by the first functional module, after obtaining data output by the first functional module, converting the data according to a conversion condition; and if data to be converted is data input into the first functional module, after determining data input into the first functional module, converting the data according to the conversion condition. When data transmitted between modules needs to be adjusted, a user simply needs to set a conversion condition on an interactive interface, and then, during data transmission between the modules, the electronic device can automatically convert data to be transmitted between the modules on the basis of the conversion condition set by the user, thereby improving the flexibility in adjusting data transmitted between modules.
Need to check novelty before this filing date? Find Prior Art

Description

A data processing method, device, equipment, storage medium and program product

[0001] The present application claims priority to the Chinese patent application No. 202411098948.5, filed on August 9, 2024, and entitled "A data processing method, device, equipment, storage medium and program product", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the technical field of computer software, in particular to a data processing method, device, equipment, storage medium and program product. BACKGROUND

[0003] In the data processing software, a plurality of modules are usually included, wherein each module implements a corresponding function, and these modules cooperate with each other in a certain logical order, so as to implement a specific data processing flow. For example, the data processing software includes an image conversion module and a positioning module, wherein the image conversion module as a preceding module can convert a color image into a black and white image, and the positioning module as a subsequent module can obtain the black and white image by subscribing to the data output by the image conversion module, and then perform positioning based on the black and white image, so as to implement a data processing flow of positioning key information in the image.

[0004] However, in some scenarios, the output data of the preceding module cannot be directly used by the subsequent module, and the output data needs to be reprocessed before being input into the subsequent module. The existing method is that the developer manually writes a new module for reprocessing the output data of the preceding module by using a script language, and then inserts the new module between the preceding module and the subsequent module.

[0005] However, this method requires the developer to manually write a new module according to the reprocessing mode of the data, and integrate the new module into the published software, and then publish an updated version of the software to implement the change. This process is tedious and lengthy, cannot flexibly adjust the data transmitted between the modules, and is difficult to quickly respond to the changing business requirements. SUMMARY

[0006] The purpose of the embodiments of the present application is to provide a data processing method, device, equipment, storage medium and program product to flexibly adjust the data transmitted between the modules. The specific technical solutions are as follows:

[0007] In a first aspect, the embodiments of the present application provide a data processing method, which comprises:

[0008] In response to a user's conversion condition setting operation on the interactive interface, a conversion condition set by the user on the interactive interface for a function module is obtained, and the conversion condition is recorded in configuration information of the function module;

[0009] In response to calling the first function module, if the data to be converted by the first conversion condition is data output by the first function module, after obtaining the first data output by the first function module, the first data is converted according to the first conversion condition, and the converted first data is input into a second function module, wherein the first conversion condition is a conversion condition recorded in configuration information of the first function module, and the second function module subscribes to data output by the first function module.

[0010] If the data to be converted by the first conversion condition is data input into the first function module, after determining that data output by a third function module is second data input into the first function module, the second data is converted according to the first conversion condition, and the converted second data is input into the first function module, wherein the first function module subscribes to data output by the third function module.

[0011] Optionally, the second data includes input data of the first function module and / or a module parameter, the input data is data to be processed by the first function module, and the module parameter is a parameter inside the first function module for configuring a data processing mode.

[0012] Optionally, the first conversion condition is an expression, and the conversion of the first data according to the first conversion condition and the input of the converted first data into the second function module include:

[0013] operation of the first data according to the expression, and input of an operation result into the second function module;

[0014] The conversion of the second data according to the first conversion condition and the input of the converted second data into the first function module include:

[0015] operation of the second data according to the expression, and input of an operation result into the first function module.

[0016] Optionally, the number of the second function modules is a plurality, and the input of the converted first data into the second function module includes:

[0017] The converted first data is input into each second function module.

[0018] Optionally, before the converting the first data according to the first conversion condition, the method further comprises:

[0019] determining whether the data output by the first function module currently acquired is same as the data output by the first function module acquired last time; if not, performing the converting the first data according to the first conversion condition; if yes, inputting the converted first data obtained last time into the second function module;

[0020] and / or,

[0021] before the converting the second data according to the first conversion condition, the method further comprises:

[0022] determining whether the data input into the first function module currently determined is same as the data input into the first function module determined last time; if not, performing the converting the second data according to the first conversion condition; if yes, inputting the converted second data obtained last time into the first function module.

[0023] Optionally, the converting the first data according to the first conversion condition and inputting the converted first data into the second function module after obtaining the first data output by the first function module comprises:

[0024] detecting that the first data output by the first function module is newly added in the data storage area, converting the first data according to the first conversion condition, and storing the converted first data into the data storage area, so as to trigger the second function module to acquire the converted first data.

[0025] the converting the second data according to the first conversion condition and inputting the converted second data into the first function module after determining the data output by the third function module as the second data input into the first function module comprises:

[0026] detecting that the data output by the third function module is newly added in the data storage area, determining the data output by the third function module as the second data input into the first function module, converting the second data according to the first conversion condition, and storing the converted second data into the data storage area, so as to trigger the first function module to acquire the converted second data.

[0027] In a second aspect, an embodiment of the present application provides a data processing device, the device comprising:

[0028] The setting unit is configured to, in response to a user's conversion condition setting operation on an interactive interface, obtain a conversion condition set by the user on the interactive interface for data of a function module, and record the conversion condition in configuration information of the function module.

[0029] The first data conversion unit is configured to, in response to invocation of the first function module, in a case where the data to be converted by the first conversion condition is data output by the first function module, after obtaining first data output by the first function module, convert the first data according to the first conversion condition, and input the converted first data into a second function module, wherein the first conversion condition is a conversion condition recorded in configuration information of the first function module, and the second function module subscribes to data output by the first function module.

[0030] The second data conversion unit is configured to, in response to invocation of the first function module, in a case where the data to be converted by the first conversion condition is data input into the first function module, after determining that data output by a third function module is second data input into the first function module, convert the second data according to the first conversion condition, and input the converted second data into the first function module, wherein the first function module subscribes to data output by the third function module.

[0031] Optionally, the second data includes input data of the first function module and / or a module parameter, the input data being data to be processed by the first function module, and the module parameter being a parameter inside the first function module for configuring a data processing mode.

[0032] Optionally, the first conversion condition is an expression; the first data conversion unit is specifically configured to perform operation on the first data according to the expression, and input an operation result into a second function module; and the second data conversion unit is specifically configured to perform operation on the second data according to the expression, and input an operation result into the first function module.

[0033] Optionally, the number of the second function modules is a plurality, and the first data conversion unit is specifically configured to input the converted first data into each second function module.

[0034] Optionally, the apparatus further comprises a first judging unit configured to judge whether the data output by the first function module currently acquired is the same as the data output by the first function module acquired last time; if not, triggering the first data conversion unit; if yes, triggering a first data input unit; the first data input unit is configured to input the converted first data obtained by conversion last time into a second function module; a second judging unit is configured to judge whether the data determined to be input into the first function module currently is the same as the data determined to be input into the first function module last time; if not, triggering the second data conversion unit; if yes, triggering a second data input unit; the second data input unit is configured to input the converted second data obtained by conversion last time into the first function module.

[0035] Optionally, the first data conversion unit is specifically configured to, when detecting that the first data output by the first function module is newly stored in the data storage area, convert the first data according to the first conversion condition, and store the converted first data into the data storage area, so as to trigger the second function module to acquire the converted first data; the second data conversion unit is specifically configured to, when detecting that the data output by the third function module is newly stored in the data storage area, determine the data output by the third function module as the second data input into the first function module, convert the second data according to the first conversion condition, and store the converted second data into the data storage area, so as to trigger the first function module to acquire the converted second data.

[0036] In a third aspect, an electronic device is provided, comprising:

[0037] a memory configured to store a computer program;

[0038] a processor configured to execute the program stored in the memory, and implement the method in any of the first aspect.

[0039] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method in any of the first aspect.

[0040] In a fifth aspect, a computer program product is provided, and the computer program product comprises a computer program, and the computer program is executed by a processor to implement the method in any of the first aspect.

[0041] The embodiments of the present application have the following beneficial effects:

[0042] In the scheme provided by the embodiments of the present application, in response to a user's conversion condition setting operation on an interactive interface, a conversion condition set by the user on the interactive interface for a function module is obtained, and the conversion condition is recorded in configuration information of the function module; in response to calling a first function module, if data to be converted by the first conversion condition is data output by the first function module, after obtaining first data output by the first function module, the first data is converted according to the first conversion condition, and the converted first data is input into a second function module, wherein the first conversion condition is a conversion condition recorded in the configuration information of the first function module, and the second function module subscribes to data output by the first function module; if data to be converted by the first conversion condition is data input into the first function module, after determining data output by a third function module as second data input into the first function module, the second data is converted according to the first conversion condition, and the converted second data is input into the first function module, wherein the first function module subscribes to data output by the third function module. When it is necessary to adjust data transmitted between modules, the user can set a corresponding conversion condition on the interactive interface, and then the electronic device can record the conversion condition in the configuration information of the module, and automatically convert data to be transmitted between modules by the conversion condition recorded in the configuration information when data is transmitted between modules. In this process, the user only needs to set a corresponding conversion condition on the interactive interface to adjust the data transmitted between modules, without manually writing a new module, and without the need to integrate the new module into a published software version and publish an updated version of the software, so that the flexibility of adjusting the data transmitted between modules is greatly improved.

[0043] Of course, implementing any of the products or methods of the present application does not necessarily require achieving all the advantages described above at the same time. BRIEF DESCRIPTION OF DRAWINGS

[0044] The accompanying drawings, which are included to provide a further understanding of the present application, form a part of the present application and illustrate the illustrative embodiments of the present application and together with the description serve to explain the present application. The present application is not intended to be unduly limited by the illustrative embodiments and description.

[0045] FIG. 1 is a flow diagram of a data processing method provided by an embodiment of the present application;

[0046] FIG. 2a is a first schematic diagram of a conversion condition setting interface provided by an embodiment of the present application;

[0047] FIG. 2b is a second schematic diagram of a conversion condition setting interface provided by an embodiment of the present application;

[0048] FIG. 2c is a third schematic diagram of a conversion condition setting interface provided by an embodiment of the present application;

[0049] FIG. 3 is a schematic diagram of a data transmission method according to an embodiment of the present application;

[0050] FIG. 4 is a schematic diagram of a data processing method according to an embodiment of the present application;

[0051] FIG. 5 is a schematic diagram of another data processing method according to an embodiment of the present application;

[0052] FIG. 6 is a schematic diagram of a method of converting input data according to an embodiment of the present application;

[0053] FIG. 7 is a schematic diagram of a method of converting module parameters according to an embodiment of the present application;

[0054] FIG. 8 is a schematic diagram of a data processing method according to an embodiment of the present application;

[0055] FIG. 9 is a schematic diagram of a multi-module data transmission method according to an embodiment of the present application;

[0056] FIG. 10 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;

[0057] FIG. 11 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0058] The present application will be further described below in more detail with reference to the drawings and embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art belong to the scope of the present application.

[0059] In order to flexibly adjust the data transmitted between modules, the present application provides a data processing method, apparatus, electronic device, computer readable storage medium and computer program product. First, a data processing method provided by an embodiment of the present application is introduced.

[0060] The data processing method provided by the present application can be applied to any electronic device that needs to adjust the data transmitted between modules, for example, a terminal device, a server, etc., which are not limited here. In order to describe clearly, the electronic device is called electronic device hereinafter.

[0061] As shown in FIG. 1, a data processing method includes:

[0062] S101, in response to a user's conversion condition setting operation on an interactive interface, obtaining a conversion condition set by the user on the interactive interface for a function module, and recording the conversion condition in the configuration information of the function module.

[0063] S102, in response to calling the first function module, if the data to be converted by the first conversion condition is the data output by the first function module, after obtaining the first data output by the first function module, the first data is converted according to the first conversion condition, and the converted first data is input into the second function module.

[0064] The first conversion condition is a conversion condition recorded in configuration information of the first function module, and the second function module subscribes to the data output by the first function module.

[0065] S103, in response to calling the first function module, if the data to be converted by the first conversion condition is the data input into the first function module, after determining the data output by the third function module as the second data input into the first function module, the second data is converted according to the first conversion condition, and the converted second data is input into the first function module.

[0066] The first function module subscribes to the data output by the third function module.

[0067] In the scheme provided by the embodiments of the present application, when it is necessary to adjust the data transmitted between modules, the user can set the corresponding conversion condition on the interactive interface, and then the electronic device can record the conversion condition in the configuration information of the module, and automatically convert the data to be transmitted between modules by the conversion condition recorded in the configuration information when transmitting data between modules. In this process, the user only needs to set the corresponding conversion condition on the interactive interface to adjust the data transmitted between modules, without manually writing a new module, and without the need to integrate the new module into the published software version and publish the updated version of the software, so that the flexibility of adjusting the data transmitted between modules is greatly improved.

[0068] The electronic device can display the interactive interface to the user through its own screen or the screen of other devices in communication connection therewith, and the user can select the function module to be set among the function modules displayed on the interactive interface according to actual needs, and set the conversion condition for the data of the selected function module.

[0069] Taking FIGS. 2a-2c as an example, the electronic device can display the interactive interface of the “XX data processing software” shown in FIG. 2a to the user, and the interactive interface displays the first function module 201, the second function module 202 and the third function module 203. The user can select the function module to be set by clicking or other operations.

[0070] Assuming the user selects the first function module 201, the electronic device can further display a configuration interface of the first function module 201 shown in FIG. 2b to the user in the above-mentioned interactive interface, and the configuration interface can include an input source setting component 2011, through which the user can set which module output data the first function module 201 subscribes. As shown in FIG. 2b, the configuration interface can also include an input data setting component 2012 and an output data setting component 2013. When the user needs to adjust the data input into the first function module 201, the input data setting component 2012 can be selected by clicking or other operations. When the user needs to adjust the data output by the first function module 201, the output data setting component 2013 can be selected by clicking or other operations, so as to enter a conversion condition setting interface.

[0071] Assuming the user selects the input data setting component 2012, the electronic device can further display the conversion condition setting interface shown in FIG. 2c to the user in the above-mentioned interactive interface, and the user can set the conversion condition for the data of the first function module 201 through each button in the setting area 20121 in the conversion condition setting interface. In this process, the user can also view the conversion condition set by the user through the conversion condition display window 20122. Finally, the user can save the conversion condition set by the user for the data of the first function module 201 through the save button 20123. Of course, the user can also cancel the setting through the cancel button 20124.

[0072] In response to the conversion condition setting operation of the user on the above-mentioned interactive interface, the electronic device can obtain the conversion condition set by the user for the data of the function module on the interactive interface, and then the electronic device can record the conversion condition in the configuration information of the function module.

[0073] The following takes the first function module as an example to introduce the way in which the electronic device adjusts the data transmitted between the function modules in the embodiments of the present application:

[0074] Taking the scenario that the first function module 302 subscribes to the data output by the third function module 301, and the second function module 303 subscribes to the data output by the first function module 302 as an example. The third function module outputs data after data processing. After obtaining the data output by the third function module, the electronic device can determine that the first function module needs to be called to process the data output by the third function module according to the subscription relationship between the function modules. Correspondingly, the first function module also outputs data after data processing. After obtaining the data output by the first function module, the electronic device can determine that the second function module needs to be called to process the data output by the first function module according to the subscription relationship between the function modules.

[0075] When the electronic device determines that the first function module needs to be invoked, the electronic device can first determine whether the conversion condition is recorded in the configuration information of the first function module. If the conversion condition is not recorded in the configuration information, the electronic device can directly invoke the first function module to process the data output by the third function module, and send the data output by the first function module after processing to the second function module.

[0076] If the conversion condition is recorded in the configuration information, the electronic device can further determine whether the data to be converted by the conversion condition is the data output by the first function module or the data input into the first function module.

[0077] If the data to be converted by the conversion condition is the data output by the first function module, the electronic device can first invoke the first function module to process the data output by the third function module, and output corresponding data after processing. Then, the electronic device can convert the first data output by the first function module according to the first conversion condition recorded in the configuration information of the first function module, and update the data output by the first function module to the converted first data. Further, because the second function module subscribes to the data output by the first function module, the electronic device can also input the converted first data into the second function module.

[0078] As shown in FIG. 4, if the data to be converted by the conversion condition is the data output by the first function module 302, the electronic device can convert the first data output by the first function module 302 according to the first conversion condition after obtaining the first data, that is, “first data = first conversion condition (first data)”, and then input the converted first data into the second function module 303.

[0079] If the data to be converted by the conversion condition is the data input into the first function module, the electronic device can first convert the data output by the third function module (that is, the second data input into the first function module) according to the first conversion condition to obtain the converted second data. Then, the electronic device can invoke the first function module to process the converted second data, and output corresponding data after processing.

[0080] As shown in FIG. 5, if the data to be converted by the conversion condition is the data input into the first function module 302, the electronic device can first determine the data output by the third function module 301 as the second data input into the first function module 302 after obtaining the data, then convert the second data according to the first conversion condition, that is, “second data = first conversion condition (second data)”, and finally input the converted second data into the first function module 302.

[0081] In the scheme provided by the embodiments of the present application, when it is necessary to adjust the data transmitted between the modules, the user can set the corresponding conversion condition on the interactive interface, and then the electronic device can record the conversion condition in the configuration information of the function module, and automatically convert the data to be transmitted between the modules by the conversion condition recorded in the configuration information when the data is transmitted between the modules. In this process, the user only needs to set the corresponding conversion condition on the interactive interface to adjust the data transmitted between the modules, without manually writing a new module, and without the need to integrate the new module into the published software version and publish the updated version of the software, thus greatly improving the flexibility of adjusting the data transmitted between the modules.

[0082] As an implementation manner of the embodiments of the present application, the second data can include the input data and / or the module parameter of the first function module.

[0083] When the first function module subscribes to the data output by the third function module, the output data of the third function module can be used as the input data of the first function module, or the module parameter of the first function module can be modified according to the output data of the third function module.

[0084] For example, the third function module is a circle search module, and the first function module is a straight line search module. The first function module uses the output data of the third function module as the input data of the first function module, so as to further search for a straight line in the circle region searched by the third function module. For another example, the third function module is a vehicle type classification module, and the first function module is a defect detection module. The first function module modifies the module parameter of the first function module according to the output data of the third function module, so as to perform defect detection by using different thresholds for different vehicle types.

[0085] Therefore, the second data input into the first function module can be the input data of the first function module, or the module parameter of the first function module, or both the input data and the module parameter of the first function module. That is, the second data can include the input data and / or the module parameter of the first function module.

[0086] Correspondingly, as shown in FIG. 6, when the second data includes the input data of the first function module, the electronic device can implement the step S103 in the following manner when executing the step S103:

[0087] The electronic device can determine the data output by the third function module 301 as the input data of the first function module 302 to obtain second data after obtaining the data output by the third function module 301. Then the electronic device can convert the second data according to the first conversion condition to obtain converted second data, and update the input data of the first function module 302 to the converted second data, i.e., "input data = first conversion condition (second data)". Finally, the electronic device can call the data input interface 304 of the first function module 302 to input the converted second data into the first function module 302.

[0088] For example, the data output by the third function module is "100", and the first conversion condition is "IN (input) = IN + 100". After obtaining the data "100" output by the third function module, the electronic device can determine "100" as the input data of the first function module to obtain second data. Then the electronic device can convert the second data "100" according to the first conversion condition "IN = IN + 100" to obtain the converted second data "200", and update the input data of the first function module to "200". Finally, the electronic device can call the data input interface of the first function module to input "200" into the first function module.

[0089] Correspondingly, as shown in FIG. 7, when the second data includes the module parameters of the first function module, the electronic device can implement the above step S103 in the following manner when executing the above step S103:

[0090] The electronic device can determine the data output by the third function module 301 as the module parameters of the first function module 302 to obtain second data after obtaining the data output by the third function module 301. Then the electronic device can convert the second data according to the first conversion condition to obtain converted second data, and update the module parameters of the first function module 302 to the converted second data, i.e., "module parameters = first conversion condition (second data)". Finally, the electronic device can call the parameter configuration interface 305 of the first function module 302 to input the converted second data into the first function module 302.

[0091] For example, the third function module is a vehicle model detection module, and the data output by the third function module is "vehicle model A". The first conversion condition is "if IN=vehicle model A, then IN=90, and if IN=vehicle model B, then IN=95". After obtaining the data "vehicle model A" output by the third function module, the electronic device can determine the data "vehicle model A" as the input data of the first function module, and obtain the second data. Then, the electronic device can convert the second data "vehicle model A" according to the first conversion condition "if IN=vehicle model A, then IN=90, and if IN=vehicle model B, then IN=95", obtain the converted second data "90", and update the module parameter of the first function module to "90". Finally, the electronic device can call the parameter configuration interface of the first function module, and input "90" into the first function module.

[0092] In the scheme provided by the embodiments of the present application, the electronic device can convert the input data of the first function module according to the first conversion condition, so that the first function module can correctly process the data output by the third function module. The electronic device can also convert the module parameter of the first function module according to the first conversion condition, so as to dynamically adjust the parameter of the module according to real-time conditions, and enhance the flexibility and adaptability of the software composed of the function modules.

[0093] As an implementation manner of the embodiments of the present application, the first conversion condition can be an expression, and the conversion of the first data according to the first conversion condition and the input of the converted first data into the second function module can include:

[0094] performing operation on the first data according to the expression, and inputting the operation result into the second function module.

[0095] The conversion of the second data according to the first conversion condition and the input of the converted second data into the first function module can include:

[0096] performing operation on the second data according to the expression, and inputting the operation result into the first function module.

[0097] For example, the first function module is an ellipse finding module, and the second function module is a character recognition module. In the image shown in FIG. 8, because the ellipse region 801 and the character region 802 are located in different regions of the image, after the ellipse region in the image is determined by the first function module, the second function module cannot perform character recognition in the ellipse region. Therefore, the first conversion condition can be set in advance for the data output by the first function module, and the first conversion condition can include a first expression of adding a certain value to the horizontal coordinate of the center point of the ellipse region and a second expression of adding a certain value to the vertical coordinate of the center point of the ellipse region.

[0098] Further, after obtaining the coordinate of the center point of the elliptical region output by the first function module, the electronic device can convert the coordinate of the center point of the elliptical region according to the first expression and the second expression, so as to offset the coordinate of the center point of the elliptical region to the lower right, and obtain the coordinate of the center point of the character region. Further, the electronic device can input the coordinate of the center point of the character region into the second function module, so that the second function module determines the character region based on the coordinate of the center point of the character region, and performs character recognition in the character region, and obtains the character recognition result of "0518".

[0099] In the scheme provided by the embodiments of the present application, when it is necessary to adjust the data transmitted between modules, the user can set the corresponding expression on the interactive interface, and then the electronic device can automatically convert the data to be transmitted between modules when transmitting the data between modules.

[0100] As an implementation manner of the embodiments of the present application, the number of the second function modules can be multiple, and correspondingly, the input of the converted first data into the second function module can include:

[0101] The converted first data is respectively input into each second function module.

[0102] As shown in FIG. 9, after converting the first data output by the first function module 302 according to the first conversion condition, if there are multiple second function modules 303 subscribing to the data output by the first function module 302, the electronic device can respectively input the converted first data into each second function module 303.

[0103] In the scheme provided by the embodiments of the present application, when the user wants to adjust the data transmitted between the subscribed module and the subscribed module, and affect all the subscribed modules, the first conversion condition can be set on the data output by the subscribed module. In this way, after converting the data output by the subscribed module, the electronic device can respectively input the converted data into each subscribed module, so that each subscribed module can obtain the converted data. Correspondingly, when the user wants to adjust the data transmitted between the subscribed module and the subscribed module, and only affect a specific subscribed module, the first conversion condition can be set on the data input into the specific subscribed module. In this way, the electronic device does not convert the data output by the subscribed module, but converts the data according to the conversion condition corresponding to the specific subscribed module when the data is transmitted to the specific subscribed module. In this way, the user can set each subscribed module to receive the original data or the converted data according to the actual use demand, and can set different conversion conditions for different subscribed modules according to the actual use demand.

[0104] As an implementation of the embodiment of the present application, before the first data is converted according to the first conversion condition, the method can further include:

[0105] determining whether the data output by the first function module currently acquired is the same as the data output by the first function module acquired last time; if not, performing the step of converting the first data according to the first conversion condition; if yes, inputting the converted first data obtained last time into the second function module.

[0106] After the first conversion condition is added to the data output by the first function module, the electronic device needs to perform data conversion every time the data output by the first function module is acquired, and compared with the case where the first conversion condition is not added, because an additional calculation process is added, a certain time loss will occur.

[0107] On this basis, in order to minimize the time loss, before the first data is converted according to the first conversion condition, the electronic device can first determine whether the data output by the first function module currently acquired is the same as the data output by the first function module acquired last time. If yes, this time, the data conversion can not be performed, but the data obtained after the conversion last time can be directly input into the second function module for accelerated processing. If not, the step of converting the first data according to the first conversion condition can be performed to ensure that the data is converted.

[0108] Correspondingly, before the second data is converted according to the first conversion condition, the method can further include:

[0109] determining whether the data input into the first function module currently determined is the same as the data input into the first function module determined last time; if not, performing the step of converting the second data according to the first conversion condition; if yes, inputting the converted second data obtained last time into the first function module.

[0110] Similarly, after the first conversion condition is added to the data input into the first function module, the electronic device needs to perform data conversion every time the data input into the first function module is acquired, and compared with the case where the first conversion condition is not added, because an additional calculation process is added, a certain time loss will also occur.

[0111] On this basis, in order to minimize time loss, the electronic device can first determine whether the data currently determined to be input into the first function module is the same as the data last determined to be input into the first function module before converting the second data according to the first conversion condition. If the same, this time can no longer be converted, but can directly input the data obtained after the last conversion to the second function module for accelerated processing. If not, the step of converting the second data according to the first conversion condition can be performed to ensure that the data is converted.

[0112] In the scheme provided by the embodiments of the present application, the electronic device can first determine whether the data to be converted this time is the same as the data converted last time before converting the data according to the conversion condition. If the same, the data obtained after the last conversion is directly outputted to perform accelerated processing, thereby minimizing the time loss caused by introducing the conversion condition.

[0113] As an embodiment of the present application, the electronic device can run software, which can include a software framework and first, second and third function modules added on the basis of the software framework. The blackboard module in the software framework can provide a centralized data storage area, so that different function modules (such as the first, second and third function modules) can share and access each other's data, that is, the output data of the third function module can be stored in the data storage area for use by the first function module, and the output data of the first function module can also be stored in the data storage area for use by the second function module.

[0114] On this basis, after obtaining the first data output by the first function module, converting the first data according to the first conversion condition, and inputting the converted first data into the second function module, the above can include:

[0115] When detecting that the first data output by the first function module is added to the data storage area, converting the first data according to the first conversion condition, and storing the converted first data in the data storage area to trigger the second function module to obtain the converted first data.

[0116] The electronic device can determine whether a conversion condition is set in advance for the data output by the first function module when detecting that the data output by the first function module is added in the data storage area. If the conversion condition is set in advance, the electronic device can convert the first data output by the first function module according to the first conversion condition, store the converted first data in the data storage area, and update the data output by the first function module with the converted first data. After storing the converted first data, the electronic device can determine a second function module that subscribes to the converted first data according to a subscription relationship between the modules, and send notification information to the second function module to trigger the second function module to obtain the converted first data.

[0117] Similarly, after determining the data output by the third function module as the second data input into the first function module, converting the second data according to the first conversion condition, and inputting the converted second data into the first function module, the electronic device can include:

[0118] When detecting that the data output by the third function module is added in the data storage area, the electronic device can determine the data output by the third function module as the second data input into the first function module, convert the second data according to the first conversion condition, and store the converted second data in the data storage area to trigger the first function module to obtain the converted second data.

[0119] In the scheme provided by the embodiments of the present application, when the electronic device detects that new data is added in the data storage area and a conversion condition is set in advance for the new data, the electronic device can convert the data according to the conversion condition and update and store the converted data in the data storage area, thereby triggering the corresponding function module to obtain the converted data for subsequent processing.

[0120] Corresponding to the above data processing method, the embodiments of the present application also provide a data processing apparatus. The data processing apparatus provided by the embodiments of the present application will be introduced below.

[0121] As shown in FIG. 10, a data processing apparatus includes:

[0122] The setting unit 1010 is configured to, in response to a conversion condition setting operation of a user on an interactive interface, obtain a conversion condition set by the user on the interactive interface for data of a function module, and record the conversion condition in configuration information of the function module.

[0123] The first data conversion unit 1020 is configured to, in response to calling the first function module, in a case where the data to be converted according to the first conversion condition is the data output by the first function module, after obtaining the first data output by the first function module, converting the first data according to the first conversion condition, and inputting the converted first data into the second function module, wherein the first conversion condition is a conversion condition recorded in configuration information of the first function module, and the second function module subscribes to the data output by the first function module.

[0124] The second data conversion unit 1030 is configured to, in response to calling the first function module, in a case where the data to be converted according to the first conversion condition is the data input into the first function module, after determining the data output by the third function module as the second data input into the first function module, converting the second data according to the first conversion condition, and inputting the converted second data into the first function module, wherein the first function module subscribes to the data output by the third function module.

[0125] In the scheme provided by the embodiments of the present application, in response to a conversion condition setting operation of a user on an interactive interface, the conversion condition set by the user on the interactive interface for the data of a function module is obtained, and the conversion condition is recorded into configuration information of the function module; in response to calling the first function module, if the data to be converted according to the first conversion condition is the data output by the first function module, after obtaining the first data output by the first function module, the first data is converted according to the first conversion condition, and the converted first data is input into the second function module, wherein the first conversion condition is a conversion condition recorded in the configuration information of the first function module, and the second function module subscribes to the data output by the first function module; if the data to be converted according to the first conversion condition is the data input into the first function module, after determining the data output by the third function module as the second data input into the first function module, the second data is converted according to the first conversion condition, and the converted second data is input into the first function module, wherein the first function module subscribes to the data output by the third function module. When it is necessary to adjust the data transmitted between modules, the user can set the corresponding conversion condition on the interactive interface, and then the electronic device can record the conversion condition into the configuration information of the module, and automatically convert the data to be transmitted between modules by the conversion condition recorded in the configuration information when the data is transmitted between the modules. In this process, the user only needs to set the corresponding conversion condition on the interactive interface to adjust the data transmitted between the modules, without manually writing a new module, and without the need to integrate the new module into a published software version and publish an updated version of the software, so that the flexibility of adjusting the data transmitted between the modules is greatly improved.

[0126] As an implementation of the embodiment of the present application, the second data can include input data of the first function module and / or module parameters, the input data being data to be processed by the first function module, and the module parameters being parameters inside the first function module for configuring a data processing mode.

[0127] As an implementation of the embodiment of the present application, the first conversion condition can be an expression.

[0128] The first data conversion unit 1020 can be specifically configured to perform operation on the first data according to the expression, and input the operation result into the second function module.

[0129] The second data conversion unit 1030 can be specifically configured to perform operation on the second data according to the expression, and input the operation result into the first function module.

[0130] As an implementation of the embodiment of the present application, the number of the second function modules can be multiple.

[0131] The first data conversion unit 1020 can be specifically configured to input the converted first data into each second function module respectively.

[0132] As an implementation of the embodiment of the present application, the apparatus can further include:

[0133] The first judging unit is configured to judge whether the data output by the first function module currently acquired is the same as the data output by the first function module acquired last time, trigger the first data conversion unit 1020 if different, and trigger the first data input unit if the same.

[0134] The first data input unit is configured to input the converted first data obtained by conversion last time into the second function module.

[0135] The second judging unit is configured to judge whether the data input into the first function module currently determined is the same as the data input into the first function module determined last time, trigger the second data conversion unit 1030 if different, and trigger the second data input unit if the same.

[0136] The second data input unit is configured to input the converted second data obtained by conversion last time into the first function module.

[0137] As an implementation form of the embodiment of the present application, the first data conversion unit 1020 can be specifically configured to, when detecting that the first data output by the first function module is newly stored in the data storage area, convert the first data according to the first conversion condition, store the converted first data in the data storage area, and trigger the second function module to acquire the converted first data.

[0138] The second data conversion unit 1030 can be specifically configured to, when detecting that the data output by the third function module is newly stored in the data storage area, determine the data output by the third function module as the second data input into the first function module, convert the second data according to the first conversion condition, store the converted second data in the data storage area, and trigger the first function module to acquire the converted second data.

[0139] The embodiment of the present application also provides an electronic device, as shown in FIG. 11, comprising:

[0140] The memory 1101 is configured to store a computer program.

[0141] The processor 1102 is configured to execute the program stored in the memory 1101, and implement the data processing method in any of the above embodiments.

[0142] In the scheme provided by the embodiments of the present application, in response to a user's conversion condition setting operation on an interactive interface, a conversion condition set by the user on the interactive interface for a function module is obtained, and the conversion condition is recorded in configuration information of the function module; in response to calling a first function module, if data to be converted by the first conversion condition is data output by the first function module, after obtaining first data output by the first function module, the first data is converted according to the first conversion condition, and the converted first data is input into a second function module, wherein the first conversion condition is a conversion condition recorded in the configuration information of the first function module, and the second function module subscribes to data output by the first function module; if data to be converted by the first conversion condition is data input into the first function module, after determining data output by a third function module as second data input into the first function module, the second data is converted according to the first conversion condition, and the converted second data is input into the first function module, wherein the first function module subscribes to data output by the third function module. When it is necessary to adjust data transmitted between modules, the user can set a corresponding conversion condition on the interactive interface, and then the electronic device can record the conversion condition in the configuration information of the module, and when data is transmitted between modules, the conversion condition recorded in the configuration information is used to automatically convert data to be transmitted between modules. In this process, the user only needs to set a corresponding conversion condition on the interactive interface to adjust data transmitted between modules, without manually writing a new module, and without integrating the new module into a published software version and publishing an updated version of the software, so that the flexibility of adjusting data transmitted between modules is greatly improved.

[0143] The electronic device can further include a communication bus and / or a communication interface, and the processor 1102, the communication interface, and the memory 1101 can communicate with each other through the communication bus.

[0144] The communication bus of the electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.

[0145] The communication interface is used for communication between the electronic device and other devices.

[0146] The memory can include a random access memory (RAM) and can also include a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory can also be at least one storage device located remotely from the aforementioned processor.

[0147] The processor described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.

[0148] In yet another embodiment provided in the present application, a computer readable storage medium is also provided, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps of the data processing method in any of the above embodiments.

[0149] In yet another embodiment provided in the present application, a computer program product containing instructions, which, when run on a computer, causes the computer to execute the data processing method in any of the above embodiments.

[0150] In the embodiments described above, all or some of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or some of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded into and executed by a computer, all or some of the processes or functions according to the embodiments described in the specification are generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium accessible by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (for example, floppy disk, hard disk, magnetic tape), optical media (for example, DVD), or solid state disk (SSD) and the like.

[0151] It should be noted that, in this document, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0152] Each of the embodiments in the specification is described in a related manner, and the same and similar parts between each of the embodiments can be referred to each other. Each of the embodiments focuses on the difference from other embodiments. In particular, for the device, electronic device, computer readable storage medium and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the related parts can be referred to the part of the method embodiment.

[0153] The above merely provides the preferred embodiment of the present application, and is not used to limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A data processing method, characterized by, The method comprises: in response to a user's conversion condition setting operation on an interactive interface, obtaining a conversion condition set by the user on the interactive interface for a function module, and recording the conversion condition into configuration information of the function module; in response to calling a first function module, if data to be converted by a first conversion condition is data output by the first function module, after obtaining first data output by the first function module, converting the first data according to the first conversion condition, and inputting the converted first data into a second function module, wherein the first conversion condition is a conversion condition recorded in configuration information of the first function module, and the second function module subscribes to data output by the first function module; if the data to be converted by the first conversion condition is data input into the first function module, after determining that data output by a third function module is second data input into the first function module, converting the second data according to the first conversion condition, and inputting the converted second data into the first function module, wherein the first function module subscribes to data output by the third function module.

2. The method of claim 1, wherein, The second data comprises input data of the first function module and / or module parameters, the input data is data to be processed by the first function module, and the module parameters are parameters inside the first function module for configuring a data processing mode.

3. The method of claim 1, wherein, The first conversion condition is an expression, The converting the first data according to the first conversion condition and inputting the converted first data into a second function module comprises: operating the first data according to the expression, and inputting an operation result into the second function module; The converting the second data according to the first conversion condition and inputting the converted second data into the first function module comprises: operating the second data according to the expression, and inputting an operation result into the first function module.

4. The method of claim 1, wherein, The number of the second function modules is multiple, and the inputting the converted first data into a second function module comprises: inputting the converted first data into each second function module respectively.

5. The method according to any one of claims 1-4, wherein, before the converting the first data according to the first conversion condition, the method further comprises: judging whether the data output by the first function module currently obtained is the same as the data output by the first function module last obtained; if not, performing the converting the first data according to the first conversion condition; and if yes, inputting the converted first data obtained last into a second function module; and / or, before the converting the second data according to the first conversion condition, the method further comprises: determining whether the current determined data input into the first function module is the same as the last determined data input into the first function module; if different, performing the step of converting the second data according to the first conversion condition; and if the same, inputting the converted second data obtained by the last conversion into the first function module.

6. The method of any one of claims 1-4, wherein, after obtaining the first data output by the first function module, converting the first data according to the first conversion condition, and inputting the converted first data into a second function module, comprises: after detecting that the first data output by the first function module is newly added in the data storage area, converting the first data according to the first conversion condition, and storing the converted first data into the data storage area, so as to trigger the second function module to obtain the converted first data; after determining the data output by the third function module as the second data input into the first function module, converting the second data according to the first conversion condition, and inputting the converted second data into the first function module, comprises: after detecting that the data output by the third function module is newly added in the data storage area, determining the data output by the third function module as the second data input into the first function module, converting the second data according to the first conversion condition, and storing the converted second data into the data storage area, so as to trigger the first function module to obtain the converted second data.

7. A data processing apparatus, characterized by, The apparatus comprises: a setting unit configured to, in response to a conversion condition setting operation of a user on an interactive interface, obtain a conversion condition set by the user on the interactive interface for data of a function module, and record the conversion condition into configuration information of the function module; a first data conversion unit configured to, in response to invoking a first function module, in a case where data to be converted by a first conversion condition is data output by the first function module, after obtaining the first data output by the first function module, convert the first data according to the first conversion condition, and input the converted first data into a second function module, wherein the first conversion condition is a conversion condition recorded in configuration information of the first function module, and the second function module subscribes to data output by the first function module; a second data conversion unit configured to, in response to invoking a first function module, in a case where data to be converted by the first conversion condition is data input into the first function module, after determining data output by a third function module as second data input into the first function module, convert the second data according to the first conversion condition, and input the converted second data into the first function module, wherein the first function module subscribes to data output by the third function module.

8. The apparatus of claim 7, wherein, The second data includes input data of the first function module and / or module parameters, the input data being data to be processed by the first function module, and the module parameters being parameters inside the first function module for configuring a data processing mode; And / or, The first conversion condition is an expression; the first data conversion unit is specifically configured to perform operation on the first data according to the expression and input an operation result into a second function module; and the second data conversion unit is specifically configured to perform operation on the second data according to the expression and input an operation result into the first function module; And / or, The number of the second function modules is multiple, and the first data conversion unit is specifically configured to input the converted first data into each second function module; And / or, The apparatus further includes a first judgment unit configured to judge whether data output by the first function module and acquired currently is the same as data output by the first function module and acquired last time; if not, the first data conversion unit is triggered; and if yes, a first data input unit is triggered; the first data input unit is configured to input converted first data obtained by conversion last time into a second function module; a second judgment unit is configured to judge whether data determined to be input into the first function module currently is the same as data determined to be input into the first function module last time; if not, the second data conversion unit is triggered; and if yes, a second data input unit is triggered; and the second data input unit is configured to input converted second data obtained by conversion last time into the first function module; And / or, The first data conversion unit is specifically configured to, when detecting that the first data output by the first function module is newly added in a data storage area, convert the first data according to the first conversion condition, store the converted first data in the data storage area, and trigger a second function module to acquire the converted first data; and the second data conversion unit is specifically configured to, when detecting that data output by a third function module is newly added in the data storage area, determine the data output by the third function module as second data input into the first function module, convert the second data according to the first conversion condition, store the converted second data in the data storage area, and trigger the first function module to acquire the converted second data.

9. An electronic device, comprising: The memory is configured to store a computer program; The processor is configured to execute the program stored in the memory to implement the method in any one of claims 1-6. The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method in any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer program is executed by the processor to implement the method in any one of claims 1-6.

11. A computer program product, characterised in that, ​

Citation Information

Patent Citations

  • Method and device for solving data processing and equipment linkage based on real-time computing engine

    CN109597638A

  • Business data testing method, device and equipment

    CN113515445A

  • Data processing method, device and system and computer readable storage medium

    CN115357309A

  • Supply chain full-link service data automatic linking method and system

    CN117931268A

  • Data processing method and device, equipment, storage medium and program product

    CN118642619A