CN110532113B - Information processing method and device, computer readable storage medium and electronic equipment - Google Patents

Information processing method and device, computer readable storage medium and electronic equipment Download PDF

Info

Publication number
CN110532113B
CN110532113B CN201910818514.0A CN201910818514A CN110532113B CN 110532113 B CN110532113 B CN 110532113B CN 201910818514 A CN201910818514 A CN 201910818514A CN 110532113 B CN110532113 B CN 110532113B
Authority
CN
China
Prior art keywords
component
information
processing
receiving
processing result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910818514.0A
Other languages
Chinese (zh)
Other versions
CN110532113A (en
Inventor
李英民
杨传义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Horizon Robotics Technology Research and Development Co Ltd
Original Assignee
Beijing Horizon Robotics Technology Research and Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Horizon Robotics Technology Research and Development Co Ltd filed Critical Beijing Horizon Robotics Technology Research and Development Co Ltd
Priority to CN201910818514.0A priority Critical patent/CN110532113B/en
Publication of CN110532113A publication Critical patent/CN110532113A/en
Application granted granted Critical
Publication of CN110532113B publication Critical patent/CN110532113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/94Hardware or software architectures specially adapted for image or video understanding
    • G06V10/95Hardware or software architectures specially adapted for image or video understanding structured as a network, e.g. client-server architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure discloses an information processing method and device, wherein the method comprises the following steps: determining a target information processing component from the at least one information processing component based on the type of the information to be processed received from the communication component; sending the information to be processed to a target information processing component; receiving a processing result obtained by processing information to be processed and sent by a target information processing component; determining a component for receiving the processing result as a receiving component from the communication component and the at least one information processing component based on the processing result; and sending the processing result to the receiving component. The embodiment of the disclosure realizes that a plurality of components cooperatively process information, realizes decoupling of information distribution and information processing, ensures the instantaneity of information response, and each component independently processes received information without relating to the type of information processed by other components, thereby improving the efficiency of information processing.

Description

Information processing method and device, computer readable storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information processing method and apparatus, a computer-readable storage medium, and an electronic device.
Background
In recent years, as machine learning and artificial intelligence technology make breakthrough progress, service architectures surrounding the falling of artificial intelligence technology are becoming mature. Each algorithm model may be abstracted into a component, such as a face recognition component, an object position detection component, an attribute recognition component, and so on. The bottom layer of these components is generally composed of an algorithmic model and a set of interfaces that invoke the model. Many software and hardware factors are often considered when integrating these components into a service. Such as message management, component communication, thread allocation, memory consumption, etc. Generally, the components can communicate in a message queue-dependent mode such as publish-subscribe mode.
Disclosure of Invention
The embodiment of the disclosure provides an information processing method and device, a computer readable storage medium and an electronic device.
An embodiment of the present disclosure provides an information processing method, including: determining a target information processing component from the at least one information processing component based on the type of the information to be processed received from the communication component; sending the information to be processed to a target information processing component; receiving a processing result obtained by processing information to be processed and sent by a target information processing component; determining a component for receiving the processing result as a receiving component from the communication component and the at least one information processing component based on the processing result; and sending the processing result to the receiving component.
According to another aspect of the embodiments of the present disclosure, there is provided an information processing apparatus including: a first determination module for determining a target information processing component from the at least one information processing component based on the type of the information to be processed received from the communication component; the first sending module is used for sending the information to be processed to the target information processing component; the first receiving module is used for receiving a processing result obtained by processing the information to be processed and sent by the target information processing component; a second determination module for determining a component for receiving the processing result as a reception component from the communication component and the at least one information processing component based on the processing result; and the second sending module is used for sending the processing result to the receiving component.
According to another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the above-described information processing method.
According to another aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing processor-executable instructions; and the processor is used for reading the executable instructions from the memory and executing the instructions to realize the information processing method.
Based on the above embodiment of the present disclosure, a target information processing component is determined from at least one information processing component according to the type of received information to be processed, the information to be processed is sent to the target information processing component, the target information processing component is received to process the information to be processed to obtain a processing result, the receiving component is determined based on the processing result, and the processing result is sent to the receiving component, so that the information is cooperatively processed by a plurality of components, decoupling of information distribution and information processing is realized, instantaneity of information response is ensured, each component independently processes the received information, the type of information processed by other components is not needed, and thus, the efficiency of information processing can be improved.
The technical solution of the present disclosure is further described in detail by the accompanying drawings and examples.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in more detail embodiments of the present disclosure with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the principles of the disclosure and not to limit the disclosure. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 is a system diagram to which the present disclosure is applicable.
Fig. 2 is a flowchart illustrating an information processing method according to an exemplary embodiment of the disclosure.
Fig. 3 is a schematic diagram of an application scenario of the information processing method of the embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of an information processing apparatus according to an exemplary embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of an information processing apparatus according to another exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram of an electronic device provided in an exemplary embodiment of the present disclosure.
Detailed Description
Hereinafter, example embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of the embodiments of the present disclosure and not all embodiments of the present disclosure, with the understanding that the present disclosure is not limited to the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
It will be understood by those of skill in the art that the terms "first," "second," and the like in the embodiments of the present disclosure are used merely to distinguish one element from another, and are not intended to imply any particular technical meaning, nor is the necessary logical order between them.
It is also understood that in embodiments of the present disclosure, "a plurality" may refer to two or more and "at least one" may refer to one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the disclosure, may be generally understood as one or more, unless explicitly defined otherwise or stated otherwise.
In addition, the term "and/or" in the present disclosure is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the present disclosure generally indicates that the former and latter associated objects are in an "or" relationship.
It should also be understood that the description of the various embodiments of the present disclosure emphasizes the differences between the various embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
The disclosed embodiments may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with electronic devices, such as terminal devices, computer systems, servers, and the like, include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set top boxes, programmable consumer electronics, network pcs, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above systems, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
Summary of the application
Currently, each algorithm model can be abstracted into a component, such as a face recognition component, an object position detection component, an attribute recognition component, and the like. The bottom layer of these components is generally composed of an algorithmic model and a set of interfaces that invoke the model. Many software and hardware factors are often considered when integrating these components into a service. At present, in order to cooperate these components to process information, a common method is to use a message queue-dependent mode such as publish-subscribe mode, and these modes have the following disadvantages:
a publish-subscribe relationship needs to be defined; the user easily misses the message of the publishing/subscribing component; the realization is complex, a message queue needs to be designed, and a frame loss strategy needs to be designed; the expansion is complex, if a new component is required to be added, the new component needs to be redefined based on common component information, and a user needs to pay attention to the input and output relation of the component; performance loss, performance loss and reduced throughput due to message forwarding and message queue maintenance; thread management is complex.
Exemplary System
Fig. 1 illustrates an exemplary system architecture 100 of an information processing method or an information processing apparatus to which embodiments of the present disclosure may be applied.
As shown in FIG. 1, system architecture 100 may include a cluster of components 101, a network 102, and a message manager 103. Network 102 is the medium used to provide communication links between component cluster 101 and message manager 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The cluster of components 101 can include a communications component 1011 and at least one information processing component 1012 (e.g., information processing component 1-information processing component n in the figure).
The components in the component cluster 101 may be hardware or software. When the component is hardware, it can be various electronic devices (e.g., embedded chips). When the component is software, the component can be installed in the electronic device. It may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The communication component 1011 may interact with the user terminal 104 for receiving information from the user terminal 104 or transmitting information to the user terminal 104. The at least one information processing component 1012 can cooperatively process information received from the communication component. For example, when the information received by the communication component is an image, the object position may be detected by an object position detection component included in the at least one information processing component 1012, and the category of the object may be identified by an object identification component included in the at least one information processing component 1012.
Message manager 103 may communicate with various components in component cluster 101 for forwarding received information to the respective components.
A user may interact with the communication component 1011 using the user terminal 104 to receive or transmit information. Various communication client applications, such as an image processing application, a search application, a web browser application, an instant messaging tool, etc., may be installed on the user terminal 104.
The user terminal 104 may be various electronic devices including, but not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), etc., and a fixed terminal such as a digital TV, a desktop computer, etc.
The message manager 103 may be hardware or software, and when the message manager 103 is hardware, it may be various electronic devices (e.g., a server, a terminal device, etc.). When the message manager 103 is software, it may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, and is not limited in particular.
It should be noted that the information processing method provided by the embodiment of the present disclosure is generally executed by the message manager 103, and accordingly, the information processing apparatus is generally provided in the message manager 103. In addition, the component cluster and the message manager may be disposed on the same electronic device, or may be disposed on different electronic devices.
It should be understood that the number of user terminals, component clusters, networks and message managers in fig. 1 is merely illustrative. There may be any number of user terminals, component clusters, networks, and message managers, as desired for an implementation. In addition, the number of the components in the component cluster can be set arbitrarily according to implementation requirements, so that the expandability of the system can be improved.
Exemplary method
Fig. 2 is a schematic flowchart of an information processing method according to an exemplary embodiment of the present disclosure. As shown in fig. 2, the method comprises the steps of:
step 201, based on the type of the information to be processed received from the communication component, determining a target information processing component from at least one information processing component.
In the present embodiment, an execution subject (e.g., the message manager 103 shown in fig. 1) for executing the information processing method may determine a target information processing component from at least one information processing component (e.g., the at least one information processing component 1012 shown in fig. 1) based on a type of information to be processed received from a communication component (e.g., the communication component 1011 shown in fig. 1). The information to be processed may be various information such as images, video, audio, text, and the like. The communication component can be used for receiving the information to be processed, converting the information to be processed into a format conforming to a preset communication protocol and then sending the information to the execution main body.
The execution main body can determine the type of the information to be processed, and determine an information processing component corresponding to the type from at least one information processing component as a target information processing component according to the type. Wherein the correspondence of the type to the information processing component can be characterized by means such as a list (e.g., including a plurality of information types and the number of the information processing component corresponding to each information type). As an example, when the information to be processed is an image, the image may be transmitted to an information processing component for recognizing the image; when the information to be processed is text, the image may be sent to an information processing component for recognizing the text.
Step 202, sending the information to be processed to the target information processing component.
In this embodiment, the executing agent may send the information to be processed to the target information processing component determined in step 201. The target information processing component can process the received to-be-processed information to obtain a processing result. In general, the target information handling component may process the information to be processed in a particular manner. For example, when the target information processing component is a component for recognizing text and the information to be processed is text, processing such as extracting features, translation, and the like may be performed on the text.
Step 203, receiving a processing result obtained by processing the information to be processed sent by the target information processing component.
In this embodiment, the execution main body may receive a processing result obtained by processing the information to be processed, which is sent by the target information processing component. As an example, when the target information processing component is a component for recognizing a text and the information to be processed is a text, the processing result may be a feature vector extracted for the text, or category information obtained by classifying the text, or a text in another language obtained by translating the text.
And step 204, determining a component for receiving the processing result from the communication component and the at least one information processing component as a receiving component based on the processing result.
In this embodiment, the execution main body described above may determine, as the reception component, a component for receiving the processing result from among the communication component and the at least one information processing component, based on the processing result. Specifically, the execution subject may determine the reception component according to the type or content of the processing result. As an example, when the processing result is feature data for characterizing features of an image, the execution subject described above may determine, as the receiving component, an information processing component for classifying the feature data from among the at least one information processing component. For another example, when the processing result is information for characterizing a category of an image, the execution subject described above may determine the communication component as the reception component.
Step 205, the processing result is sent to the receiving component.
In this embodiment, the execution subject may send the processing result to the receiving component. The receiving component may further process the processing results. Continuing with the example of step 204 above, when the processing result is feature data, the receiving component can classify the processing result. When the processing result is information for characterizing the category of the image, the receiving component may transmit the processing result to the user terminal as shown in fig. 1.
According to the method provided by the embodiment of the disclosure, the target information processing component is determined from the at least one information processing component according to the type of the received information to be processed, the information to be processed is sent to the target information processing component, the target information processing component is received to process the information to be processed to obtain a processing result, the receiving component is determined based on the processing result, and the processing result is sent to the receiving component, so that the information is cooperatively processed by a plurality of components, the decoupling of information distribution and information processing is realized, the instantaneity of information response is ensured, each component independently processes the received information, the type of information processed by other components is not needed, and the efficiency of information processing can be improved.
In some alternative implementations, a thread pool may be disposed in the communication component and an information processing component of the at least one information processing component. Prior to step 201, the execution agent may receive information to be processed obtained via a first thread pool of the communication component. Wherein the first thread pool can execute the forwarding tasks of the information in parallel. For example, when the amount of the to-be-processed information is large, a plurality of pieces of the to-be-processed information can be sent to the execution main body in parallel through the thread pool, so that the information forwarding efficiency can be improved.
The step 203 may include:
and receiving a processing result obtained by processing the information to be processed through the second thread pool of the target information processing component. The second thread pool can execute the task for processing the information to be processed in parallel. For example, when the information to be processed is an image, since the image processing task requires a large amount of computation, the target information processing component can decompose the image processing task into a plurality of computation tasks through the second thread pool, thereby achieving concurrent and efficient processing of the image.
In some alternative implementations, step 204 may be performed as follows:
first, it is determined whether the processing result includes target information. The target information may be information to be obtained by the user terminal. As an example, when the information to be processed is an image, the target information may be object type information obtained by recognizing the image.
If the target information is included, the communication component is determined to be a receiving component. When the processing result includes the target information, indicating that the processing result is information required by the user terminal, the communication component may be determined as the receiving component, that is, the processing result is transmitted to the user terminal by the communication component.
If the target information is not included, an information processing component is determined as a receiving component from the at least one information processing component based on the processing result. When the processing result does not include the target information, it indicates that the current processing result does not include the information required by the user terminal yet, and further processing of the processing result is required, at this time, another information processing component may be determined as a receiving component, and the processing result may be further processed by the information processing component. It should be noted that, after the receiving component further processes the processing result, the information obtained by the further processing may be sent to the execution main body again, and the execution main body may determine again whether the information includes the target information, and execute again the steps in this optional implementation manner.
In the optional implementation manner, the receiving component is determined by determining whether the processing result includes the target information, so that each component can process different information in a targeted manner, and the efficiency of cooperatively processing information by a plurality of components is improved.
In some optional implementations, step 201 may include:
in response to determining that the type of the information to be processed is an image, an object position detection component is determined as a target information processing component from among the at least one information processing component. The object position detection component can be used to determine the position of the object image in the information to be processed (i.e., the image to be processed). In general, the object location detection component may include an object location detection Model, which may be a Model generated based on object detection network training, such as SSD (Single Shot multi box Detector), DPM (flexible Part Model), RPN (Region pro-social Networks), for example. The information to be processed is sent to the object position detection assembly, so that the task for detecting the position of the object can be distributed to the object position detection assembly.
In some alternative implementations, the target information may be object class information for characterizing a class of the object. Based on this, and the object position detection component described in the above-mentioned alternative implementation, if the processing result includes the object position information received from the above-mentioned object position detection component and does not include the object type information, the above-mentioned execution subject may determine the object identification component as the receiving component from at least one information processing component. In general, the execution subject may further transmit a processing result including the object position information to the object recognition component. The object recognition component can extract an object image from the information to be processed (i.e., the image to be processed) based on the object position information, and then recognize the object image to obtain the object type information of the object image.
In general, the object recognition component can include an object recognition model, which can be a model trained based on various neural networks (e.g., mobileNet, leNet, resNet, etc.) used to classify images of objects. According to the realization mode, the object position detection task and the object recognition task are respectively executed by the object position detection component and the object recognition component, so that the distributed processing of the image recognition task is realized, and the image recognition efficiency is improved.
It should be noted that the optional implementation manner may be combined with the thread pool described in the above optional implementation manner, that is, the object position detection component and the object identification component both include thread pools, and the thread pools process images in parallel, so that the efficiency of image identification may be further improved.
In some optional implementations, after determining the object recognition component as the receiving component, the executing body may further perform the following steps:
first, object type information transmitted by an object identification module is received.
The object class information and the object location information are then sent to the communication component. Generally, the communication component may further transmit the object category information and the object location information to a user terminal as shown in fig. 1, where the object category information and the object location information are displayed. The optional implementation mode can send the received object type information to the communication component as finally obtained information, so that the images are identified cooperatively by the multiple components, finally the identified object type information is sent to the user terminal through the communication component, and the image identification result is efficiently shown to the user.
Referring to fig. 3, fig. 3 is a schematic diagram of an application scenario of the information processing method according to the present embodiment. In the application scenario of fig. 3, the user terminal 301 first sends the to-be-processed image 303 (i.e., to-be-processed information) to the communication component 302, the communication component 302 sends the to-be-processed image 303 to the message manager 304 (i.e., the above-mentioned execution subject), the message manager 304 determines the type of the to-be-processed information as an image, and sends the to-be-processed image 303 to the object position detection component 305. The object position detection component 305 may detect the position of an object image (e.g., a face image) in the image to be processed 303, derive object position information 306, and send the object position information 306 to the message manager 304. The message manager 304 sends the object location information 306 to the object identification component 307. Then, the object recognition component 307 determines an object image (e.g., a face image) from the image to be processed 303 based on the object position information 306, and recognizes the object image, resulting in object category information 308 (e.g., identification of a person indicated by the face image). The object identifying component 307 transmits the object class information 308 to the message manager 304, the message manager 304 determines that the object class information 308 is information to be transmitted to the user terminal 301, and transmits the object class information 308 and the object position information 306 to the communication component 302. The communication component 302 finally sends the object class information 308 and the object position information 306 to the user terminal 301. The communication module 302, the object position detection module 305 and the object recognition module 307 in fig. 3 are all provided with thread pools, so that the received information can be processed in parallel respectively, and the efficiency of image recognition is improved.
Exemplary devices
Fig. 4 is a schematic structural diagram of an information processing apparatus according to an exemplary embodiment of the present disclosure. The present embodiment can be applied to an electronic device, and as shown in fig. 4, the information processing apparatus includes: a first determining module 401 for determining a target information processing component from at least one information processing component based on the type of information to be processed received from the communication component; a first sending module 402, configured to send information to be processed to a target information processing component; a first receiving module 403, configured to receive a processing result obtained by processing information to be processed and sent by a target information processing component; a second determining module 404 for determining a component for receiving the processing result from the communication component and the at least one information processing component as a receiving component based on the processing result; a second sending module 405, configured to send the processing result to the receiving component.
In this embodiment, the first determination module 401 may determine the target information processing component from at least one information processing component (e.g., at least one information processing component 1012 shown in fig. 1) based on the type of the information to be processed received from the communication component (e.g., the communication component 1011 shown in fig. 1). The information to be processed may be various information, such as images, videos, audios, texts, and the like. The communication component can be used for receiving the information to be processed, converting the information to be processed into a format conforming to a preset communication protocol and then sending the format to the information processing device.
The first determining module 401 may determine the type of the information to be processed, and determine an information processing component corresponding to the type from the at least one information processing component as the target information processing component according to the type. Wherein the correspondence of the type to the information processing component can be characterized by means such as a list (e.g., including a plurality of information types and the number of the information processing component corresponding to each information type). As an example, when the information to be processed is an image, the image may be transmitted to an information processing component for recognizing the image; when the information to be processed is text, the image may be sent to an information processing component for recognizing the text.
In this embodiment, the first sending module 402 may send the information to be processed to the target information processing component determined by the first determining module 401. The target information processing component can process the received to-be-processed information to obtain a processing result. In general, the target information handling component may process the information to be processed in a particular manner. For example, when the target information processing component is a component for recognizing text and the information to be processed is text, processing such as extracting features, translation, and the like may be performed on the text.
In this embodiment, the first receiving module 403 may receive a processing result obtained by processing the information to be processed sent by the target information processing component. As an example, when the target information processing component is a component for recognizing a text and the information to be processed is a text, the processing result may be a feature vector extracted for the text, or category information obtained by classifying the text, or a text in another language obtained by translating the text.
In this embodiment, the second determination module 404 may determine, as the reception component, a component for receiving the processing result from among the communication component and the at least one information processing component, based on the processing result. Specifically, the second determining module 404 may determine the receiving component according to the type or content of the processing result. As an example, when the processing result is feature data for characterizing features of an image, the above-described second determination module 404 may determine, as a receiving component, an information processing component for classifying the feature data from among the at least one information processing component. For another example, when the processing result is information for characterizing the category of the image, the second determination module 404 may determine the communication component as the receiving component.
In this embodiment, the second sending module 405 may send the processing result to the receiving component. The receiving component may further process the processing results. Continuing with the above example, when the processing results are feature data, the receiving component can classify the processing results. When the processing result is information for characterizing the category of the image, the receiving component may transmit the processing result to the user terminal as shown in fig. 1.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an information processing apparatus according to another exemplary embodiment of the present disclosure.
In some optional implementations, the apparatus may further include: a second receiving module 406, configured to receive information to be processed obtained through the first thread pool of the communication component; the first receiving module 403 may be further configured to: and receiving a processing result obtained by processing the information to be processed through a second thread pool of the target information processing assembly.
In some alternative implementations, the second determining module 404 may include: a first determination unit 4041 configured to determine whether the processing result includes target information; a second determining unit 4042 configured to determine that the communication component is a receiving component if the target information is included; a third determining unit 4043 configured to determine an information processing component as a receiving component from the at least one information processing component based on the processing result if the target information is not included.
In some optional implementations, the first determining module 401 may be further configured to: in response to determining that the type of the information to be processed is an image, an object position detection component is determined as a target information processing component from among the at least one information processing component.
In some optional implementations, the target information is object class information for characterizing a class of the object; the third determining unit 4043 may be further configured to: if the processing result includes the object position information received from the object position detecting component and does not include the object category information, the object identifying component is determined as the receiving component from the at least one information processing component.
In some optional implementations, the apparatus may further include: a third receiving module 407, configured to receive the object category information sent by the object identification component; a third sending module 408, configured to send the object category information and the object location information to the communication component.
According to the information processing device provided by the embodiment of the disclosure, the target information processing component is determined from the at least one information processing component according to the type of the received information to be processed, the information to be processed is sent to the target information processing component, the target information processing component is received and processes the information to be processed to obtain a processing result, the receiving component is determined based on the processing result, and the processing result is sent to the receiving component, so that the information is cooperatively processed by a plurality of components, decoupling of information distribution and information processing is realized, instantaneity of information response is ensured, each component independently processes the received information, the type of information processed by other components is not needed, and the efficiency of information processing can be improved.
Exemplary electronic device
Next, an electronic apparatus according to an embodiment of the present disclosure is described with reference to fig. 6. The electronic device may be a message manager as shown in fig. 1.
FIG. 6 illustrates a block diagram of an electronic device in accordance with an embodiment of the disclosure.
As shown in fig. 6, the electronic device 600 includes one or more processors 601 and memory 602.
The processor 601 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 600 to perform desired functions.
The memory 602 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, random Access Memory (RAM), cache memory (or the like). The non-volatile memory may include, for example, read Only Memory (ROM), a hard disk, flash memory, and the like. One or more computer program instructions may be stored on a computer-readable storage medium and executed by the processor 601 to implement the information processing methods of the various embodiments of the present disclosure above and/or other desired functions. Various contents such as an input signal, a signal component, a noise component, etc. may also be stored in the computer-readable storage medium.
In one example, the electronic device 600 may further include: an input device 603 and an output device 604, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
For example, the input device 603 may be a communication network connector for receiving information from various components.
The output device 604 can output various information including information to be processed, a processing result, and the like to the outside. The output devices 604 may include, for example, a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the electronic device 600 relevant to the present disclosure are shown in fig. 6, omitting components such as buses, input/output interfaces, and the like. In addition, electronic device 600 may include any other suitable components depending on the particular application.
Exemplary computer program product and computer-readable storage Medium
In addition to the above-described methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the information processing method according to the various embodiments of the present disclosure described in the "exemplary methods" section above of this specification.
The computer program product may write program code for carrying out operations for embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform steps in an information processing method according to various embodiments of the present disclosure described in the "exemplary methods" section above of this specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present disclosure in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present disclosure are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The block diagrams of devices, apparatuses, devices, systems involved in the present disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the apparatus, devices, and methods of the present disclosure, various components or steps may be broken down and/or re-combined. These decompositions and/or recombinations are to be considered equivalents of the present disclosure.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (9)

