Offline game task video generation method, device, terminal and storage medium

By obtaining and processing the initial video in offline game room escape missions, and using the matching relationship between game tasks and props to extract the target video stream, the problem of dispersed video content in the existing technology is solved, and the integrity of the task video and the improvement of the player experience is achieved.

CN114405010BActive Publication Date: 2025-05-06GUANGZHOU BOGUAN TELECOMM TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210002935.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-04
Publication Date
2025-05-06
Estimated Expiration
2042-01-04

AI Technical Summary

Technical Problem

When recording videos of offline game room escape tasks, the prior art can only be recorded for a single area or space, resulting in the dispersion of the video content of the same game task and destroying the integrity of the video.

Method used

By obtaining the initial video of game players in the target game task in offline games, using the matching relationship between game tasks and game props, extracting the target video stream from the initial video, synthesizing the target task video to ensure the integrity of the video.

Benefits of technology

It realizes the complete video of gamers completing a certain game task, improves the integrity of the video corresponding to the same game task, and facilitates gamers to view the process of completing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114405010B_ABST
    Figure CN114405010B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, terminal and storage medium for generating task videos of offline games. The offline game includes a target game task and game props in the offline game scene. The method includes: obtaining an initial video of a game player in the target game task in the offline game, wherein the initial video is shot by a shooting device installed in the offline game scene; obtaining a target video stream containing a video screen matching the target game task from the initial video based on the matching relationship between the game task and the game props; and synthesizing a target task video corresponding to the target game task based on the target video stream. This solution can obtain a complete video of a game player completing a certain game task, thereby improving the integrity of obtaining the corresponding video of the same game task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, terminal and storage medium for generating task videos for offline games. Background Art

[0002] When game players escape from an offline secret room, they need to obtain corresponding props by completing tasks. Video recording equipment is installed in existing secret rooms, which currently only records a single angle of a single area or space. Sometimes the same game task may include different areas or spaces, resulting in the video content of the same game task being relatively scattered, destroying the integrity of obtaining the corresponding task video for a single game task.

[0003] Therefore, the existing technology needs to be improved. Summary of the invention

[0004] The embodiments of the present application provide a method, device, terminal and storage medium for generating task videos of offline games, which can obtain a complete video of a game player completing a certain game task, thereby improving the integrity of obtaining the corresponding video of the same game task.

[0005] An embodiment of the present application provides a method for generating a task video of an offline game, wherein the offline game includes a target game task and game props in an offline game scene. The method for generating a task video of the offline game includes: obtaining an initial video of a game player in a target game task in the offline game, wherein the initial video is shot by a shooting device installed in the offline game scene; obtaining a target video stream containing a video screen that matches the target game task from the initial video based on a matching relationship between the game task and the game props; and synthesizing a target task video corresponding to the target game task based on the target video stream.

[0006] In an optional embodiment, obtaining an initial video of a game player in an offline game in the target game task includes:

[0007] Obtaining an initial video of a game player in an offline game on a task route of the target game task;

[0008] Among them, the task route is the path trajectory between the task starting position and the task ending position of the target game task in the offline game scene.

[0009] In an optional embodiment, before acquiring a target video stream containing a video screen matching the target game task from the initial video based on the matching relationship between the game task and the game prop, the method further includes:

[0010] Determine a task identifier corresponding to the game prop, wherein the task identifier is used to reflect the matching relationship between the game prop and the game task;

[0011] The matching relationship between the game task and the game prop is determined based on the task identifier corresponding to the game prop.

[0012] In an optional embodiment, the step of obtaining a target video stream containing a video screen matching the target game task from the initial video based on the matching relationship between the game task and the game props includes:

[0013] Performing a similarity comparison on each frame of the initial video of each game task, dividing each of the initial videos into at least one short video, wherein the similarity of the video frames contained in the same short video meets the preset similarity requirement; the same short video is a continuous video stream between the video frame at the front shooting time and the video frame at the back shooting time among the video frames whose similarity meets the preset requirement;

[0014] The target video stream is obtained from the short video based on the matching relationship between the game task and the game props.

[0015] In an optional embodiment, the step of obtaining the target video stream from the short video based on the matching relationship between the game task and the game props includes:

[0016] Comparing each frame of the short video with the feature information of the game props to determine whether each frame of the video contains the game props;

