CN113384878B - Virtual card control method, device, terminal and storage medium - Google Patents

Virtual card control method, device, terminal and storage medium Download PDF

Info

Publication number
CN113384878B
CN113384878B CN202110662637.7A CN202110662637A CN113384878B CN 113384878 B CN113384878 B CN 113384878B CN 202110662637 A CN202110662637 A CN 202110662637A CN 113384878 B CN113384878 B CN 113384878B
Authority
CN
China
Prior art keywords
terminal
target object
virtual card
voice
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110662637.7A
Other languages
Chinese (zh)
Other versions
CN113384878A (en
Inventor
刘爱宾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110662637.7A priority Critical patent/CN113384878B/en
Publication of CN113384878A publication Critical patent/CN113384878A/en
Application granted granted Critical
Publication of CN113384878B publication Critical patent/CN113384878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/45Controlling the progress of the video game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/33Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers using wide area network [WAN] connections
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a control method, a device, a terminal and a storage medium for a virtual card, and relates to the technical field of Internet, wherein the method comprises the following steps: displaying a scene interface of a virtual card game in a terminal, wherein the scene interface comprises a personal display area which is used for displaying a virtual card held by a current login account; when the current card-playing object is the current login account, acquiring interaction state information of the terminal and a target object, wherein the target object is an object for operating the terminal; and when the intention of the target object is determined to be virtual card competition through voice control based on the interaction state information, controlling the virtual card held by the current login account based on the voice signal of the target object. Therefore, the target object can control the virtual cards through the voice signal operation terminal while carrying out other things, control modes are enriched, and control efficiency of the virtual cards is improved.

Description

Virtual card control method, device, terminal and storage medium
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a control method, device, terminal and storage medium of a virtual card.
Background
With the development of internet technology, various applications can be installed in the terminal to provide convenience for people in life, work, study and the like. Especially in entertainment, the user may play games through the terminal. For example, a user may play a game of chess and card through a chess application installed on the terminal.
In the related art, in the process of playing a chess game through a chess application, a user can control a terminal to play a virtual card through gesture operations such as clicking, sliding and the like by fingers, so that interaction with other players in the game is realized.
However, in the above scheme, the user may play the game and do other things, such as laundry and cooking things; when the user takes a card, the user needs to vacate both hands to control the handheld terminal through gesture operation, and therefore the virtual card control mode in the scheme is single, and the virtual card control efficiency is lower.
Disclosure of Invention
The disclosure provides a control method, a device, a terminal and a storage medium for a virtual card, so as to improve the control efficiency of the virtual card. The technical scheme of the present disclosure is as follows:
According to a first aspect of an embodiment of the present disclosure, there is provided a method for controlling a virtual card, including:
displaying a scene interface of a virtual card game in a terminal, wherein the scene interface comprises a personal display area which is used for displaying a virtual card held by a current login account;
when the current card-playing object is the current login account, acquiring interaction state information of the terminal and a target object, wherein the target object is an object for operating the terminal;
and when the intention of the target object is determined to be virtual card competition through voice control based on the interaction state information, controlling the virtual card held by the current login account based on the voice signal of the target object.
In some embodiments, the acquiring the interaction state information of the terminal and the target object includes:
acquiring operation information, wherein the operation information is used for indicating whether the current time of the target object is in operation with the terminal;
and determining the interaction state information based on the operation information.
In other embodiments, the determining the interaction state information based on the operation information includes:
If the operation information indicates that the current time of the target object is not in operation with the terminal, acquiring fixation information, wherein the fixation information is used for indicating whether the current time of the terminal is watched by the target object;
and taking the gazing information as the interaction state information.
In other embodiments, the interaction state information includes operation information for indicating whether the target object is currently operating the terminal;
based on the interaction state information, determining whether the intention of the target object is to play a virtual card game through voice control includes:
and if the operation information indicates that the target object is not operating the terminal at the current time, determining that the target object is intended to play the virtual card game through voice control.
In other embodiments, the interaction state information further includes gaze information for indicating whether the terminal is gazed by the target object;
based on the interaction state information, determining whether the intention of the target object is to play a virtual card game through voice control includes:
and if the operation information indicates that the current time of the target object is not in operation with the terminal, and the gazing information indicates that the current time of the terminal is gazed by the target object, determining that the intention of the target object is to perform virtual card competition through voice control.
In other embodiments, the method further comprises:
and if the gazing information indicates that the current time of the terminal is not gazed by the target object, automatically controlling the virtual card held by the current login account.
In other embodiments, before the controlling the virtual card held by the current login account based on the voice signal of the target object, the method further includes:
switching the current control mode of the terminal from a gesture operation mode to a voice control mode;
and in the voice control mode, executing the step of controlling the virtual card held by the current login account based on the voice signal of the target object.
In other embodiments, the switching the current control mode of the terminal from the gesture operation mode to the voice control mode includes:
outputting first voice prompt information, wherein the first voice prompt information is used for prompting whether the target object switches a current control mode into a voice control mode or not;
and when a voice confirmation instruction based on the first voice prompt information is received, switching the current control mode of the terminal from a gesture operation mode to a voice control mode.
In other embodiments, after the current control mode of the terminal is switched from the gesture operation mode to the voice control mode, the method further includes:
and outputting second voice prompt information, wherein the second voice prompt information is used for prompting that the current control mode of the terminal is switched to the voice control mode.
In other embodiments, the method further comprises:
if the voice signal is not received within the preset time length after the intention of the target object is determined to be the virtual card game through voice control, the virtual card held by the current login account is automatically controlled.
In other embodiments, the scene interface further includes a shared display area, where the shared display area is used to display virtual cards that have been played by a plurality of reference accounts, where the plurality of reference accounts includes the current login account;
the controlling the virtual card held by the current login account based on the voice signal of the target object comprises the following steps:
determining a card playing instruction corresponding to the voice signal of the target object, wherein the card playing instruction is used for indicating a virtual card to be played;
and moving the virtual cards to be played from the personal display area to the shared display area based on the card playing instruction.
According to a second aspect of the embodiments of the present disclosure, there is provided a control device for a virtual card, including:
the display unit is configured to execute a scene interface for displaying the virtual card game in the terminal, wherein the scene interface comprises a personal display area which is used for displaying the virtual card held by the current login account;
the obtaining unit is configured to obtain interaction state information of the terminal and a target object when the current card-playing object is the current login account, wherein the target object is an object for operating the terminal;
and the control unit is configured to control the virtual card held by the current login account based on the voice signal of the target object when the intention of the target object is determined to be virtual card competition through voice control based on the interaction state information.
In some embodiments, the acquisition unit comprises:
an acquisition subunit configured to perform acquisition of operation information for indicating whether the current time of the target object is operating the terminal;
and a determining subunit configured to perform determining the interaction state information based on the operation information.
In other embodiments, the determining subunit is configured to perform, if the operation information indicates that the target object is not operating the terminal at the current time, acquiring gaze information, where the gaze information is used to indicate whether the terminal is gazed at the target object at the current time; and taking the gazing information as the interaction state information.
In other embodiments, the interaction state information includes operation information for indicating whether the target object is currently operating the terminal; the apparatus further comprises:
and a determining unit configured to perform determining that the target object is intended to play a virtual card game by voice control if the operation information indicates that the target object is not currently operating the terminal.
In other embodiments, the interaction state information further includes gaze information for indicating whether the terminal is gazed by the target object; the determining unit is further configured to perform determining that the target object is intended to play a virtual card game by voice control if the operation information indicates that the target object is not operating the terminal at the current time and the gaze information indicates that the terminal is gazed at the current time by the target object.
In other embodiments, the control unit is further configured to perform automatic control of the virtual card held by the current login account if the gaze information indicates that the terminal is not gazed at by the target object at the current time.
In other embodiments, the apparatus further comprises:
a switching unit configured to perform switching of a current control mode of the terminal from a gesture operation mode to a voice control mode;
the control unit is further configured to perform control on the virtual card held by the current login account based on the voice signal of the target object in the voice control mode.
In other embodiments, the switching unit is configured to perform outputting a first voice prompt, where the first voice prompt is used to prompt the target object whether to switch the current control mode to the voice control mode; and when a voice confirmation instruction based on the first voice prompt information is received, switching the current control mode of the terminal from a gesture operation mode to a voice control mode.
In other embodiments, the apparatus further comprises:
and the output unit is configured to execute the output of second voice prompt information, and the second voice prompt information is used for prompting that the current control mode of the terminal is switched to the voice control mode.
In other embodiments, the control unit is further configured to perform automatic control of the virtual card held by the current login account if no voice signal is received within a preset time period after determining that the intention of the target object is to play the virtual card game through voice control.
In other embodiments, the scene interface further includes a shared display area, where the shared display area is used to display virtual cards that have been played by a plurality of reference accounts, where the plurality of reference accounts includes the current login account;
the control unit is configured to execute a card-playing instruction corresponding to the voice signal of the target object, wherein the card-playing instruction is used for indicating a virtual card to be played; and moving the virtual cards to be played from the personal display area to the shared display area based on the card playing instruction.
According to a third aspect of embodiments of the present disclosure, there is provided a terminal comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for controlling a virtual card as described in the above embodiments.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, which when executed by a processor of a terminal, causes the terminal to perform the method of controlling a virtual card as described in the above embodiments.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product comprising a computer program/instruction which, when executed by a processor, implements the method of controlling a virtual card according to the above embodiments.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the embodiment of the disclosure, in the virtual card game process, because the interaction state information between the terminal and the target object is based, when the target object is determined that the virtual card game is required to be performed through voice control, the card playing is controlled in a voice control mode, so that when the current login account number card playing is taken, the target object can control the virtual card through the voice signal operation terminal while other things are performed, the control mode is enriched, and the control efficiency of the virtual card is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram illustrating an implementation environment for a method of controlling a virtual card, according to an example embodiment;
FIG. 2 is a flow chart illustrating a method of controlling a virtual card according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of controlling a virtual card according to an exemplary embodiment;
FIG. 4 is a flow chart illustrating a method of controlling a virtual card according to an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating a method of controlling a virtual card according to an exemplary embodiment;
FIG. 6 is a schematic diagram illustrating a method of controlling a virtual card according to an example embodiment;
FIG. 7 is a block diagram illustrating a control device for a virtual card according to an exemplary embodiment;
fig. 8 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The user information referred to in the present disclosure may be information authorized by the user or sufficiently authorized by each party.
Fig. 1 is a schematic diagram illustrating an implementation environment of a method for controlling a virtual card according to an exemplary embodiment, and referring to fig. 1, the implementation environment includes: a server 20 and a plurality of terminals 10. Each terminal 10 and the server 20 are connected by a wireless or wired network.
Each terminal 10 has installed thereon a target application served by the server 20, and each terminal 10 can realize functions such as data transmission, information interaction, and the like through the target application. In some embodiments, the target application is an application in the operating system of the terminal 10, or an application provided for a third party. In some embodiments, the target application is any application having a game control function, a game play function, for example, the target application is a virtual card application.
In some embodiments, the target application may be a stand-alone virtual card application.
In other embodiments, the target application may also be an application capable of providing a running environment for a target applet, which is a virtual card applet; for example, the target application may be a game application, a social application, or an application such as a browser. In this embodiment, the terminal 10 can run the target applet based on the running environment provided by the target application without downloading and installing the target applet.
In some embodiments, the terminal 10 may control virtual cards through a virtual card application or virtual card applet.
The terminal 10 is at least one of a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like. Server 20 may be at least one of a server, a server cluster consisting of a plurality of servers, a cloud server, a cloud computing platform, and a virtualization center. In the embodiment of the present disclosure, the server 20 is configured to provide a background service for the terminal 10.
The control method for the virtual cards, provided by the embodiment of the disclosure, can be applied to scenes of virtual card games.
The target application is described as a virtual card application. When a user plays a virtual card game through a virtual card application in the terminal, the terminal can control the virtual card held by the current login account through the virtual card control method provided by the embodiment of the disclosure.
It should be noted that the above application scenario is only an exemplary illustration, and does not limit the scenario of the virtual card game, and the present disclosure can be applied to other playing scenarios of any chess game in addition to the above application scenario.
Fig. 2 is a flowchart illustrating a method of controlling a virtual card according to an exemplary embodiment, which is used in a terminal, as shown in fig. 2, and includes the following steps.
In step S21, displaying a scene interface of the virtual card game in the terminal, where the scene interface includes a personal display area, and the personal display area is used to display a virtual card held by the current login account;
in step S22, when the current card-playing object is the current login account, acquiring interaction state information of the terminal and a target object, where the target object is an object for operating the terminal;
in step S23, when it is determined that the intention of the target object is to play the virtual card game by voice control based on the interaction state information, the virtual card held by the current login account is controlled based on the voice signal of the target object.
In some embodiments, the obtaining interaction state information of the terminal and the target object includes:
Acquiring operation information, wherein the operation information is used for indicating whether the current time of the target object is in operation with the terminal;
based on the operation information, the interaction state information is determined.
In other embodiments, the determining the interaction state information based on the operation information includes:
if the operation information indicates that the current time of the target object is not in operation with the terminal, acquiring fixation information, wherein the fixation information is used for indicating whether the current time of the terminal is watched by the target object;
the gaze information is taken as the interaction state information.
In other embodiments, the interaction state information includes operation information for indicating whether the target object is currently operating the terminal;
based on the interaction state information, determining whether the intention of the target object is to play a virtual card game by voice control includes:
if the operation information indicates that the target object is not operating the terminal at the current time, determining that the target object is intended to play the virtual card game through voice control.
In other embodiments, the interaction state information further includes gaze information for indicating whether the terminal is gazed by the target object;
Based on the interaction state information, determining whether the intention of the target object is to play a virtual card game by voice control includes:
if the operation information indicates that the current time of the target object is not in operation of the terminal, and the gazing information indicates that the current time of the terminal is gazed by the target object, determining that the intention of the target object is to conduct virtual card competition through voice control.
In other embodiments, the method further comprises:
and if the gazing information indicates that the current time of the terminal is not gazed by the target object, automatically controlling the virtual card held by the current login account.
In other embodiments, the method further comprises, prior to controlling the virtual card held by the current login account based on the voice signal of the target object:
switching the current control mode of the terminal from a gesture operation mode to a voice control mode;
and in the voice control mode, executing the step of controlling the virtual card held by the current login account based on the voice signal of the target object.
In other embodiments, the switching the current control mode of the terminal from the gesture operation mode to the voice control mode includes:
Outputting first voice prompt information, wherein the first voice prompt information is used for prompting whether the target object switches the current control mode into a voice control mode;
and when a voice confirmation instruction based on the first voice prompt information is received, switching the current control mode of the terminal from a gesture operation mode to a voice control mode.
In other embodiments, after the current control mode of the terminal is switched from the gesture operation mode to the voice control mode, the method further includes:
and outputting second voice prompt information, wherein the second voice prompt information is used for prompting that the current control mode of the terminal is switched to the voice control mode.
In other embodiments, the method further comprises:
if the voice signal is not received within the preset time length after the intention of the target object is determined to be the virtual card game through voice control, the virtual card held by the current login account is automatically controlled.
In other embodiments, the scene interface further includes a shared display area, where the shared display area is configured to display virtual cards that have been played by a plurality of reference accounts, where the plurality of reference accounts includes the current login account;
The controlling the virtual card held by the current login account based on the voice signal of the target object comprises the following steps:
determining a card playing instruction corresponding to the voice signal of the target object, wherein the card playing instruction is used for indicating a virtual card to be played;
and moving the virtual cards to be played from the personal display area to the shared display area based on the card playing instruction.
In the embodiment of the disclosure, in the virtual card game process, because the interaction state information between the terminal and the target object is based, when the target object is determined that the virtual card game is required to be performed through voice control, the card playing is controlled in a voice control mode, so that when the current login account number card playing is taken, the target object can control the virtual card through the voice signal operation terminal while other things are performed, the control mode is enriched, and the control efficiency of the virtual card is further improved.
Fig. 3 is a flowchart illustrating a method of controlling a virtual card according to an exemplary embodiment, which is used in a terminal as shown in fig. 3, including the following steps.
In step S31, the terminal displays a scene interface of the virtual card game in the terminal, where the scene interface includes a personal display area, and the personal display area is used to display the virtual card held by the current login account.
The virtual card may be any one of an electronic playing card, an electronic mahjong card, etc., which is not particularly limited in this disclosure. The current login account may be a login account of a target object, where the target object is an object for operating the terminal. In the embodiment of the present disclosure, a target object is described as an example of a user using a terminal.
In the embodiment of the disclosure, a target application is installed in the terminal, and the target application is used for playing a virtual card game. When the target object wants to play the virtual card game through the target application, the target object can trigger the terminal to display a scene interface of the virtual card in the target application; because the virtual cards held by the current login account are displayed in the personal display area of the scene interface, the target object can determine the virtual cards which want to be played from the virtual cards, so that the terminal is triggered to execute card playing operation to play virtual card games.
It should be noted that, the virtual card game is a game in which a plurality of reference account numbers are played based on respective virtual cards, and each virtual card game includes a plurality of game rounds; in each game round, the plurality of reference account numbers are sequentially used as a card-playing object to determine whether to play cards. Wherein, each competition round has at least one reference account number for playing cards.
In the embodiment of the present disclosure, when the current card-playing object is the current login account, the terminal obtains the interaction status information of the terminal and the target object, that is, the operations from step S32 to step S33 are performed.
In some embodiments, the implementation manner of determining that the current card-playing object is the current login account may be that: and the terminal receives a card-playing instruction of the server, wherein the card-playing instruction is used for indicating that the current card-playing object is the current login account.
In step S32, when the current card-playing object is the current login account, the terminal acquires operation information, where the operation information is used to indicate whether the target object is an object for operating the terminal, and the current time of the target object is the current time of operating the terminal.
In some embodiments, the operation information may include grip information indicating whether the terminal is gripped at the current time. In one possible implementation, a plurality of holding sensors are uniformly arranged on two sides of the terminal, and each holding sensor is used for detecting whether the terminal is currently held.
The holding sensor may be a capacitive sensor, and correspondingly, in this implementation manner, a manner in which the terminal obtains the operation information may be: the terminal acquires the capacitance value acquired by each holding sensor to obtain a plurality of capacitance values; the plurality of capacitance values are used as operation information.
In the implementation manner, if the target object holds the terminal, the capacitance value acquired by the holding sensor at the holding position is different from the capacitance value acquired when the terminal is not held; because the acquired capacitance value is used as the operation information, the accuracy of the determined operation information is higher.
In another possible implementation, a pose sensor is provided in the terminal, and the pose sensor is used for detecting the current pose of the terminal. Accordingly, the terminal can determine whether the terminal is currently held in combination with the current pose of the terminal. Accordingly, in this implementation manner, the implementation manner of obtaining the operation information by the terminal may be: the terminal acquires the pose acquired by the pose sensor; the pose is taken as operation information.
The pose sensor can be at least one of an acceleration sensor, a gravity sensor, a gyroscope sensor or a magnetic field sensor.
In the implementation mode, if the target object holds the terminal, the pose acquired by the pose sensor is different from the pose acquired when the terminal is not held; because the collected pose is used as the operation information, the accuracy of the determined operation information is higher.
In the embodiment of the disclosure, the terminal may acquire the operation information when the current card-playing object is updated to the current login account. Or in the process of playing the virtual card game, the server can set a first card-playing duration for each reference account, and correspondingly, the terminal can acquire the operation information when the current time distance between the current card-playing object and the current login account exceeds a second card-playing duration and does not exceed the first card-playing duration.
In the embodiment of the disclosure, the first card-playing duration is set so as to reserve enough time for the object to which each reference account belongs to determine the virtual card to be played. The first card-playing duration and the second card-playing duration can be set and changed according to the needs, and the disclosure is not limited in detail; it should be noted that the second card-playing duration is shorter than the first card-playing duration. For example, the first card-playing duration may be 30s, 50s, 60s, etc., and the second card-playing duration may be 20s, 40s, 50s, etc.
In the embodiment of the present disclosure, since the first card-playing duration is set for each card-playing object in each game round, the target object only needs to control the virtual card through the terminal within the first card-playing duration, and when the current time distance between the current card-playing object updated to the current login account number exceeds the second card-playing duration, it indicates that the target object may not know that the current login account number is needed to play the virtual card, and the terminal may further acquire operation information. Accordingly, after obtaining the operation information, the terminal may determine interaction state information based on the operation information, that is, the terminal continues to perform the operation of step S33.
In step S33, the terminal takes the operation information as interaction state information.
The interaction state information is used for representing the interaction state between the terminal and the target object.
In the embodiment of the disclosure, since the target object operation terminal can be represented that the target object is interacted with the terminal, the efficiency of determining the interaction state information can be improved by taking the operation information as the interaction state information.
In step S34, the terminal determines that the intention of the target object is to play a virtual card game by voice control based on the interaction state information.
In some embodiments, the interaction state information includes operation information, and accordingly, the process of determining, by the terminal, that the intention of the target object is to play the virtual card game through voice control based on the interaction state information includes: if the operation information indicates that the target object is not operating the terminal at the current time, the terminal determines that the intention of the target object is to perform virtual card competition through voice control.
In the embodiment of the disclosure, the target object generally controls the terminal through gesture operation, however, during the virtual card game through the terminal, the target object may need to do some other things, such as washing clothes, cooking, watching a play, etc., and then the target object may be occupied with both hands, at which time the target object is inconvenient or unable to control the terminal through gesture operation. Accordingly, in this step, if the operation information indicates that the target object is not currently operating the terminal, it indicates that the target object may not be convenient to control the terminal through gesture operation.
In one possible implementation manner, if the operation information includes a plurality of capacitance values, the implementation manner in which the terminal determines that the operation information indicates that the target object is not operating at the current time may be: if at least two capacitance values in the plurality of capacitance values are larger than a preset capacitance value, the terminal determines that the operation information indicates that the target object is operating the terminal at the current time; if the number of capacitance values larger than the preset capacitance value in the plurality of capacitance values is not larger than 1, the terminal determines that the operation information indicates that the target object is not operating the terminal at the current time.
The preset capacitance value can be set and changed according to needs, and the disclosure is not limited in particular.
In another possible implementation manner, if the operation information includes a current pose of the terminal, the implementation manner in which the terminal determines that the operation information indicates that the target object is not operating the terminal at the current time may be: if the pose is matched with the preset pose, the terminal determines that the operation information indicates that the current time of the target object is in operation of the terminal; if the pose is not matched with the preset pose, the terminal determines that the operation information indicates that the current time of the target object is not in operation of the terminal.
The preset pose is a pose of the terminal when the terminal is held. The preset pose can be set and changed according to the needs, and the preset pose is not particularly limited in the disclosure; for example, a technician may collect a pose of the terminal when held by the terminal in advance, so that the terminal stores the preset pose in the terminal.
In this step, if the operation information indicates that the target object is currently operating the terminal, the terminal does not need to perform the operation of step S35.
In the embodiment of the disclosure, if the target object does not hold the terminal, it indicates that the target object may need to perform the virtual card game through voice control, so that the intention of the target object can be intelligently predicted based on the operation information, so as to improve the experience of the target object in the virtual card game process, and further improve the user viscosity.
In step S35, the terminal controls the virtual card held by the current login account based on the voice signal of the target object.
Wherein, prior to this step, the terminal receives the voice signal of the target object.
In the embodiment of the disclosure, the virtual card scene interface further comprises a shared display area, wherein the shared display area is used for displaying virtual cards with a plurality of reference accounts, and the plurality of reference accounts comprise the current login account; correspondingly, the implementation manner of the step S35 includes: the terminal determines a card-playing instruction corresponding to the voice signal, wherein the card-playing instruction is used for indicating a virtual card to be played; and moving the virtual cards to be played from the personal display area to the shared display area based on the card playing instruction.
The reference accounts are accounts participating in the virtual card game.
For example, the virtual card game is taken as a bucket owner, the card playing instruction may be "play big Wang Xiaowang", and the terminal moves the virtual cards corresponding to the "king" and the "small king" from the personal display area to the shared display area.
For another example, the virtual card game is taken as a mahjong game, and the card playing instruction can be "eight cards playing", so that the terminal moves the virtual cards corresponding to the "eight cards" from the personal display area to the shared display area.
It should be noted that, if any one of the plurality of reference accounts plays the virtual card, the terminal displays the played virtual card in the shared display area. Because each virtual card game comprises a plurality of game rounds, the terminal can only display the virtual cards which are played in the current game round in the shared display area, so that the display space is saved, and further, the rendering resources of the terminal are saved.
In the embodiment of the disclosure, the virtual cards to be played are moved to the shared display area by obtaining the card playing instruction according to the voice signal of the target object, so that the operation of playing the virtual cards by voice control is realized, and even if the target object of the operation terminal cannot operate the control terminal through gestures, the virtual cards can be played in a voice control mode, and the convenience of controlling the virtual cards is improved.
The other point to be described is that, in the virtual card game process, the target object may also select to not play cards in the current game round, that is, the play instruction may also be used to indicate that no card is played, and the implementation manner of the terminal to control the virtual card held by the current login account may be: the terminal determines a card-playing instruction corresponding to the voice signal, wherein the card-playing instruction is used for indicating that no card is played; based on the card-out instruction, keeping virtual cards held by the current login account in a personal display area, and prompting other reference accounts that the current login account is not card-out, wherein the other login accounts are reference accounts except the current login account in the plurality of reference accounts.
The implementation manner of prompting that other reference accounts are not played by the current login account by the terminal may be: the terminal displays text prompt information in the sharing display area, wherein the text prompt information is used for prompting that the current login account is not played; or the terminal outputs third voice prompt information which is used for prompting that the current login account is not played.
For example, the virtual card game is taken as a land owner for illustration, and if the current login account number does not play cards, the third voice prompt may be "no start" or "pass".
In the embodiment of the present disclosure, the terminal may prompt that the current login account of the other reference account is not played through any one implementation manner or a combination of the two implementation manners, which is not specifically limited in the present disclosure.
In some embodiments, when it is determined that the intention of the target object is to play the virtual card game through voice control, the terminal may perform the operation of step S35 directly based on the received voice signal, or the terminal may first switch the current control mode to the voice control mode, so that in the voice control mode, the operation of step S35 is performed based on the received voice signal. Correspondingly, before step S35, the control method for a virtual card provided by the present disclosure further includes the following steps: and the terminal switches the current control mode of the terminal from the gesture operation mode to the voice control mode.
The control mode may include a gesture operation mode, a voice control mode, and the like. The control modes may also include other control modes, which are not specifically limited by the present disclosure; such as remote control mode, etc.
In the embodiment of the disclosure, since the current control mode is switched to the voice control mode, the voice signal of the target object can be received in time, and the phenomenon that the voice signal of the target object is not detected due to the fact that the control mode is not switched is avoided.
In some embodiments, upon determining that the intent of the target object is to play a virtual card game through voice control, the terminal directly switches the current control mode from the gesture operation mode to the voice control mode.
In this embodiment, after the terminal switches the control mode, the terminal may remind the target object, and correspondingly, after the current control mode of the terminal is switched from the gesture operation mode to the voice control mode, the control method of the virtual board provided by the present disclosure further includes the following steps:
the terminal outputs a second voice prompt message, wherein the second voice prompt message is used for prompting that the current control mode of the terminal is switched to the voice control mode.
For example, the terminal is taken as a mobile phone, the virtual card game is taken as a land fighter, and the text content contained in the second voice prompt information can be "you have entered a voice control mode to ask for speaking the card you want to play".
In the embodiment of the disclosure, the current control mode of the target object can be prompted to be the voice control mode by the second voice prompt information, so that the target object can control the terminal based on the voice signal, and the progress of the virtual card game can be accelerated.
In other embodiments, the terminal may determine whether to switch the current control mode according to the intention of the target object, and correspondingly, the implementation manner that the terminal switches the current control mode of the terminal from the gesture operation mode to the voice control mode includes: the terminal outputs first voice prompt information which is used for prompting whether the target object switches the current control mode into a voice control mode or not; and when a voice confirmation instruction based on the first voice prompt information is received, switching the current control mode of the terminal from a gesture operation mode to a voice control mode.
For example, the content included in the first voice prompt may be "whether the voice control mode needs to be entered"; the content included in the voice signal corresponding to the voice determination instruction may be "enter voice control mode", "yes", "required", or the like.
In the embodiment of the disclosure, the intention of the target object is combined to determine whether to switch the control mode, namely, the control mode is switched when the target object wants to switch the control mode into the voice control mode, otherwise, the control mode is not switched, the target object is fully considered, the use experience of a user is improved, and the flexibility of mode switching is improved.
In an embodiment of the present disclosure, the method for controlling a virtual card provided by the present disclosure further includes the following steps: if the voice signal is not received within the preset time length after the intention of the target object is determined to be the virtual card game through voice control, the terminal automatically controls the virtual card held by the current login account.
The preset time length can be set and changed according to needs, and the preset time length is not particularly limited in the disclosure; for example, the preset time period may be 10s, 15s, or the like.
In one possible implementation manner, a card playing manner is preset in the terminal, and correspondingly, an implementation manner that the terminal automatically controls the virtual card held by the current login account may be: and the terminal controls the virtual card held by the current login account through a preset card-out mode.
The present disclosure does not specifically limit the way in which the cards are dealt; for example, the card-playing mode may be playing the smallest virtual card, not playing card, etc. among the virtual cards held by the current login account.
In the embodiment of the disclosure, if the voice signal of the target object is not received, the virtual cards can be automatically controlled, so that the virtual cards are hosted by means of the terminal, and the control modes of the virtual cards are enriched.
Fig. 4 is a flowchart illustrating a method of controlling a virtual card according to an exemplary embodiment, which is used in a terminal as shown in fig. 4, including the following steps.
In step S41, the terminal displays a scene interface of the virtual card game in the terminal, where the scene interface includes a personal display area, and the personal display area is used to display the virtual card held by the current login account.
In step S42, when the current card-playing object is the current login account, the terminal acquires operation information, where the operation information is used to indicate whether the current time of the terminal is held by a target object, and the target object is an object for operating the terminal.
In some embodiments, the implementation of steps S41-S42 is similar to the implementation of steps S31-S32, and will not be described in detail herein.
In step S43, if the operation information indicates that the terminal is not held by the target object, the terminal acquires gaze information indicating whether the current time of the terminal is gazed by the target object, and uses the gaze information as the interaction state information.
In one possible implementation, the terminal is provided with a gaze-sensing function, by which the terminal can determine whether the target object is gazing at the terminal; correspondingly, the implementation manner of the terminal to acquire the gazing information may be: the terminal acquires a gazing image, and eye movement information is extracted from the gazing image; the eye movement information is regarded as gaze information.
The gazing image may be an image captured by an image capturing apparatus installed in the terminal or connected thereto.
In another possible implementation manner, the implementation manner of the terminal to acquire the gazing information may be: the terminal acquires a gazing image, and face information is extracted from the gazing image; the face information is regarded as gaze information.
It should be noted that, the terminal may acquire the gaze information according to the above implementation manner, or may acquire the gaze information according to other implementation manners, which is not specifically limited in this disclosure.
In the embodiment of the disclosure, the interaction state information is determined by combining the gaze information on the basis of the operation information, so that data support can be provided for improving the accuracy of determining the intention of the target object.
In some embodiments, the terminal may further determine interaction status information in combination with the display information, and accordingly, the operation of step S43 may be replaced with: if the operation information indicates that the terminal is not held by the target object, the terminal acquires display information, and the display information is used as the interaction state information, wherein the display information is used for indicating interface information displayed in a display interface of the terminal.
In this embodiment, the display information is used to indicate whether the display interface of the terminal currently displays other interfaces in addition to the scene interface of the virtual deck pair game. For example, the other interface may be a chat interface, a shopping interface, or the like. The present disclosure is not particularly limited thereto.
In this embodiment, since the interactive status information is determined in combination with the display information on the basis of the operation information, it is possible to provide data support for improving the accuracy of determining the intention of the target object.
It should be noted that, the terminal may determine the interaction state information through any implementation manner, or may determine the interaction state information through a combination of the two implementation manners, which is not specifically limited in this disclosure.
In step S44, the terminal determines that the intention of the target object is to play a virtual card game by voice control based on the interaction state information.
In some embodiments, the interaction state information includes gaze information; correspondingly, the process that the terminal determines the intention of the target object to be the virtual card game through voice control based on the interaction state information comprises the following steps: if the gazing information indicates that the current time of the terminal is gazed by the target object, the terminal determines that the intention of the target object is to perform virtual card competition through voice control.
In this embodiment, if the gaze information includes eye movement information, the implementation manner in which the terminal determines whether the gaze information indicates that the terminal is gazed at the current time by the target object may be: if the eye movement information indicates that the gaze point of the human eye is positioned on the terminal, determining that the gaze information indicates that the current time of the terminal is gazed by the target object; and if the eye movement information indicates that the gazing point of the human eyes is not on the terminal, determining that the gazing information indicates that the current time of the terminal is not gazed by the target object.
In this embodiment, if the gaze information includes face information, the implementation manner in which the terminal determines whether the gaze information indicates that the terminal is gazed at the current time by the target object may be: if the face information indicates that the face image exists in the gazing image, the terminal determines that the gazing information indicates that the terminal is gazed by the target object at the current time; if the face information indicates that the face image does not exist in the gazing image, the terminal determines that the gazing information indicates that the terminal is not gazed by the target object at the current time.
In the embodiment of the disclosure, if the target object does not hold the terminal but looks at the terminal, it may be inconvenient to control the terminal through gesture operation, but the terminal may be informed of the virtual card intended to be played by itself through a voice control manner, so that accuracy is high.
In this embodiment, the target object may not look at the terminal, and the control method of the virtual card provided by the present disclosure further includes the following steps: and if the gazing information indicates that the current time of the terminal is not gazed by the target object, the terminal automatically controls the virtual card held by the current login account.
If the target object does not watch the terminal, the target object may not know that the current card-playing object is the current login account, that is, the target object is currently needed to control the card-playing of the terminal, and the terminal may directly and automatically control the virtual card.
In one possible implementation manner, the implementation manner of the terminal automatically controlling the virtual card held by the current login account is similar to the implementation manner of the terminal automatically controlling the virtual card held by the current login account in step S35, and will not be described herein.
In the embodiment of the disclosure, if the target object is not looking at the terminal at the current time, the virtual cards can be automatically controlled, so that the virtual cards are hosted by the terminal, and the mode of controlling the virtual cards is increased.
Referring to fig. 5, taking a terminal as an example of a mobile phone, if the current card-playing object is a current login account, that is, the current time is in the local card-playing period, and a user using the mobile phone, that is, a target object, holds the mobile phone and looks at the mobile phone, a first voice prompt message is output to prompt the user whether to enter a voice control mode, and when a voice confirmation instruction is received, the user enters the voice control mode; if the user does not watch the mobile phone or does not receive the voice determination instruction, the automatic hosting mode is entered, namely the virtual cards are automatically controlled.
Referring to fig. 6, taking a terminal as an example of a mobile phone, if the current card-playing object is the current login account, that is, the current time is in the local card-playing period, and the user using the mobile phone, that is, the target object, holds the mobile phone and looks at the mobile phone, the mobile phone directly enters a voice control mode, and outputs a second voice prompt message to prompt the user that the current control mode is the voice control mode, and the virtual card can be controlled through the voice control mode.
In other embodiments, the interaction state information includes display information; accordingly, the implementation manner of step S44 may be: if the display information indicates that the display interface of the terminal displays other interfaces in addition to the scene interface of the virtual card game at the current time, the terminal determines that the intention of the target object is to perform the virtual card game through voice control; if the display information indicates that only a scene interface of the virtual card game is displayed in the display interface of the terminal, the terminal automatically controls the virtual card held by the current login account.
If other interfaces are displayed in the display interface, which indicates that the target object may need to perform other things processing, such as chatting and shopping, through the terminal, the terminal may determine that the target object intends to perform the virtual card game through voice control, so that the processing of other things is not delayed, the normal performance of the virtual card game is not delayed, and further the user experience can be improved.
In the embodiment of the disclosure, since the intention of the target object can be determined based on whether other interfaces than the scene interface of the virtual card game are displayed in the current display interface of the terminal, the accuracy of determining the intention is higher.
In one possible implementation manner, the implementation manner of the terminal automatically controlling the virtual card held by the current login account is similar to the implementation manner of the terminal automatically controlling the virtual card held by the current login account in step S35, and will not be described herein.
In step S45, the terminal controls the virtual card held by the current login account based on the voice signal of the target object.
In some embodiments, the implementation of step S45 is similar to the implementation of step S35, and will not be described here.
In the embodiment of the disclosure, the interaction state information is determined by combining the operation information and the gazing information, so that when the target object needs the voice control terminal, the playing is controlled by the voice, the control modes are enriched, and the control efficiency of the virtual playing is improved.
Fig. 7 is a block diagram illustrating a control apparatus 70 for a virtual card according to an exemplary embodiment. Referring to fig. 7, the apparatus 70 includes a display unit 701, an acquisition unit 702, and a control unit 703.
A display unit 701 configured to execute a scene interface for displaying a virtual card game in a terminal, where the scene interface includes a personal display area for displaying a virtual card held by a current login account;
an obtaining unit 702, configured to obtain interaction state information of the terminal and a target object when the current card-playing object is the current login account, where the target object is an object for operating the terminal;
the control unit 703 is configured to perform control of the virtual card held by the current login account based on the voice signal of the target object when it is determined that the intention of the target object is to play the virtual card game by voice control based on the interaction state information.
In some embodiments, the acquisition unit 702 includes:
an acquisition subunit configured to perform acquisition operation information for indicating whether the target object is currently operating the terminal;
and a determining subunit configured to perform determining the interaction state information based on the operation information.
In other embodiments, the determining subunit is configured to perform obtaining gaze information if the operation information indicates that the target object is not operating the terminal at the current time, where the gaze information is used to indicate whether the terminal is gazing at the target object at the current time; the gaze information is taken as the interaction state information.
In other embodiments, the interaction state information includes operation information indicating whether the target object is currently operating the terminal; the apparatus further comprises:
and a determining unit configured to perform determining that the target object is intended to play a virtual card game by voice control if the operation information indicates that the target object is not currently operating the terminal.
In other embodiments, the interaction state information further includes gaze information for indicating whether the terminal is gazed by the target object; the determining unit is further configured to perform determining that the target object is intended to play a virtual card game by voice control if the operation information indicates that the target object is not currently operating the terminal and the gaze information indicates that the terminal is currently being gazed by the target object.
In other embodiments, the control unit 703 is further configured to perform automatic control of the virtual card held by the current login account if the gaze information indicates that the terminal is not gazed at by the target object at the current time.
In other embodiments, the apparatus further comprises:
A switching unit configured to perform switching of a current control mode of the terminal from a gesture operation mode to a voice control mode;
the control unit 703 is further configured to perform control of the virtual card held by the current login account based on the voice signal of the target object in the voice control mode.
In other embodiments, the switching unit is configured to perform outputting a first voice prompt, where the first voice prompt is used to prompt the target object whether to switch the current control mode to the voice control mode; and when a voice confirmation instruction based on the first voice prompt information is received, switching the current control mode of the terminal from a gesture operation mode to a voice control mode.
In other embodiments, the apparatus further comprises:
and the output unit is configured to execute and output second voice prompt information, and the second voice prompt information is used for prompting that the current control mode of the terminal is switched to the voice control mode.
In other embodiments, the control unit 703 is further configured to perform automatic control of the virtual card held by the current login account if no voice signal is received within a preset time period after determining that the target object is intended to play the virtual card game by voice control.
In other embodiments, the scene interface further includes a shared display area, where the shared display area is configured to display virtual cards that have been played by a plurality of reference accounts, where the plurality of reference accounts includes the current login account;
the control unit 703 is configured to execute a card-playing instruction corresponding to the voice signal of the target object, the card-playing instruction being used for indicating a virtual card to be played; and moving the virtual cards to be played from the personal display area to the shared display area based on the card playing instruction.
In the embodiment of the disclosure, in the virtual card game process, because the interaction state information between the terminal and the target object is based, when the target object is determined that the virtual card game is required to be performed through voice control, the card playing is controlled in a voice control mode, so that when the current login account number card playing is taken, the target object can control the virtual card through the voice signal operation terminal while other things are performed, the control mode is enriched, and the control efficiency of the virtual card is further improved.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 8 is a block diagram illustrating a structure of a terminal 10 according to an exemplary embodiment. In some embodiments, the terminal 10 may be: smart phones, tablet computers, notebook computers or desktop computers, etc. The terminal 10 may also be referred to by other names as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, the terminal 10 includes: a processor 101 and a memory 102.
In some embodiments, processor 101 includes one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. In some embodiments, the processor 101 is implemented in hardware in at least one of a DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). In some embodiments, the processor 101 also includes a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 101 is integrated with a GPU (Graphics Processing Unit, image processor) for taking care of rendering and drawing of the content that the display screen is required to display. In some embodiments, the processor 101 further includes an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
In some embodiments, memory 102 includes one or more computer-readable storage media that are non-transitory. In some embodiments, memory 102 also includes high-speed random access memory, as well as non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 102 is used to store at least one instruction for execution by processor 101 to implement the method of controlling virtual cards provided by the method embodiments in the present disclosure.
In some embodiments, the terminal 10 may further optionally include: a peripheral interface 103 and at least one peripheral. In some embodiments, processor 101, memory 102, and peripheral interface 103 are coupled via buses or signal lines. In some embodiments, each peripheral device is connected to peripheral device interface 103 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 104, display screen 105, camera assembly 106, audio circuitry 107, positioning assembly 108, and power supply 109.
Peripheral interface 103 may be used to connect at least one Input/Output (I/O) related peripheral device to processor 101 and memory 102. In some embodiments, processor 101, memory 102, and peripheral interface 103 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 101, memory 102, and peripheral interface 103 are implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 104 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 104 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 104 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. In some embodiments, the radio frequency circuit 104 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. In some embodiments, the radio frequency circuitry 104 communicates with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 104 further includes NFC (Near Field Communication ) related circuitry, which is not limited by the present disclosure.
The display screen 105 is used to display a UI (User Interface). In some embodiments, the UI includes graphics, text, icons, video, and any combination thereof. When the display screen 105 is a touch display screen, the display screen 105 also has the ability to collect touch signals at or above the surface of the display screen 105. In some embodiments, the touch signal is input as a control signal to the processor 101 for processing. At this time, the display screen 105 is also used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards. In some embodiments, the display screen 105 is one and is disposed on the front panel of the terminal 10; in other embodiments, the display 105 is at least two, each disposed on a different surface of the terminal 10 or in a folded configuration; in other embodiments, the display 105 is a flexible display disposed on a curved surface or a folded surface of the terminal 10. Even further, the display screen 105 is also arranged in an irregular pattern that is not rectangular, i.e. a shaped screen. In some embodiments, the display 105 is made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 106 is used to capture images or video. In some embodiments, the camera assembly 106 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 106 also includes a flash. In some embodiments, the flash is a single color temperature flash, and in some embodiments, the flash is a dual color temperature flash. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and is used for light compensation under different color temperatures.
In some embodiments, audio circuit 107 includes a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 101 for processing, or inputting the electric signals to the radio frequency circuit 104 for voice communication. For purposes of stereo acquisition or noise reduction, in some embodiments, the microphones are provided in a plurality, each at a different location of the terminal 10. In some embodiments, the microphone is an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 101 or the radio frequency circuit 104 into sound waves. In some embodiments, the speaker is a conventional thin film speaker, and in some embodiments, the speaker is a piezoceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only an electric signal but also an acoustic wave audible to humans can be converted into an acoustic wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 107 also includes a headphone jack.
The location component 108 is operative to locate the current geographic location of the terminal 10 for navigation or LBS (Location Based Service, location based services). In some embodiments, the positioning component 107 is a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, or the Galileo system of Russia.
The power supply 109 is used to power the various components in the terminal 10. In some embodiments, the power source 109 is an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power source 109 comprises a rechargeable battery, the rechargeable battery is a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery is also used to support fast charge technology.
In some embodiments, the terminal 10 further includes one or more sensors 110. The one or more sensors 110 include, but are not limited to: an acceleration sensor 111, a gyro sensor 112, a pressure sensor 113, a fingerprint sensor 114, an optical sensor 115, and a proximity sensor 116.
In some embodiments, the acceleration sensor 111 detects the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 10. For example, the acceleration sensor 111 is used to detect components of gravitational acceleration on three coordinate axes. In some embodiments, processor 101 controls display screen 105 to display a user interface in either a landscape view or a portrait view based on gravitational acceleration signals acquired by acceleration sensor 111. In some embodiments, the acceleration sensor 111 is also used for the acquisition of motion data of a game or user.
In some embodiments, the gyro sensor 112 detects the body direction and the rotation angle of the terminal 10, and the gyro sensor 112 and the acceleration sensor 111 cooperate to collect the 3D motion of the user on the terminal 10. The processor 101 can realize the following functions according to the data collected by the gyro sensor 112: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
In some embodiments, the pressure sensor 113 is disposed on a side frame of the terminal 10 and/or on an underlying layer of the display screen 105. When the pressure sensor 113 is disposed at the side frame of the terminal 10, a grip signal of the user to the terminal 10 can be detected, and the processor 101 performs left-right hand recognition or quick operation according to the grip signal collected by the pressure sensor 113. When the pressure sensor 113 is disposed at the lower layer of the display screen 105, the processor 101 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 105. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 114 is used to collect a fingerprint of a user, and the processor 101 identifies the identity of the user based on the fingerprint collected by the fingerprint sensor 114, or the fingerprint sensor 114 identifies the identity of the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the user is authorized by the processor 101 to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. In some embodiments, the fingerprint sensor 114 is disposed on the front, back, or side of the terminal 10. When a physical key or vendor Logo is provided on the terminal 10, the fingerprint sensor 114 is integrated with the physical key or vendor Logo.
The optical sensor 115 is used to collect the ambient light intensity. In one embodiment, processor 101 controls the display brightness of display screen 105 based on the intensity of ambient light collected by optical sensor 115. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 105 is turned up; when the ambient light intensity is low, the display brightness of the display screen 105 is turned down. In another embodiment, the processor 101 also dynamically adjusts the shooting parameters of the camera assembly 106 based on the intensity of ambient light collected by the optical sensor 115.
A proximity sensor 116, also referred to as a distance sensor, is typically provided on the front panel of the terminal 10. The proximity sensor 116 is used to collect the distance between the user and the front of the terminal 10. In one embodiment, when the proximity sensor 116 detects a gradual decrease in the distance between the user and the front face of the terminal 10, the processor 101 controls the display screen 105 to switch from the bright screen state to the off screen state; when the proximity sensor 116 detects that the distance between the user and the front surface of the terminal 10 gradually increases, the processor 101 controls the display screen 105 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 8 is not limiting of the terminal 10 and can include more or fewer components than shown, or certain components may be combined, or a different arrangement of components may be employed.
In an exemplary embodiment, a computer readable storage medium comprising instructions, such as the memory 102 comprising instructions, is also provided, which when executed by a processor of a terminal, enables the terminal to perform the method of controlling a virtual card in the above-described embodiments. The above instructions may be executed by the processor 102 of the terminal 10 to perform the above-described virtual card control method. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, which comprises a computer program/instruction which, when executed by a processor, implements the method of controlling a virtual card in the above-described embodiments.
In some embodiments, the computer program related to the embodiments of the present application may be deployed to be executed on one terminal or on a plurality of terminals located at one site, or alternatively, on a plurality of terminals distributed at a plurality of sites and interconnected by a communication network, and a plurality of terminals distributed at a plurality of sites and interconnected by a communication network may constitute a blockchain system.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (21)