1. An information processing method, the method being performed by a message manager, the method comprising:
determining a target information processing component from the at least one information processing component based on the type of the information to be processed received from the communication component;
sending the information to be processed to the target information processing component;
receiving a processing result which is sent by the target information processing component and is obtained by processing the information to be processed;
determining a component for receiving the processing result from the communication component and the at least one information processing component as a receiving component based on the processing result;
sending the processing result to the receiving component;
wherein the determining, from the communication component and the at least one information processing component, a component for receiving the processing result as a receiving component based on the processing result and the sending the processing result to the receiving component, includes:
determining whether the processing result comprises target information, wherein the target information is information to be obtained by the user terminal;
if the target information is included, determining that the communication assembly is a receiving assembly, and sending the processing result to the communication assembly so that the communication assembly can send the processing result to the user terminal;
if the target information is not included, determining an information processing component from the at least one information processing component as a receiving component based on the processing result, and sending the processing result to the information processing component determined this time so as to further process the processing result by the information processing component determined this time;
receiving information obtained by further processing the information processing assembly determined this time;
and with the information obtained by the further processing as a new processing result, executing the operation of determining, from the communication component and the at least one information processing component, a component for receiving the processing result as a receiving component based on the processing result, and sending the processing result to the receiving component.
2. The method of claim 1, wherein the method further comprises:
receiving information to be processed obtained through a first thread pool of the communication assembly;
the receiving of the processing result obtained by processing the information to be processed and sent by the target information processing component includes:
and receiving a processing result obtained by processing the information to be processed through a second thread pool of the target information processing assembly.
3. The method of claim 1, wherein the determining a target information processing component from the at least one information processing component based on the type of information to be processed received from the communication component comprises:
in response to determining that the type of the information to be processed is an image, determining an object position detection component as a target information processing component from the at least one information processing component.
4. The method according to claim 3, wherein the target information is object class information for characterizing a class of an object;
determining an information processing component as a receiving component from the at least one information processing component based on the processing result if the target information is not included, including:
if the processing result includes the object position information received from the object position detecting component and does not include the object category information, determining the object identifying component as a receiving component from the at least one information processing component.
5. The method of claim 4, wherein after the determining an object identification component as the receiving component, the method further comprises:
receiving object category information sent by the object identification component;
sending the object category information and the object location information to the communication component.
6. An information processing apparatus provided in a message manager, the apparatus comprising:
a first determination module for determining a target information processing component from the at least one information processing component based on the type of the information to be processed received from the communication component;
the first sending module is used for sending the information to be processed to the target information processing component;
the first receiving module is used for receiving a processing result which is sent by the target information processing component and used for processing the information to be processed;
a second determining module, configured to determine, based on the processing result, a component for receiving the processing result from the communication component and the at least one information processing component as a receiving component, and specifically configured to: determining whether the processing result comprises target information, wherein the target information is information to be obtained by the user terminal; if the target information is included, determining that the communication component is a receiving component; if the target information is not included, determining an information processing component as a receiving component from the at least one information processing component based on the processing result;
a second sending module, configured to send the processing result to the receiving component, and specifically configured to: according to the fact that when the second determining module determines that the communication assembly is the receiving assembly, the processing result is sent to the communication assembly, so that the communication assembly can send the processing result to the user terminal; when the second determining module determines that the information processing component is used as a receiving component, sending the processing result to the information processing component determined this time so that the information processing component determined this time can further process the processing result;
the first receiving module is further configured to receive information obtained by further processing the information processing component determined this time;
the second determining module is further configured to perform, with the information obtained by the further processing as a new processing result, the operation of determining, from the communication component and the at least one information processing component, a component for receiving the processing result as a receiving component based on the processing result;
the second sending module is further configured to execute the operation of sending the processing result to the receiving component by using the information obtained by the further processing as a new processing result.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the second receiving module is used for receiving the information to be processed obtained by the first thread pool of the communication assembly;
the first receiving module is further configured to:
and receiving a processing result obtained by processing the information to be processed through a second thread pool of the target information processing assembly.
8. A computer-readable storage medium, the storage medium storing a computer program for executing the method of any of the preceding claims 1-5.
9. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is used for reading the executable instructions from the memory and executing the instructions to realize the method of any one of the claims 1 to 5.
CN201910818514.0A 2019-08-30 2019-08-30 Information processing method and device, computer readable storage medium and electronic equipment Active CN110532113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910818514.0A CN110532113B (en) 2019-08-30 2019-08-30 Information processing method and device, computer readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910818514.0A CN110532113B (en) 2019-08-30 2019-08-30 Information processing method and device, computer readable storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110532113A CN110532113A (en) 2019-12-03
CN110532113B true CN110532113B (en) 2023-03-24