[0017] Based on the video frame containing the game prop in the short video, the target video stream is obtained from the short video, and the target video stream includes a continuous video stream from the first video frame containing the game prop to the last video frame containing the game prop.

[0018] In an optional embodiment, synthesizing the target task video corresponding to the target game task based on the target video stream includes:

[0019] Determine the starting shooting time corresponding to the target video stream, sort the target video streams based on the order of the starting shooting time, and synthesize them into the target task video.

[0020] In an optional embodiment, obtaining the initial video of the game player in the offline game in the task route of the target game task includes:

[0021] Determine the time when the task starting position of the task route first contains the photograph of the game player as the starting time, and the time when the task ending position last contains the photograph of the game player as the ending time;

[0022] Determine the video stream between the start time and the end time as the initial video.

[0023] In an optional embodiment, it also includes:

[0024] For the videos shot in the task routes of the offline game tasks, a mapping relationship between the videos and the tasks to which the videos belong is established;

[0025] The obtaining of the initial video of the game player in the target game task in the offline game includes:

[0026] Based on the mapping relationship, at least one initial video of the game player in the task route of the target game task is obtained from the captured video.

[0027] In an optional embodiment, the obtaining, based on the mapping relationship, at least one initial video of the game player in the task route of the target game task from the captured video includes:

[0028] Obtaining a historical time period in which the game player performs the target game task in the offline game;

[0029] Based on the mapping relationship, obtaining candidate videos of the target game task from the captured videos;

[0030] Based on the historical time period and the shooting time period of the candidate videos, at least one initial video of the game player in the mission route of the target game mission is determined.

[0031] In an optional embodiment, it also includes:

[0032] Determine the game props corresponding to the target game task, and photograph the game props to obtain prop pictures;

[0033] The characteristic information of the game prop is set based on the prop picture.

[0034] The embodiment of the present application further provides a task video generation device for an offline game, wherein the offline game includes a target game task and game props in an offline game scene, and the task video generation device for the offline game includes:

[0035] A first acquisition unit is used to acquire an initial video of a game player in a target game task in an offline game, wherein the initial video is shot by a shooting device installed in the offline game scene;

[0036] A second acquisition unit is used to acquire a target video stream containing a video screen matching the target game task from the initial video based on the matching relationship between the game task and the game prop;

[0037] A synthesis unit is used to synthesize a target task video corresponding to the target game task based on the target video stream.

[0038] An embodiment of the present application also provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned offline game task video generation method when executing the computer program.

[0039] The embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the task video generation method for the offline game as described above are implemented.

[0040] An embodiment of the present application provides a method for generating a task video of an offline game, wherein the offline game includes a target game task and game props in an offline game scene. Through the method of this embodiment, an initial video of a game player in the target game task in the offline game can be obtained, wherein the initial video is shot by a shooting device installed in the offline game scene; a target video stream matching the target game task is obtained from the initial video based on a matching relationship between the game task and the game props; and a target task video corresponding to the target game task is synthesized based on the target video stream.

[0041] Therefore, the present application can obtain each target video stream from each initial video obtained from the offline game scene according to the matching relationship between the game task and the game props, and synthesize the target task video corresponding to the target game task based on each target video stream, thereby obtaining a complete video of the game player completing a certain game task, thereby improving the completeness of obtaining the corresponding video of the same game task, and the game player can view the process of completing the task according to the task video. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 is a system schematic diagram of a task video device for an offline game provided in an embodiment of the present application;

[0044] Figure 2It is a flowchart of a task video method for an offline game provided in an embodiment of the present application;

[0045] Figure 3 It is a structural diagram of a task video device for an offline game provided in an embodiment of the present application;

[0046] Figure 4 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0048] The embodiment of the present application provides a method, device, terminal and storage medium for generating a task video of an offline game. Specifically, the embodiment provides a method for generating a task video of an offline game, and the task video generating device of the offline game can be integrated in a computer device.

[0049] The task video generation method of the offline game of the present application can be integrated in the task video generation system of the offline game, and the task video generation system of the offline game can be integrated in one or more computer devices, which may include a terminal or a server, etc., wherein the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a smart home, a wearable electronic device, a car computer, etc., but is not limited thereto. The terminal and the server can be directly or indirectly connected by wired or wireless communication, and this application is not limited here.

[0050] See also Figure 1The task video generation system of an offline game may include a task video generation device for an offline game, wherein the task video generation device for an offline game is composed of a plurality of shooting devices 101 and a terminal 102, wherein the terminal 102 can obtain at least one initial video of a game player in a target game task in the offline game, wherein the initial video is shot by at least one shooting device 101 installed in the offline game scene; based on the matching relationship between the game task and the game props, a target video stream matching the target game task is obtained from the initial video; and a target task video corresponding to the target task is synthesized based on the target video stream.

[0051] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0052] The embodiments of the present application will be described from the perspective of a task video generation device for an offline game, and the task video generation device for an offline game can be specifically integrated into a computer device.

[0053] See also Figure 2 , Figure 2 is a flow chart of a method for generating a task video of an offline game provided in an embodiment of the present application, such as Figure 2 As shown, the specific process of the offline game task video generation method of the embodiment of the present application mainly includes steps 201 to 203, which are described in detail as follows:

[0054] 201. Obtain an initial video of a game player in an offline game in the target game task, where the initial video is shot by a shooting device installed in the offline game scene.

[0055] In an embodiment of the present application, taking an offline secret room game as an example, in an offline secret room game, game players need to complete tasks to advance the game process; and a shooting device such as a camera is provided in the secret room of the offline game, which can shoot and record the game process of the game player, and can be sent to the game player for viewing later. Since there may be multiple game players (game players), there may also be multiple completed game tasks. This application is used to obtain a complete task video of a game player under a single task. The game player terminal obtains at least one initial video of the game player in the task route of the target game task, wherein the initial video is shot by at least one shooting device installed in the task route. Among them, the task route is the path trajectory between the task start position and the task end position of the game task in the offline game scene.

[0056] In an embodiment of the present application, before obtaining the initial video of the game player in the task route of the target game task, a video is shot by a shooting device set in the task route of the target game task; the first shooting time containing the game player at the task start position of the task route is determined as the start time, and the last shooting time containing the game player at the task end position is determined as the end time, and the video stream between the start time and the end time is used as the initial video. The present application uses the video stream containing the game player as the initial video and removes the video stream that does not contain the game player, which can reduce the capacity of the initial video and improve the efficiency of subsequent processing.

[0057] In some optional embodiments, if a game player appears in the video image captured by a camera at the starting point of a task route, the acquisition of a video containing the game player captured by a camera in the task route is triggered as the initial video corresponding to the game player; if it is determined in the video image captured by a camera at the end point of the task route that the game player disappears from the end point of the task route, the acquisition of the initial video is terminated.

[0058] Among them, the terminal can display the video screen shot by the shooting device set in the task route in real time. If the game player appears in the video screen shot by the shooting device at the starting position of the task route, it means that the game player may have started the corresponding target game task. At this time, the video containing the game player shot by each shooting device in the task route is triggered to obtain as the initial video of the game player for the target game task, until the game player disappears from the end position of the task route, the initial video is obtained. The present application can detect and determine the game player by character features, and the complete initial video corresponding to the game player can be determined by the above-mentioned initial video acquisition operation.

[0059] The acquired initial video can be classified and stored in the terminal. For example, if the initial video is for the target game task 1 of the game player 1, the tag information 1 can be recorded at the storage location of the initial video. According to the tag information 1, it can be known that the initial video is classified as the target game task 1 of the game player 1. The task type can be used as the classification label of the stored file, or the game player can be used as the classification label of the stored file; for example, the terminal stores multiple video files. If the task type is used as the file classification label, the initial videos of each game player are stored in the folder of task 1. If the game player is used as the file classification label, the initial videos corresponding to each task are stored in the folder of game player 1. Other types such as date information can also be used as file classification labels. The terminal can set a cleaning time period to clean up the stored video files every once in a while, such as one month, to free up storage space and reduce storage pressure. By storing the initial videos by classification, the present application can find the required initial video files more quickly and improve the video processing efficiency.

[0060] In an embodiment of the present application, a mapping relationship between a video and a task to which the video belongs is established for the video shot in the task route of each task of an offline game. Among them, the mapping relationship between the video and the game task to which it belongs can be determined by first determining the shooting device for shooting the video, and based on the preset correspondence between the shooting device and the task to which it belongs. Among them, a shooting device can correspond to a single or multiple game tasks. For example, the room shot by shooting device 1 is only passed when completing game task 1, then shooting device 1 corresponds to game task 1, and then the video shot by shooting device 1 corresponds to game task 1. By establishing a mapping relationship between a video and the task to which the video belongs, the present application can quickly determine the corresponding shot video through a specified game task (task type or task name).

[0061] Based on the mapping relationship between the video and the corresponding game task, at least one initial video of the game player in the task route of the target game task is obtained from the captured video. For example, the target game task is task 1, and after determining that the game player is user A, at least one initial video of user A is obtained from the captured video corresponding to task 1.

[0062] Among them, the step of "obtaining at least one initial video of the game player in the task route of the target game task from the shot video" specifically includes: obtaining the historical time period of the game player performing the target game task in the offline game; based on the mapping relationship, obtaining the candidate video of the target game task from the shot video; based on the historical time period and the shooting time period of the candidate video, determining at least one initial video of the game player in the task route of the target game task. For example, the candidate videos corresponding to the target game task 1 are shot on Monday and Tuesday, and the time period when game player A performs the target game task 1 is Monday, then the corresponding initial video can be determined according to the time period when game player A performs the target game task 1. The present application sets a time mark for each acquired game task (for example, videos of the same day have the same digital mark, etc.), and can quickly select videos of the corresponding time period from the candidate videos with the corresponding time mark according to the determined time period, thereby improving the efficiency of video processing.

[0063] In some optional embodiments, the videos shot by all the shooting devices can be first obtained to determine the shooting devices between the starting point and the end point of the task route of the target game task, and all the videos shot by the shooting devices that include the game players can be determined as the initial videos corresponding to the game players in the task route of the target game task.

[0064] In an embodiment of the present application, after determining the target game task, obtaining the characteristic information of the game props corresponding to the target game task, specifically includes: determining the game props corresponding to the target game task, photographing the game props to obtain a prop picture; setting the characteristic information of the game props based on the prop picture. Among them, the game props in the secret room can be photographed in advance to obtain a task prop picture, and the game prop picture can be divided into a grid to obtain multiple game prop pictures of different parts, and the game prop picture is set as the characteristic information of the game prop. Among them, the game props can also be photographed from multiple angles to obtain game prop pictures at four angles, such as front, back, left, and right, and the game prop pictures are set as the characteristic information of the game props. Among them, the characteristic data of the game props can also be extracted, such as edge features, front and back features, etc. as the characteristic information of the game props. The present application can specifically determine how to photograph the game props and how to divide the prop pictures according to the actual shape and characteristics of the game props, so as to obtain the corresponding characteristic information, so as to facilitate more accurate feature comparison later.

[0065] 202. Based on the matching relationship between the game task and the game props, a target video stream including a video screen matching the target game task is obtained from the initial video.

[0066] In an embodiment of the present application, a game prop corresponds to a task identifier, wherein the task identifier is used to reflect the matching relationship between the game prop and the game task; the matching relationship between the game task and the game prop is determined based on the task identifier corresponding to the game prop. The matching relationship is used to reflect that the game player uses the game prop to perform the game task associated with the game prop. After obtaining the matching relationship, the target video stream can be obtained from the acquired initial video based on the feature information of the associated task prop (the game prop corresponding to the target game task), wherein the content of the target video stream includes the behavior of the game player when completing the target game task.

[0067] In an embodiment of the present application, a similarity comparison is performed on each frame of the initial video of each game task, and each initial video is divided into at least one short video, wherein the similarity of the video screens contained in a short video meets the preset similarity requirement; and the target video stream is obtained from the short video based on the matching relationship between the game task and the game prop. Among them, the similarity of the video screens meets the preset similarity requirement, that is, the similarity between any two frames of video screens in a short video is not less than the first threshold, or the similarity between two adjacent frames of video screens is not less than the first threshold. It can be understood that, among the video screen frames whose similarity meets the preset requirements, the continuous video stream between the video screen frame at the front shooting moment and the video screen frame at the last shooting moment is used as the short video of the game task, which can ensure that the short video contains all the video screen frames whose similarity meets the requirements.

[0068] In an embodiment of the present application, after determining multiple short videos, each short video is distinguished frame by frame, and the specific steps include: comparing each frame of the video screen of each short video with the characteristic information of the game props to determine whether each frame of the video screen contains the game props; based on the video screen containing the game props in the short video, the target video stream is obtained from the short video. That is, the target video stream is obtained from the short video containing the video screen of the game props, and the target video stream includes a continuous video stream from the first video screen frame containing the game props to the last video screen frame containing the game props. That is, the target video stream in the short video is retained, and other video streams except the target video stream in the short video are deleted.

[0069] In some optional embodiments, a first mark may be made to a video screen containing game props, and a second mark may be made to a video screen not containing game props; a first number of first marks and a second number of second marks contained in each short video are determined; and a short video whose first number is greater than the second number is determined as a target video stream. For example, a video screen containing game props is marked as positive, and a video screen not containing game props is marked as negative, and the number of positive and negative marks contained in each short video is determined. If the number of positive marks in the short video is greater than the number of negative marks, the short video is determined as a target video stream; if the number of positive marks in the short video is less than the number of negative marks, the short video can be deleted. Among them, the relationship between the first number and the second number can be customized to determine the target video stream. For example, if the difference between the first number and the second number in a short video is greater than a preset threshold, the short video is determined as a target video stream.

[0070] In an embodiment of the present application, if the short video containing game props is the starting short video corresponding to the starting position of the task route, the video screen containing game props is extracted from the starting short video to form a target video stream; if the short video containing game props is the terminating short video corresponding to the terminating position of the task route, the video screen containing game props is extracted from the terminating short video to form a target video stream; if the short video containing game props does not belong to the starting short video and the terminating short video, the target video stream in the short video is determined based on the number of video screens containing game props in the short video. Among them, since the number of video screens containing game props in the starting short video corresponding to the starting point of the task route may be less than the number of video screens not containing game props, for example, after searching for a period of time at the starting position of the task route, the game props are found. If the short video is removed, it may cause the task video to be incomplete, so the video screen containing game props can be extracted to form a target video stream. Correspondingly, the same processing method is used for the terminating short video corresponding to the terminating position of the task route. Thus, a more accurate task video can be obtained.

[0071] 203. Synthesize a target task video corresponding to the target game task based on the target video stream.

[0072] In an embodiment of the present application, after acquiring each target video stream, a target task video corresponding to the game player in the target game task is synthesized based on the target video stream.

[0073] The starting shooting time corresponding to the target video stream is determined, the target video stream is sorted based on the order of the starting shooting time, and synthesized into the target task video. The starting shooting time of the target video stream is the shooting time corresponding to the starting video frame in the target video stream.

[0074] The embodiment of the present application provides a method for generating a task video of an offline game, by presetting and recording the features of different game props in the offline game, extracting all videos under the task based on the target game task, and editing and synthesizing the videos according to the features of the preset game props to obtain a complete video of the game player completing the game task. This solution allows the game player to view the complete process of completing the task according to the obtained task video after completing the game task, thereby improving the game experience; for example, in the review of the secret room after the secret room game, the setting of the secret room can be introduced in more detail through the task video.

[0075] The method for generating task videos of offline games provided in the embodiments of the present application can obtain multiple pictures of props in different parts by pre-shooting and recording pictures of props in the secret room, dividing the pictures into grids, and generally dividing them into at least 4 parts, which are set as the characteristic information of the corresponding props, and are bound to the corresponding tasks. Based on the route and requirements of the secret room task, the starting point and end point of the video recording are preset, and the recording synchronization of all shooting devices under the binding route. Among them, the videos shot under different subsequent routes can be classified (taking the secret room game as an example: Task 1 is to bring props from the bedroom to the kitchen, then all videos under the task route are uploaded and classified into Task 1). When a game player appears at the preset starting point in the video screen (which can be detected by character features), video recording starts, and the video recording ends when the game player disappears at the preset end point in the video screen.

[0076] The videos recorded by all the shooting devices under the task route are extracted, and the obtained videos are processed as follows: the videos are compared frame by frame, and multiple short videos are obtained according to the similarity principle of frame images, wherein the similarity of the video images contained in a short video meets the preset similarity requirements, and the recording time of the video is recorded. Then each short video is distinguished frame by frame, and each frame of the video image is compared with the corresponding prop feature. If any prop feature is met, that is, the video image contains the corresponding prop feature, it is recorded as positive, and if not, it is recorded as negative. The total number of short video records is obtained based on the feature comparison of the video image. If it is positive, the video stream of the task video is extracted, and if it is negative, the video is deleted. All short videos that meet the conditions are classified, sorted by the previously recorded recording time, and synthesized to obtain the complete video of the current task in each scene. Finally, the obtained complete task video is sent to the terminal device of the game player for the convenience of the game player to view and save.

[0077] In order to better implement the above method, accordingly, the embodiment of the present application also provides a task video generation device for an offline game, and the task video generation device for an offline game can be specifically integrated in a terminal, for example, integrated in the terminal in the form of a client.

[0078] Please refer to Figure 3 The task video generation device of the offline game includes: wherein the offline game includes a target game task and game props in the offline game scene:

[0079] A first acquisition unit 301 is used to acquire an initial video of a game player in a target game task in an offline game, where the initial video is shot by a shooting device installed in the offline game scene;

[0080] A second acquisition unit 302 is used to acquire a target video stream containing a video screen matching the target game task from the initial video based on the matching relationship between the game task and the game prop;

[0081] The synthesis unit 303 is used to synthesize the target task video corresponding to the target game task based on the target video stream.

[0082] In an optional embodiment, the first acquiring unit 301 includes:

[0083] Obtaining an initial video of the game player in the offline game during the task route of the game task;

[0084] Among them, the task route is the path trajectory between the task starting position and the task ending position of the game task in the offline game scene.

[0085] In an optional embodiment, the second obtaining unit 302 further includes:

[0086] Determine a task identifier corresponding to the game prop, wherein the task identifier is used to reflect the matching relationship between the game prop and the game task;

[0087] The matching relationship between the game task and the game prop is determined based on the task identifier corresponding to the game prop.

[0088] In an optional embodiment, the second obtaining unit 302 further includes:

[0089] Performing a similarity comparison on each frame of the initial video of each game task, dividing each of the initial videos into at least one short video, wherein the similarity of the video frames contained in the same short video meets the preset similarity requirement; the same short video is a continuous video stream between the video frame at the front shooting time and the video frame at the back shooting time among the video frames whose similarity meets the preset requirement;

[0090] The target video stream is obtained from the short video based on the matching relationship between the game task and the game props.

[0091] In an optional embodiment, the second obtaining unit 302 further includes:

[0092] Comparing each frame of the short video with the feature information of the game props to determine whether each frame of the video contains the game props;

[0093] Based on the video frame containing the game prop in the short video, the target video stream is obtained from the short video, and the target video stream includes a continuous video stream from the first video frame containing the game prop to the last video frame containing the game prop.

[0094] In an optional embodiment, the second obtaining unit 302 further includes:

[0095] Determine the starting shooting time corresponding to the target video stream, sort the target video streams based on the order of the starting shooting time, and synthesize them into the target task video.

[0096] In an optional embodiment, the synthesis unit 303 further includes:

[0097] Determine the starting shooting time corresponding to the target video stream, sort the target video streams based on the order of the starting shooting time, and synthesize them into the target task video.

[0098] In an optional embodiment, the first acquiring unit 301 further includes:

[0099] Determine the time when the task starting position of the task route first contains the photograph of the game player as the starting time, and the time when the task ending position last contains the photograph of the game player as the ending time;

[0100] Determine the video stream between the start time and the end time as the initial video.

[0101] In an optional embodiment, the second obtaining unit 302 further includes:

[0102] For the videos shot in the task routes of the offline game tasks, a mapping relationship between the videos and the tasks to which the videos belong is established;

[0103] The step of obtaining at least one initial video of a game player in a target game task in an offline game includes:

[0104] Based on the mapping relationship, at least one initial video of the game player in the task route of the target game task is obtained from the captured video.

[0105] In an optional embodiment, the second obtaining unit 302 further includes:

[0106] Obtaining a historical time period in which the game player performs the target game task in the offline game;

[0107] Based on the mapping relationship, obtaining candidate videos of the target game task from the captured videos;

[0108] Based on the historical time period and the shooting time period of the candidate videos, at least one initial video of the game player in the task route of the target game task is determined.

[0109] In an optional embodiment, the second obtaining unit 302 further includes:

[0110] Determine the game props corresponding to the target game task, and photograph the game props to obtain prop pictures;

[0111] The characteristic information of the game prop is set based on the prop picture.

[0112] The offline game task video generation device provided in the embodiment of the present application includes a target game task and game props in an offline game scene. When the first acquisition unit 301 acquires an initial video of a game player in a target game task in the offline game, the initial video is shot by a shooting device installed in the offline game scene; thereafter, when the second acquisition unit 302 acquires a target video stream matching the target game task in the video screen from the initial video based on the matching relationship between the game task and the game props; finally, the synthesis unit 303 synthesizes a target task video corresponding to the target game task based on the target video stream.

[0113] Accordingly, the embodiment of the present application also provides a terminal, which may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or other terminal devices. Figure 4 As shown, Figure 4 The terminal 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that Figure 4 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0114] Processor 401 is the control center of terminal 400. It uses various interfaces and lines to connect various parts of the entire terminal 400, executes various functions of terminal 400 and processes data by running or loading software programs and / or modules stored in memory 402, and calling data stored in memory 402, thereby monitoring terminal 400 as a whole.

[0115] In the embodiment of the present application, the processor 401 in the terminal 400 loads instructions corresponding to the processes of one or more applications into the memory 402 according to the following steps, and the processor 401 runs the application stored in the memory 402 to implement various functions:

[0116] An initial video of a game player in a target game task in an offline game is obtained, wherein the initial video is shot by a shooting device installed in an offline game scene; a target video stream matching the target game task is obtained from the initial video based on a matching relationship between the game task and the game props; and a target task video corresponding to the game task is synthesized based on the target video stream.

[0117] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0118] Optional, such as Figure 4 As shown, the terminal 400 further includes: a touch screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407, respectively. Those skilled in the art can understand that Figure 4 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0119] The touch display screen 403 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 401, and can receive the command sent by the processor 401 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 401 to determine the type of touch event, and then the processor 401 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 403 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 403 can also be used as a part of the input unit 406 to realize the input function.

[0120] The radio frequency circuit 404 can be used to send and receive radio frequency signals to establish wireless communication with network devices or other terminals through wireless communication, and to send and receive signals between network devices or other terminals. In the embodiment of the present application, the first user and the second user, the issuer and the verifier can all establish wireless communication through wireless communication and send and receive signals to each other.

[0121] The audio circuit 405 can be used to provide an audio interface between the user and the terminal through a speaker and a microphone. The audio circuit 405 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 405 and converted into audio data, and then the audio data is output to the processor 401 for processing, and then sent to another terminal through the radio frequency circuit 404, or the audio data is output to the memory 402 for further processing. The audio circuit 405 may also include an earplug jack to provide communication between an external headset and the terminal.

[0122] The input unit 406 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0123] The power supply 407 is used to supply power to various components of the terminal 400. Optionally, the power supply 407 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. The power supply 407 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0124] although Figure 4 Not shown, the terminal 400 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0125] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0126] As can be seen from the above, the terminal provided in this embodiment can obtain the initial video of the game player in the target game task in the offline game, the initial video is shot by the shooting device installed in the offline game scene; based on the matching relationship between the game task and the game props, the target video stream matching the target game task is obtained from the initial video; based on the target video stream, the target task video corresponding to the target game task is synthesized. This application can obtain the complete video of the game player completing a certain game task, and improve the completeness of obtaining the corresponding video of the same game task.

[0127] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0128] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer program can be loaded by a processor to execute the steps of any offline game task video generation method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0129] An initial video of a game player in a target game task in an offline game is obtained, wherein the initial video is shot by a shooting device installed in the offline game scene; a target video stream matching the target game task is obtained from the initial video based on a matching relationship between the game task and the game props; and a target task video corresponding to the target game task is synthesized based on the target video stream.

[0130] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0131] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0132] Since the computer program stored in the storage medium can execute the steps of any offline game task video generation method provided in the embodiments of the present application, the beneficial effects that can be achieved by any offline game task video generation method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0133] The above is a detailed introduction to the method, device, terminal and storage medium for generating task videos of an offline game provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for generating task videos of offline games, characterized in that: The offline game includes a target game task and game props in an offline game scene, and the method includes: Acquire an initial video of a game player in an offline game in a task route of the target game task, wherein the initial video is shot by a shooting device installed in the offline game scene, and the task route is a path track between a task start position and a task end position of the target game task in the offline game scene; Determine a task identifier corresponding to the game prop, wherein the task identifier is used to reflect the matching relationship between the game prop and the game task; Determining a matching relationship between a game task and a game item based on a task identifier corresponding to the game item; Based on the matching relationship between the game task and the game props, a target video stream including a video screen matching the target game task is obtained from the initial video; A target task video corresponding to the target game task is synthesized based on the target video stream.

2. The method for generating task videos of offline games according to claim 1, characterized in that: The step of obtaining a target video stream containing a video screen matching the target game task from the initial video based on the matching relationship between the game task and the game props includes: Performing a similarity comparison on each frame of the initial video of each game task, dividing each of the initial videos into at least one short video, wherein the similarity of the video frames contained in the same short video meets the preset similarity requirement; the same short video is a continuous video stream between the video frame at the front shooting time and the video frame at the back shooting time among the video frames whose similarity meets the preset requirement; The target video stream is obtained from the short video based on the matching relationship between the game task and the game props.

3. The method for generating task videos of offline games according to claim 2, characterized in that: The obtaining the target video stream from the short video based on the matching relationship between the game task and the game props includes: Comparing each frame of the short video with the feature information of the game props to determine whether each frame of the video contains the game props; Based on the video frame containing the game prop in the short video, the target video stream is obtained from the short video, and the target video stream includes a continuous video stream from the first video frame containing the game prop to the last video frame containing the game prop.

4. The method for generating task videos of offline games according to claim 1, characterized in that: The synthesizing the target task video corresponding to the target game task based on the target video stream includes: Determine the starting shooting time corresponding to the target video stream, sort the target video streams based on the order of the starting shooting time, and synthesize them into the target task video.

5. The method for generating task videos of offline games according to claim 1, characterized in that: The step of obtaining an initial video of a game player in an offline game in a task route of the target game task includes: Determine the time when the task starting position of the task route first contains the photograph of the game player as the starting time, and the time when the task ending position last contains the photograph of the game player as the ending time; Determine the video stream between the start time and the end time as the initial video.

6. The method for generating task videos of offline games according to claim 5, characterized in that: Also includes: For the videos shot in the task routes of the offline game tasks, a mapping relationship between the videos and the tasks to which the videos belong is established; The obtaining of the initial video of the game player in the target game task in the offline game includes: Based on the mapping relationship, at least one initial video of the game player in the task route of the target game task is obtained from the captured video.

7. The method for generating task videos of offline games according to claim 6, characterized in that: The acquiring, based on the mapping relationship, at least one initial video of the game player in the task route of the target game task from the captured video includes: Obtaining a historical time period in which the game player performs the target game task in the offline game; Based on the mapping relationship, obtaining candidate videos of the target game task from the captured videos; Based on the historical time period and the shooting time period of the candidate videos, at least one initial video of the game player in the mission route of the target game mission is determined.

8. The method for generating task videos of offline games according to claim 3, characterized in that: Also includes: Determine the game props corresponding to the target game task, and photograph the game props to obtain a prop picture; The characteristic information of the game prop is set based on the prop picture.

9. A task video generation device for an offline game, characterized in that: The offline game includes a target game task and game props in an offline game scene, and the device includes: A first acquisition unit is used to acquire an initial video of a game player in an offline game in a task route of the target game task, wherein the initial video is shot by a shooting device installed in the offline game scene, and the task route is a path track between a task start position and a task end position of the target game task in the offline game scene; A second acquisition unit is used to determine a task identifier corresponding to the game prop, wherein the task identifier is used to reflect the matching relationship between the game prop and the game task; determine the matching relationship between the game task and the game prop based on the task identifier corresponding to the game prop; and acquire a target video stream containing a video screen matching the target game task from the initial video based on the matching relationship between the game task and the game prop; A synthesis unit is used to synthesize a target task video corresponding to the target game task based on the target video stream.

10. A terminal, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method for generating task videos of offline games as claimed in any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the steps of the method for generating task videos of offline games as described in any one of claims 1-8 are implemented.

Citation Information

Patent Citations

  • Game video generation method, terminal and readable storage medium

    CN110694264A

  • Cloud game video processing method, electronic equipment and storage medium

    CN110971929A