1. A method of controlling a virtual card, comprising:
displaying a scene interface of a virtual card game in a terminal, wherein the scene interface comprises a personal display area which is used for displaying a virtual card held by a current login account;
when the current card-playing object is the current login account, acquiring operation information, wherein the operation information is used for indicating whether a target object is currently operating the terminal or not, the operation of the terminal refers to holding the terminal so as to control the terminal through gesture operation, and the target object is the object for operating the terminal;
Based on the operation information, determining interaction state information of the terminal and the target object;
when the intention of the target object is determined to be virtual card competition through voice control based on the interaction state information, switching a current control mode of the terminal from a gesture operation mode to a voice control mode;
and in the voice control mode, controlling the virtual card held by the current login account based on the voice signal of the target object.
2. The method according to claim 1, wherein the determining interaction state information of the terminal and the target object based on the operation information includes:
if the operation information indicates that the current time of the target object is not in operation with the terminal, acquiring fixation information, wherein the fixation information is used for indicating whether the current time of the terminal is watched by the target object;
and taking the gazing information as the interaction state information.
3. The method of controlling a virtual card according to claim 1, wherein the interaction state information includes operation information;
based on the interaction state information, determining whether the intention of the target object is to play a virtual card game through voice control includes:
And if the operation information indicates that the target object is not operating the terminal at the current time, determining that the target object is intended to play the virtual card game through voice control.
4. A control method of a virtual card according to claim 3, wherein the interaction state information further includes gaze information for indicating whether the terminal is gazed by the target object;
based on the interaction state information, determining whether the intention of the target object is to play a virtual card game through voice control includes:
and if the operation information indicates that the current time of the target object is not in operation with the terminal, and the gazing information indicates that the current time of the terminal is gazed by the target object, determining that the intention of the target object is to perform virtual card competition through voice control.
5. The method of controlling a virtual card of claim 4, further comprising:
and if the gazing information indicates that the current time of the terminal is not gazed by the target object, automatically controlling the virtual card held by the current login account.
6. The method for controlling a virtual card according to claim 1, wherein switching the current control mode of the terminal from the gesture operation mode to the voice control mode comprises:
Outputting first voice prompt information, wherein the first voice prompt information is used for prompting whether the target object switches the current control mode into the voice control mode;
and when a voice confirmation instruction based on the first voice prompt information is received, switching the current control mode of the terminal from the gesture operation mode to the voice control mode.
7. The method for controlling a virtual card according to claim 1, wherein after the current control mode of the terminal is switched from the gesture operation mode to the voice control mode, the method further comprises:
and outputting second voice prompt information, wherein the second voice prompt information is used for prompting that the current control mode of the terminal is switched to the voice control mode.
8. The method of controlling a virtual card of claim 1, further comprising:
if the voice signal is not received within the preset time length after the intention of the target object is determined to be the virtual card game through voice control, the virtual card held by the current login account is automatically controlled.
9. The method for controlling virtual cards according to claim 1 further comprising a shared display area in the scene interface, wherein the shared display area is used for displaying virtual cards with a plurality of reference accounts, and the plurality of reference accounts comprise the current login account;
The controlling the virtual card held by the current login account based on the voice signal of the target object comprises the following steps:
determining a card playing instruction corresponding to the voice signal of the target object, wherein the card playing instruction is used for indicating a virtual card to be played;
and moving the virtual cards to be played from the personal display area to the shared display area based on the card playing instruction.
10. A virtual card control device, comprising:
the display unit is configured to execute a scene interface for displaying the virtual card game in the terminal, wherein the scene interface comprises a personal display area which is used for displaying the virtual card held by the current login account;
the acquisition unit comprises an acquisition subunit and a determination subunit;
the obtaining subunit is configured to obtain operation information when the current card-playing object is the current login account, where the operation information is used to indicate whether a target object is currently operating the terminal, and the operation of the terminal refers to holding the terminal to control the terminal through gesture operation, and the target object is an object for operating the terminal;
The determining subunit is configured to determine interaction state information of the terminal and the target object based on the operation information;
a switching unit configured to perform switching of a current control mode of the terminal from a gesture operation mode to a voice control mode when it is determined that the intention of the target object is to play a virtual card game through voice control based on the interaction state information;
and the control unit is configured to control the virtual card held by the current login account based on the voice signal of the target object in the voice control mode.
11. The control device of a virtual card according to claim 10, wherein the determination subunit is configured to perform acquisition of gaze information indicating whether the terminal is currently gazed by the target object if the operation information indicates that the target object is not operating the terminal at the current time; and taking the gazing information as the interaction state information.
12. The control device for virtual cards according to claim 10 wherein the interaction state information includes operation information; the apparatus further comprises:
And a determining unit configured to perform determining that the target object is intended to play a virtual card game by voice control if the operation information indicates that the target object is not currently operating the terminal.
13. The control device of a virtual card according to claim 12, wherein the interaction state information further includes gaze information for indicating whether the terminal is gazed by the target object; the determining unit is further configured to perform determining that the target object is intended to play a virtual card game by voice control if the operation information indicates that the target object is not operating the terminal at the current time and the gaze information indicates that the terminal is gazed at the current time by the target object.
14. The virtual card control device according to claim 13, wherein the control unit is further configured to automatically control a virtual card held by the current login account if the gaze information indicates that the terminal is not gazed at the target object at the current time.
15. The control device of a virtual board according to claim 10, wherein the switching unit is configured to perform outputting first voice prompt information for prompting whether the target object switches the current control mode to the voice control mode; and when a voice confirmation instruction based on the first voice prompt information is received, switching the current control mode of the terminal from the gesture operation mode to the voice control mode.
16. The virtual card control device of claim 10, wherein the device further comprises:
and the output unit is configured to execute output of second voice prompt information, and the second voice prompt information is used for prompting that the current control mode of the terminal is switched to the voice control mode.
17. The virtual card control device according to claim 10, wherein the control unit is further configured to perform automatic control of the virtual card held by the current login account if no voice signal is received within a preset time period after determining that the intention of the target object is to play the virtual card game by voice control.
18. The virtual card control device according to claim 10, wherein the scene interface further comprises a shared display area, the shared display area is used for displaying virtual cards with a plurality of reference accounts, and the plurality of reference accounts comprise the current login account;
the control unit is configured to execute a card-playing instruction corresponding to the voice signal of the target object, wherein the card-playing instruction is used for indicating a virtual card to be played; and moving the virtual cards to be played from the personal display area to the shared display area based on the card playing instruction.
19. A terminal, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of controlling a virtual card as claimed in any one of claims 1 to 9.
20. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of a terminal, enable the terminal to perform the method of controlling a virtual card according to any one of claims 1 to 9.
21. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the method of controlling a virtual card according to any one of claims 1 to 9.
CN202110662637.7A 2021-06-15 2021-06-15 Virtual card control method, device, terminal and storage medium Active CN113384878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110662637.7A CN113384878B (en) 2021-06-15 2021-06-15 Virtual card control method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110662637.7A CN113384878B (en) 2021-06-15 2021-06-15 Virtual card control method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113384878A CN113384878A (en) 2021-09-14
CN113384878B true CN113384878B (en) 2024-02-23