Family

ID=68666045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910818514.0A Active CN110532113B (en) 2019-08-30 2019-08-30 Information processing method and device, computer readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110532113B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112417050A (en) * 2020-11-25 2021-02-26 青岛海尔科技有限公司 Data synchronization method and device, system, storage medium and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101151604A (en) * 2005-01-06 2008-03-26 特维拉有限公司 Provisioning and management in a message publish/subscribe system
KR20090123518A (en) * 2008-05-28 2009-12-02 매크로임팩트 주식회사 Real-time data replication system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4443722B2 (en) * 2000-04-25 2010-03-31 富士通株式会社 Image recognition apparatus and method
CN102682091A (en) * 2012-04-25 2012-09-19 腾讯科技(深圳)有限公司 Cloud-service-based visual search method and cloud-service-based visual search system
CN108241822B (en) * 2016-12-23 2020-11-27 杭州海康威视数字技术股份有限公司 Vehicle type identification method and device
CN108898587A (en) * 2018-06-19 2018-11-27 Oppo广东移动通信有限公司 Image processing method, picture processing unit and terminal device
CN109242473A (en) * 2018-08-31 2019-01-18 阿里巴巴集团控股有限公司 A kind of method of payment, device and electronic equipment
CN109376844A (en) * 2018-10-30 2019-02-22 银河水滴科技(北京)有限公司 The automatic training method of neural network and device recommended based on cloud platform and model
CN109657674A (en) * 2018-11-28 2019-04-19 新华三技术有限公司 A kind of vehicles identifications determine method and device
CN110110652B (en) * 2019-05-05 2021-10-22 达闼科技(北京)有限公司 Target detection method, electronic device and storage medium
CN110111281A (en) * 2019-05-08 2019-08-09 北京市商汤科技开发有限公司 Image processing method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101151604A (en) * 2005-01-06 2008-03-26 特维拉有限公司 Provisioning and management in a message publish/subscribe system
KR20090123518A (en) * 2008-05-28 2009-12-02 매크로임팩트 주식회사 Real-time data replication system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A comprehensive Software Copy Protection and Digital Rights Management platform;Ayman Mohammad Bahaa-Eldin 等;《Ain Shams Engineering Journal》;第5卷(第3期);第703-720页 *
应用服务器消息分发组件的设计与实现;孙倩 等;《计算机系统应用》;第19卷(第8期);第137-140页 *

