CN117412134A - Virtual game realization method and device, electronic equipment and readable storage medium - Google Patents
Virtual game realization method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN117412134A CN117412134A CN202311348064.6A CN202311348064A CN117412134A CN 117412134 A CN117412134 A CN 117412134A CN 202311348064 A CN202311348064 A CN 202311348064A CN 117412134 A CN117412134 A CN 117412134A
- Authority
- CN
- China
- Prior art keywords
- game
- scene
- sports event
- user
- behavior
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000009877 rendering Methods 0.000 claims abstract description 12
- 230000006399 behavior Effects 0.000 claims description 41
- 230000009471 action Effects 0.000 claims description 25
- 230000000386 athletic effect Effects 0.000 claims 1
- 230000003542 behavioural effect Effects 0.000 description 39
- 230000009977 dual effect Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000008921 facial expression Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000007654 immersion Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000033764 rhythmic process Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4781—Games
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
技术领域Technical field
本申请实施例涉及视频采集技术领域,尤其涉及一种虚拟游戏的实现方法、装置、电子设备和可读存储介质。Embodiments of the present application relate to the field of video collection technology, and in particular to a method, device, electronic device, and readable storage medium for implementing a virtual game.
背景技术Background technique
目前用户只能通过视频应用观看实时的体育比赛,或者只能通过游戏应用玩虚拟体育比赛的游戏,休闲体验丰富性不足,无法体验到观看体育比赛与玩同一体育比赛游戏的双重体验。Currently, users can only watch real-time sports matches through video applications, or play virtual sports games through game apps. The leisure experience is not rich enough and cannot experience the dual experience of watching sports matches and playing the same sports match game.
发明内容Contents of the invention
本申请实施例提供一种虚拟游戏的实现方法、装置、电子设备和可读存储介质,以解决现有的无法体验到观看体育比赛与玩同一体育比赛游戏的双重体验的问题。Embodiments of the present application provide a virtual game implementation method, device, electronic device, and readable storage medium to solve the existing problem of being unable to experience the dual experience of watching a sports match and playing the same sports match game.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种虚拟游戏的实现方法,包括:In a first aspect, embodiments of the present application provide a method for implementing a virtual game, including:
获取体育赛事的视频帧;Get video frames of sports events;
根据所述体育赛事的视频帧构建与所述体育赛事的场景相一致的游戏场景,所述游戏场景中包括至少一个可选择的可操纵角色;Construct a game scene consistent with the scene of the sports event based on the video frames of the sports event, and the game scene includes at least one selectable controllable character;
获取用户从所述至少一个可选择的可操作角色中选择的目标角色,并获取用户针对所述目标角色输入的至少一个行为指令;Obtain the target role selected by the user from the at least one selectable operable role, and obtain at least one behavioral instruction input by the user for the target role;
在所述游戏场景中,对所述目标角色执行所述至少一个行为指令所对应的行为信息进行渲染。In the game scene, the behavior information corresponding to the target character executing the at least one behavior instruction is rendered.
可选的,所述行为信息包括:实施行为的位置信息和动作信息;Optionally, the behavior information includes: location information and action information for performing the behavior;
所述在所述游戏场景中,对所述目标角色执行所述至少一个行为指令所对应的动作信息进行渲染,包括:In the game scene, rendering action information corresponding to the target character executing the at least one behavioral instruction includes:
以输入所述行为指令对应时刻为起始时刻、以该起始时刻下所述目标角色在所述游戏场景中的位置为起始位置、以该起始时刻下所述目标角色在所述游戏场景中的动作为起始动作,生成所述目标角色在后续时刻执行所述至少一个行为指令所对应的行为信息序列;Taking the time corresponding to the input of the behavioral instruction as the starting time, taking the position of the target character in the game scene at this starting time as the starting position, taking the position of the target character in the game at this starting time as The action in the scene is the initial action, and a sequence of behavioral information corresponding to the target character executing the at least one behavioral instruction at a subsequent moment is generated;
在所述后续时刻在所述游戏场景中对所述行为信息序列进行渲染。The sequence of behavioral information is rendered in the game scene at the subsequent time.
可选的,根据所述体育赛事的视频帧构建与所述体育赛事的场景相一致的游戏场景,包括:Optionally, construct a game scene consistent with the scene of the sports event based on the video frames of the sports event, including:
对所述体育赛的视频帧进行解析,得到体育赛事相关信息;Analyze the video frames of the sports event to obtain information related to the sports event;
根据所述体育赛事相关信息构建与所述体育赛事视频帧中场景相一致的所述游戏场景。可选的,所述体育赛事相关信息包括以下至少一项:比赛场地、参赛队伍、参赛队员、裁判、教练、比赛比分和关键事件数据。The game scene consistent with the scene in the sports event video frame is constructed according to the sports event related information. Optionally, the sports event-related information includes at least one of the following: competition venue, participating teams, participating players, referees, coaches, game scores and key event data.
可选的,所述可选择的可操纵角色通过识别所述体育赛事视频帧中的人物获得,或由用户通过外部输入设备输入相关信息自主创建获得。Optionally, the selectable manipulable character is obtained by identifying the characters in the sports event video frame, or is independently created by the user inputting relevant information through an external input device.
可选的,optional,
所述在所述游戏场景中,对所述目标角色执行所述至少一个行为指令所对应的行为信息进行渲染,之后还包括:In the game scene, rendering the behavior information corresponding to the at least one behavior instruction executed by the target character, and then further including:
若在预设时长内未获取到用户新输入的行为指令,则继续获取新的体育赛事的视频帧;If no new behavioral instructions input by the user are obtained within the preset time period, continue to obtain video frames of new sports events;
根据所述新的体育赛事的视频帧构建与所述体育赛事的场景相一致的新的游戏场景,所述新的游戏场景中包括至少一个可选择的可操纵角色。A new game scene consistent with the scene of the sports event is constructed based on the video frames of the new sports event, and the new game scene includes at least one selectable controllable character.
可选的,所述体育赛事的视频帧为通过对原始的体育赛事视频的视频帧进行抽帧后得到。Optionally, the video frames of the sports event are obtained by extracting frames from the original video frames of the sports event.
第二方面,本申请实施例提供了一种虚拟游戏的实现装置,包括:In a second aspect, embodiments of the present application provide a device for implementing a virtual game, including:
第一获取模块,用于获取体育赛事的视频帧;The first acquisition module is used to acquire video frames of sports events;
第一处理模块,用于根据所述体育赛事的视频帧构建与所述体育赛事的场景相一致的游戏场景,所述游戏场景中包括至少一个可选择的可操纵角色;A first processing module configured to construct a game scene consistent with the scene of the sports event based on the video frames of the sports event, where the game scene includes at least one selectable controllable character;
第二获取模块,用于获取用户从所述至少一个可选择的可操作角色中选择的目标角色,并获取用户针对所述目标角色输入的至少一个行为指令;a second acquisition module, configured to acquire the target character selected by the user from the at least one selectable operable character, and acquire at least one behavioral instruction input by the user for the target character;
第二处理模块,用于在所述游戏场景中,对所述目标角色执行所述至少一个行为指令所对应的行为信息进行渲染。The second processing module is configured to render behavioral information corresponding to the target character executing the at least one behavioral instruction in the game scene.
可选的,所述行为信息包括:实施行为的位置信息和动作信息;Optionally, the behavior information includes: location information and action information for performing the behavior;
所述第二处理模块,包括:The second processing module includes:
第一处理子模块,用于以输入所述行为指令对应时刻为起始时刻、以该起始时刻下所述目标角色在所述游戏场景中的位置为起始位置、以该起始时刻下所述目标角色在所述游戏场景中的动作为起始动作,生成所述目标角色在后续时刻执行所述至少一个行为指令所对应的行为信息序列;The first processing submodule is used to take the time corresponding to the input of the behavioral instruction as the starting time, take the position of the target character in the game scene at the starting time as the starting position, and take the starting time as the starting position. The action of the target character in the game scene is the initial action, and a behavioral information sequence corresponding to the at least one behavioral instruction executed by the target character at a subsequent moment is generated;
第二处理子模块,用于在所述后续时刻在所述游戏场景中对所述行为信息序列进行渲染。The second processing sub-module is used to render the behavioral information sequence in the game scene at the subsequent moment.
可选的,所述第一处理模块,包括:Optionally, the first processing module includes:
解析子模块,用于对所述体育赛的视频帧进行解析,得到体育赛事相关信息;The parsing sub-module is used to parse the video frames of the sports match to obtain relevant information about the sports event;
构建子模块,用于根据所述体育赛事相关信息构建与所述体育赛事视频帧中场景相一致的所述游戏场景。A construction sub-module is configured to construct the game scene consistent with the scene in the sports event video frame according to the sports event related information.
可选的,所述体育赛事相关信息包括以下至少一项:比赛场地、参赛队伍、参赛队员、裁判、教练、比赛比分和关键事件数据。Optionally, the sports event-related information includes at least one of the following: competition venue, participating teams, participating players, referees, coaches, game scores and key event data.
可选的,所述可选择的可操纵角色通过识别所述体育赛事视频帧中的人物获得,或由用户通过外部输入设备输入相关信息自主创建获得。Optionally, the selectable manipulable character is obtained by identifying the characters in the sports event video frame, or is independently created by the user inputting relevant information through an external input device.
可选的,还包括:Optional, also includes:
第三获取模块,用于若在预设时长内未获取到用户新输入的行为指令,则继续获取新的体育赛事的视频帧;The third acquisition module is used to continue to acquire video frames of new sports events if no new behavioral instructions input by the user are acquired within the preset time period;
第三处理模块,用于根据所述新的体育赛事的视频帧构建与所述体育赛事的场景相一致的新的游戏场景,所述新的游戏场景中包括至少一个可选择的可操纵角色。The third processing module is configured to construct a new game scene consistent with the scene of the sports event based on the video frames of the new sports event, and the new game scene includes at least one selectable controllable character.
可选的,所述体育赛事的视频帧为通过对原始的体育赛事视频的视频帧进行抽帧后得到。Optionally, the video frames of the sports event are obtained by extracting frames from the original video frames of the sports event.
第三方面,本申请实施例提供了一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面中任一项所述的虚拟游戏的实现方法中的步骤。In a third aspect, embodiments of the present application provide an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor. The program or instruction is processed by the When the server is executed, the steps in the virtual game implementation method as described in any one of the first aspects are implemented.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面中任一项所述的虚拟游戏的实现方法中的步骤。In the fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the implementation is as described in any one of the first aspects. The steps in the implementation method of the virtual game.
在本申请中,通过实时数据传输使体育比赛的视频端和游戏端进行联动交互,并可在比赛的任意时刻根据用户输入的角色和行为在游戏中渲染出对应展示效果,模拟用户参与比赛的场景,解决了现有的无法体验到观看体育比赛与玩同一体育比赛游戏的双重体验的问题。In this application, real-time data transmission is used to enable linkage and interaction between the video end and the game end of the sports match, and the corresponding display effect can be rendered in the game according to the role and behavior input by the user at any time during the match, simulating the user's participation in the match. scene, solving the existing problem of being unable to experience the dual experience of watching a sports match and playing the same sports match game.
附图说明Description of the drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本申请的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be construed as limiting the application. Also throughout the drawings, the same reference characters are used to designate the same components. In the attached picture:
图1是本申请实施例提供的一种虚拟游戏的实现方法的流程图;Figure 1 is a flow chart of a virtual game implementation method provided by an embodiment of the present application;
图2是本申请实施例提供的一种虚拟游戏的实现方法的总体流程图;Figure 2 is an overall flow chart of a virtual game implementation method provided by an embodiment of the present application;
图3是本申请实施例提供的一种虚拟游戏的实现装置的结构示意图;Figure 3 is a schematic structural diagram of a virtual game implementation device provided by an embodiment of the present application;
图4是本申请实施例提供的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
请参考图1,本申请实施例提供了一种虚拟游戏的实现方法,包括:Please refer to Figure 1. This embodiment of the present application provides a method for implementing a virtual game, including:
步骤11:获取体育赛事的视频帧;Step 11: Obtain video frames of sports events;
本申请实施例中,所述体育赛事的视频帧为通过对原始的体育赛事视频的视频帧进行抽帧后得到,所述体育赛事可以为实时进行的直播体育赛事,也可以为网上获取的录播体育赛事;在用户通过视频应用观看体育比赛时,将视频应用中的视频流通过视频抽帧的方式转化为图片集合,并将图片集合实时的传输给游戏应用,通过实时数据传输使体育比赛的视频端和游戏端进行联动交互,实现观看体育比赛与玩同一体育比赛游戏的双重体验。In this embodiment of the present application, the video frames of the sports events are obtained by extracting frames from the original video frames of the sports events. The sports events can be live sports events that are carried out in real time, or they can be recorded online. Broadcast sports events; when users watch sports events through video applications, the video stream in the video application is converted into a collection of pictures through video frame extraction, and the collection of pictures is transmitted to the game application in real time, so that the sports competitions can be played through real-time data transmission. The video terminal and the game terminal are linked and interacted to achieve the dual experience of watching sports games and playing the same sports game.
步骤12:根据所述体育赛事的视频帧构建与所述体育赛事的场景相一致的游戏场景,所述游戏场景中包括至少一个可选择的可操纵角色;Step 12: Construct a game scene consistent with the scene of the sports event based on the video frames of the sports event, and the game scene includes at least one selectable controllable character;
本申请实施例中,对所述体育赛事视频帧进行解析,得到体育赛事相关信息;根据所述体育赛事相关信息构建与所述体育赛事视频帧中场景相同的游戏场景,其中,所述体育赛事相关信息包括以下至少一项:比赛场地、参赛队伍、参赛队员、裁判、教练、比赛比分和关键事件数据,所述关键事件数据例如足球中的红黄牌数、角球数、射门数和控球率等,根据所述体育赛事相关信息,构建游戏应用中的比赛场景,与视频应用中实时播放的比赛进度完全一致,例如:视频应用中实时播放的足球比赛在游戏应用中虚拟出完全一致的比赛情景,实现观看体育比赛与玩同一体育比赛游戏的双重体验。In the embodiment of the present application, the sports event video frame is analyzed to obtain sports event related information; a game scene that is the same as the scene in the sports event video frame is constructed based on the sports event related information, wherein the sports event Relevant information includes at least one of the following: competition venue, participating teams, participating players, referees, coaches, game scores and key event data, such as the number of red and yellow cards, number of corner kicks, number of shots and ball possession rate in football. etc., based on the information related to the sports event, construct a game scene in the game application, which is completely consistent with the game progress played in real time in the video application. For example: a football game played in real time in the video application virtualizes a completely consistent game in the game application. scenarios to achieve the dual experience of watching sports matches and playing the same sports match game.
步骤13:获取用户从所述至少一个可选择的可操作角色中选择的目标角色,并获取用户针对所述目标角色输入的至少一个行为指令;Step 13: Obtain the target role selected by the user from the at least one selectable operable role, and obtain at least one behavioral instruction input by the user for the target role;
本申请实施例中,可选的,所述可选择的可操纵角色通过识别所述体育赛事视频帧中的人物获得,或由用户通过外部输入设备输入相关信息自主创建获得;其中,用户可以进行角色选择,即用户可以选择比赛过程中的任意一个角色,例如裁判、教练、队员和观众;也可以进行角色切换,即用户可以在角色间任意切换,体验任意角色,实现观看体育比赛与玩同一体育比赛游戏的双重体验。In the embodiment of the present application, optionally, the selectable manipulable character is obtained by identifying the characters in the sports event video frame, or is independently created by the user inputting relevant information through an external input device; wherein, the user can Role selection, that is, the user can choose any role during the game, such as referees, coaches, players, and spectators; role switching is also possible, that is, the user can switch between roles at will, experience any role, and realize watching sports games and playing the same game. A dual experience of sports game play.
本申请实施例中,用户选定角色后,获取用户通过介质输入或肢体动作等方式输入的行为指令,在根据所述行为指令被识别后,控制当前角色的行为,实时的呈现在游戏应用中;其中,介质输入可以但不限于通过游戏手柄、键盘和屏幕点击等方式;肢体动作可以但不限于用户将自己的肢体行为被系统采集和识别。In the embodiment of this application, after the user selects a character, the behavioral instructions input by the user through media input or body movements are obtained. After the behavioral instructions are recognized according to the behavioral instructions, the behavior of the current character is controlled and presented in the game application in real time. ; Among them, media input can be, but is not limited to, through game controllers, keyboards, screen clicks, etc.; body movements can be, but are not limited to, the user's body behavior being collected and recognized by the system.
步骤14:在所述游戏场景中,对所述目标角色执行所述至少一个行为指令所对应的行为信息进行渲染。Step 14: In the game scene, render the behavior information corresponding to the at least one behavior instruction executed by the target character.
本申请实施例中,所述行为信息包括:实施行为的位置信息和动作信息;In the embodiment of this application, the behavior information includes: location information and action information for performing the behavior;
所述在所述游戏场景中,对所述目标角色执行所述至少一个行为指令所对应的动作信息进行渲染,包括:以输入所述行为指令对应时刻为起始时刻、以该起始时刻下所述目标角色在所述游戏场景中的位置为起始位置、以该起始时刻下所述目标角色在所述游戏场景中的动作为起始动作,生成所述目标角色在后续时刻执行所述至少一个行为指令所对应的行为信息序列;在所述后续时刻在所述游戏场景中对所述行为信息序列进行渲染;申请具体的实现过程为:当采集到用户有行为指令的时刻,记为T时刻,取T时刻的体育赛事视频帧,并根据所述行为指令识别用户选择的所述目标角色所处的位置信息,记为Pt,采集并识别T时刻的目标角色对应的动作信息,记为At,其中,所述动作信息包括以下至少一项:目标角色的肢体动作和面部表情;在下一时刻,即T+ΔT时刻,获取用户的行为指令输入的位置信息PΔt和动作信息AΔt,并在一段连续的时间内,生成用户行为指令的集合{Pt,At},将所述行为指令用于游戏场景的渲染。In the game scene, rendering the action information corresponding to the execution of the at least one behavior instruction by the target character includes: taking the time corresponding to the input of the behavior instruction as the starting time, and using the starting time as the starting time. The position of the target character in the game scene is the starting position, and the action of the target character in the game scene at the starting time is the starting action, and the target character is generated to perform all actions at the subsequent time. The behavioral information sequence corresponding to the at least one behavioral instruction; the behavioral information sequence is rendered in the game scene at the subsequent moment; the specific implementation process of the application is: when the user has a behavioral instruction collected, record For time T, take the sports event video frame at time T, and identify the location information of the target character selected by the user according to the behavioral instructions, denoted as Pt, collect and identify the action information corresponding to the target character at time T, Denoted as At, where the action information includes at least one of the following: the target character's body movements and facial expressions; at the next moment, that is, the T+ΔT moment, obtain the position information PΔt and action information AΔt input by the user's behavioral instructions, And within a continuous period of time, a set of user behavior instructions {Pt, At} is generated, and the behavior instructions are used for rendering of the game scene.
本申请实施例中,通过实时数据传输使体育比赛的视频端和游戏端进行联动交互,并可在比赛的任意时刻根据用户输入的角色和行为在游戏中渲染出对应展示效果,模拟用户参与比赛的场景,解决了现有的无法体验到观看体育比赛与玩同一体育比赛游戏的双重体验的问题。In the embodiment of this application, real-time data transmission is used to enable the video terminal and game terminal of the sports competition to interact in a linked manner, and the corresponding display effect can be rendered in the game according to the role and behavior input by the user at any time during the competition, simulating the user's participation in the competition. scene, solving the existing problem of not being able to experience the dual experience of watching a sports match and playing the same sports match game.
本申请实施例中,可选的,所述在所述游戏场景中,对所述目标角色执行所述至少一个行为指令所对应的行为信息进行渲染,之后还包括:In the embodiment of the present application, optionally, in the game scene, rendering the behavior information corresponding to the at least one behavior instruction executed by the target character, and then further including:
若在预设时长内未获取到用户新输入的行为指令,则继续获取新的体育赛事的视频帧;If no new behavioral instructions input by the user are obtained within the preset time period, continue to obtain video frames of new sports events;
根据所述新的体育赛事的视频帧构建与所述体育赛事的场景相一致的新的游戏场景,所述新的游戏场景中包括至少一个可选择的可操纵角色。A new game scene consistent with the scene of the sports event is constructed based on the video frames of the new sports event, and the new game scene includes at least one selectable controllable character.
本申请实施例中,当未采集到用户有输入行为指令时,依然同步来自视频应用的视频数据,实时呈现当前的比赛进程,用户亦可以在任意时刻输入行为指令以此再次投入到游戏体验中。In the embodiment of this application, when no behavioral instructions are collected from the user, the video data from the video application is still synchronized to present the current game process in real time. The user can also input behavioral instructions at any time to re-invest in the game experience. .
请参考图2,本申请实施例中,通过视频应用进行体育赛事视频帧的数据采集以及向游戏应用传输;Please refer to Figure 2. In this embodiment of the present application, data collection of sports event video frames is performed through a video application and transmitted to the game application;
游戏应用接收所述体育赛事视频帧的数据,并根据所述体育赛事视频帧构建游戏场景;The game application receives the data of the sports event video frames and constructs a game scene based on the sports event video frames;
获取用户在所述游戏场景中对至少一个可选择的可操作角色进行的角色选取和角色切换;Obtain the user's character selection and character switching of at least one selectable operable character in the game scene;
持续判断用户终端是否有输入,当用户有输入时,根据用户输入的行为指令对应时刻的体育赛事视频帧确定所述目标角色的位置信息,并根据所述位置信息在所述游戏场景中对所述目标角色执行所述行为指令,在游戏应用中沉浸式体验体育赛事。Continuously determine whether there is input from the user terminal. When the user has input, the location information of the target character is determined based on the sports event video frame corresponding to the behavioral instruction input by the user, and the position information of the target character in the game scene is determined based on the location information. The target character executes the behavioral instructions and experiences the sports event immersively in the game application.
本申请实施例中,以足球比赛为例,在足球比赛中,用户可以选择的可操作角色包括以下至少一项:两支球队的队员、教练、裁判和观众等;对于每一个角色的游戏方法和呈现效果可以但不限于为:当用户选择球队的球员角色时,可选择的分为持球球员和非持球球员传球,当用户选择的是持球球员时,用户可控制球员带球的速度、方向、选择传球或射门时机和射门力量等,依据用户的行为指令,得到目标角色当前的位置信息和动作信息,而场上其他非持球球员的则根据当前持球球员的位置信息,动作信息生成各自对应的位置信息和动作信息集合进行渲染;当用户选择的是非持球球员时,用户可控制跑位球员的速度和方向,当出现好的传球机会时,用户虽然为非持球球员,但可以选择持球球员将球传给用户控制的非持球球员,从而达到更佳的游戏效果;In the embodiment of this application, a football match is taken as an example. In the football match, the operable roles that the user can select include at least one of the following: players of two teams, coaches, referees, spectators, etc.; for each role, the game The method and presentation effect may be, but are not limited to: when the user selects the player role of the team, the options are divided into ball-holding players and non-ball-holding players passing the ball. When the user selects the ball-holding player, the user can control the players. The speed and direction of dribbling the ball, the timing of passing or shooting, and the power of the shot, etc. are obtained based on the user's behavioral instructions to obtain the target character's current position information and action information, while other non-ball-holding players on the field are based on the current ball-holding player. The position information and action information generate corresponding sets of position information and action information for rendering; when the user selects a non-ball player, the user can control the speed and direction of the running player. When a good passing opportunity appears, the user Although it is a non-ball-holding player, you can choose a ball-holding player to pass the ball to a non-ball-holding player controlled by the user, thereby achieving better game effects;
当用户选择的是教练角色时,可以布置或者调整当前的球队战术,战术布置通过将用户的操作指令翻译成能被系统执行的具体属性,例如:用户选择高位逼抢的战术时,翻译成能被系统执行的具体属性和位置信息是每个球员对对方持球球员的位置更加靠近和做出抢球的动作;或,当用户选择加强防守的战术时,翻译成能被系统执行的具体属性和位置信息是场上所有球员都退回到本方半场区域、每个球员的占位更加靠近和做出防守动作并抢球等;当用户选择教练角色时可以选择球队的阵型,例如每个球员所处的位置和球队中的角色,并可以通过用户的行为指令进行操控,教练也可以选择换人,即用替补席上的球员与场上球员进行互换,从而达到预期的战术效果。When the user selects the coaching role, he can arrange or adjust the current team tactics. The tactical arrangement translates the user's operation instructions into specific attributes that can be executed by the system. For example: when the user selects a high-pressing tactic, the tactics are translated into The specific attributes and position information executed by the system are each player moving closer to the opponent's ball-holding player and making actions to grab the ball; or, when the user chooses to strengthen defensive tactics, it is translated into specific attributes that can be executed by the system. And the position information is that all players on the field return to their own half-court area, each player occupies a closer position, makes defensive actions and grabs the ball, etc.; when the user selects the coaching role, he can select the team's formation, such as each Each player's position and role in the team can be controlled through the user's behavioral instructions. The coach can also choose to make substitutions, that is, swap players on the bench with players on the field to achieve the desired tactics. Effect.
当用户选择的是裁判的角色时,可以做出与视频中正在进行的比赛中裁判不同的判罚,即用户可以按照自己的理解,做出自己认为正确的判罚;例如:实际比赛中,进攻方在防守方的禁区内被犯规时,裁判没有做出判罚,用户此时在游戏场景中,可以做出与之不同的判罚,判罚防守方犯规,给进攻方点球,并在游戏场景中进行罚点球的游戏,当争议判罚后,用户没有继续输入行为指令时,游戏场景结束,继续从视频应用同步比赛数据,保持与视频应用中的比赛进程同步,时刻保持用户对比赛的参与感。When the user chooses the role of a referee, he or she can make different penalties than the referee in the ongoing game in the video. That is, the user can make the penalty that he thinks is correct according to his own understanding; for example: in the actual game, the offensive team When the defensive team is fouled in the penalty area, the referee does not make a penalty. The user can make a different penalty in the game scene at this time, award the defensive team a foul, give the offensive team a penalty kick, and conduct it in the game scene. In the penalty kick game, when the dispute is over and the user does not continue to input behavioral instructions, the game scene ends and the game data continues to be synchronized from the video application to maintain synchronization with the game progress in the video application and maintain the user's sense of participation in the game at all times.
当用户选择的是观众角色时,用户可以选择所坐的位置,并根据当前用户所选的位置生成用户的观赛视角,用户所选的观众角色也可以与现场观众的互动,例如:根据当前正在进行的比赛进度,例如产生了进球,用户可以通过自己的肢体动作输入系统庆祝进球,完全融入比赛场景中,带来沉浸感;当比赛进行过程中,现场观众做出人浪,用户跟随现场节奏做出人浪动作;当用户所在的观赛区域内,球迷唱起歌曲为球队加油时,用户可以跟随唱歌,为球队加油等。When the user selects an audience role, the user can select a sitting position, and the user's viewing perspective is generated based on the current user-selected position. The user-selected audience role can also interact with the live audience, for example: based on the current user-selected position. During the progress of the ongoing game, for example, if a goal is scored, the user can celebrate the goal through the input system of his body movements, fully integrating into the game scene, bringing a sense of immersion; when the game is in progress, the audience makes waves, and the user Follow the rhythm of the scene and make crowd movements; when fans in the viewing area where the user is located sing songs to cheer for the team, users can follow the singing and cheer for the team, etc.
本申请实施例中,将实时比赛数据实时同步到游戏场景中,为用户带来视频与游戏的即时感;并且游戏场景的构建来自正在进行的体育比赛视频流,基于已有的视频画面,构建完全相同的游戏场景,尤其是比赛中各个人物的位置、动作和表情等,相比于完全虚拟比赛场景要简单容易的多,同时也更贴近实际。In the embodiment of this application, real-time game data is synchronized into the game scene in real time, bringing users a sense of immediacy in video and games; and the game scene is constructed from the ongoing sports game video stream, based on the existing video images. The exact same game scene, especially the positions, movements and expressions of each character in the game, is much simpler and easier than a completely virtual game scene, and it is also closer to reality.
请参考图3,本申请实施例提供了一种虚拟游戏的实现装置,包括:Please refer to Figure 3. This embodiment of the present application provides a device for implementing a virtual game, including:
第一获取模块31,用于获取体育赛事的视频帧;The first acquisition module 31 is used to acquire video frames of sports events;
第一处理模块32,用于根据所述体育赛事的视频帧构建与所述体育赛事的场景相一致的游戏场景,所述游戏场景中包括至少一个可选择的可操纵角色;The first processing module 32 is configured to construct a game scene consistent with the scene of the sports event based on the video frames of the sports event, and the game scene includes at least one selectable controllable character;
第二获取模块33,用于获取用户从所述至少一个可选择的可操作角色中选择的目标角色,并获取用户针对所述目标角色输入的至少一个行为指令;The second acquisition module 33 is configured to acquire the target character selected by the user from the at least one selectable operable character, and acquire at least one behavioral instruction input by the user for the target character;
第二处理模块34,用于在所述游戏场景中,对所述目标角色执行所述至少一个行为指令所对应的行为信息进行渲染。The second processing module 34 is configured to render the behavior information corresponding to the at least one behavior instruction executed by the target character in the game scene.
本申请实施例中,可选的,所述行为信息包括:实施行为的位置信息和动作信息;In this embodiment of the present application, optionally, the behavior information includes: location information and action information for performing the behavior;
所述第二处理模块,包括:The second processing module includes:
第一处理子模块,用于以输入所述行为指令对应时刻为起始时刻、以该起始时刻下所述目标角色在所述游戏场景中的位置为起始位置、以该起始时刻下所述目标角色在所述游戏场景中的动作为起始动作,生成所述目标角色在后续时刻执行所述至少一个行为指令所对应的行为信息序列;The first processing submodule is used to take the time corresponding to the input of the behavioral instruction as the starting time, take the position of the target character in the game scene at the starting time as the starting position, and take the starting time as the starting position. The action of the target character in the game scene is the initial action, and a behavioral information sequence corresponding to the at least one behavioral instruction executed by the target character at a subsequent moment is generated;
第二处理子模块,用于在所述后续时刻在所述游戏场景中对所述行为信息序列进行渲染。The second processing sub-module is used to render the behavioral information sequence in the game scene at the subsequent moment.
本申请实施例中,可选的,所述第一处理模块,包括:In this embodiment of the present application, optionally, the first processing module includes:
解析子模块,用于对所述体育赛的视频帧进行解析,得到体育赛事相关信息;The parsing sub-module is used to parse the video frames of the sports match to obtain relevant information about the sports event;
构建子模块,用于根据所述体育赛事相关信息构建与所述体育赛事视频帧中场景相一致的所述游戏场景。A construction sub-module is configured to construct the game scene consistent with the scene in the sports event video frame according to the sports event related information.
本申请实施例中,可选的,所述体育赛事相关信息包括以下至少一项:比赛场地、参赛队伍、参赛队员、裁判、教练、比赛比分和关键事件数据。In the embodiment of this application, optionally, the sports event-related information includes at least one of the following: competition venue, participating teams, participating players, referees, coaches, game scores, and key event data.
本申请实施例中,可选的,所述可选择的可操纵角色通过识别所述体育赛事视频帧中的人物获得,或由用户通过外部输入设备输入相关信息自主创建获得。In the embodiment of the present application, optionally, the selectable manipulable character is obtained by identifying the characters in the sports event video frame, or is independently created by the user inputting relevant information through an external input device.
本申请实施例中,可选的,还包括:In the embodiment of this application, optionally, it also includes:
第三获取模块,用于若在预设时长内未获取到用户新输入的行为指令,则继续获取新的体育赛事的视频帧;The third acquisition module is used to continue to acquire video frames of new sports events if no new behavioral instructions input by the user are acquired within the preset time period;
第三处理模块,用于根据所述新的体育赛事的视频帧构建与所述体育赛事的场景相一致的新的游戏场景,所述新的游戏场景中包括至少一个可选择的可操纵角色。The third processing module is configured to construct a new game scene consistent with the scene of the sports event based on the video frames of the new sports event, and the new game scene includes at least one selectable controllable character.
本申请实施例中,可选的,所述体育赛事的视频帧为通过对原始的体育赛事视频的视频帧进行抽帧后得到。In this embodiment of the present application, optionally, the video frames of the sports event are obtained by extracting frames from the original video frames of the sports event video.
本申请实施例提供的虚拟游戏的实现装置能够实现图1的方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。The virtual game implementation device provided by the embodiment of the present application can implement each process implemented by the method embodiment in Figure 1 and achieve the same technical effect. To avoid duplication, the details will not be described here.
本申请实施例提供了一种电子设备40,参见图4所示,图4为本申请实施例电子设备40的原理框图,包括处理器41,存储器42及存储在存储器42上并可在处理器41上运行的程序或指令,程序或指令被处理器执行时实现本申请的任一项虚拟游戏的实现方法中的步骤。The embodiment of the present application provides an electronic device 40, as shown in Figure 4. Figure 4 is a functional block diagram of the electronic device 40 according to the embodiment of the present application, including a processor 41, a memory 42 and data stored on the memory 42 and available on the processor 41. When the program or instructions are executed by the processor, the steps in the method for implementing any virtual game of the present application are implemented.
本申请实施例提供了一种可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如上述任一项的虚拟游戏的实现方法的实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, various processes of the embodiments of the virtual game implementation method as any one of the above are implemented. And can achieve the same technical effect. To avoid repetition, they will not be described again here.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes permanent and non-transitory, removable and non-removable media and can utilize any method or technology for storage of information. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory. (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above serial numbers of the embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台服务分类设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a service classification device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only the preferred embodiments of the present application. It should be pointed out that for those of ordinary skill in the art, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications can also be made. should be regarded as the scope of protection of this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311348064.6A CN117412134A (en) | 2023-10-18 | 2023-10-18 | Virtual game realization method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311348064.6A CN117412134A (en) | 2023-10-18 | 2023-10-18 | Virtual game realization method and device, electronic equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117412134A true CN117412134A (en) | 2024-01-16 |
Family
ID=89497426
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311348064.6A Pending CN117412134A (en) | 2023-10-18 | 2023-10-18 | Virtual game realization method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117412134A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117809001A (en) * | 2024-02-28 | 2024-04-02 | 深圳市广通软件有限公司 | VR-based stadium management event viewing method, device and equipment |
CN118118643A (en) * | 2024-04-15 | 2024-05-31 | 腾讯科技(深圳)有限公司 | A video data processing method and related device |
-
2023
- 2023-10-18 CN CN202311348064.6A patent/CN117412134A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117809001A (en) * | 2024-02-28 | 2024-04-02 | 深圳市广通软件有限公司 | VR-based stadium management event viewing method, device and equipment |
CN118118643A (en) * | 2024-04-15 | 2024-05-31 | 腾讯科技(深圳)有限公司 | A video data processing method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11065539B2 (en) | Method and system for sharing video game content | |
US8177611B2 (en) | Scheme for inserting a mimicked performance into a scene and providing an evaluation of same | |
CN117412134A (en) | Virtual game realization method and device, electronic equipment and readable storage medium | |
CN110505521B (en) | Live broadcast competition interaction method, electronic equipment, storage medium and system | |
JPWO2016098415A1 (en) | Information processing apparatus, information processing method, and program | |
US10245505B2 (en) | Generating custom recordings of skeletal animations | |
JP7616360B2 (en) | EXPLANATION VIDEO GENERATION METHOD, DEVICE, SERVER AND COMPUTER PROGRAM | |
JP6032704B2 (en) | Game system, privilege providing system, and program | |
JP2021072965A5 (en) | ||
JP7018617B1 (en) | Play recording video creation system | |
Canning et al. | The culture of deep learning in esports: An insider's perspective | |
JP2001347074A (en) | Device and method for playing sport game | |
JP2023016006A (en) | Exercise or sports equipment as a game controller | |
US11865446B2 (en) | Interactive what-if game replay methods and systems | |
US12151167B2 (en) | Adaptive difficulty calibration for skills-based activities in virtual environments | |
JP6032705B2 (en) | GAME SYSTEM, DISPLAY CONTROL SYSTEM, AND PROGRAM | |
US12125280B2 (en) | Dance matching method and system | |
CN116011212A (en) | Tactical simulation method, tactical simulation device, storage medium, and electronic apparatus | |
CN119365242A (en) | Profile-based detection of unexpected controller errors | |
JP2023027765A (en) | virtual dojo | |
GB2631518A (en) | Content interaction system and method | |
US20230381655A1 (en) | High Definition American Football Video Game | |
KR102367679B1 (en) | Method, device and computer readable recording medium to provide interactive training content in game | |
EP4138063A1 (en) | Game-based lesson plans and learning | |
JP2025514991A (en) | Game video playback method, device, equipment, and computer program |
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 |