Family

ID=77621222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110662637.7A Active CN113384878B (en) 2021-06-15 2021-06-15 Virtual card control method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113384878B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024152A (en) * 2012-11-28 2013-04-03 深圳市中兴移动通信有限公司 Method, device and intelligent terminal for switching between multipurpose modes
CN103888596A (en) * 2012-12-21 2014-06-25 腾讯科技(深圳)有限公司 Terminal voice mode switching method and device, and terminal
CN107469350A (en) * 2017-07-15 2017-12-15 深圳酷旗互联网有限公司 A kind of Card Games control method and device
CN109364477A (en) * 2018-12-24 2019-02-22 苏州思必驰信息科技有限公司 Play Mah-Jong the method and device of game based on voice control
CN112774185A (en) * 2021-02-09 2021-05-11 腾讯科技(深圳)有限公司 Virtual card control method, device and equipment in card virtual scene

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9250703B2 (en) * 2006-03-06 2016-02-02 Sony Computer Entertainment Inc. Interface with gaze detection and voice input

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024152A (en) * 2012-11-28 2013-04-03 深圳市中兴移动通信有限公司 Method, device and intelligent terminal for switching between multipurpose modes
CN103888596A (en) * 2012-12-21 2014-06-25 腾讯科技(深圳)有限公司 Terminal voice mode switching method and device, and terminal
CN107469350A (en) * 2017-07-15 2017-12-15 深圳酷旗互联网有限公司 A kind of Card Games control method and device
CN109364477A (en) * 2018-12-24 2019-02-22 苏州思必驰信息科技有限公司 Play Mah-Jong the method and device of game based on voice control
CN112774185A (en) * 2021-02-09 2021-05-11 腾讯科技(深圳)有限公司 Virtual card control method, device and equipment in card virtual scene

Also Published As

Publication number Publication date
CN113384878A (en) 2021-09-14

Similar Documents

Publication Publication Date Title
CN107982918B (en) Game game result display method and device and terminal
CN109379485B (en) Application feedback method, device, terminal and storage medium
CN110149332B (en) Live broadcast method, device, equipment and storage medium
CN110278464B (en) Method and device for displaying list
CN110740340B (en) Video live broadcast method and device and storage medium
CN110139116B (en) Live broadcast room switching method and device and storage medium
CN110300274B (en) Video file recording method, device and storage medium
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN110772793A (en) Virtual resource configuration method and device, electronic equipment and storage medium
CN113204672B (en) Resource display method, device, computer equipment and medium
CN114116053A (en) Resource display method and device, computer equipment and medium
CN113204671A (en) Resource display method, device, terminal, server, medium and product
CN110297684B (en) Theme display method and device based on virtual character and storage medium
CN109218169B (en) Instant messaging method, device and storage medium
CN112367533B (en) Interactive service processing method, device, equipment and computer readable storage medium
CN110769120A (en) Method, device, equipment and storage medium for message reminding
CN111061369B (en) Interaction method, device, equipment and storage medium
CN110152309B (en) Voice communication method, device, electronic equipment and storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN112023403A (en) Battle process display method and device based on image-text information
CN110286839B (en) Message sending method, device, terminal and storage medium
CN108228052B (en) Method and device for triggering operation of interface component, storage medium and terminal
CN114153361B (en) Interface display method, device, terminal and storage medium
CN113384878B (en) Virtual card control method, device, terminal and storage medium
CN112188268B (en) Virtual scene display method, virtual scene introduction video generation method and device

Legal Events

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