Also Published As

Publication number Publication date
CN110532113A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
US11023716B2 (en) Method and device for generating stickers
US10693816B2 (en) Communication methods and systems, electronic devices, and computer clusters
CN110647832A (en) Method and device for acquiring information in certificate, electronic equipment and storage medium
CN113435409A (en) Training method and device of image recognition model, storage medium and electronic equipment
CN113407882A (en) Component generation method and device, computer-readable storage medium and electronic equipment
CN110955640A (en) Cross-system data file processing method, device, server and storage medium
CN114821066A (en) Model training method and device, electronic equipment and computer readable storage medium
CN110929505A (en) Method and device for generating house source title, storage medium and electronic equipment
CN110532113B (en) Information processing method and device, computer readable storage medium and electronic equipment
CN109636460B (en) Service processing method, device, equipment and storage medium
CN109284482B (en) Writing platform system and article publishing method for writing platform
CN112214770B (en) Malicious sample identification method, device, computing equipment and medium
CN109933254A (en) Show method, equipment and the computer storage medium of reading content
KR20140026079A (en) Apparatus and method for analyzing video and image
CN112380169A (en) Storage device, data processing method, device, apparatus, medium, and system
CN113111692A (en) Target detection method and device, computer readable storage medium and electronic equipment
CN108062576A (en) For the method and apparatus of output data
CN114782680A (en) Training method and device of target detection model, and target detection method and device
CN113407339A (en) Resource request feedback method and device, readable storage medium and electronic equipment
CN113779021A (en) Data processing method, device, computer system and readable storage medium
CN112801226A (en) Data screening method and device, computer readable storage medium and electronic equipment
CN112463409A (en) Data interaction method and device, electronic equipment and computer readable storage medium
CN113111181B (en) Text data processing method and device, electronic equipment and storage medium
CN111985235A (en) Text processing method and device, computer readable storage medium and electronic equipment
CN115659405B (en) Interaction method and device of digital object, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant