Human-computer interaction method and device, equipment, storage medium and program product
By introducing the switching function of multiple working modes into the chess robot, the problem of insufficient intelligence and single function of the chess robot is solved, diversified functions and high utilization are achieved, and equipment waste and economic burden are reduced.
Patent Information
- Application Number
- CN202410847904.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-17
AI Technical Summary
The existing chess-playing robots are not intelligent enough to meet the diverse interactive needs of users. They have single functions and low utilization rates. Moreover, users need to purchase multiple devices to meet the needs of various learning scenarios, which increases the financial burden on parents and wastes equipment. .
Provide a human-computer interaction method that switches the working mode of the chess-playing robot by monitoring whether the user operation satisfies the mode switching conditions, including the chess-playing mode and the non-chess-playing mode, such as learning mode, sports mode, and entertainment mode, to realize the chess-playing robot The purpose of providing multiple functions is to improve intelligence and utilization.
It has diversified the functions of the chess robot, improved user experience and equipment utilization, reduced the need to purchase multiple devices, reduced waste and financial burden on parents, and enhanced the intelligence and hardware value of the chess robot.
Smart Images

Figure CN118655983A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a human-computer interaction method, device, equipment, storage medium and program product. Background Art
[0002] A chess-playing robot refers to an electronic device that can interact with users through chess skills. However, current chess-playing robots can only interact with users through chess skills, and their intelligence needs to be further improved. Summary of the invention
[0003] In view of the above problems, the present application provides a human-computer interaction method, device, equipment, storage medium and program product to improve the intelligence of a chess-playing robot. The specific scheme is as follows:
[0004] In a first aspect, the present application provides a human-computer interaction method for a chess-playing robot, the method comprising:
[0005] The chess-playing robot is in a first working mode; the first working mode is any one of the following working modes provided by the chess-playing robot: a chess-playing mode and at least one non-chess-playing mode; in different working modes, the chess-playing robot provides different functions;
[0006] Monitor whether the user operation meets the mode switching conditions;
[0007] If the user operation satisfies the mode switching condition, the chess-playing robot is switched to a second working mode; the second working mode is any working mode among the chess-playing mode and at least one non-chess-playing mode, which is different from the first working mode.
[0008] In a possible implementation, monitoring whether the user operation satisfies the mode switching condition includes:
[0009] Receive touch operations on interactive controls;
[0010] If the interactive control is an interactive control corresponding to the second working mode, determining that the user operation satisfies a mode switching condition;
[0011] Different interactive controls correspond to different working modes.
[0012] In a possible implementation, monitoring whether the user operation satisfies the mode switching condition includes:
[0013] Acquiring an image of a chessboard area of the chess-playing robot;
[0014] Detecting a state change of a chessboard of the chess-playing robot based on the image;
[0015] If the state change indicates that the chessboard changes from the first state to the second state, it is determined that the user operation satisfies the mode switching condition; the first state and the second state are the following two different states: an available state and an unavailable state;
[0016] Different states of the chessboard correspond to different working modes.
[0017] In a possible implementation, monitoring whether the user operation satisfies the mode switching condition includes:
[0018] monitoring the state of the target physical control of the chess-playing robot; when the chessboard of the chess-playing robot is at a target position, the target physical control is squeezed by the chessboard and is in a first state, and when the chessboard leaves the target position, the target physical control is no longer squeezed by the chessboard and is in a second state; when the chessboard is at the target position, if the chess-playing robot is in a chess-playing mode, the chess-playing robot can interact with the user in chess skills;
[0019] If the state of the target physical control is switched from the first state to the second state, or from the second state to the first state, it is determined that the user operation satisfies the mode switching condition.
[0020] In a possible implementation, monitoring whether the user operation satisfies the mode switching condition includes:
[0021] Collect voice information;
[0022] Performing intent recognition on the voice information;
[0023] If the intention recognition result indicates that the user intends to switch to the second working mode, it is determined that the user operation satisfies the mode switching condition.
[0024] In a possible implementation, when in the first working mode, an interactive interface corresponding to the first working mode is displayed, and interactive interfaces corresponding to other working modes are hidden;
[0025] Different working modes correspond to different interactive interfaces.
[0026] In a possible implementation, the method further includes:
[0027] When in the first working mode, if an interactive interface switching instruction is obtained, the interactive interface corresponding to the first working mode is hidden, and the interactive interface corresponding to the third working mode is displayed; the third working mode is any working mode different from the first working mode among the chess playing mode and at least one non-chess playing mode;
[0028] If an interactive operation for the interactive interface corresponding to the third working mode is obtained, responding to the interactive operation is prohibited.
[0029] A second aspect of the present application provides a human-computer interaction device for a chess-playing robot, the device comprising:
[0030] A monitoring module, used for monitoring whether the user operation satisfies a mode switching condition when the chess-playing robot is in a first working mode; the first working mode is any one of the following working modes provided by the chess-playing robot: a chess-playing mode and at least one non-chess-playing mode;
[0031] A switching module is used to switch the chess-playing robot to a second working mode if the user operation satisfies a mode switching condition; the second working mode is any working mode different from the first working mode among the chess-playing mode and at least one non-chess-playing mode.
[0032] A third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the human-computer interaction method of the first aspect or any implementation of the first aspect.
[0033] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:
[0034] The memory is used to store computer programs;
[0035] The processor is used to execute the computer program so that the electronic device can implement the human-computer interaction method of the first aspect or any implementation manner of the first aspect.
[0036] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the human-computer interaction method of the first aspect or any implementation method of the first aspect.
[0037] By means of the above technical scheme, the human-computer interaction method, device, equipment, storage medium and program product provided by the present application, the chess-playing robot is in a first working mode; the first working mode is any working mode of the following working modes provided by the chess-playing robot: chess-playing mode and at least one non-chess-playing mode; monitoring whether the user operation meets the mode switching condition; if the user operation meets the mode switching condition, the chess-playing robot is switched to a second working mode; the second working mode is any working mode different from the first working mode among the chess-playing mode and at least one non-chess-playing mode; in different working modes, the functions provided by the chess-playing robot are different. That is to say, the chess-playing robot of the present application provides multiple working modes, including the chess-playing mode and at least one non-chess-playing mode. When the chess-playing robot is in any working mode, if the user operation meets the mode switching condition, the chess-playing robot is switched to a second working mode different from the first working mode, so as to provide different functions for the user, thereby achieving the purpose of providing multiple functions such as chess-playing functions and non-chess-playing functions through the chess-playing robot, and improving the intelligence of the chess-playing robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0039] Figure 1 A flowchart for implementing the human-computer interaction method provided in this application;
[0040] Figure 2 A flowchart for monitoring whether the user operation meets the mode switching conditions provided by this application;
[0041] Figure 3 Another implementation flow chart for monitoring whether a user operation satisfies a mode switching condition provided by the present application;
[0042] Figure 4 Another implementation flow chart of monitoring whether the user operation meets the mode switching condition provided by the present application;
[0043] Figure 5 Another implementation flow chart of monitoring whether the user operation meets the mode switching condition provided by the present application;
[0044] Figure 6 A schematic diagram of the structure of the human-computer interaction device provided by this application;
[0045] Figure 7 A schematic diagram of the structure of the electronic device provided in this application. DETAILED DESCRIPTION
[0046] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0047] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0048] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0049] The human-computer interaction method and device provided in the present application can be applied to a chess-playing robot, and the chess-playing robot can be a chess-playing robot of any type of chess, for example, a Go-playing robot, or a chess-playing robot, or a chess-playing robot, etc.
[0050] In one possible implementation, the chess-playing robot includes a machine body (hereinafter referred to as the body), a chessboard, a chess box and chess pieces; these components are organized in a certain way, and when placed together, they can interact with users in chess skills, such as playing chess, chess enlightenment, chess teaching, etc.
[0051] Among them, the main body is provided with a robotic arm, an image acquisition device (such as a camera), a screen, a sound pickup device and a speaker, and a chessboard is placed on one side of the main body (specifically, when the screen faces the user, the chessboard is located between the machine body and the user). The robotic arm is used to pick up chess pieces from a chess box and place them at a first specific position on the chessboard (the first specific position is calculated by the chess-playing robot based on the collected image of the chessboard area), or to pick up chess pieces at a second specific position (the second specific position is calculated by the chess-playing robot based on the collected image of the chessboard area) from the chessboard and place them in the chess box. The image acquisition device is used to capture images of the chessboard area so that the chess-playing robot can analyze the logic of chess play. The screen is used to display chess-related content. The sound pickup device and the speaker can be used for voice interaction with the user.
[0052] In a possible implementation, the chess-playing robot can simulate a natural person playing chess with a user, and can also demonstrate chess terminology, provide enlightenment teaching, and provide teaching guidance to the user during the game. The following uses Go as an example to illustrate a possible implementation:
[0053] For example, when a chess piece is detected on the chessboard, the chess pieces in the target area (the entire area or part of the area of the chessboard) on the chessboard can be analyzed, and based on the positional relationship between the chess pieces in the target area, at least one chess piece associated with a term can be determined in the target area; different terms are associated with different chess pieces; the at least one term is output, and the chess pieces associated with each term are highlighted. Since the chessboard of the chess-playing robot is a physical chessboard, the chess pieces on the physical chessboard can be mapped to a virtual chessboard, and the at least one term is output on the virtual chessboard, and the chess pieces associated with each term are highlighted. Alternatively, the at least one term can be directly displayed on the chessboard (the term can be projected on the chessboard by projection), and the chess pieces associated with each term can be controlled to output prompt information, wherein a prompt module and a communication module that communicates with the main body can be set in each chess piece, based on which the main body can send a prompt output instruction to the chess piece associated with the term, so that the chess piece can output prompt information through the prompt module after receiving the prompt output instruction. Based on this, users can be helped to learn Go terminology.
[0054] For example, when the chess robot places a chess piece on the chessboard, the target chess piece can be determined based on the chess piece currently placed on the chessboard belonging to the user, and the target chess piece is a chess piece whose Qi information meets the condition; and prompt information is output in association with the target chess piece, and the prompt information indicates that the Qi information of the target chess piece meets the condition. As an example, the prompt information can be displayed through at least one of the empty points on the chessboard that are adjacent to the target chess piece in a straight line and the target chess piece; specifically, the first prompt information can be displayed through the empty point, and the second prompt information can be displayed through the target chess piece; the second prompt information is different from the first prompt information. The chess pieces whose Qi information meets the condition may include: among the chess pieces of the user, there is only one chess piece with Qi, or there is only one group of chess pieces with Qi. The Qi information of the target chess piece meets the condition, indicating that the target chess piece is in a crisis state, that is, the target chess piece is about to be in a state of no Qi. By prompting the Qi information during the game, the learner (i.e., the user) can learn the relevant knowledge of Qi during the game, helping beginners to quickly master the concept or rules of Qi in Go, and realizing the enlightenment teaching guidance for users in Go.
[0055] For example, when monitoring the placement of a chess piece on the chessboard, the overall demonstration data representing the overall chess situation and the local demonstration data representing the chess situation in the local area determined based on the current placement of the chess piece can be determined, the overall demonstration data can be displayed based on all the chess pieces on the chessboard, and the local demonstration data can be displayed based on the chess pieces in the local area, providing the user with demonstrative guidance and teaching, so that the user can intuitively understand the real-time overall chess situation and local chess situation during the game, thereby effectively lowering the learning threshold of chess and improving the efficiency and quality of chess learning. The overall demonstration data and local demonstration data can be displayed directly through physical chess pieces, or through virtual chess pieces on a virtual chessboard.
[0056] In one possible implementation, the chess-playing robot can also provide users with theoretical knowledge of chess.
[0057] The chess-playing robot provided in the embodiment of the present application can not only interact with the user in chess skills, but also interact with the user in other aspects, such as encyclopedia query, learning of different subjects, essay correction and tutoring, sports, games, etc.
[0058] like Figure 1 As shown, a flowchart of an implementation of the human-computer interaction method provided in an embodiment of the present application may include:
[0059] Step S101: the chess-playing robot is in the first working mode; the first working mode is any one of the following working modes provided by the chess-playing robot: a chess-playing mode and at least one non-chess-playing mode; in different working modes, the functional services (which may be referred to as functions for short) provided by the chess-playing robot are different.
[0060] Optionally, the chess-playing robot provides two working modes: chess-playing mode and non-chess-playing mode. The non-chess-playing mode can be any of the following working modes: learning mode, exercise mode, entertainment mode, etc.
[0061] In chess-playing mode, the chess-playing robot provides users with chess-playing related functions. For example, the chess-playing robot can play chess with users, and can also provide users with chess-related resources to teach users chess skills, etc.
[0062] In learning mode, the chess-playing robot can provide users with learning resources, including but not limited to: word lookup and translation, essay correction, picture book reading, multi-disciplinary knowledge points such as Chinese, mathematics, English, physics, chemistry, biology, etc., question query, learning courses, etc., which have the functions of assisting users in learning or are directly related to learning. It can also provide resources such as encyclopedia question and answer to assist users in learning subject knowledge and encyclopedia knowledge.
[0063] In the sports mode, the chess-playing robot can provide users with games that assist in exercise, and interact with users based on such games to guide users to make physical movements, thereby guiding users in physical exercise.
[0064] In entertainment mode, the chess-playing robot can provide entertaining and educational games, and interact with users based on such games, so that users can learn knowledge or improve their abilities during the game.
[0065] In different working modes, the content of the interaction between the chess-playing robot and the user is different, so that the functions provided by the chess-playing robot are different in different working modes.
[0066] Optionally, the chess-playing robot provides at least three working modes: a chess-playing mode and at least two non-chess-playing modes as follows: a learning mode, a sports mode, an entertainment mode, etc.
[0067] Step S102: monitor whether the user operation meets the mode switching condition.
[0068] When the chess-playing robot is in any working mode, it can monitor whether the user operation meets the mode switching conditions.
[0069] Whether the user operation meets the mode switching condition can be monitored based on the image collected by the image acquisition device of the chess-playing robot. Alternatively, whether the user operation meets the mode switching condition can be monitored based on the voice information collected by the sound pickup device of the chess player, or whether the user operation meets the mode switching condition can be monitored based on the screen or physical controls of the chess-playing robot.
[0070] Step S103: If the user operation satisfies the mode switching condition, the chess-playing robot is switched to the second working mode.
[0071] The second working mode is any working mode different from the first working mode among the above-mentioned chess playing mode and at least one non-chess playing mode. For example, the first working mode is the chess playing mode, and the second working mode is the learning mode; or, the first working mode is the chess playing mode, and the second working mode is the exercise mode; or, the first working mode is the learning mode, and the second working mode is the chess playing mode; or, the first working mode is the learning mode, and the second working mode is the chess playing mode, etc.
[0072] If the user operation meets the mode switching condition, indicating that the user wants to use the functions of the chess-playing robot in the second working mode, the robot switches to the second working mode to provide the user with the functions in the second working mode, and stops providing the user with the functions in the first working mode.
[0073] The human-computer interaction method provided by the present application provides a plurality of working modes for a chess-playing robot, including a chess-playing mode and at least one non-chess-playing mode. When the chess-playing robot is in any working mode, if the user operation satisfies the mode switching condition, the working mode of the chess-playing robot is switched to a second working mode different from the first working mode, so as to provide different functions for the user. This achieves the purpose of providing the chess-playing robot with a plurality of functions such as chess-playing functions and non-chess-playing functions, improves the intelligence of the chess-playing robot, and realizes greater utilization of the hardware value of the chess-playing robot.
[0074] Moreover, by setting different working modes, users can operate in a specific working mode without being affected by other working modes, thus improving the user experience. For example, when users use a certain function, they usually also use related functions. By dividing related functions into a working mode, it is more convenient for users to interact with the chess-playing robot, thus improving the convenience of human-computer interaction.
[0075] In addition, the current chess-playing robot occupies a large space as a whole, and has a single function (limited to chess and related functions), while the time for children to learn chess is relatively limited, so the utilization rate of the equipment is low, and the risk of the machine being abandoned may be generated. In addition, for child users, children usually have a large number of learning scenes, such as the aforementioned picture books, stories, knowledge encyclopedias, listening, reading, and reciting Chinese and English texts, dictation and checking of words and phrases, translation, word formation, exercises, knowledge point query, composition correction and tutoring, Chinese, mathematics, English, physics, chemistry, biology and other multi-disciplinary topic query, learning courses, etc. In these learning scenes, some children's parents may borrow specific equipment to meet, which creates a situation where a child buys multiple devices, which not only increases the economic burden of parents, but also has certain unnecessary waste. Based on this application, functions other than chess-playing functions are added to the chess-playing robot, which improves the utilization rate of the chess-playing robot, reduces the risk of the robot being abandoned, and does not need to purchase multiple devices, reduces the learning cost of children, and reduces the probability of waste.
[0076] In an optional embodiment, a flowchart for implementing the above monitoring of whether the user operation meets the mode switching condition is as follows: Figure 2 As shown, it may include:
[0077] Step S201: receiving a touch operation on an interactive control.
[0078] This application sets different interactive controls for different working modes.
[0079] Optionally, the interactive controls corresponding to the various working modes may be physical interactive controls, recorded as physical buttons. Each physical button may be provided on the body of the chess-playing robot.
[0080] Optionally, the interactive controls corresponding to each working mode are virtual interactive controls, recorded as virtual buttons. Virtual buttons are icons displayed on the screen of the chess-playing robot, and different working modes correspond to different icons. In this example, the screen of the chess-playing robot is a touch screen, so that the user can interact with the chess-playing robot through the screen. In the case where the interactive controls are virtual buttons, the interactive controls corresponding to each working mode are always displayed on the screen, that is, no matter which working mode is, the interactive controls corresponding to each working mode are displayed and can interact with the user.
[0081] Step S202: If the interactive control is an interactive control corresponding to the second working mode, it is determined that the user operation satisfies the mode switching condition.
[0082] Typically, a chess-playing robot will set up interactive controls to interact with users in terms of playing chess. Based on this, the present application sets up interactive controls for switching working modes. Based on this, when the chess-playing robot detects a touch operation on any interactive control, it will judge the any interactive control. If the any interactive control is an interactive control corresponding to a certain working mode, it is determined that the user operation meets the mode switching condition. If the any interactive control is not an interactive control corresponding to any working mode, it is determined that the user operation does not meet the mode switching condition.
[0083] By setting different interactive controls for different working modes, when there are multiple working modes, the user can switch to the working mode he wants to use with one operation, thereby improving the convenience of user operation.
[0084] In an optional embodiment, another implementation flowchart of the above monitoring whether the user operation meets the mode switching condition is as follows: Figure 3 As shown, it may include:
[0085] Step S301: Capture an image of the chessboard area of the chess-playing robot.
[0086] The image acquisition device of the chess-playing robot can continuously acquire images of the chessboard area, and monitor whether the user operation meets the mode switching condition based on the image sequence acquired within a preset time. Specifically, each time a frame of image is acquired, the user operation can be monitored based on the image sequence acquired within a preset time (including the most recently acquired frame of image) to see whether the mode switching condition is met.
[0087] Step S302: Detecting the state change of the chessboard of the chess-playing robot based on the image.
[0088] Optionally, the state of the chessboard may include the following two states: an available state (i.e., chess can be played) and an unavailable state (i.e., chess cannot be played). Different states of the chessboard correspond to different working modes. For example, the available state corresponds to the chess playing mode, and the unavailable state corresponds to the learning mode.
[0089] Generally, when the chessboard is at the target position and the target area of the chessboard (e.g., the area within a preset range centered on the center of the chessboard) is not covered, it is considered that the user wants to play chess, and the chessboard is in an available state. If the chessboard is moved from the target position, or the target area of the chessboard is blocked (e.g., blocked by a book, or blocked by a piece of paper, etc.), it is considered that the user does not want to play chess, and the chessboard is in an unavailable state. When the chessboard is at the target position, if the chess-playing robot is in the chess-playing mode, the chess-playing robot can interact with the user in chess skills.
[0090] As an example, an image sequence collected within a preset time period may be input into a pre-trained state recognition model to obtain the state change output by the state recognition model.
[0091] Step S303: If the state change of the chessboard indicates that the chessboard of the chess-playing robot changes from the first state to the second state, it is determined that the user operation satisfies the mode switching condition.
[0092] If the first state is an available state, the second state is an unavailable state; if the first state is an unavailable state, the second state is an available state.
[0093] Based on this embodiment, the first working mode and the second working mode can be a chess playing mode and a learning mode. The user does not need to manually switch the modes. The user can directly remove the chessboard from the target position (if the user feels that the chessboard affects learning and needs to be removed) or place the resources to be used for learning (books, papers, etc.) on the chessboard or remove the chessboard and place the resources to be used for learning at the target position, which can automatically trigger the switch from the chess playing mode to the learning mode; or, by placing the chessboard at the target position and removing the covering on the chessboard, the user can directly switch from the learning mode to the chess playing mode automatically, further improving the convenience of user interaction and the intelligence of the chess playing robot. In addition, this embodiment is also applicable to the case where the chess playing robot has only two working modes.
[0094] In an optional embodiment, another implementation flowchart of the above monitoring whether the user operation meets the mode switching condition is as follows: Figure 4 As shown, it may include:
[0095] Step S401: Monitor the status of the target physical control of the chess-playing robot.
[0096] When the chessboard of the chess-playing robot is at the target position, the target physical control is squeezed by the chessboard and is in a first state; when the chessboard leaves the target position, the target physical control is no longer squeezed by the chessboard and is in a second state; when the chessboard is at the target position, if the chess-playing robot is in the chess-playing mode, the chess-playing robot can interact with the user in chess skills.
[0097] As an example, a slot can be set on the body of the chess-playing robot, and a target physical control is set in the slot. The target physical control is set at the bottom of the slot and protrudes from the bottom of the slot. When the chessboard is placed at the target position, one edge of the chessboard needs to be placed in the slot, thereby squeezing the target physical control toward the bottom of the slot, so that the target physical control is in a first state. When the chessboard is moved away from the target position, the chessboard no longer squeezes the target physical control, and the target physical control returns to the state before being squeezed (recorded as the second state).
[0098] Step S402: If the state of the target physical control changes (ie, switches from the first state to the second state, or switches from the second state to the first state), it is determined that the user operation satisfies the mode switching condition.
[0099] If the state of the target physical control switches from the first state to the second state, it indicates that the user does not want to play chess anymore. If the state of the target physical control switches from the second state to the first state, it indicates that the user wants to play chess.
[0100] Based on this embodiment, the first working mode and the second working mode can be a chess playing mode and a learning mode. The user does not need to manually switch the modes. He can automatically trigger the switch from the chess playing mode to the learning mode by directly taking away the chessboard (if he feels that the chessboard affects his learning and needs to be taken away); or, placing the chessboard at the target position can automatically trigger the chess playing robot to switch from the learning mode to the chess playing mode, further improving the convenience of user interaction and the intelligence of the chess playing robot. In addition, this embodiment is also applicable to the case where the chess playing robot has only two working modes.
[0101] In an optional embodiment, another implementation flowchart of the above monitoring whether the user operation meets the mode switching condition is as follows: Figure 5 As shown, it may include:
[0102] Step S501: Collect voice information.
[0103] Voice information can be collected through the sound pickup device of the chess-playing robot.
[0104] Step S502: Perform intent recognition on the voice information.
[0105] The collected voice information can be input into a pre-trained intent recognition model or a large model to obtain the intent recognition result.
[0106] Step S503: If the intention recognition result indicates that the user intends to switch to the second working mode, it is determined that the user operation satisfies the mode switching condition.
[0107] In the embodiment of the present application, the user can control the chess-playing robot by voice to switch the working mode. In the case where there are multiple working modes, the user can switch to the working mode he wants to use by inputting a voice command once, thereby improving the convenience of user operation.
[0108] In an optional embodiment, when the chess-playing robot is in the first working mode, the interactive interface corresponding to the first working mode is displayed, and the interactive interfaces corresponding to other working modes are hidden.
[0109] Different working modes correspond to different interactive interfaces.
[0110] This application sets different interactive interfaces for different working modes. The interactive interface corresponding to any working mode is used to display icons corresponding to each functional service provided by any working mode (for example, different functional services are implemented by different applications, and the icons of each application APP can be displayed on the interactive interface.)
[0111] The present application has found that if the icons of the functional services provided by all working modes are distributed in the same interactive interface, or the icons corresponding to the functional services provided by all working modes are distributed in multiple interactive interfaces, but there are icons corresponding to the functional services provided by at least two working modes in the same interactive interface, then when the functional services under a certain working mode need to be used, the user needs to find the icon corresponding to the functional service to be used among the numerous icons in one or more interactive interfaces, and then can interact based on the found icons, and the user operation is relatively cumbersome. In order to simplify user operations and improve the convenience of human-computer interaction, the present application sets different interactive interfaces for different working modes. When the chess-playing robot switches to any working mode, the interactive interface displayed on the screen is also switched to the interactive interface corresponding to the any working mode, so as to facilitate the user to interact with the chess-playing robot in any working mode without being affected by the icons corresponding to the functional services in other working modes.
[0112] Optionally, the user can trigger the corresponding functional service by clicking on an icon on the interactive interface. That is, the chess robot can monitor the interactive operation on the icon, and if a preset operation on the first icon on the interactive interface corresponding to the first working mode is obtained, the functional service corresponding to the first icon is triggered. The first icon is any icon on the interactive interface corresponding to the first working mode.
[0113] Optionally, the user can interact with the chess-playing robot through voice to select the first icon, thereby triggering the functional service corresponding to the first icon. As an example, the voice information can be collected by the sound pickup device of the chess-playing robot, and the intention of the voice information can be recognized. If the intention recognition result indicates that the user has selected the first icon, the functional service corresponding to the first icon is triggered.
[0114] Optionally, the user can specify an object in the chessboard area and indicate the intention through voice to trigger the chess robot to select an icon and trigger the functional service corresponding to the selected icon. As an example, the image of the chessboard area can be collected by the image acquisition device of the chess robot, and the image can be processed to identify the object specified by the user. The voice information can be collected by the sound pickup device of the chess robot, and the intention recognition of the voice information can be performed to determine the user's processing intention for the specified object. The icon is selected based on the identified object and the processing intention, and the functional service corresponding to the selected icon is triggered. In this embodiment, the user can specify the object with a fingertip or a pen tip, or can specify the object with a preset mark (such as a rectangular box, or a closed curve, etc.). When selecting an icon, the icon corresponding to the identified object and the processing intention can be selected according to the correspondence between the object and the processing intention and the icon.
[0115] Furthermore, the human-computer interaction method provided by the present application may also include:
[0116] When in the first working mode, if an interactive interface switching instruction is obtained, the interactive interface corresponding to the first working mode is hidden, and the interactive interface corresponding to the third working mode is displayed; the third working mode is any working mode different from the first working mode among the chess-playing mode and at least one non-chess-playing mode provided by the chess-playing robot. The third working mode may be the second working mode or may not be the second working mode.
[0117] If an interactive operation for the interactive interface corresponding to the third working mode is obtained, responding to the interactive operation is prohibited.
[0118] The interactive interface switching instruction in this embodiment is triggered by the user, for example, the user performs a preset operation on the touch screen to trigger the interactive interface switching instruction. That is to say, when the chess-playing robot is in any working mode, the user can view the functional services that can be provided in other working modes, that is, view the interactive interface in other working modes, but cannot interact with the interactive interface in other working modes. If you want to interact with the interactive interface in other working modes, you need to switch to other working modes, so as to avoid user misoperation affecting the user's use of the functional services of the first working mode.
[0119] Corresponding to the method embodiment, the present application also provides a human-computer interaction device, which can be applied to a chess-playing robot. A structural schematic diagram of the human-computer interaction device provided in the embodiment of the present application is as follows: Figure 6 As shown, it may include:
[0120] Monitoring module 601 and switching module 602;
[0121] The monitoring module 601 is used to monitor whether the user operation meets the mode switching condition when the chess-playing robot is in the first working mode; the first working mode is any one of the following working modes provided by the chess-playing robot: a chess-playing mode and at least one non-chess-playing mode;
[0122] The switching module 602 is used to switch the chess-playing robot to a second working mode if the user operation satisfies a mode switching condition; the second working mode is any working mode among the chess-playing mode and at least one non-chess-playing mode, which is different from the first working mode.
[0123] The human-computer interaction device provided in the embodiment of the present application provides a chess-playing mode and at least one non-chess-playing mode based on a chess-playing robot. When the chess-playing robot is in any working mode, if the user operation satisfies the mode switching condition, the chess-playing robot is switched to a second working mode different from the first working mode, so as to provide different functions for the user. This achieves the purpose of providing the chess-playing robot with multiple functions such as chess-playing functions and non-chess-playing functions, improves the intelligence of the chess-playing robot, and achieves greater utilization of the hardware value of the chess-playing robot.
[0124] In an optional embodiment, when the monitoring module 601 monitors whether the user operation meets the mode switching condition, it is used to:
[0125] Receive touch operations on interactive controls;
[0126] If the interactive control is an interactive control corresponding to the second working mode, determining that the user operation satisfies a mode switching condition;
[0127] Different interactive controls correspond to different working modes.
[0128] In an optional embodiment, when the monitoring module 601 monitors whether the user operation meets the mode switching condition, it is used to:
[0129] Acquiring an image of a chessboard area of the chess-playing robot;
[0130] Detecting a state change of a chessboard of the chess-playing robot based on the image;
[0131] If the state change indicates that the chessboard changes from the first state to the second state, it is determined that the user operation satisfies the mode switching condition; the first state and the second state are the following two different states: an available state and an unavailable state;
[0132] Different states of the chessboard correspond to different working modes.
[0133] In an optional embodiment, when the monitoring module 601 monitors whether the user operation meets the mode switching condition, it is used to:
[0134] monitoring the state of the target physical control of the chess-playing robot; when the chessboard of the chess-playing robot is at a target position, the target physical control is squeezed by the chessboard and is in a first state, and when the chessboard leaves the target position, the target physical control is no longer squeezed by the chessboard and is in a second state; when the chessboard is at the target position, if the chess-playing robot is in a chess-playing mode, the chess-playing robot can interact with the user in chess skills;
[0135] If the state of the target physical control is switched from the first state to the second state, or from the second state to the first state, it is determined that the user operation satisfies the mode switching condition.
[0136] In an optional embodiment, when the monitoring module 601 monitors whether the user operation meets the mode switching condition, it is used to:
[0137] Collect voice information;
[0138] Performing intent recognition on the voice information;
[0139] If the intention recognition result indicates that the user intends to switch to the second working mode, it is determined that the user operation satisfies the mode switching condition.
[0140] In an optional embodiment, the switching module 602 is further used to: when in the first working mode, display the interactive interface corresponding to the first working mode, and hide the interactive interfaces corresponding to other working modes;
[0141] Different working modes correspond to different interactive interfaces.
[0142] In an optional embodiment, the switching module 602 is further configured to:
[0143] When in the first working mode, if an interactive interface switching instruction is obtained, the interactive interface corresponding to the first working mode is hidden, and the interactive interface corresponding to the third working mode is displayed; the third working mode is any working mode different from the first working mode among the chess playing mode and at least one non-chess playing mode;
[0144] If an interactive operation for the interactive interface corresponding to the third working mode is obtained, the chess-playing robot is prohibited from responding to the interactive operation.
[0145] The present application also provides an electronic device in an embodiment. Figure 7 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application is a chess-playing robot. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0146] like Figure 7 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0147] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a memory card, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0148] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any human-computer interaction method provided in the embodiment of the present application.
[0149] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any human-computer interaction method provided in the embodiment of the present application.
[0150] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0151] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0152] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. Professionals and technicians may use different methods to implement the described functions for each specific solution, but such implementation should not be considered beyond the scope of this application.
[0153] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0154] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0155] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A human-computer interaction method, It is characterized in that For a chess-playing robot, the method comprises: The chess-playing robot is in a first working mode; the first working mode is any one of the following working modes provided by the chess-playing robot: a chess-playing mode and at least one non-chess-playing mode; in different working modes, the chess-playing robot provides different functions; Monitor whether the user operation meets the mode switching conditions; If the user operation satisfies the mode switching condition, the chess-playing robot is switched to a second working mode; the second working mode is any working mode among the chess-playing mode and at least one non-chess-playing mode, which is different from the first working mode.
2. The method according to claim 1, It is characterized in that The monitoring of whether the user operation satisfies the mode switching condition includes: Receive touch operations on interactive controls; If the interactive control is an interactive control corresponding to the second working mode, determining that the user operation satisfies a mode switching condition; Different interactive controls correspond to different working modes.
3. The method according to claim 1, It is characterized in that The monitoring of whether the user operation satisfies the mode switching condition includes: Acquiring an image of a chessboard area of the chess-playing robot; Detecting a state change of a chessboard of the chess-playing robot based on the image; If the state change indicates that the chessboard changes from the first state to the second state, it is determined that the user operation satisfies the mode switching condition; the first state and the second state are the following two different states: an available state and an unavailable state; Different states of the chessboard correspond to different working modes.
4. The method according to claim 1, It is characterized in that The monitoring of whether the user operation satisfies the mode switching condition includes: monitoring the state of the target physical control of the chess-playing robot; when the chessboard of the chess-playing robot is at a target position, the target physical control is squeezed by the chessboard and is in a first state, and when the chessboard leaves the target position, the target physical control is no longer squeezed by the chessboard and is in a second state; when the chessboard is at the target position, if the chess-playing robot is in a chess-playing mode, the chess-playing robot can interact with the user in chess skills; If the state of the target physical control is switched from the first state to the second state, or from the second state to the first state, it is determined that the user operation satisfies the mode switching condition.
5. The method according to claim 1, It is characterized in that The monitoring of whether the user operation satisfies the mode switching condition includes: Collect voice information; Performing intent recognition on the voice information; If the intention recognition result indicates that the user intends to switch to the second working mode, it is determined that the user operation satisfies the mode switching condition.
6. The method according to any one of claims 1 to 5, It is characterized in that When in the first working mode, displaying the interactive interface corresponding to the first working mode, and hiding the interactive interfaces corresponding to other working modes; Different working modes correspond to different interactive interfaces.
7. The method according to claim 6, It is characterized in that Also includes: When in the first working mode, if an interactive interface switching instruction is obtained, the interactive interface corresponding to the first working mode is hidden, and the interactive interface corresponding to the third working mode is displayed; the third working mode is any working mode different from the first working mode among the chess playing mode and at least one non-chess playing mode; If an interactive operation for the interactive interface corresponding to the third working mode is obtained, responding to the interactive operation is prohibited.
8. A human-computer interaction device, It is characterized in that For a chess-playing robot, the device comprises: A monitoring module, used for monitoring whether the user operation satisfies a mode switching condition when the chess-playing robot is in a first working mode; the first working mode is any one of the following working modes provided by the chess-playing robot: a chess-playing mode and at least one non-chess-playing mode; A switching module is used to switch the chess-playing robot to a second working mode if the user operation meets a mode switching condition; the second working mode is any working mode different from the first working mode among the chess-playing mode and at least one non-chess-playing mode.
9. A computer program product, It is characterized in that It comprises computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the human-computer interaction method as claimed in any one of claims 1 to 7.
10. An electronic device, It is characterized in that The electronic device has a biomimetic appearance; the electronic device includes at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the human-computer interaction method as described in any one of claims 1 to 7.
11. A computer storage medium, It is characterized in that The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the human-computer interaction method as described in any one of claims 1 to 7.
