CN116390793A - Message processing method, device, equipment and storage medium - Google Patents

Message processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116390793A
CN116390793A CN202180002776.5A CN202180002776A CN116390793A CN 116390793 A CN116390793 A CN 116390793A CN 202180002776 A CN202180002776 A CN 202180002776A CN 116390793 A CN116390793 A CN 116390793A
Authority
CN
China
Prior art keywords
message
target channel
messages
channel corresponding
management system
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.)
Withdrawn
Application number
CN202180002776.5A
Other languages
Chinese (zh)
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.)
Sensetime International Pte Ltd
Original Assignee
Sensetime International Pte 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 Sensetime International Pte Ltd filed Critical Sensetime International Pte Ltd
Publication of CN116390793A publication Critical patent/CN116390793A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/805Real-time

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Provided are a message processing method, apparatus, device and storage medium, wherein the method comprises the following steps: acquiring a plurality of messages generated by a data analysis system through at least one message queue; the data analysis system is configured to analyze scene data to generate the plurality of messages; determining a target channel corresponding to each message in at least two connection channels; and forwarding each message to a management system through a target channel corresponding to each message, so that the management system processes the message transmitted by each target channel based on a message processing strategy corresponding to each target channel.

Description

Message processing method, device, equipment and storage medium
Cross Reference to Related Applications
The present application claims priority to the filing of singapore intellectual property office, singapore patent application number 10202110086U at day 2021, 9 and 14, the entire contents of which are incorporated herein by reference.
Technical Field
The embodiment of the disclosure relates to the field of data processing, in particular to a message processing method, a device, equipment and a storage medium.
Background
In order to ensure fairness of games in casinos, the casinos need to analyze scene data such as behaviors of players and game controllers, placement positions of game props and the like, judge whether the scene data accords with preset relevant rules, and can give an alarm according to corresponding alarm mechanisms under the condition that the relevant rules are not met.
In some solutions, the data analysis system detecting the scene data of the casino may send an alarm message to the management system processing the alarm message after generating the alarm message according to the data detection result, and the management system gives an alarm by giving an instruction to the alarm indicator lamp or giving a prompt to the manager. The coupling degree between the data analysis system and the management system is high, and the maintenance difficulty is high.
Disclosure of Invention
The embodiment of the disclosure provides a message processing method, a device, equipment and a storage medium.
In a first aspect, a message processing method is provided, including: acquiring a plurality of messages generated by a data analysis system through at least one message queue; the data analysis system is configured to analyze scene data to generate the plurality of messages; determining a target channel corresponding to each message in at least two connection channels; and forwarding each message to a management system through a target channel corresponding to each message, so that the management system processes the message transmitted by each target channel based on a message processing strategy corresponding to each target channel.
In some embodiments, the method is applied to a message broker component for forwarding a plurality of messages generated by the data analysis system to the management system, wherein: the data analysis system comprises a plurality of functional modules, wherein each functional module is used for analyzing scene data acquired in real time in a casino by adopting an analysis method corresponding to the functional module so as to generate corresponding information; the message is used for indicating whether an abnormal event occurs in the casino; the management system is used for displaying a plurality of messages forwarded by the message proxy component to a game controller.
In some embodiments, the data analysis system further comprises a camera assembly disposed at the casino; the camera component is used for collecting scene data in the entertainment field in real time.
In some embodiments, the obtaining, by the at least one message queue, the plurality of messages generated by the data analysis system includes: for each message queue in the at least one message queue, acquiring a target theme corresponding to the message queue, and storing messages corresponding to the target theme in the plurality of messages in the message queue; and pulling the plurality of messages generated by the data analysis system from the at least one message queue.
In some embodiments, the determining a target channel corresponding to each message in at least two connection channels includes: determining a target channel corresponding to each message based on a message queue corresponding to each message and a preset first mapping relation table; the first mapping relation table comprises the mapping relation between the message queue and the target channel.
In some embodiments, the determining a target channel corresponding to each message in at least two connection channels further includes: analyzing each message to obtain attribute information carried by each message; and determining a target channel corresponding to each message in the at least two connection channels based on the attribute information carried by each message.
Through the disclosed embodiment, the target channel corresponding to the message in the part of message queues can be determined directly based on the preset mapping relation, so that the forwarding efficiency of the message is ensured, and meanwhile, the message can be accurately transmitted to the corresponding channel based on the attribute information of the message under the condition that the mapping relation of the message queue where the message is located does not exist in the first mapping relation table, so that the accuracy of message transmission is improved.
In some embodiments, the attribute information includes at least one of: the message type and the message identification of the message; the message type is used to determine a priority of the management system to process the message, and the message identification is used to identify a manner in which the management system presents the message.
In some embodiments, in a case where the attribute information includes a message type of the message, the determining, based on the attribute information carried by each of the messages, a target channel corresponding to each of the messages in the at least two connection channels includes: and under the condition that the message type of the message is an alarm type, taking a first connection channel corresponding to the alarm type in the at least two connection channels as a target channel corresponding to the message. When the message type of the message is a non-alarm type, taking a second connection channel corresponding to the non-alarm type of the at least two connection channels as a target channel corresponding to the message; the management system processes the messages in the first connection channel with a higher priority than the messages in the second connection channel.
In some embodiments, the selecting a first connection channel corresponding to the alarm type of the at least two connection channels as a target channel corresponding to the message includes: determining the alarm level of the message according to the alarm type of the message; and taking a first connection channel corresponding to the alarm level in the at least two connection channels as a target channel corresponding to the message.
Based on the above embodiment, the message proxy component can directly classify the plurality of messages transmitted in the data analysis system from the dimension of the alarm level, and transmit the messages to the management system through different first connection channels according to the different alarm levels, so that the management system does not need to reclassify the alarm levels of the messages, directly processes the messages of different first connection channels based on the different first connection channels, and improves the processing efficiency of the messages.
In some embodiments, in a case where the attribute information includes a message identifier of the message, the determining, based on the attribute information carried by each message, a target channel corresponding to each message in the at least one connection channel includes: taking a third connection channel corresponding to the message identifier in the at least two connection channels as a target channel corresponding to the message; and the management system displays the message in the third connecting channel corresponding to the message identifier through the display mode corresponding to the message identifier.
In some embodiments, the taking a third connection channel corresponding to the message identifier of the at least two connection channels as a target channel corresponding to the message includes: determining a display mode corresponding to the message according to the message identification of the message and a preset second mapping relation table; the second mapping relation table comprises the mapping relation between the message and the display mode; the display mode comprises at least one of the following: display screen display, indicator light display and audio display; and based on the display mode of the message, taking a third connection channel corresponding to the display mode of the at least two connection channels as a target channel corresponding to the message.
Based on the above embodiment, the message proxy component can directly classify the plurality of messages transmitted in the data analysis system from the dimension of the message identifier, and transmit the messages to the management system through different third connection channels according to the different message identifiers, so that the management system does not need to reclassify the alarm level of the messages, directly displays the messages of different third connection channels based on the different third connection channels, and improves the processing efficiency of the messages by adopting different display modes.
In a second aspect, a message processing system is provided, comprising a data analysis system, a message broker component, and a management system, wherein: the data analysis system is used for analyzing scene data to generate a plurality of messages and sending the messages to the message proxy component; the message agent component is used for acquiring the messages through at least one message queue, determining a target channel corresponding to each message in at least two connection channels, and forwarding each message to a management system through the target channel corresponding to each message; and the management system is used for processing the message transmitted by each target channel based on the message processing strategy corresponding to each target channel.
In a third aspect, there is provided a message processing apparatus comprising: an acquisition unit for acquiring a plurality of messages generated by the data analysis system through at least one message queue; the data analysis system is configured to analyze scene data to generate the plurality of messages; a determining unit, configured to determine a target channel corresponding to each message in at least two connection channels; and the forwarding unit is used for forwarding each message to a management system through a target channel corresponding to each message, so that the management system processes the message transmitted by each target channel based on a message processing strategy corresponding to each target channel.
In a fourth aspect, there is provided a message processing apparatus comprising: the system comprises a memory and a processor, wherein the memory stores a computer program which can be run on the processor, and the processor realizes the steps in the method when executing the computer program.
In a fifth aspect, a computer storage medium is provided, the computer storage medium storing one or more programs executable by one or more processors to implement the steps in the above method.
In the embodiment of the disclosure, the plurality of messages generated by the data analysis system are received through at least one message queue in the message proxy component, so that the decoupling among all subsystems in the message processing system can be realized compared with the scheme of directly communicating the data analysis system with the management system in the prior art, and the system can be synchronously modified without changing one system in the development process of the data analysis system or the management system, thereby reducing the maintenance cost of the system and improving the expandability of the system. In addition, as the connection channels corresponding to the types are set for the messages of different types, the management system can conveniently set the message processing strategies corresponding to the connection channels for the different connection channels, and when the management system receives the messages, the message can be directly processed according to the message processing strategies corresponding to the target channels for transmitting the messages, so that the message processing efficiency can be improved.
Drawings
FIG. 1 is a schematic diagram of a message processing system according to an embodiment of the present disclosure;
fig. 2 is a flow chart of a message processing method according to an embodiment of the disclosure;
fig. 3 is a flow chart of a message processing method according to an embodiment of the disclosure;
fig. 4 is a flow chart of a message processing method according to an embodiment of the disclosure;
fig. 5 is a flow chart of a message processing method according to an embodiment of the disclosure;
fig. 6 is a flow chart of a message processing method according to another embodiment of the disclosure;
FIG. 7 is a schematic diagram of a system architecture of a message processing system according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a composition structure of a message processing apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic hardware entity diagram of a message processing device according to an embodiment of the present disclosure.
Detailed Description
The technical scheme of the present disclosure will be specifically described below by way of examples and with reference to the accompanying drawings. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
It should be noted that: in the examples of this disclosure, "first," "second," etc. are used to distinguish similar objects and not necessarily to describe a sequential or chronological order of the objects. In addition, the embodiments of the present disclosure may be arbitrarily combined without any collision.
Fig. 1 is a schematic diagram of a message processing system according to an embodiment of the disclosure, and as shown in fig. 1, the system 100 may include a data analysis system 101, a message broker component 102, and a management system 103.
In some embodiments, the data analysis system 101 may include a camera assembly and an analysis device. Wherein, the camera assembly may be a bird's eye view camera assembly, and the camera assembly may include a plurality of cameras, for example, the camera assembly may include two cameras, three cameras, four cameras, or the like. The plurality of cameras may be disposed above one game table such that each camera is capable of capturing the one game table, or the plurality of cameras may be disposed above the plurality of game tables such that each camera is capable of capturing each of the plurality of game tables. In other embodiments, the camera assembly may include one camera, one camera may be disposed above one gaming table, or one camera may be disposed above a plurality of gaming tables. The analysis device may correspond to only one camera assembly, the analysis device may also correspond to a plurality of camera assemblies, for example, the analysis device may correspond to a plurality of camera assemblies for shooting a game table in one or more casinos, or the analysis device may correspond to a plurality of camera assemblies for shooting a game table in a partial area of one casino. The partial area may be a non-alert area or a very important person (Very Important Person, VIP) area, etc.
In some embodiments, the camera assembly in the data analysis system 101 needs to be located in a casino to collect scene data in the current casino, where the scene data may include action data of character objects (game controllers and/or players), game stage data in a game table; the analysis equipment in the data analysis system 101 may be located in a casino. For example, the analysis device may be connected to a server in a casino. In other embodiments, the analysis device in the data analysis system 101 may also be disposed in the cloud.
The camera assembly may be communicatively coupled to an analysis device. In some embodiments, the camera assembly may capture real-time images periodically or aperiodically and transmit the captured real-time images to the analysis device. For example, in the case where the camera assembly includes a plurality of cameras, the plurality of cameras may capture real-time images once every target period and transmit the captured real-time images to the analysis device. Wherein, a plurality of cameras can shoot real-time images simultaneously or not simultaneously. In other embodiments, the camera assembly may capture real-time video and transmit the real-time video to the analysis device. For example, in the case where the camera assembly includes a plurality of cameras, the plurality of cameras may respectively transmit the photographed real-time video to the analysis device so that the analysis device intercepts real-time images from the real-time video. The real-time image in the embodiments of the present disclosure may be any one or more of the images described below.
In some embodiments, the camera assembly may continuously capture images, thereby continuously transmitting the captured images to the analysis device to detect a change in state of an object in the scene over a period of time, or to determine an event that occurred over the period of time. In other embodiments, the camera assembly may begin capturing images under the control of a trigger instruction, e.g., the camera assembly may begin capturing images in response to an instruction to either present a game result or to complete the placement of a game piece. The analysis device may analyze the gaming tables in the casino and the game controllers and players next to the gaming tables based on the live images to determine whether the actions of the game controllers and/or players are in compliance or proper.
In some embodiments, the analysis device in the data analysis system 101 may be provided with a plurality of functional modules, each of which may be used to analyze the currently acquired scene data using a different analysis method. Wherein the plurality of functional modules may share a camera assembly in the data analysis system. For example, in the case where the camera assembly includes a plurality of cameras, each of the plurality of functional modules may analyze real-time images/real-time videos acquired by some or all of the plurality of cameras, and the cameras corresponding to the different functional modules may be identical, different, or partially identical.
The data analysis system 101 can be communicatively coupled to the message broker component 102. In some embodiments, the data analysis system 101 can send a message to the management system 103 to the message broker component 102 before forwarding the message to the management system 103 via the message broker component 102. The message passing manner between the data analysis system 101 and the message broker component 102 may adopt a publish/subscribe mode, where the data analysis system 101 may publish a message of a specific topic to a message queue set in the message broker component 102, and then the message broker component 102 pulls the message of the specific topic from the message queue by subscribing to the specific topic. The data analysis system and the message agent component can be decoupled by adopting the publishing/subscribing mode, so that the expandability of the message processing system is improved.
In some embodiments, each functional module in the data analysis system 101 may generate a message of at least one topic, and accordingly, a message queue corresponding to a different topic may be set in the message broker component 102, and after the data analysis system 101 issues the message, the message broker component stores the message in the corresponding message queue according to the topic corresponding to the message. The message broker component 102 can also enable screening of messages of different topics by subscribing to messages of a portion of the topic. For example, in the case where the data analysis system 101 includes 3 functional modules, the first functional module may generate messages of A, B, C with three topics, the second functional module may generate messages of B, C, D with three topics, and the third functional module may generate messages of A, D with two topics, then in the message broker component 102, 4 message queues may be set to store messages corresponding to A, B, C, D four topics respectively, and then the message broker component 102 may pull the message to be forwarded from the 4 message queues by subscribing to all or part of the topics.
The message agent component can be a message middleware which can be embedded in a data analysis system or a management system, or can be independent of the data analysis system and the management system, and is mainly used for providing message service between the data analysis system and the management system in a decoupling mode.
In some embodiments, the message generated by the data analysis system 101 may include an alert message or a non-alert message. In the case where the analysis device in the data analysis system 101 determines that the action of the game controller or the player is illegal, in order to avoid loss to the casino or the player, for the game table corresponding to the game controller or the player with illegal action, the data analysis system 101 may send an alarm message to the management system 103 corresponding to the game table, so that the management system 103 can send out an alarm to the game controller or the player with the alarm message, thereby avoiding loss to the casino or the player caused by illegal action of the game controller or the player. In embodiments of the present disclosure, the data analysis system 101 may send the generated message to the message broker component 102 and forward to the management system 103 through the message broker component 102.
In some embodiments, the analysis devices in the data analysis system 101 may encapsulate the generated message, obtain a message packet carrying the message type, message identification, and message content, and send the message packet to a message queue in the message broker component 102. The message queue in the message broker component 102 can be a rock mq and the message broker component 102 can select at least one topic for subscription as desired.
In some embodiments, the message broker component 102 can be communicatively coupled to the management system 103 using at least one connection channel. Wherein, different connection channels may forward different messages, and accordingly, the management system 103 may also process the messages in different connection channels by adopting different processing manners. For example, the connection channels between the message broker component 102 and the management system 103 may include a connection channel for lighting indicator lights with different colors, a connection channel for displaying message content, and the like, where, for a message in the connection channel for lighting indicator lights with different colors, the management system 103 lights an indicator light corresponding to the connection channel according to the message content of the message, and displays different colors according to the message content; the management system 103 parses the message in the connection channel for displaying the message content to obtain the corresponding message content, and displays the message content on the corresponding display interface.
Embodiments of the present disclosure are not limited thereto, and in the corresponding embodiment of fig. 1, the data analysis system 101, the message broker component 102, and the management system 103 are shown as being separate, respectively, but in other embodiments, the data analysis system 101 and the message broker component 102 may be integrated together, or the message broker component 102 and the management system 103 may be integrated together.
The message processing method provided by the embodiment of the disclosure can monitor abnormal game behaviors in a casino, and under the condition that players or game controllers make behaviors which are harmful to game fairness, the management system gives an alarm, so that the situation that the casino is lost due to the fact that the players or the game controllers make behaviors which do not accord with game rules is avoided.
Fig. 2 is a flow chart of a message processing method according to an embodiment of the present disclosure, as shown in fig. 2, where the method is applied to a message broker component, and the method includes:
s201, acquiring a plurality of messages generated by a data analysis system through at least one message queue; the data analysis system is for analyzing scene data to generate the plurality of messages.
In some embodiments, the message broker component is configured to forward a plurality of messages generated by the data analysis system to the management system, wherein: the data analysis system can comprise analysis equipment and a camera assembly arranged in the casino, wherein the data analysis system collects scene data in the casino in real time through the camera assembly, and analyzes the scene data through an analysis method preset in the analysis equipment, such as object identification and/or detection and event identification, so as to generate corresponding messages. The message may include an alarm message and/or a non-alarm message, specifically, when it is determined that the analysis result meets an alarm condition, for example, when the analysis result is that there is a cheating behavior in the game, a corresponding alarm message is generated; and under the condition that the analysis result does not meet the alarm condition, generating a corresponding non-alarm message, wherein the non-alarm message can be a message containing the analysis result, for example, a message containing state data of game props of the current game scene, or can be a notification message representing that the game state is normal.
In some embodiments, the camera assembly may obtain real-time scene data in a current casino and transmit the real-time scene data to the analysis device, which may analyze the real-time scene data based on a preset period to obtain a plurality of messages; different analysis methods can be set in the data analysis system, and each analysis method can generate at least one message, so that the data analysis system can obtain a plurality of messages corresponding to a plurality of analysis methods. The analysis methods may include, but are not limited to, object detection, object attribute information identification, object state identification, object relationship identification, event detection and/or identification, event state change detection and/or identification, etc., and specific objects and events may be determined based on real-time scenarios, such as in a table card game scenario where an object may include a person and/or card participating in a game and an event includes a deal to a specific person.
It should be noted that the message generated by the data analysis system may be used to determine whether an abnormal situation occurs in the current game scene. The alert message characterizes an abnormal situation, and the non-alert message may characterize that no abnormal situation has occurred. For example, the data analysis system may generate alert messages that characterize the presence of anomalies in the game controller's behavior, and may also generate messages that characterize whether anomalies exist in the player's behavior. Wherein the message for whether there is an abnormality in the behavior of the game controller may further include the following aspects: whether the control of the game process by the game controller accords with the standard game rule, whether the placement position of the game controller accords with the standard placement position, whether the collection quantity and the distribution quantity of the game controller accord with the standard game rule and the like; the message as to whether there is an abnormality in the player's behavior may further include the following aspects: whether the placing position of the player for the game props accords with the standard placing position, whether the gesture actions of the player in the game process accord with the standard gesture rules, whether the using quantity of the player for the game props or the acquired data accord with the standard game rules, and the like.
In some embodiments, after generating a plurality of messages, the data analysis system may encapsulate each message by using a preset encapsulation method, so as to obtain a message packet containing attribute information of the message, and send the encapsulated message packet to the message proxy component. Wherein the attribute information of the message may include at least one of: message type, message identification and message content. The following embodiments refer to this message packet simply as a message.
In some embodiments, the message broker component can be pre-configured with at least one message queue through which a plurality of messages generated by the data analysis system can be stored. Wherein the at least one message queue may act as a message middleware by which a plurality of messages may be stored. Meanwhile, the message agent component can acquire part or all of the messages in the messages stored in the message middleware based on the requirement of the management system; in the case that the management system needs all messages generated by the data analysis system, the message broker component can acquire all messages stored in the message middleware; in the event that the management system requires a partial message generated by the data analysis system, the message broker component may retrieve a partial message of the plurality of messages stored by the message middleware.
In some embodiments, the messaging between the data analysis system and the message broker component may employ a publish/subscribe mode, and the data analysis system may publish messages of at least one topic to a message queue provided in the message broker component, after which the message broker component pulls messages of subscribed topics from the message queue by subscribing to the topic. The data analysis system and the message agent component can be decoupled by adopting the publishing/subscribing mode, so that the expandability of the message processing system is improved. For example, in the case where N messages corresponding to the topics may be generated in the data analysis system, N message queues may be correspondingly provided in the message broker component, each message queue corresponding to one of the N topics.
Based on the above disclosed embodiments, since the data analysis system and the message broker component complete the message transfer through the publish/subscribe mode, in the case that the data analysis system needs to change the functional module therein or add a new functional module, since the data analysis system is decoupled from the message broker component, the operation and maintenance personnel do not need to synchronously modify the message broker component, thereby improving the expandability of the message processing system and simultaneously reducing the system development cost and the operation and maintenance cost.
Specifically, when an analysis method needs to be newly added in the data analysis system, the data analysis system can receive a configuration instruction sent by an operation and maintenance personnel, and the configuration instruction is used for newly adding a functional module corresponding to the analysis method in the data analysis system. The newly added functional module can generate and release messages with different topics based on a corresponding analysis method, and the message agent component can subscribe the messages corresponding to each topic released by the newly added functional module by adopting a message queue corresponding to each topic under the condition of no modification.
S202, determining a target channel corresponding to each message in at least two connection channels.
In some embodiments, the message broker component and the management system may be communicatively coupled via at least two connection channels. Each connection channel is used for transmitting a message corresponding to the connection channel, and accordingly, after receiving the message in the connection channel, the management system processes the message by adopting a message processing strategy corresponding to the connection channel.
In some embodiments, after the message broker component receives a plurality of messages generated by the data analysis system through the at least one message queue, a connection channel corresponding to each message may be determined based on attribute information carried by the message. The above S202 can be achieved by: for each message, based on attribute information carried by the message, obtaining a message type of the message, wherein the message type comprises an alarm message and a non-alarm message. Accordingly, the at least two connection channels may include at least one connection channel for communicating alert messages and at least one connection channel for communicating non-alert messages. Therefore, in the case that the message is an alarm message, at least one connection channel for transmitting the alarm message among the at least two connection channels may be taken as a target channel of the message; in the case that the message is a non-alarm message, at least one connection channel for transmitting the non-alarm message among the at least two channels may be taken as a target channel of the message.
In some embodiments, after the message broker component receives the plurality of messages generated by the data analysis system via the at least one message queue, for each message, the message broker component may determine a target channel for the message in the at least one connection channel based on the message queue pulling the message. The message proxy component is preset with a corresponding relation between each message queue and the connection channel.
It should be noted that, for each message, the target channel corresponding to the message may be one or more, that is, the same message may be forwarded to the management system only through one connection channel, the management system may process the message by only adopting one message processing policy, the same message may also be forwarded to the management system through different connection channels, and the management system may process the message by adopting different message processing policies. For example, if there is an alarm message, in the case of delivering the alarm message to the management system through a target channel, the management system may process the alarm message by generating only the alert tone; in the case where the alert message is delivered to the management system through a plurality of target channels, the management system may process the alert message in a plurality of ways, such as by generating an alert tone, illuminating an indicator light, and displaying it through a display device.
In some embodiments, the connection channel may be established based on a websocket protocol by which the established connection channel may enable full duplex communication over a single TCP connection. Meanwhile, based on the connection channel, the message proxy component can actively push a message to the management system, and the management system can also send a specific request to the message proxy component. By the mode, the message proxy component and the management system can establish a persistent connection channel only by completing one handshake, and bidirectional data transmission is performed based on the connection channel.
S203, forwarding each message to a management system through a target channel corresponding to each message, so that the management system processes the message transmitted by each target channel based on a message processing strategy corresponding to each target channel.
In some embodiments, the management system may process the message with a corresponding alarm message processing policy when receiving the message in the connection channel for delivering the alarm message, for example, may generate a corresponding alarm indication sound based on the message, may light a corresponding alarm indicator based on the message, may display the alarm message on a preset display device based on the message, and so on; the management system may process the message by adopting a corresponding non-alarm message processing policy under the condition that the management system receives the message of the connection channel for transmitting the non-alarm message, for example, may light a corresponding normal indicator light based on the message, and may display the non-alarm message on a preset display device.
In the embodiment of the disclosure, the plurality of messages generated by the data analysis system are received through at least one message queue, so that the decoupling among all subsystems in the message processing system can be realized compared with the scheme of directly communicating the data analysis system with the management system in the prior art, and the expandability of the system is improved while the maintenance cost of the system is reduced without synchronously modifying one system under the condition that the other system is changed in the development process of the data analysis system or the management system. In addition, as the connection channels corresponding to the types are set for the messages of different types, the management system can conveniently set the message processing strategies corresponding to the connection channels for the different connection channels, and when the management system receives the messages, the message can be directly processed according to the message processing strategies corresponding to the target channels for transmitting the messages, so that the message processing efficiency can be improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of an alternative message processing method according to an embodiment of the present disclosure, based on fig. 2, S201 in fig. 2 may be updated to S301, and S202 may be updated to S302, which will be described in connection with the steps shown in fig. 3.
S301, acquiring a plurality of messages generated by a data analysis system through at least one message queue.
In some embodiments, the data analysis system includes a plurality of functional modules, each of which is configured to analyze scene data collected in real time in a casino by using an analysis method corresponding to the functional module, so as to generate a corresponding message; the message is used to indicate whether an abnormal event has occurred in the casino. Further, different functional modules can analyze scene data acquired in real time in a casino by adopting different analysis methods.
The plurality of functional modules in the data analysis system are not detection modules realized by hardware, but software in the form of programs, plug-ins and the like formed based on different detection algorithms, and the functional modules are logical, so that any combination or further splitting can be performed according to the realized functions.
In some embodiments, the above-described obtaining the plurality of messages generated by the data analysis system through the at least one message queue may be implemented through steps S3011 to S3012:
s3011, for each message queue in the at least one message queue, acquiring a target topic corresponding to the message queue, and storing the message corresponding to the target topic in the message queues in the plurality of messages.
S3012, pulling a plurality of messages generated by the data analysis system from the at least one message queue.
S302, determining a target channel corresponding to each message in at least two connection channels.
In some embodiments, the determining the target channel corresponding to each message in the at least two connection channels may be implemented in step S3021:
s3021, determining a target channel corresponding to each message based on a message queue corresponding to each message and a preset first mapping relation table; the first mapping relation table comprises the mapping relation between the message queue and the target channel.
In some embodiments, the determining the target channel corresponding to each message in the at least two connection channels may be implemented through step S3022:
s3022, analyzing each message to obtain attribute information carried by each message; and determining a target channel corresponding to each message in the at least two connection channels based on the attribute information carried by each message.
In other embodiments, the determining the target channel corresponding to each message in the at least two connection channels may be implemented through step S3021 and step S3022 simultaneously. For example, for each message, determining a target channel corresponding to the message based on a message queue corresponding to the message and a preset first mapping relation table; the first mapping relation table comprises the mapping relation between the message queue and the target channel; analyzing the message under the condition that the message does not exist in the first mapping relation table, so as to obtain attribute information carried by the message; and determining a target channel corresponding to the message in the at least two connection channels based on the attribute information carried by the message. Through the disclosed embodiment, the target channel corresponding to the message in the message queue can be determined based on the preset mapping relation, the forwarding efficiency of the message is improved, and meanwhile, the message can be accurately transmitted to the corresponding channel based on the attribute information of the message under the condition that the mapping relation of the message queue where the message is located does not exist in the first mapping relation table, so that the accuracy of message transmission is improved.
In some embodiments, the attribute information includes at least one of: message type and message identification. In the case that the attribute information includes a message type, determining, in the at least two connection channels, a target channel corresponding to each of the messages based on the attribute information carried by each of the messages in fig. 3 may be implemented through S401 to S402 in fig. 4. Referring to fig. 4, fig. 4 is a schematic flow chart of an alternative message processing method according to an embodiment of the present disclosure, and will be described with reference to the steps shown in fig. 4.
S401, under the condition that the message type of the message is an alarm type, a first connection channel corresponding to the alarm type in the at least two connection channels is used as a target channel corresponding to the message.
S402, taking a second connection channel corresponding to the non-alarm type in the at least two connection channels as a target channel corresponding to the message when the message type of the message is the non-alarm type; the management system processes the messages in the first connection channel with a higher priority than the messages in the second connection channel.
In some embodiments, at least one first connection channel corresponding to an alarm type and at least one second connection channel corresponding to a non-alarm type may exist in the at least two connection channels. For example, if there are P connection channels, there may be a first connection channel corresponding to M1 alarm types, and a second connection channel corresponding to N1 non-alarm types, where M1 is greater than or equal to 0, N1 is greater than or equal to 0, and the sum of M1 and N1 is less than or equal to P. And in the case that the sum of M1 and N1 is smaller than P, the message which can forward the alarm type and the non-alarm type simultaneously exists in the at least two connection channels.
It should be noted that during the game, the game controller or the player will not have any abnormality most of the time, so the corresponding data analysis system will transmit the non-alarm type message most of the time, and the staff does not need to process the non-alarm type message. When a game controller or a player has abnormal behaviors, such as a wrong deal, staff often needs to pay attention to the generated alarm type information, so that the management system processes the information in the first connection channel corresponding to the alarm type with higher priority; and aiming at a second connection channel corresponding to the non-alarm type, the management system processes the message in the second connection channel with lower priority.
In some embodiments, the above-mentioned taking the first connection channel corresponding to the alarm type of the at least two connection channels as the target channel corresponding to the message may be implemented through steps S4011 to S4012.
S4011, determining the alarm level of the message according to the alarm type of the message.
S4012, taking a first connection channel corresponding to the alarm level in the at least two connection channels as a target channel corresponding to the message.
Wherein, in case that the message type of the message is an alarm type, the alarm type is used for representing not only that the message is an alarm message but also an alarm level of the message. Accordingly, different alert levels correspond to different first connection channels, for example, if there are M1 first connection channels in at least two connection channels, and the alert levels of the message include 3 levels in total of the first alert level, the second alert level, and the third alert level arranged from high to low according to the alert levels, then there may be a first connection channel corresponding to the first alert level, a first connection channel corresponding to the second alert level, and a first connection channel corresponding to the third alert level in the M1 first connection channels.
For the messages of the first connection channel corresponding to different alarm levels, the management system also adopts different priorities for processing. For example, based on the above example, the priority of the management system for processing the message transmitted by the first connection channel corresponding to the first alarm level is higher than the priority of the management system for processing the message transmitted by the first connection channel corresponding to the second alarm level, and at the same time, the priority of the management system for processing the message transmitted by the first connection channel corresponding to the second alarm level is also higher than the priority of the management system for processing the message transmitted by the first connection channel corresponding to the third alarm level.
In some embodiments, since the messages have been classified for the data analysis system generation, in the process of the message proxy component transmitting the messages to the management system, the information about the message type in the original message can be removed, and the message from which the message type information is removed is transmitted to the management system through the connection channel. For example, for the alarm process of the abnormal indicator lamp corresponding to abnormal lighting of player behavior, the alarm message generated by the data analysis system may need to carry the message type, player identification, abnormal type and other alarm messages of the alarm message, after classifying the alarm message, the message proxy component determines that the alarm message corresponds to the target first connection channel, and the management system sends a lighting signal to the corresponding abnormal indicator lamp for the message transmitted by the target first connection channel, so that in the process of forwarding the alarm message to the management system, the original alarm message does not need to be forwarded, and only one request for lighting the indicator lamp needs to be forwarded, thereby saving the transmission bandwidth between the message proxy component and the management system.
Based on the above embodiment, the message proxy component can directly classify the plurality of messages transmitted in the data analysis system from the dimension of the alarm level, and transmit the messages to the management system through different first connection channels according to the different alarm levels, so that the management system does not need to reclassify the alarm levels of the messages, and directly processes the messages of different first connection channels based on the different alarm levels corresponding to the first connection channels by adopting different processing priorities, thereby improving the processing efficiency of the messages.
In some embodiments, in a case where the attribute information includes a message identifier of the message, determining, in the at least two connection channels, a target channel corresponding to each message based on attribute information carried by each message in fig. 3 may be implemented in S501 in fig. 5. Referring to fig. 5, fig. 5 is a schematic flow chart of an alternative message processing method according to an embodiment of the present disclosure, and will be described with reference to the steps shown in fig. 5.
S501, taking a third connection channel corresponding to the message identifier in the at least two connection channels as a target channel corresponding to the message; and the management system displays the message in the third connecting channel corresponding to the message identifier through the display mode corresponding to the message identifier.
In some embodiments, for any one third connection channel, the third connection channel is only used for transmitting a message corresponding to a message identifier, so when the management system acquires a message transmitted by the message proxy component through the third connection channel, the message in the third connection channel can be directly displayed through a display mode corresponding to the message identifier.
In some embodiments, the above-mentioned taking the third connection channel corresponding to the message identifier of the at least two connection channels as the target channel corresponding to the message may be implemented through steps S5011 to S5012.
S5011, determining a display mode corresponding to the message according to the message identification of the message and a preset second mapping relation table; the second mapping relation table comprises the mapping relation between the message and the display mode; the display mode comprises at least one of the following: display screen show, pilot lamp show and audio frequency show.
S5012, based on the display mode of the message, using a third connection channel corresponding to the display mode of the at least two connection channels as a target channel corresponding to the message.
The second mapping relation table is preset in the message proxy component, wherein the second mapping relation table may include all message identifiers that can be generated by the data analysis system and display modes corresponding to each message identifier, each message identifier may only correspond to one display mode or may simultaneously correspond to multiple display modes, and the disclosure is not limited to this. For example, for a functional module in the data analysis system, which is used for detecting whether a player is in a corresponding position, the functional module is used for acquiring a real-time image of the corresponding position of the game table, judging whether the player is in the position based on the real-time image, and generating a non-alarm message for indicating that the player is in place when the player is in the position, for the non-alarm message, only the corresponding relation between the non-alarm message and the indication lamp can be stored in the second mapping relation table, namely the management system can transmit related information by always lighting the indication lamp for indicating that the player is in place; correspondingly, under the condition that the player is not in the position, the function module can generate an alarm message which is not in place, and for the alarm message, the second mapping relation can store the corresponding relation between the alarm message and the indication lamp display and the corresponding relation between the alarm message and the audio display, namely, the management system can transmit related information by the way of lighting the indication lamp which represents that the player is not in place and playing related prompt tones.
In some embodiments, for each third connection channel, after the message transmitted in the third connection channel is transmitted to the management system, the management system displays the message based on the display mode corresponding to the third connection channel.
Based on the embodiment, the message agent component can directly classify the plurality of messages transmitted in the data analysis system from the dimension of the message identifier, and transmit the messages to the management system through different third connection channels according to different message identifiers, so that the management system does not need to reclassify the alarm level of the messages, displays the messages of the different third connection channels in different display modes, and improves the processing efficiency of the messages.
The embodiment of the disclosure also provides a message processing system, which comprises a data analysis system, a message agent component and a management system, wherein: the data analysis system is used for analyzing scene data to generate a plurality of messages and sending the messages to the message proxy component; the message agent component is used for acquiring the messages through at least one message queue and determining a target channel corresponding to each message in at least two connection channels; forwarding each message to the management system through a target channel corresponding to each message; the management system is used for processing the messages transmitted by the target channels based on the message processing strategies corresponding to the target channels.
An embodiment of the present disclosure further provides a message processing method, which is applied to the above-mentioned message processing system, and referring to fig. 6, fig. 6 is an optional flowchart of the message processing method provided by the embodiment of the present disclosure, and will be described with reference to the steps shown in fig. 6.
S601, the data analysis system analyzes the scene data to generate a plurality of messages and sends the messages to the message broker component.
S602, the message proxy component acquires the messages through at least one message queue, and determines a target channel corresponding to each message in at least two connection channels; and forwarding each message to the management system through a target channel corresponding to each message.
S603, the management system processes the message transmitted by each target channel based on the message processing strategy corresponding to each target channel.
In the embodiment of the disclosure, as the plurality of messages generated by the data analysis system are received through the at least one message queue, compared with the scheme of directly communicating the data analysis system with the management system in the prior art, decoupling among all subsystems in the message processing system can be realized, and in the development process of the data analysis system or the management system, the other system is not required to be synchronously modified under the condition that one system is changed, so that the system maintenance cost is reduced, and the expandability of the system is improved. In addition, as the message proxy component and the management system are provided with the connection channels corresponding to the types for different types of messages, the management system can conveniently set the message processing strategies corresponding to the connection channels for different connection channels, and when the management system receives a message, the message can be directly processed according to the message processing strategies corresponding to the target channel for transmitting the message, so that the message processing efficiency can be improved.
In the following, an exemplary application of the embodiments of the present application in a practical application scenario will be described. Referring to fig. 7, fig. 7 is a schematic diagram of an alternative system architecture of a message processing system according to an embodiment of the present disclosure. The data analysis system 701 and the message proxy component 702 transfer messages through at least one message queue of the RocketMQ (message middleware), and the message proxy component 702 and the management system 703 transfer messages through WebSocket (connection channel).
In some embodiments, the data analysis system comprises a plurality of functional modules 7011, wherein the functional modules 7011 are not detection modules implemented by hardware, but are software in the form of programs and plug-ins formed based on different detection algorithms, and the functional modules are logical, so that any combination or further splitting can be performed according to the implemented functions.
In some embodiments, each functional module generates a message by running corresponding business processing logic, which may include non-alert messages and alert messages. The functional module may then send the message to be pushed to the casino monitoring system (CMS system) to the message queue of the dockmq, and the message broker component (msg-broker-service) may eventually forward the non-alert message and/or the alert message to the CMS system via WebSocket channels by subscribing to the messages of the dockmq message queue. The data analysis system can send data in real time with the management system in a WebSocket mode. It should be noted that, the main reason for using WebSocket interaction mode instead of Http to communicate is that WebSocket does not need to re-establish connection between networks each time, and only needs to establish connection once to push data in real time, so that delay overhead caused by network connection can be reduced.
In order to obtain more comprehensive scene data, in the entertainment scene, the data analysis system (Data Analyzing Service) may employ different functional modules for different types of scene data, the different functional modules corresponding to different business processing logics, for example, the business logic corresponding to the core functional module for detecting the dealing order includes judging whether the dealing order accords with the game rules according to the order of occurrence of cards, and the core functional module for detecting the game piece placement logic of the player includes judging whether the player places the game piece in an area and/or game stage where the player is allowed to place the game piece according to the association relationship between the hands of the player and the game piece and the position of the game piece. The embodiment of the disclosure establishes a message proxy component (msg-browser-service), sets the message proxy component between the data analysis system and the management system, and collects WebSocket messages sent by all the functional modules through the message proxy component in a unified way and forwards the WebSocket messages to a downstream management system. In some embodiments, the embodiments of the present disclosure may also classify the sent message into an alert message and a non-alert message, and push different types of messages to different WebSocket channels. By the embodiment, only the connection between the CMS system and the msg-browser-service is required to be established, no separate WebSocket connection is required to be established for each functional module, and under the condition that the functional module is added in the later period, the program of the existing WebSocket of the CMS system is not required to be modified, so that the expandability of the system is improved.
In some embodiments, each functional module in the data analysis system performs data encapsulation on the respective message sent to the CMS system, and finally sends the encapsulated message under the corresponding topic of the dockmq; the encapsulated message includes the message type (messageType), message identification (alarmId), and message content (alarmInfo) of the current message. The message broker component takes the content of the message sent to the CMS system by subscribing to the corresponding topic under the rock mq, and by parsing the encapsulated message, determines which WebSocket channel to send to or directly send to a WebSocket based on the message type and message identity of the message (since it is possible that a message sent by a topic will only be sent to one WebSocket). The CMS system establishes connection with the message broker component through different WebSocket, processes the received information with different instructions, for example, the CMS system lights different color indicator lights according to different alarm messages, or displays corresponding information in the CMS system.
Through the embodiment, the message proxy component can subscribe and forward the message through the RocketMQ without depending on WebSocket connection between each functional module and the CMS in the data analysis system. The dependency among the systems is reduced, and the expandability is increased. Meanwhile, the technical scheme can be reused in other game systems, and has the advantages of low cost, simple logic, easy realization and high precision.
Fig. 8 is a schematic diagram of a composition structure of a message processing apparatus according to an embodiment of the disclosure, and as shown in fig. 8, a message processing apparatus 800 includes:
an obtaining unit 801, configured to obtain, through at least one message queue, a plurality of messages generated by the data analysis system; the data analysis system is configured to analyze scene data to generate the plurality of messages;
a determining unit 802, configured to determine a target channel corresponding to each message in at least two connection channels;
and a forwarding unit 803, configured to forward each message to a management system through a target channel corresponding to each message, so that the management system processes the message transmitted by each target channel based on the message processing policy corresponding to each target channel.
In some embodiments, the message processing apparatus is applied to a message broker component for forwarding a plurality of messages generated by the data analysis system to the management system, wherein: the data analysis system comprises a plurality of functional modules, wherein each functional module is used for analyzing scene data acquired in real time in a casino by adopting an analysis method corresponding to the functional module so as to generate corresponding information; the message is used for indicating whether an abnormal event occurs in the casino; the management system is used for displaying a plurality of messages forwarded by the message proxy component to a game controller.
In some embodiments, the data analysis system further comprises a camera assembly disposed at the casino; the camera component is used for collecting scene data in the entertainment field in real time.
In some embodiments, the obtaining unit 801 is further configured to obtain, for each of the at least one message queue, a target topic corresponding to the message queue, and store a message corresponding to the target topic in the message queue in the plurality of messages; and pulling the plurality of messages generated by the data analysis system from the at least one message queue.
In some embodiments, the determining unit 802 is further configured to determine a target channel corresponding to each message based on a message queue corresponding to each message and a preset first mapping relationship table; the first mapping relation table comprises the mapping relation between the message queue and the target channel.
In some embodiments, the determining unit 802 is further configured to parse each message to obtain attribute information carried by each message; and determining a target channel corresponding to each message in the at least two connection channels based on the attribute information carried by each message.
In some embodiments, the attribute information includes at least one of: the message type and the message identification of the message; the message type is used to determine a priority of the management system to process the message, and the message identification is used to identify a manner in which the management system presents the message.
In some embodiments, in a case where the attribute information includes a message type of the message, the determining unit 802 is further configured to, in a case where the message type of the message is an alarm type, use a first connection channel corresponding to the alarm type of the at least two connection channels as a target channel corresponding to the message. When the message type of the message is a non-alarm type, taking a second connection channel corresponding to the non-alarm type of the at least two connection channels as a target channel corresponding to the message; the management system processes the messages in the first connection channel with a higher priority than the messages in the second connection channel.
In some embodiments, the determining unit 802 is further configured to determine an alarm level of the message according to an alarm type of the message; and taking a first connection channel corresponding to the alarm level in the at least two connection channels as a target channel corresponding to the message.
In some embodiments, in case the attribute information comprises a message identification of the message, the determining unit 802 is further configured to: taking a third connection channel corresponding to the message identifier in the at least two connection channels as a target channel corresponding to the message; and the management system displays the message in the third connecting channel corresponding to the message identifier through the display mode corresponding to the message identifier.
In some embodiments, the determining unit 802 is further configured to determine, according to the message identifier of the message and a preset second mapping relationship table, a display manner corresponding to the message; the second mapping relation table comprises the mapping relation between the message and the display mode; the display mode comprises at least one of the following: display screen display, indicator light display and audio display; and based on the display mode of the message, taking a third connection channel corresponding to the display mode of the at least two connection channels as a target channel corresponding to the message.
The description of the apparatus embodiments above is similar to that of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the description of the embodiments of the method of the present disclosure for understanding.
It should be noted that, in the embodiment of the present disclosure, if the message processing method described above is implemented in the form of a software functional module, and sold or used as a separate product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be essentially or partially contributing to the related art, and may be embodied in the form of a software product stored in a storage medium, including several instructions to cause an apparatus to perform all or part of the methods of the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. As such, embodiments of the present disclosure are not limited to any target hardware and software combination.
Fig. 9 is a schematic diagram of a hardware entity of a message processing apparatus according to an embodiment of the present disclosure, as shown in fig. 9, the hardware entity of the message processing apparatus 900 includes: a processor 901 and a memory 902, wherein the memory 902 stores a computer program executable on the processor 901, the processor 901 implementing the steps in the method of any of the embodiments described above when the program is executed.
The memory 902 stores a computer program executable on the processor, the memory 902 is configured to store instructions and applications executable by the processor 901, and may also cache data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by each module in the processor 901 and the message processing device 900, which may be implemented by a FLASH memory (FLASH) or a random access memory (Random Access Memory, RAM).
The processor 901 implements the steps of any one of the message processing methods described above when executing a program. Processor 901 generally controls the overall operation of message processing device 900.
The disclosed embodiments provide a computer storage medium storing one or more programs executable by one or more processors to implement the steps of the message processing method of any of the embodiments above.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present disclosure, please refer to the description of the embodiments of the method of the present disclosure for understanding.
The processor may be at least one of a target application integrated circuit (Application Specific Integrated Circuit, ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing device (Digital Signal Processing Device, DSPD), a programmable logic device (Programmable Logic Device, PLD), a field programmable gate array (Field Programmable Gate Array, FPGA), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronic devices implementing the above-described processor functions may be other, and embodiments of the present disclosure are not particularly limited.
The computer storage medium/Memory may be a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable programmable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable programmable Read Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic random access Memory (Ferromagnetic Random Access Memory, FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Read Only optical disk (Compact Disc Read-Only Memory, CD-ROM); but may also be various terminals such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" or "embodiments of the present disclosure" or "the foregoing embodiments" or "some embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "an embodiment of the present disclosure" or "the foregoing embodiments" or "some embodiments" in various places throughout this specification are not necessarily referring to the same embodiment. Furthermore, the described features, structures, or characteristics of the objects may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present disclosure, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by their functions and internal logic, and should not constitute any limitation on the implementation of the embodiments of the present disclosure. The foregoing embodiment numbers of the present disclosure are merely for description and do not represent advantages or disadvantages of the embodiments.
Without being specifically illustrated, a message processing device performing any of the steps of the disclosed embodiments may be a processor of the message processing device performing the steps. Embodiments of the present disclosure do not limit the order in which the message processing apparatus performs the following steps unless specifically stated. In addition, the manner in which the data is processed in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present disclosure may be performed by the message processing apparatus independently, that is, the message processing apparatus may not depend on the execution of other steps when performing any step in the embodiments described above.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
The methods disclosed in the several method embodiments provided in the present disclosure may be arbitrarily combined without collision to obtain a new method embodiment.
The features disclosed in the several product embodiments provided in the present disclosure may be combined arbitrarily without conflict to obtain new product embodiments.
The features disclosed in the several method or apparatus embodiments provided in the present disclosure may be arbitrarily combined without any conflict to obtain new method embodiments or apparatus embodiments.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present disclosure may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be essentially or partially contributing to the related art, and the computer software product may be stored in a storage medium, and include several instructions to cause a computer device (which may be a personal computer, an analysis device, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
In embodiments of the present disclosure, descriptions of the same steps and the same content in different embodiments may be referred to each other. In the presently disclosed embodiments, the term "and" does not affect the order of steps.
The foregoing is merely an embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and any person skilled in the art can easily think about the changes or substitutions within the technical scope of the present disclosure, and should be covered by the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (20)

1. A method of message processing, the method comprising:
acquiring a plurality of messages generated by a data analysis system through at least one message queue; the data analysis system is configured to analyze scene data to generate the plurality of messages;
determining a target channel corresponding to each message in at least two connection channels;
and forwarding each message to a management system through a target channel corresponding to each message, so that the management system processes the message transmitted by each target channel based on a message processing strategy corresponding to each target channel.
2. The method of claim 1, wherein the method is applied to a message broker component for forwarding a plurality of messages generated by the data analysis system to the management system, wherein:
the data analysis system comprises a plurality of functional modules, wherein each functional module is used for analyzing scene data acquired in real time in a casino by adopting an analysis method corresponding to the functional module so as to generate corresponding information; the message is used for indicating whether an abnormal event occurs in the casino;
the management system is used for displaying a plurality of messages forwarded by the message proxy component to a game controller.
3. The method of claim 2, wherein the data analysis system further comprises a camera assembly disposed at the casino; the camera component is used for collecting scene data in the entertainment field in real time.
4. A method according to claim 3, wherein the retrieving the plurality of messages generated by the data analysis system via the at least one message queue comprises:
for each message queue in the at least one message queue, acquiring a target theme corresponding to the message queue, and storing messages corresponding to the target theme in the plurality of messages in the message queue;
And pulling the plurality of messages generated by the data analysis system from the at least one message queue.
5. The method according to claim 1, wherein determining a target channel corresponding to each of the messages in at least two connection channels comprises:
determining a target channel corresponding to each message based on a message queue corresponding to each message and a preset first mapping relation table; the first mapping relation table comprises the mapping relation between the message queue and the target channel.
6. The method according to any one of claims 1 to 4, wherein determining a target channel corresponding to each of the messages in at least two connection channels further comprises:
analyzing each message to obtain attribute information carried by each message;
and determining a target channel corresponding to each message in the at least two connection channels based on the attribute information carried by each message.
7. The method of claim 6, wherein the attribute information comprises at least one of: the message type and message identification; the message type is used to determine a priority of the management system to process the message, and the message identification is used to identify a manner in which the management system presents the message.
8. The method according to claim 7, wherein, in the case that the attribute information includes a message type, the determining, based on the attribute information carried by each of the messages, a target channel corresponding to each of the messages in the at least two connection channels includes:
under the condition that the message type of the message is an alarm type, a first connection channel corresponding to the alarm type in the at least two connection channels is used as a target channel corresponding to the message;
when the message type of the message is a non-alarm type, taking a second connection channel corresponding to the non-alarm type of the at least two connection channels as a target channel corresponding to the message; the management system processes the messages in the first connection channel with a higher priority than the messages in the second connection channel.
9. The method according to claim 8, wherein said taking a first connection channel of the at least two connection channels corresponding to the alarm type as a target channel corresponding to the message comprises:
determining the alarm level of the message according to the alarm type of the message;
And taking a first connection channel corresponding to the alarm level in the at least two connection channels as a target channel corresponding to the message.
10. The method according to claim 7, wherein, in the case that the attribute information includes a message identifier of the message, the determining, based on the attribute information carried by each of the messages, a target channel corresponding to each of the messages in the at least one connection channel includes:
taking a third connection channel corresponding to the message identifier in the at least two connection channels as a target channel corresponding to the message; and the management system displays the message in the third connecting channel corresponding to the message identifier through the display mode corresponding to the message identifier.
11. The method according to claim 10, wherein the taking a third connection channel corresponding to the message identifier of the at least two connection channels as a target channel corresponding to the message comprises:
determining a display mode corresponding to the message according to the message identification of the message and a preset second mapping relation table; the second mapping relation table comprises the mapping relation between the message and the display mode; the display mode comprises at least one of the following: display screen display, indicator light display and audio display;
And based on the display mode of the message, taking a third connection channel corresponding to the display mode of the at least two connection channels as a target channel corresponding to the message.
12. A message processing system comprising a data analysis system, a message broker component, and a management system, wherein:
the data analysis system is used for analyzing scene data to generate a plurality of messages and sending the messages to the message proxy component;
the message agent component is used for acquiring the messages through at least one message queue, determining a target channel corresponding to each message in at least two connection channels, and forwarding each message to the management system through the target channel corresponding to each message;
and the management system is used for processing the message transmitted by each target channel based on the message processing strategy corresponding to each target channel.
13. A message processing apparatus, comprising:
an acquisition unit for acquiring a plurality of messages generated by the data analysis system through at least one message queue; the data analysis system is configured to analyze scene data to generate the plurality of messages;
A determining unit, configured to determine a target channel corresponding to each message in at least two connection channels;
and the forwarding unit is used for forwarding each message to a management system through a target channel corresponding to each message, so that the management system processes the message transmitted by each target channel based on a message processing strategy corresponding to each target channel.
14. A message processing apparatus, comprising: a memory and a processor, wherein the memory is configured to store,
the memory stores a computer program executable on the processor,
the processor is configured to execute the computer program to:
acquiring a plurality of messages generated by a data analysis system through at least one message queue; the data analysis system is configured to analyze scene data to generate the plurality of messages;
determining a target channel corresponding to each message in at least two connection channels;
and forwarding each message to a management system through a target channel corresponding to each message, so that the management system processes the message transmitted by each target channel based on a message processing strategy corresponding to each target channel.
15. The apparatus of claim 14, wherein when the determining a target channel for each of the messages in the at least two connection channels, the processor is configured to:
Determining a target channel corresponding to each message based on a message queue corresponding to each message and a preset first mapping relation table; the first mapping relation table comprises the mapping relation between the message queue and the target channel.
16. The device of claim 14, wherein when the target channel corresponding to each of the messages is determined in at least two connection channels, the processor is further configured to:
analyzing each message to obtain attribute information carried by each message;
and determining a target channel corresponding to each message in the at least two connection channels based on the attribute information carried by each message.
17. The apparatus of claim 16, wherein the attribute information comprises at least one of: the message type and message identification; the message type is used to determine a priority of the management system to process the message, and the message identification is used to identify a manner in which the management system presents the message.
18. The apparatus of claim 17, wherein when determining a target channel corresponding to each of the messages in the at least two connection channels based on the attribute information carried by each of the messages in the case where the attribute information includes a message type, the processor is configured to:
Under the condition that the message type of the message is an alarm type, a first connection channel corresponding to the alarm type in the at least two connection channels is used as a target channel corresponding to the message;
when the message type of the message is a non-alarm type, taking a second connection channel corresponding to the non-alarm type of the at least two connection channels as a target channel corresponding to the message; the management system processes the messages in the first connection channel with a higher priority than the messages in the second connection channel.
19. A computer storage medium storing one or more programs, wherein the one or more programs, when executed by one or more processors, are configured to:
acquiring a plurality of messages generated by a data analysis system through at least one message queue; the data analysis system is configured to analyze scene data to generate the plurality of messages;
determining a target channel corresponding to each message in at least two connection channels;
and forwarding each message to a management system through a target channel corresponding to each message, so that the management system processes the message transmitted by each target channel based on a message processing strategy corresponding to each target channel.
20. A computer program comprising computer readable code which, when run in an electronic device, a processor in the electronic device is configured to:
acquiring a plurality of messages generated by a data analysis system through at least one message queue; the data analysis system is configured to analyze scene data to generate the plurality of messages;
determining a target channel corresponding to each message in at least two connection channels;
and forwarding each message to a management system through a target channel corresponding to each message, so that the management system processes the message transmitted by each target channel based on a message processing strategy corresponding to each target channel.
CN202180002776.5A 2021-09-14 2021-09-26 Message processing method, device, equipment and storage medium Withdrawn CN116390793A (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
SG10202110086U 2021-09-14
SG10202110086U 2021-09-14
PCT/IB2021/058756 WO2023041964A1 (en) 2021-09-14 2021-09-26 Message processing method, apparatus, device and storage medium

Publications (1)

Publication Number Publication Date
CN116390793A true CN116390793A (en) 2023-07-04

Family

ID=85601911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202180002776.5A Withdrawn CN116390793A (en) 2021-09-14 2021-09-26 Message processing method, device, equipment and storage medium

Country Status (3)

Country Link
CN (1) CN116390793A (en)
AU (1) AU2021240185A1 (en)
WO (1) WO2023041964A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080113783A1 (en) * 2006-11-10 2008-05-15 Zbigniew Czyzewski Casino table game monitoring system
SG10201606360VA (en) * 2015-08-03 2017-03-30 Angel Playing Cards Co Ltd Fraud detection system in casino
JP7045803B2 (en) * 2017-05-12 2022-04-01 株式会社ユニバーサルエンターテインメント Pachinko machine
CN112751772B (en) * 2019-10-31 2023-01-24 上海哔哩哔哩科技有限公司 Data transmission method and system

Also Published As

Publication number Publication date
AU2021240185A1 (en) 2023-03-30
WO2023041964A1 (en) 2023-03-23

Similar Documents

Publication Publication Date Title
EP4234060A1 (en) Service processing method and apparatus, and storage medium
WO2015090241A1 (en) Method for monitoring business operations data storage, and related device and system
US20220261217A1 (en) Audio data processing method, server, and storage medium
CN112492372B (en) Comment message display method and device, electronic equipment, system and storage medium
CN108965918A (en) streaming media processing method, device, system and computer readable storage medium
CN111611140B (en) Report verification method and device for buried point data, electronic equipment and storage medium
CN113824983B (en) Data matching method, device, equipment and computer readable storage medium
KR20230000927A (en) Scene detection method and device, electronic device, computer storage medium
CN109495378A (en) Detect method, apparatus, server and the storage medium of abnormal account number
AU2020200695A1 (en) Low-cost, realistic, performance test bed for an electronic trading venue
CN102857798A (en) Monitoring system of system software operation condition based on set-top box
CN108933966B (en) Request message processing method, device and system, terminal and storage medium
CN113297884A (en) Abnormal behavior determination method and device and electronic equipment
US7827185B2 (en) Apparatus for managing outputs of applications
CN111930548B (en) Fault simulation system for multi-cluster distributed service
CN116390793A (en) Message processing method, device, equipment and storage medium
CN115379253B (en) Live content anomaly determination and restoration method and device, equipment and medium thereof
WO2022014472A1 (en) Method, apparatus and non-transitory computer readable medium
CN116390792A (en) Message processing method, device, equipment and storage medium
US11978307B2 (en) Status switching method and apparatus, edge computing device and computer storage medium
CN109889399A (en) RocketMQ client connection number monitoring method, device, electronic equipment and storage medium
CN113724735A (en) Voice stream processing method and device, computer readable storage medium and electronic equipment
WO2023041968A1 (en) Message processing method, apparatus and device, and storage medium
CN109726026B (en) Interactive data processing method, device, equipment and storage medium
CN111130983B (en) Method and equipment for sending information and generating result information

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20230704