Data collection method, device, equipment and storage medium

By realizing data acquisition request reception, identification information and priority determination, and data acquisition module in the multimedia data acquisition engine, the problems of high development costs and deep coupling of multimedia data acquisition functions of multi-service modules are solved, and the development costs and coupling are reduced are achieved. effect.

CN114553937BActive Publication Date: 2025-02-11BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210033353.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-12
Publication Date
2025-02-11
Estimated Expiration
2042-01-12

AI Technical Summary

Technical Problem

In the prior art, the multimedia data acquisition function development cost of multi-service modules is relatively high, and the service modules are coupled deep, resulting in increased development complexity and vulnerability risks.

Method used

By introducing a data acquisition request reception module, identification information determination module, priority determination module and data acquisition module in the multimedia data acquisition engine, the data acquisition request of the target service module is received, the identification information and priority of the service module is determined, and based on priority The level comparison results collect multimedia data of the service module to be collected.

Benefits of technology

It reduces the development cost of multimedia data acquisition function of multi-service modules, reduces the coupling between service modules, and improves the efficiency and reliability of data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114553937B_ABST
    Figure CN114553937B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data collection method, device, equipment and storage medium, which are applied to a multimedia data collection engine. The multimedia data collection engine is used to manage multimedia data collection of at least two business modules. In the process of collecting data for the current business module, the multimedia data collection engine receives a data collection request sent by a target business module; based on the data collection request, determines the second identification information of the current business module; based on the preset identification priority information and the first identification information, determines the first priority of the target business module; based on the preset identification priority information and the second identification information, determines the second priority of the current business module; based on the comparison result of the first priority and the second priority, collects multimedia data of the business module to be collected. The present disclosure reduces the development cost of the multimedia data collection function of multiple business modules and reduces the coupling between multiple business modules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a data acquisition method, device, equipment and storage medium. Background Art

[0002] In the related art, each business module manages its own multimedia data collection behavior. When it involves logic such as multiple businesses interrupting each other, the business module development is difficult and prone to many loopholes. In addition, the business modules monitor each other's message events, and the coupling is relatively deep.

[0003] Therefore, it is necessary to provide a data collection method, device, equipment and storage medium to reduce the development cost of multimedia data collection functions of multiple business modules and reduce the coupling between multiple business modules. Summary of the invention

[0004] The present disclosure provides a data collection method, device, equipment and storage medium to at least solve the problem of high development cost of multimedia data collection functions of multi-service modules in related technologies. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a data collection method is provided. The method is applied to a multimedia data collection engine, and the multimedia data collection engine is used to manage multimedia data collection of at least two service modules. The method includes:

[0006] In the process of collecting data for the current business module, receiving a data collection request sent by a target business module; the data collection request carries first identification information of the target business module;

[0007] Based on the data collection request, determining second identification information of the current business module;

[0008] Determine the first priority of the target service module according to the preset identification priority information and the first identification information; the preset identification priority information represents the mapping relationship between the identification information and the priority of the service module;

[0009] Determining the second priority of the current service module according to the preset identification priority information and the second identification information;

[0010] Based on the comparison result of the first priority and the second priority, multimedia data of the service module to be collected is collected; the service module to be collected is the current service module or the target service module.

[0011] In an exemplary implementation, the collecting multimedia data of the service module to be collected based on the comparison result of the first priority and the second priority includes:

[0012] Based on the comparison result of the first priority and the second priority, determining the service module to be collected that has the data collection authority;

[0013] Collect the multimedia data of the service module to be collected.

[0014] In an exemplary implementation, the determining of the to-be-collected service module with data collection authority based on the comparison result of the first priority and the second priority includes:

[0015] If the first priority is higher than the second priority, determining the target service module as the service module to be collected;

[0016] The collecting of multimedia data of the service module to be collected includes:

[0017] Stop collecting data from the current service module and collect multimedia data from the target service module;

[0018] After the multimedia data collection of the target service module is completed, determining the data collection interruption point of the current service module;

[0019] Starting from the data collection interruption point, continue to collect the remaining data of the current business module.

[0020] In an exemplary implementation, after stopping data collection of the current service module and collecting multimedia data of the target service module, the method further includes:

[0021] A notification message is sent to the at least two service modules, wherein the notification message includes a data collection stop message of the current service module and a data collection start message of the target service module.

[0022] In an exemplary implementation, the data collection request further carries configuration parameters of the data to be collected, and the collecting of multimedia data of the target service module includes:

[0023] The multimedia data of the target service module is collected according to the configuration parameters of the data to be collected.

[0024] In an exemplary implementation, the determining of the to-be-collected service module with data collection authority based on the comparison result of the first priority and the second priority includes:

[0025] If the first priority is lower than the second priority, determining the current service module as the service module to be collected;

[0026] The collecting of multimedia data of the service module to be collected includes:

[0027] Collecting multimedia data of the current service module;

[0028] After the multimedia data collection of the current service module is completed, the multimedia data of the target service module is collected.

[0029] In an exemplary implementation, the collecting multimedia data of the service module to be collected based on the comparison result of the first priority and the second priority includes:

[0030] Determine the determination time of the comparison result as the collection start time;

[0031] Starting from the collection start time, collecting multimedia data of the service module to be collected;

[0032] When the multimedia data collection of the service module to be collected is completed, determining the collection end time;

[0033] The method further comprises:

[0034] A monitoring callback event is constructed based on the multimedia data of the service module to be collected, the collection start time and the collection end time.

[0035] In an exemplary embodiment, the multimedia data acquisition engine includes a data acquisition interface and a data processing module, the data acquisition interface and the data processing module are isolated from each other, and the receiving of the data acquisition request sent by the target service module includes:

[0036] Based on the data collection interface, a data collection request sent by a target business module is received.

[0037] In an exemplary implementation, after collecting the multimedia data of the service module to be collected, the method further includes:

[0038] The multimedia data of the service module to be collected is encoded and decoded based on the data processing module.

[0039] According to a second aspect of an embodiment of the present disclosure, a data acquisition device is provided, the device is applied to a multimedia data acquisition engine, the multimedia data acquisition engine is used to manage multimedia data acquisition of at least two business modules, the device includes:

[0040] A data collection request receiving module is configured to receive a data collection request sent by a target business module during data collection for a current business module; the data collection request carries first identification information of the target business module;

[0041] A second identification information determination module is configured to determine the second identification information of the current business module based on the data collection request;

[0042] A first priority determination module is configured to determine the first priority of the target service module according to preset identification priority information and the first identification information; the preset identification priority information represents a mapping relationship between identification information and priority of the service module;

[0043] A second priority determination module is configured to determine the second priority of the current service module according to the preset identification priority information and the second identification information;

[0044] The data collection module is configured to collect multimedia data of a service module to be collected based on a comparison result between the first priority and the second priority; the service module to be collected is the current service module or the target service module.

[0045] In an exemplary embodiment, the data acquisition module includes:

[0046] A to-be-collected business module determining unit is configured to determine a to-be-collected business module with data collection authority based on a comparison result between the first priority and the second priority;

[0047] The first data collection unit is configured to collect multimedia data of the service module to be collected.

[0048] In an exemplary implementation, the to-be-collected business module determination unit includes:

[0049] A first to-be-collected business module determining subunit is configured to determine, if the first priority is higher than the second priority, that the target business module is the to-be-collected business module;

[0050] The data acquisition module comprises:

[0051] A first multimedia data collection unit is configured to stop collecting data from the current service module and collect multimedia data from the target service module;

[0052] A collection interruption point determination unit, configured to determine a data collection interruption point of the current service module after the multimedia data collection of the target service module is completed;

[0053] The remaining data collection unit is configured to continue collecting the remaining data of the current business module starting from the data collection interruption point.

[0054] In an exemplary embodiment, the device further comprises:

[0055] The notification message sending module is configured to execute sending of a notification message to the at least two service modules, wherein the notification message includes a data collection stop message of the current service module and a data collection start message of the target service module.

[0056] In an exemplary implementation, the data collection request also carries configuration parameters of the data to be collected, and the data collection module includes:

[0057] The data collection unit is configured to collect multimedia data of the target service module according to the configuration parameters of the data to be collected.

[0058] In an exemplary implementation, the to-be-collected business module determination unit includes:

[0059] A first to-be-collected service module determination subunit is configured to determine the current service module as the to-be-collected service module if the first priority is lower than the second priority;

[0060] The data acquisition module comprises:

[0061] A second multimedia data collection unit is configured to collect multimedia data of the current service module;

[0062] The third multimedia data collection unit is configured to collect multimedia data of the target service module after the multimedia data collection of the current service module is completed.

[0063] In an exemplary embodiment, the data acquisition module includes:

[0064] a start time determination unit, configured to determine the determination time of the comparison result as the acquisition start time;

[0065] A second data collection unit is configured to collect multimedia data of the service module to be collected starting from the collection start time;

[0066] An end time determination unit is configured to determine a collection end time when the collection of multimedia data of the service module to be collected ends;

[0067] The device also includes:

[0068] The event construction module is configured to construct a monitoring callback event based on the multimedia data of the service module to be collected, the collection start time and the collection end time.

[0069] In an exemplary embodiment, the multimedia data acquisition engine includes a data acquisition interface and a data processing module, the data acquisition interface and the data processing module are isolated from each other, and the data acquisition request receiving module includes:

[0070] The request receiving unit is configured to receive a data collection request sent by a target business module based on the data collection interface.

[0071] In an exemplary embodiment, the device comprises:

[0072] The data processing unit is configured to perform encoding and decoding processing on the multimedia data of the service module to be collected based on the data processing module.

[0073] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0074] processor;

[0075] a memory for storing instructions executable by the processor;

[0076] Wherein, the processor is configured to execute the instructions to implement the data collection method as described above.

[0077] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data collection method as described above.

[0078] According to a fifth aspect of an embodiment of the present disclosure, there is provided a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the data collection method as described above is implemented.

[0079] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0080] The data acquisition method disclosed in the present invention is applied to a multimedia data acquisition engine, which is used to manage multimedia data acquisition of at least two business modules, thereby avoiding the development of a corresponding data acquisition module for each business module; in the process of data acquisition for the current business module, a data acquisition request sent by a target business module is received; the data acquisition request carries the first identification information of the target business module; based on the data acquisition request, the second identification information of the current business module is determined; according to the preset identification priority information and the first identification information, the first priority of the target business module is determined; the preset identification priority information represents the mapping relationship between the identification information and the priority of the business module; according to the preset identification priority information and the second identification information, the second priority of the current business module is determined; based on the comparison result of the first priority and the second priority, the multimedia data of the business module to be collected is collected; the business module to be collected is the current business module or the target business module. The present invention manages the multimedia data acquisition of at least two business modules through a media data acquisition engine, and determines the business module to be collected by comparing the priorities between the current business module and the target business module; reduces the development cost of the multimedia data acquisition function of multiple business modules and reduces the coupling between multiple business modules.

[0081] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0083] Figure 1 The present invention is an application environment diagram of a data collection method according to an exemplary embodiment.

[0084] Figure 2 The present invention is a flow chart of a data collection method according to an exemplary embodiment.

[0085] Figure 3 The present invention is a flowchart of a method for collecting multimedia data of a service module to be collected according to an exemplary embodiment.

[0086] Figure 4 The present invention is a flowchart showing a method for determining a collection start time and an end time according to an exemplary embodiment.

[0087] Figure 5 The present invention is a flowchart showing a method for continuing to collect remaining data of the current business module according to an exemplary embodiment.

[0088] Figure 6 The present invention is a flowchart of a method for collecting multimedia data of a target service module according to an exemplary embodiment.

[0089] Figure 7 The figure is a schematic diagram showing the structure of a multimedia data acquisition engine according to an exemplary embodiment.

[0090] Figure 8 It is a block diagram of a data acquisition device according to an exemplary embodiment.

[0091] Fig. 9 It is a block diagram of an electronic device for data collection according to an exemplary embodiment. DETAILED DESCRIPTION

[0092] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0093] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0094] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0095] See also Figure 1 , which is a diagram of an application environment of a data collection method according to an exemplary embodiment. The application environment may include a server 01 and a client 02.

[0096] Specifically, in the embodiments of this specification, the server 01 may include an independently operated server, or a distributed server, or a server cluster composed of multiple servers, and may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Server 01 may include a network communication unit, a processor, and a memory, etc. Specifically, the server 01 can be used to receive a data acquisition request sent by a target business module in the client 02 during data acquisition of the current business module; and based on the data acquisition request, determine the second identification information of the current business module in the client 02; and determine the first priority of the target business module according to the preset identification priority information and the first identification information; determine the second priority of the current business module according to the preset identification priority information and the second identification information; based on the comparison result of the first priority and the second priority, collect multimedia data of the business module to be collected.

[0097] Specifically, in the embodiments of this specification, the client 02 may include physical devices such as smart phones, desktop computers, tablet computers, laptops, digital assistants, smart wearable devices, and vehicle-mounted terminals, and may also include software running in physical devices, such as web pages provided by some service providers to users, or applications provided by these service providers to users. Specifically, the client 02 may include at least two business modules, and the at least two business modules include a current business module and a target business module; the client 02 may be used to generate and play multimedia data.

[0098] Figure 2 is a flow chart of a data collection method according to an exemplary embodiment. Figure 2 As shown, this method can be applied to Figure 1 In the server 01 shown, the server 01 includes a multimedia data acquisition engine, and the multimedia data acquisition engine is used to manage the multimedia data acquisition of at least two business modules, and the at least two business modules include a current business module and a target business module; the method includes the following steps.

[0099] In step S201, during data collection for the current service module, a data collection request sent by a target service module is received; the data collection request carries first identification information of the target service module.

[0100] In some embodiments, the at least two service modules are service modules corresponding to the same application in the client; for example, the current service module and the target service module may be modules in the same short video application. The multimedia data may be audio data and / or video data.

[0101] In the disclosed embodiment, the multimedia data collection engine (Record Engine) can be used to collect multimedia data from multiple business modules; the multiple business modules can be modules in the same application. For example, the multiple business modules can include but are not limited to a comment module and a search module in a short video application. The comment module is used for users to post comment information on short videos, and the search module is used for users to post search information. The comment information and the search information can both be voice information. Multimedia data can include voice comments, voice search information, etc.

[0102] In the disclosed embodiment, identification information can be set for multiple business modules managed by the multimedia data acquisition engine. Each business module corresponds to a unique piece of identification information. The identification information may include but is not limited to a string, a picture, etc. The first identification information of the target business module may be information such as a string or a picture that uniquely identifies the target business module.

[0103] In some embodiments, the multimedia data acquisition engine includes a data acquisition interface and a data processing module, the data acquisition interface and the data processing module are isolated from each other, and receiving the data acquisition request sent by the target service module includes:

[0104] Based on the data collection interface, a data collection request sent by a target business module is received.

[0105] In the disclosed embodiment, the multimedia data acquisition engine can be layered in the code structure, including a data acquisition interface and a data processing module, wherein the developer can only see the packaged data acquisition interface, and the data acquisition interface and the underlying data processing module (such as the voice data processing module Arya) are isolated from each other; wherein, there can be multiple data acquisition interfaces.

[0106] In a specific embodiment, Figure 7 As shown, the multimedia data acquisition engine includes a data acquisition interface and a data processing module, which are independent of each other; wherein, there are two data acquisition interfaces.

[0107] In the disclosed embodiment, the multimedia data acquisition engine can be divided into a data acquisition interface and a data processing module in terms of code structure, thereby isolating the underlying data processing module from the data acquisition interface, facilitating subsequent upgrades of the acquisition engine; for example, when it is necessary to adjust or upgrade the multimedia data acquisition engine according to the business module, only the data acquisition interface can be upgraded without modifying the logic of the underlying data processing module, thereby improving the upgrade efficiency of the multimedia data acquisition engine.

[0108] In step S203, second identification information of the current business module is determined based on the data collection request.

[0109] In the disclosed embodiment, the second identification information of the current business module can be determined according to the data collection request; the second identification information can include but is not limited to a character string, a picture, etc.; and then the priority of the current business module is determined.

[0110] In step S205, the first priority of the target service module is determined according to preset identification priority information and the first identification information; the preset identification priority information represents a mapping relationship between identification information and priority of a service module.

[0111] In the disclosed embodiment, a mapping relationship between the identification information and priority of a business module can be pre-constructed to obtain preset identification priority information; in actual applications, the priority of each business module can be set according to actual needs. For example, the priority of a voice search module can be set higher than that of a voice comment module.

[0112] In step S207, the second priority of the current service module is determined according to the preset identification priority information and the second identification information.

[0113] In the embodiment of the present disclosure, the second priority matching the second identification information may be searched from the preset identification priority information, that is, the priority information of the current service module may be obtained.

[0114] In step S209, based on the comparison result of the first priority and the second priority, multimedia data of the service module to be collected is collected; the service module to be collected is the current service module or the target service module.

[0115] In some embodiments, Figure 3 As shown, the collecting of multimedia data of the service module to be collected based on the comparison result of the first priority and the second priority includes:

[0116] In step S2091, based on the comparison result of the first priority and the second priority, the business module to be collected that has the data collection authority is determined.

[0117] In the disclosed embodiment, the service module to be collected with collection authority can be determined according to the comparison result of the priority, and data collection can be performed on the service module with authority. Before the comparison result is determined, the multimedia data of the current service module can be continuously collected. When it is determined that the service module to be collected is not the current service module, the data collection of the current service module is interrupted.

[0118] In some embodiments, the determining of the to-be-collected service module with data collection authority based on the comparison result of the first priority and the second priority includes:

[0119] If the first priority is higher than the second priority, the target service module is determined to be the service module to be collected.

[0120] In the disclosed embodiment, the first priority and the second priority may be compared, and the service module with the higher priority may be determined as the service module to be collected with the collection authority.

[0121] In some embodiments, the determining of the to-be-collected service module with data collection authority based on the comparison result of the first priority and the second priority includes:

[0122] If the first priority is lower than the second priority, the current service module is determined to be the service module to be collected.

[0123] In some embodiments, if there are multiple target business modules, the priorities of the target business modules and the current business module may be compared, and the business module with the highest priority may be determined as the business module to be collected.

[0124] In some embodiments, Figure 4 As shown, the collecting multimedia data of the service module to be collected based on the comparison result of the first priority and the second priority includes:

[0125] In step S209101, the determination time of the comparison result is determined as the collection start time;

[0126] In the embodiment of the present disclosure, when the priority comparison result is determined, the collection of multimedia data of the service module to be collected can be started, that is, the determination time of the comparison result can be used as the data collection start time.

[0127] In step S209103, starting from the collection start time, multimedia data of the service module to be collected is collected;

[0128] In the disclosed embodiment, if the business module to be collected is the current business module, data collection for the current business module continues; the collection start time is the time when the business module to be collected is determined to be the current business module. If the business module to be collected is not the current business module, data collection for the current business module is interrupted, and data collection for the business module to be collected is started.

[0129] In step S209105, when the multimedia data collection of the service module to be collected is completed, the collection end time is determined.

[0130] In the disclosed embodiment, the data collection status of the service module to be collected can be monitored in real time, and the collection end time can be determined.

[0131] In some embodiments, the method further comprises:

[0132] A monitoring callback event is constructed based on the multimedia data of the service module to be collected, the collection start time and the collection end time.

[0133] In the disclosed embodiment, a monitoring callback event can be constructed and stored according to the multimedia data of the service module to be collected, the collection start time and the collection end time, so as to facilitate subsequent viewing of the data collection status of the service module to be collected.

[0134] In step S2093, multimedia data of the service module to be collected is collected.

[0135] In the disclosed embodiment, multiple business modules are managed by a multimedia data acquisition engine. When a data acquisition request is received from a target business module during the data acquisition process, the priority of the current business module and the target business module can be compared, and the business module with data acquisition authority can be re-determined, and the business module with data acquisition authority can be used as the business module to be acquired, thereby reducing the coupling between the business modules.

[0136] In some embodiments, Figure 5 As shown, the collecting of multimedia data of the service module to be collected includes:

[0137] In step S20931, stop collecting data from the current service module and collect multimedia data from the target service module;

[0138] In some embodiments, the data collection request also carries configuration parameters of the data to be collected, and the collecting of multimedia data of the target service module includes:

[0139] The multimedia data of the target service module is collected according to the configuration parameters of the data to be collected.

[0140] In some embodiments, when the data to be collected is audio data, the configuration parameters of the data to be collected include parameters such as sampling rate and number of channels; data can be collected according to the set sampling rate and number of channels.

[0141] In the disclosed embodiment, each service module may set configuration parameters of the data to be collected according to actual needs, and collect data according to the configuration parameters, thereby obtaining multimedia data of specific configuration parameters of each service module.

[0142] In some embodiments, after stopping data collection of the current service module and collecting multimedia data of the target service module, the method further includes:

[0143] A notification message is sent to the at least two service modules, wherein the notification message includes a data collection stop message of the current service module and a data collection start message of the target service module.

[0144] In the disclosed embodiment, when the multimedia data acquisition engine switches the business module for data acquisition, it can send a notification message to all business modules it manages to inform all business modules; the notification message can include a data acquisition stop message for the current business module and a data acquisition start message for the target business module.

[0145] In some embodiments, notification messages may be sent only to business modules other than the target business module among all business modules managed by the multimedia data acquisition engine; or notification messages may be sent only to business modules other than the target business module and the current business module among all business modules managed by the multimedia data acquisition engine.

[0146] In the disclosed embodiment, when the multimedia data acquisition engine switches the business module for collecting data, it can send a notification message to all the business modules it manages, so that all the business modules can understand the business modules before and after the switch, and can enable other business modules to determine whether to send a data acquisition request to the multimedia data acquisition engine by comparing their own priorities with the business modules after the switch; it can effectively prevent business modules with a lower priority than the business module after the switch from continuing to send data acquisition requests to the multimedia data acquisition engine, thereby reducing the amount of data processing by the multimedia data acquisition engine and improving the working efficiency of the multimedia data acquisition engine.

[0147] In step S20933, after the multimedia data collection of the target service module is completed, determining the data collection interruption point of the current service module;

[0148] In step S20935, starting from the data collection interruption point, the remaining data of the current business module continues to be collected.

[0149] In the disclosed embodiment, after the multimedia data collection of the target service module is completed, the data collection interruption point of the current service module can be obtained, and the remaining data of the current service module can be continuously collected starting from the interruption point.

[0150] In the disclosed embodiment, after the data collection of the target service module is completed, the collection of the remaining data is continued from the interruption point of the current service module, which is performed on the premise that the multimedia data collection engine has not received other data collection requests. If the multimedia data collection engine receives a new data collection request during this process, it is necessary to re-compare the priorities between the service modules.

[0151] In the disclosed embodiment, when the priority of the target business module is higher, it is necessary to interrupt the data collection of the current business module and collect the data of the target business module; then, after the data collection of the target business module is completed, continue to collect the data of the current business module, thereby performing data collection of multiple business modules in an orderly manner, avoiding setting up a data collection module for each business module, and reducing development costs.

[0152] In some embodiments, Figure 6 As shown, the collecting of multimedia data of the service module to be collected includes:

[0153] In step S209301, multimedia data of the current service module is collected;

[0154] In step S209303, after the multimedia data collection of the current service module is completed, the multimedia data of the target service module is collected.

[0155] In the disclosed embodiment, if the priority of the current business module is higher, there is no need to interrupt the data collection of the current business module, and the multimedia data of the target business module can be collected after the data collection of the current business module is completed, thereby performing data collection for multiple business modules in an orderly manner, avoiding setting up a data collection module for each business module, and reducing development costs.

[0156] In the embodiment of the present disclosure, the multimedia data acquisition engine includes a data acquisition interface and a data processing module, the data acquisition interface and the data processing module are isolated from each other, and after the multimedia data of the service module to be collected is collected, the method further includes:

[0157] The multimedia data of the service module to be collected is encoded and decoded based on the data processing module.

[0158] In the disclosed embodiment, the data acquisition interface is used to establish a communication connection with the service module to be collected to collect multimedia data; the data processing module is used to encode and decode the collected data.

[0159] In the disclosed embodiments, the multimedia data acquisition engine can be divided into a data acquisition interface and a data processing module in terms of code structure, thereby isolating the underlying data processing module from the data acquisition interface to facilitate subsequent upgrades of the acquisition engine; for example, only the data acquisition interface or the data processing module can be replaced or upgraded as needed, thereby improving the upgrade efficiency of the multimedia data acquisition engine.

[0160] The data acquisition method disclosed in the present invention is applied to a multimedia data acquisition engine, which is used to manage multimedia data acquisition of at least two business modules, thereby avoiding the development of a corresponding data acquisition module for each business module; in the process of data acquisition for the current business module, a data acquisition request sent by a target business module is received; the data acquisition request carries the first identification information of the target business module; based on the data acquisition request, the second identification information of the current business module is determined; according to the preset identification priority information and the first identification information, the first priority of the target business module is determined; the preset identification priority information represents the mapping relationship between the identification information and the priority of the business module; according to the preset identification priority information and the second identification information, the second priority of the current business module is determined; based on the comparison result of the first priority and the second priority, the multimedia data of the business module to be collected is collected; the business module to be collected is the current business module or the target business module. The present invention manages the multimedia data acquisition of at least two business modules through a media data acquisition engine, and determines the business module to be collected by comparing the priorities between the current business module and the target business module; reduces the development cost of the multimedia data acquisition function of multiple business modules and reduces the coupling between multiple business modules.

[0161] Figure 8 is a block diagram of a data acquisition device according to an exemplary embodiment. Figure 8 The device is applied to a multimedia data acquisition engine, and the multimedia data acquisition engine is used to manage multimedia data acquisition of at least two business modules. The device includes:

[0162] The data collection request receiving module 810 is configured to receive a data collection request sent by a target business module during data collection for the current business module; the data collection request carries the first identification information of the target business module;

[0163] A second identification information determination module 820 is configured to determine the second identification information of the current business module based on the data collection request;

[0164] A first priority determination module 830 is configured to determine the first priority of the target service module according to preset identification priority information and the first identification information; the preset identification priority information represents a mapping relationship between identification information and priority of the service module;

[0165] A second priority determination module 840 is configured to determine the second priority of the current service module according to the preset identification priority information and the second identification information;

[0166] The data collection module 850 is configured to collect multimedia data of the service module to be collected based on the comparison result of the first priority and the second priority; the service module to be collected is the current service module or the target service module.

[0167] In some embodiments, the data acquisition module includes:

[0168] A to-be-collected business module determining unit is configured to determine a to-be-collected business module with data collection authority based on a comparison result between the first priority and the second priority;

[0169] The first data collection unit is configured to collect multimedia data of the service module to be collected.

[0170] In some embodiments, the to-be-collected business module determination unit includes:

[0171] A first to-be-collected business module determining subunit is configured to determine, if the first priority is higher than the second priority, that the target business module is the to-be-collected business module;

[0172] The data acquisition module comprises:

[0173] A first multimedia data collection unit is configured to stop collecting data from the current service module and collect multimedia data from the target service module;

[0174] A collection interruption point determination unit, configured to determine a data collection interruption point of the current service module after the multimedia data collection of the target service module is completed;

[0175] The remaining data collection unit is configured to continue collecting the remaining data of the current business module starting from the data collection interruption point.

[0176] In some embodiments, the apparatus further comprises:

[0177] The notification message sending module is configured to execute sending of a notification message to the at least two service modules, wherein the notification message includes a data collection stop message of the current service module and a data collection start message of the target service module.

[0178] In some embodiments, the data collection request also carries configuration parameters of the data to be collected, and the data collection module includes:

[0179] The data collection unit is configured to collect multimedia data of the target service module according to the configuration parameters of the data to be collected.

[0180] In some embodiments, the to-be-collected business module determination unit includes:

[0181] A first to-be-collected service module determination subunit is configured to determine the current service module as the to-be-collected service module if the first priority is lower than the second priority;

[0182] The data acquisition module comprises:

[0183] A second multimedia data collection unit is configured to collect multimedia data of the current service module;

[0184] The third multimedia data collection unit is configured to collect multimedia data of the target service module after the multimedia data collection of the current service module is completed.

[0185] In some embodiments, the data acquisition module includes:

[0186] a start time determination unit, configured to determine the determination time of the comparison result as the acquisition start time;

[0187] A second data collection unit is configured to collect multimedia data of the service module to be collected starting from the collection start time;

[0188] An end time determination unit is configured to determine a collection end time when the collection of multimedia data of the to-be-collected service module ends;

[0189] The device also includes:

[0190] The event construction module is configured to construct a monitoring callback event based on the multimedia data of the service module to be collected, the collection start time and the collection end time.

[0191] In some embodiments, the multimedia data acquisition engine includes a data acquisition interface and a data processing module, the data acquisition interface and the data processing module are isolated from each other, and the data acquisition request receiving module includes:

[0192] The request receiving unit is configured to receive a data collection request sent by a target business module based on the data collection interface.

[0193] In some embodiments, the apparatus comprises:

[0194] The data processing unit is configured to perform encoding and decoding processing on the multimedia data of the service module to be collected based on the data processing module.

[0195] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0196] In an exemplary embodiment, an electronic device is also provided, including a processor; a memory for storing instructions executable by the processor; wherein, when the processor is configured to execute the instructions stored in the memory, it implements the training method of the multi-service data prediction model or the multimedia information push method provided in any of the above embodiments.

[0197] The electronic device may be a terminal, a server or a similar computing device. For example, the electronic device is a server. Fig. 9 is a block diagram of an electronic device according to an exemplary embodiment. Fig. 9As shown, the server 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 910 (the processor 910 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 930 for storing data, and one or more storage media 920 (such as one or more mass storage devices) for storing application programs 923 or data 922. Among them, the memory 930 and the storage medium 920 can be short-term storage or permanent storage. The program stored in the storage medium 920 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit 910 can be configured to communicate with the storage medium 920 and execute a series of instruction operations in the storage medium 920 on the server 900. The server 900 may also include one or more power supplies 960, one or more wired or wireless network interfaces 950, one or more input and output interfaces 940, and / or one or more operating systems 921, such as Windows ServerTM, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0198] The input / output interface 940 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 900. In one example, the input / output interface 940 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 940 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0199] It can be understood by those skilled in the art that Fig. 9 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig. 9 More or fewer components as shown, or with Fig. 9 Different configurations are shown.

[0200] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 930 including instructions, and the instructions can be executed by the processor 910 of the device 900 to complete the above method. Alternatively, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0201] In an exemplary embodiment, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the data collection method provided in any of the above embodiments is implemented.

[0202] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many 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).

[0203] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0204] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data collection method, characterized in that: The method is applied to a multimedia data acquisition engine, the multimedia data acquisition engine is used to manage multimedia data acquisition of at least two business modules, the at least two business modules are modules in the same application program, and the method comprises: In the process of collecting data for the current business module, receiving a data collection request sent by a target business module; the data collection request carries first identification information of the target business module; Based on the data collection request, determining second identification information of the current business module; Determine the first priority of the target service module according to the preset identification priority information and the first identification information; the preset identification priority information represents the mapping relationship between the identification information and the priority of the service module; Determining the second priority of the current service module according to the preset identification priority information and the second identification information; Based on the comparison result of the first priority and the second priority, multimedia data of the service module to be collected is collected; the service module to be collected is the current service module or the target service module; Wherein, if the first priority is lower than the second priority, the current service module is determined to be the service module to be collected; if the first priority is higher than the second priority, the target service module is determined to be the service module to be collected; If the first priority is higher than the second priority, stop collecting data from the current service module and collect multimedia data from the target service module; A notification message is sent to the at least two service modules, wherein the notification message includes a data collection stop message of the current service module and a data collection start message of the target service module.

2. The method according to claim 1, characterized in that The collecting multimedia data of the service module to be collected based on the comparison result of the first priority and the second priority includes: Based on the comparison result of the first priority and the second priority, determining the service module to be collected that has the data collection authority; Collect the multimedia data of the service module to be collected.

3. The method according to claim 1, characterized in that The method further comprises: After the multimedia data collection of the target service module is completed, determining the data collection interruption point of the current service module; Starting from the data collection interruption point, continue to collect the remaining data of the current business module.

4. The method according to claim 3, characterized in that The data collection request also carries configuration parameters of the data to be collected, and the collecting of multimedia data of the target service module includes: The multimedia data of the target service module is collected according to the configuration parameters of the data to be collected.

5. The method according to claim 1, characterized in that The collecting of multimedia data of the service module to be collected includes: Collecting multimedia data of the current service module; After the multimedia data collection of the current service module is completed, the multimedia data of the target service module is collected.

6. The method according to any one of claims 1 to 5, characterized in that: The collecting multimedia data of the service module to be collected based on the comparison result of the first priority and the second priority includes: Determine the determination time of the comparison result as the collection start time; Starting from the collection start time, collecting multimedia data of the service module to be collected; When the multimedia data collection of the service module to be collected is completed, determining the collection end time; The method further comprises: A monitoring callback event is constructed based on the multimedia data of the service module to be collected, the collection start time and the collection end time.

7. The method according to any one of claims 1 to 5, characterized in that: The multimedia data acquisition engine includes a data acquisition interface and a data processing module, wherein the data acquisition interface and the data processing module are isolated from each other, and the receiving of the data acquisition request sent by the target service module includes: Based on the data collection interface, a data collection request sent by a target business module is received.

8. The method according to claim 7, characterized in that After collecting the multimedia data of the service module to be collected, the method further includes: The multimedia data of the service module to be collected is encoded and decoded based on the data processing module.

9. A data acquisition device, characterized in that: The device is applied to a multimedia data acquisition engine, the multimedia data acquisition engine is used to manage multimedia data acquisition of at least two business modules, the at least two business modules are modules in the same application program, and the device comprises: A data collection request receiving module is configured to receive a data collection request sent by a target business module during data collection for a current business module; the data collection request carries first identification information of the target business module; A second identification information determination module is configured to determine the second identification information of the current business module based on the data collection request; A first priority determination module is configured to determine the first priority of the target service module according to preset identification priority information and the first identification information; the preset identification priority information represents a mapping relationship between identification information and priority of the service module; A second priority determination module is configured to determine the second priority of the current service module according to the preset identification priority information and the second identification information; The data acquisition module is configured to execute, based on the comparison result between the first priority and the second priority, to collect multimedia data of the service module to be collected; the service module to be collected is the current service module or the target service module; wherein, if the first priority is lower than the second priority, the current service module is determined to be the service module to be collected; if the first priority is higher than the second priority, the target service module is determined to be the service module to be collected; the data acquisition module comprises: a first multimedia data acquisition unit, configured to execute, if the first priority is higher than the second priority, to stop data collection of the current service module and collect multimedia data of the target service module; The notification message sending module is configured to execute sending of a notification message to the at least two service modules, wherein the notification message includes a data collection stop message of the current service module and a data collection start message of the target service module.

10. The device according to claim 9, characterized in that The data acquisition module comprises: A to-be-collected business module determining unit is configured to determine a to-be-collected business module with data collection authority based on a comparison result between the first priority and the second priority; The first data collection unit is configured to collect multimedia data of the service module to be collected.

11. The device according to claim 10, characterized in that The to-be-collected business module determination unit comprises: A first to-be-collected business module determining subunit is configured to determine, if the first priority is higher than the second priority, that the target business module is the to-be-collected business module; The data acquisition module comprises: A collection interruption point determination unit, configured to determine a data collection interruption point of the current service module after the multimedia data collection of the target service module is completed; The remaining data collection unit is configured to continue collecting the remaining data of the current business module starting from the data collection interruption point.

12. The device according to claim 11, characterized in that The data collection request also carries configuration parameters of the data to be collected, and the data collection module includes: The data collection unit is configured to collect multimedia data of the target service module according to the configuration parameters of the data to be collected.

13. The device according to claim 11, characterized in that The to-be-collected business module determination unit comprises: A first to-be-collected service module determination subunit is configured to determine the current service module as the to-be-collected service module if the first priority is lower than the second priority; The data acquisition module comprises: A second multimedia data collection unit is configured to collect multimedia data of the current service module; The third multimedia data collection unit is configured to collect multimedia data of the target service module after the multimedia data collection of the current service module is completed.

14. The device according to any one of claims 9 to 13, characterized in that: The data acquisition module comprises: a start time determination unit, configured to determine the determination time of the comparison result as the acquisition start time; A second data collection unit is configured to collect multimedia data of the service module to be collected starting from the collection start time; An end time determination unit is configured to determine a collection end time when the collection of multimedia data of the to-be-collected service module ends; The device also includes: The event construction module is configured to construct a monitoring callback event based on the multimedia data of the service module to be collected, the collection start time and the collection end time.

15. The device according to any one of claims 9 to 13, characterized in that: The multimedia data acquisition engine includes a data acquisition interface and a data processing module, wherein the data acquisition interface and the data processing module are isolated from each other, and the data acquisition request receiving module includes: The request receiving unit is configured to receive a data collection request sent by a target business module based on the data collection interface.

16. The device according to claim 15, characterized in that The device comprises: The data processing unit is configured to perform encoding and decoding processing on the multimedia data of the service module to be collected based on the data processing module.

17. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the data collection method according to any one of claims 1 to 8.

18. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data collection method according to any one of claims 1 to 8.

19. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the data collection method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Business processing method, terminal and storage medium

    CN113873676A