Shot picture generation method and device, electronic equipment and storage medium

文档序号:641175 发布日期:2021-05-14 浏览:14次 中文

阅读说明:本技术 一种拍摄画面的生成方法、装置、电子设备及存储介质 (Shot picture generation method and device, electronic equipment and storage medium ) 是由 胡婷婷 赵男 包炎 刘超 施一东 李鑫培 师锐 董一夫 于 2020-12-31 设计创作,主要内容包括:本发明实施例公开了一种拍摄画面的生成方法、装置、电子设备及存储介质。接收到拍摄指令后,获取与拍摄指令对应的目标画面数据,可以确定当前游戏场景中重要画面并确定目标画面数据,为玩家提供重要画面,使玩家抓取到重要信息;对目标画面数据进行渲染,得到初步拍摄画面,并确定与初步拍摄画面对应的目标画面处理方式,对于不同的画面均可以找到相适应的目标画面处理方式,以灵活处理初步拍摄画面,进一步基于目标画面处理方式对初步拍摄画面进行处理,得到目标拍摄画面,可以使得到的拍摄画面的风格更独特,具有代入感,达到提高玩家的视觉体验度的效果。(The embodiment of the invention discloses a method and a device for generating a shot picture, electronic equipment and a storage medium. After receiving the shooting instruction, acquiring target picture data corresponding to the shooting instruction, determining important pictures in the current game scene and determining the target picture data, and providing the important pictures for the player so that the player can capture important information; the method comprises the steps of rendering target picture data to obtain a primary shot picture, determining a target picture processing mode corresponding to the primary shot picture, finding a suitable target picture processing mode for different pictures, flexibly processing the primary shot picture, further processing the primary shot picture based on the target picture processing mode to obtain the target shot picture, enabling the style of the obtained shot picture to be more unique, having a substitution feeling, and achieving the effect of improving the visual experience of a player.)

1. A method for generating a shot picture, comprising:

receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction;

rendering the target picture data to obtain a primary shooting picture;

and determining a target picture processing mode corresponding to the preliminary shooting picture, and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.

2. The method according to claim 1, wherein the determining a target picture processing manner corresponding to the preliminary shot picture comprises:

and determining a target picture processing mode corresponding to the preliminary shot picture based on the scene type of the preliminary shot picture.

3. The method according to claim 2, wherein the determining a target picture processing manner corresponding to the preliminary captured picture based on the scene type of the preliminary captured picture comprises:

acquiring a target scene element corresponding to the scene type in the preliminary shooting picture;

and determining a target picture processing mode corresponding to the preliminary shot picture based on the target scene element.

4. The method according to claim 3, wherein the determining a target scene processing manner corresponding to the preliminary captured picture based on the target scene element comprises:

and determining a target action object of the target scene element in the preliminary shot picture, and determining a target picture processing mode corresponding to the preliminary shot picture based on the target scene element and the target action object.

5. The method according to claim 4, wherein the determining a target picture processing manner corresponding to the preliminary shot picture based on the target scene element and the target acting object comprises:

and taking the generated picture effect when the target scene element acts on the target action object as a target picture processing mode corresponding to the primary shooting picture.

6. The method according to claim 3, wherein the determining a target scene processing manner corresponding to the preliminary captured picture based on the target scene element comprises:

superposing the target scene element in the preliminary shot picture; alternatively, the first and second electrodes may be,

and reducing or deleting the target scene element in the preliminary shooting picture.

7. The method according to claim 1, wherein the determining a target picture processing manner corresponding to the preliminary shot picture comprises:

and if two or more than two primary shooting pictures corresponding to the same target scene are acquired, determining a target picture processing mode corresponding to the primary shooting pictures based on at least two primary shooting pictures, wherein the target picture processing mode comprises image fusion and/or image splicing.

8. An apparatus for generating a shot picture, comprising:

the target picture data acquisition module is used for receiving a shooting instruction and acquiring target picture data corresponding to the shooting instruction;

the preliminary shot picture determining module is used for rendering the target picture data to obtain a preliminary shot picture;

and the target shooting picture generating module is used for determining a target picture processing mode corresponding to the preliminary shooting picture and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.

9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for generating a captured picture according to any one of claims 1 to 7 when executing the computer program.

10. A storage medium containing computer-executable instructions, which when executed by a computer processor implement the method of generating a photographic picture according to any one of claims 1-7.

Technical Field

The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for generating a shot picture, electronic equipment and a storage medium.

Background

At present, the game screenshot is usually realized by manual operation of a player. When a player needs to intercept the game picture, the current game picture is intercepted by manually triggering corresponding operation. After the game picture is captured in a manual mode, the game picture is generated and displayed to a player. Since a game scene is complex and a Player has different attention to the game scene, for example, the attention to an interactive picture of a Player Character and a Non-Player Character (NPC), a battle picture of a BOSS, or a special effect picture such as a skill release during battle is high, and the captured game picture is directly displayed to the user and the Player cannot catch the information of interest, so that the experience of the Player is poor.

Disclosure of Invention

The embodiment of the invention provides a method and a device for generating a shot picture, electronic equipment and a storage medium, and aims to improve the experience effect of players.

In a first aspect, an embodiment of the present invention provides a shot picture generation method, where the method includes:

receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction;

rendering the target picture data to obtain a primary shooting picture;

and determining a target picture processing mode corresponding to the preliminary shooting picture, and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.

In a second aspect, an embodiment of the present invention further provides an apparatus for generating a captured picture, where the apparatus includes:

the target picture data acquisition module is used for receiving a shooting instruction and acquiring target picture data corresponding to the shooting instruction;

the preliminary shot picture determining module is used for rendering the target picture data to obtain a preliminary shot picture;

and the target shooting picture generating module is used for determining a target picture processing mode corresponding to the preliminary shooting picture and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.

In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for generating a captured picture according to any one of the first aspect when executing the computer program.

In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions, when executed by a computer processor, implement the method for generating a captured picture according to any one of the first aspect.

According to the technical scheme of the embodiment of the invention, after the shooting instruction is received, the target picture data corresponding to the shooting instruction is acquired, so that the important picture in the current game scene can be determined, the target picture data can be determined, the important picture can be provided for the player, and the player can capture the important information; the method comprises the steps of rendering target picture data to obtain a primary shot picture, determining a target picture processing mode corresponding to the primary shot picture, finding a suitable target picture processing mode for different pictures, flexibly processing the primary shot picture, further processing the primary shot picture based on the target picture processing mode to obtain the target shot picture, enabling the style of the obtained shot picture to be more unique, having a substitution feeling, and achieving the effect of improving the visual experience of a player.

Drawings

Fig. 1 is a schematic flowchart of a method for generating a shot picture according to an embodiment of the present invention;

fig. 2 is a schematic flowchart of a method for generating a shot picture according to a second embodiment of the present invention;

fig. 3 is a schematic flowchart of a method for generating a shot picture according to a third embodiment of the present invention;

fig. 4 is a schematic flowchart of a method for generating a shot picture according to a fourth embodiment of the present invention;

fig. 5 is a schematic structural diagram of a shot picture generation apparatus according to a fifth embodiment of the present invention;

fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

Example one

Fig. 1 is a flowchart of a method for generating a captured picture according to an embodiment of the present invention, where the method is applicable to a case where a post-processing is performed on a rendered captured picture after the captured picture is rendered, and the method may be executed by a device for generating a captured picture, where the device may be implemented by software and/or hardware and is generally integrated in an electronic device. Referring specifically to fig. 1, the method may include the steps of:

and S110, receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction.

The shooting instruction is used for shooting each object contained in the game scene to obtain target picture data. Objects in a game scene include, but are not limited to, player-manipulated characters, game monsters, game NPCs, scene buildings, war goods, and skill-release effects. The player characters may include characters and animals. The scene buildings include mountains, sky, grasslands, various types of buildings, peripheral facilities, and the like. Skills may be player's active skills, defensive skills, and blood return skills to control the release of characters or game monsters, etc.

It should be noted that the game scene may be a game screen displayed on the client of the player. For example, the game scene may include an interaction scene between multiple players, a battle scene of different players, a dialogue scene of a player and the NPC, a scene that a player enjoys a scene, a scene that a player harvests a battle, and the like. The target scene data may include scene data that is commonly bidden by multiple players in a game scene, battle data between players, and/or scene change data, etc.

The target picture data may be understood as picture data of a game scene to be photographed, and may be picture data of all objects or a part of objects of the game scene. For example, the game scene includes a picture of fighting between players and a picture of BOSS played by a player, and data of the picture of fighting between players may be used as the target picture data, data of the picture of BOSS played by a player may be used as the target picture data, and data of the picture of fighting between players and data of the picture of BOSS played by a player may be used as the target picture data.

Optionally, the method for generating the shooting instruction includes: and determining a target reference object to be shot in the game scene according to the shooting instruction, and generating the shooting instruction based on the cool value of the target reference object.

Wherein, the cool value of the target reference object is used for measuring whether the target reference object reaches the shooting condition. The target reference object may be a target subject, a target scene, or a combination of a target subject and a target scene. Taking the game scene as an example, the target subject may be a character, a monster, weather, a tree, or a building in the game scene, and taking the target subject as the target character as an example, the target subject may be a game character with human attributes created in the game. Taking a game scene as an example, the target scene may be a scene picture including elements such as characters, monsters, weather, trees, or buildings.

Taking a target reference object as an example of a target subject, the method for acquiring target picture data comprises the following steps: and carrying out weighted summation processing on the cool value parameter value corresponding to the preset main body cool value parameter of the target main body to obtain the main body cool value of the target main body, and generating a shooting instruction if the main body cool value reaches the preset main body cool value threshold value. Taking a target reference object as an example of a target scene, the method for acquiring target picture data comprises the following steps: and carrying out weighting summation processing based on the cool value parameter value corresponding to the preset scene cool value parameter to obtain the scene cool value of the target scene, and generating a shooting instruction if the scene cool value reaches the preset scene cool value threshold.

The subject cool parameter may include an action cool parameter, a status cool parameter, and/or a skill cool parameter. The behavior cool value parameters include but are not limited to a distance parameter between two hands, a distance parameter between two feet, a bending angle parameter of the upper trunk, a triangle area parameter formed by the pelvis and the two feet and the like; the status cool value parameters include, but are not limited to, a person low blood volume cool value parameter, a person full blood volume cool value parameter, and the like; skill cool parameters include, but are not limited to, the enrollment of the skill, the time of release, the scope of the attack, and the like. The scene cool value parameters comprise but are not limited to wind, rain, snow and hail, and the scene object cool value parameters comprise but are not limited to cool value parameters of game roles, cool value parameters of teammate roles, cool value parameters of enemy roles and/or cool value parameters of NPC.

And S120, rendering the target picture data to obtain a primary shooting picture.

The rendering refers to a series of processing procedures of drawing a scene picture of the game by the computer according to the target picture data. The rendering process may include processing operations such as spatial illumination computation, rasterization and cropping, texture sampling, depth detection, transparent blending, etc. on the target picture data. The rendering process requires the use of animation, texture mapping, etc. resources. Texture mapping refers to a mapping file used in a current game scene, which can make a scene picture of a game more realistic, and the texture mapping includes a three-dimensional texture mapping and a two-dimensional texture mapping.

Optionally, rendering the target picture data to obtain a preliminary shot picture, including: acquiring art pictures of objects in the target picture data, performance parameters of a terminal where a game is located and energy change data of all the objects; rendering the target picture data according to the art picture data, the performance parameters and the energy change data to obtain a preliminary shooting picture.

Specifically, determining the complexity of the art picture of the object according to the art picture of the object, and determining the grade of the terminal according to the performance parameter of the terminal; determining the rendering grade of each object according to the complexity of the art picture, the terminal grade and the energy change data; rendering the target picture data based on the rendering parameters corresponding to the rendering levels to obtain a preliminary shooting picture.

Illustratively, the same game is run on device a and device B, respectively, and the same target screen data is acquired, the target screen data of device a being interactive screen data of players, and the target screen data of device B being screen data of a battle between a plurality of players and the BOSS. The method comprises the steps that the complexity of art pictures of players in target picture data of equipment A is smaller than the complexity of art pictures of battles between multiple players and BOSS in target picture data of equipment B, the performance level of the equipment A is smaller than that of the equipment B, energy change data in the target picture data of the equipment A is smaller than that in the target picture data of the equipment B, the rendering level of the target picture data of the equipment A is determined to be smaller than that of the target picture data of the equipment B, and the target picture data are rendered on the equipment A and the equipment B respectively based on rendering parameters corresponding to the rendering levels to obtain a primary shooting picture. By the method, the rendering mode can be determined in a self-adaptive mode, so that the terminal can normally display the rendered initial shooting picture, and the situation of blocking is avoided.

And S130, determining a target picture processing mode corresponding to the preliminary shot picture, and processing the preliminary shot picture based on the target picture processing mode to obtain the target shot picture.

In order to perform post-processing on the preliminary shot picture, after the preliminary shot picture is determined, a target picture processing manner corresponding to the preliminary shot picture may be determined based on the operation mode of the currently running game.

The operation modes of the current running game include, but are not limited to, a promotion mode, an exercise mode, an entertainment mode, and the like, and the processing style of the shot pictures in different operation modes may be different. The processing style includes, but is not limited to, a processing style of an ontology of each object, a processing style of a skill release of each object, and/or a text style of each object. The subject body refers to the subject itself, including but not limited to people, animals, mountains, sky, grass, various types of buildings, and surrounding facilities, etc.

Specifically, an operation mode of the preliminary shot picture in the current running game is determined, a corresponding processing style is selected according to the operation mode, the image of the object body in the preliminary shot picture, the effect of releasing skill and the character font of the object are determined according to the processing style, and a target picture processing mode corresponding to the preliminary shot picture is obtained.

Illustratively, the target screen processing manner corresponding to the preliminary photographing screen may include: superposing the target scene element in the preliminary shot picture; or, the target scene element and the like are reduced or deleted in the preliminary photographing picture. For example, in the preliminary shot of the battle type, the number of monsters with which the player controls the character may be increased around the player control character. Or, the target scene elements on the player-controlled character, such as mud on the face of the player-controlled character, which affect the aesthetic appearance of the player-controlled character, are reduced or deleted in the preliminary shot picture.

And further, processing the preliminary shooting picture based on a target picture processing mode to obtain a target shooting picture.

According to the technical scheme provided by the embodiment, after the shooting instruction is received, the target picture data corresponding to the shooting instruction is acquired, the target picture data can be determined, the target picture data with rich information is provided for the player, and the player can capture the interested data; the method comprises the steps of rendering target picture data, rendering the target picture data in a self-adaptive manner to obtain a primary shot picture, determining a target picture processing mode corresponding to the primary shot picture, finding an adaptive target picture processing mode for different pictures, flexibly processing the primary shot picture, further processing the primary shot picture based on the target picture processing mode to obtain the target shot picture, and enabling the obtained shot picture to be more unique in style, have substitution feeling and achieve the effect of improving the visual experience of a player.

Example two

Fig. 2 is a flowchart illustrating a method for generating a shot picture according to a second embodiment of the present invention. The technical solution of this embodiment is refined on the basis of the above embodiment, and optionally, the determining a target picture processing mode corresponding to the preliminary shot picture includes: and determining a target picture processing mode corresponding to the preliminary shot picture based on the scene type of the preliminary shot picture. In the method, reference is made to the above-described embodiments for those parts which are not described in detail. Referring specifically to fig. 2, the method may include the steps of:

and S210, receiving the shooting instruction, and acquiring target picture data corresponding to the shooting instruction.

Optionally, the method for generating the shooting instruction includes: determining the picture importance of the sub-picture at least one position according to a preset importance parameter corresponding to the sub-picture at least one position in the current game scene; and adjusting the shooting angle of the shooting device according to the importance of the sub-picture, and generating a shooting instruction. The preset importance parameter may include the number of players in the sub-screen, an energy variation value, and/or a character type of the player.

Wherein, the importance of the scene can be used to measure the attention of the player to the scene. The higher the importance of the scene, the higher the attention of the player. For example, if the number of players in the sprite is large, the energy variation value is large, and/or the character type of the player is an active type, it may be determined that the sprite importance of the sprite at the position is high; otherwise, the picture importance is lower. The number of players in the sub-picture may include the number of players of the attacker and the number of players of the attacked, the energy change value may include the total amount of energy consumption of the attacker and the attacked, and the character type may be a character type selected by the attacker and the attacked.

Illustratively, the current game scene comprises a plurality of sub-pictures of player group battles and a sub-picture of single player group battle, the number of players in the sub-pictures of the player group battle is larger than that of players in the sub-picture of the single player group battle, the energy variation value in the sub-pictures of the player group battle is larger than that of the sub-picture of the single player group battle, the character type in the sub-pictures of the player group battle is mostly a main attack type, the character type in the sub-picture of the single player group battle is an auxiliary type, the picture importance degree of the sub-pictures of the player group battle is determined to be larger than that of the sub-picture of the single player group battle, the shooting angle of the shooting device is adjusted further according to the picture importance degree of the sub-picture, and the shooting instruction is generated.

Further, a shooting operation is performed based on the shooting instruction, and a target shooting picture corresponding to the shooting instruction is acquired.

And S220, rendering the target picture data to obtain a primary shooting picture.

And S230, determining a target picture processing mode corresponding to the preliminary shooting picture based on the scene type of the preliminary shooting picture.

Specifically, a target scene element corresponding to a scene type in the preliminary shot picture may be acquired; further, a target picture processing manner corresponding to the preliminary shot picture is determined based on the target scene element.

Wherein the scene types include, but are not limited to, water surface scenes, in-fire scenes, and ice mountain scenes. The target scene element may be understood as a scene element to be processed in the scene type. Illustratively, the target scene elements include, but are not limited to, characters, animals, scenes, surrounding facilities, output skills, and the like. Characters include player characters, NPCs, etc., animals include BOSS and various monsters, scenery includes mountains, water, buildings, lives, glaciers, etc., peripheral facilities may include signboards, tables and chairs, trash cans, etc., and output skills include special skills, offensive skills, defensive skills, etc.

Specifically, determining a target picture processing mode corresponding to the preliminary shot picture based on the target scene element includes: determining a target action object of a target scene element in a preliminary shot picture, and determining a target picture processing mode corresponding to the preliminary shot picture based on the target scene element and the target action object. Wherein the determining a target picture processing mode corresponding to the preliminary shot picture based on the target scene element and the target object of action includes: and taking the generated picture effect when the target scene element acts on the target action object as a target picture processing mode corresponding to the primary shooting picture.

The target action object may be an object to which a target scene element may act, a person, a monster, a building, a scene, and the like in the preliminary shot. It is to be understood that effects may be understood as superpositions or target scene elements may have an effect on them, etc. For example, the target scene element is a fire element, and the target action object of the fire element may be an object that can be burned by fire, such as flowers, plants, trees, and the like. In this case, the target screen processing method may be a case where flowers, plants, trees, and the like are burned.

Specifically, the screen effect when the target scene element acts on the target acting object may be generated according to the category of the target scene element, the acting range of the target scene element, and/or the position of the target acting object.

For example, if the initial shooting picture includes a picture of fighting by a player, the target scene element is a skill of releasing blue ice ballast, the target action object may be an object to be played by an object outputting the skill, and a picture effect when the blue ice ballast acts on the object outputting the skill and the object to be played is generated according to the category of the skill output, the action range of the skill output, and the position of the target action object, so that a blue ice layer is generated on the body of the object to be played, and the picture effect is used as a target picture processing mode.

By generating the picture effect when the target scene element acts on the target action object according to the category of the target scene element, the action range of the target scene element and/or the position of the target action object, the picture effect when the target scene element acts on the target action object can be determined in a self-adaptive manner, and an accurate target picture processing mode is obtained.

For example, if it is determined that the initial captured picture includes a plurality of target scene elements originating from different scene objects, an energy weighted average of the target scene elements may be calculated based on the energy value of the target scene element corresponding to each scene object, and a picture effect when the target scene elements act on the target action object may be generated according to the energy weighted average of each target scene element.

For example, if the initial shot picture is a scene in which a player fights in a fire, the scene type is a scene in a fire, the target scene element is a spark released by a plurality of players, the target action object is a monster in a fighting process, the energy value of the spark released by different players is different, a weighted average of the target scene elements corresponding to each player is calculated according to the energy value of the spark released by each player, the degree of blackness of the spark applied to the monster is generated according to the weighted average of the target scene elements, the degree of blackness of the spark applied to the monster is used as a picture effect, and the picture effect is used as a target picture processing mode.

And S240, processing the preliminary shot picture based on the target picture processing mode to obtain a target shot picture.

The technical scheme provided by the embodiment includes that the target scene element corresponding to the scene type in the preliminary shot picture is acquired, the target action object of the target scene element in the preliminary shot picture is determined, the picture effect when the target scene element acts on the target action object is generated, the target picture processing mode corresponding to the preliminary shot picture is used as the target picture processing mode, the target picture processing mode of the preliminary shot picture can be flexibly determined, the processing effect of the preliminary shot picture is improved based on the target picture processing mode, the obtained target shot picture is displayed for a player, the visual experience degree of the player is favorably improved, and the role control by the player is favorably assisted.

EXAMPLE III

Fig. 3 is a flowchart illustrating a method for generating a shot picture according to a third embodiment of the present invention. The technical solution of this embodiment is refined on the basis of the foregoing embodiment, and optionally, determining a target picture processing manner corresponding to the preliminary shot picture based on the target scene element includes: and superposing the target scene element in the preliminary shooting picture. In the method, reference is made to the above-described embodiments for those parts which are not described in detail. Referring specifically to fig. 3, the method may include the steps of:

and S310, receiving the shooting instruction, and acquiring target picture data corresponding to the shooting instruction.

And S320, rendering the target picture data to obtain a primary shooting picture.

S330, acquiring a target scene element corresponding to the scene type in the preliminary shooting picture.

And S340, overlapping the target scene element in the preliminary shot picture as a target picture processing mode.

The target scene element may include a static scene element and a dynamic scene element, among others.

Optionally, if the target scene element is a static scene element, determining a type, a distribution range, and a distance between the target scene element and a lens of the photographing device, and superimposing the target scene element in the preliminary photographing picture according to the type, the distribution range, and the distance of the target scene element. Wherein the lens of the photographing device may be located at a center of the preliminary photographing screen or at another position.

Specifically, according to the type of the target scene element, the target scene element is superimposed in the distribution range, the density of superimposition of the target scene element is determined according to the distance between the target scene element and a lens of the shooting device, and the target scene element is superimposed according to the density so as to use the operation of superimposing the target scene element as a target picture processing mode.

Optionally, if the target scene element is a dynamic scene element, determining a form, a distribution range, and a distance between the target scene element and a lens of the photographing device within a preset time period, and superimposing the target scene element in the preliminary photographing picture according to the form, the distribution range, and the distance of the target scene element within the preset time period.

Illustratively, if the initial shot picture includes a picture of a peach garden, the picture of the peach garden is a static picture, the peach garden is located at the upper right of the initial shot picture, the lens is located at the center of the picture, and the target scene element is a peach flower on a peach tree in the initial shot picture, the distribution range is the peach garden, if the peach tree is farther from the center of the initial shot picture, the peach flower density of the peach tree is smaller, if the peach tree is closer to the center of the initial shot picture, the peach flower density of the peach tree is larger, and the peach flowers are overlaid on different peach trees according to different peach flower densities, so as to treat the operation of overlaying the peach flowers as the target picture.

Illustratively, if the initial captured picture includes a picture of a river, the picture of the river is a dynamic picture, the river is located above the initial captured picture, the lens is located at the center of the picture, the target scene element is water in the river in the initial captured picture, the distribution range is a river boundary, the form of the water flow within the preset time period is wave-shaped, and wave-shaped water flows of different densities are superimposed at different positions of the river according to the distances between the water flows at the different positions and the lens, so as to use the operation of superimposing the wave-shaped water flows as the target picture processing mode.

And S350, processing the preliminary shot picture based on the target picture processing mode to obtain a target shot picture.

Specifically, the target scene element may be superimposed in the preliminary shot picture. For example, a target superimposition object in a preliminary photographing screen may be determined based on a target scene element, and the target scene element may be superimposed on the target superimposition object. The target overlapping area in the preliminary shooting picture is determined based on the target scene element, and the target scene element is overlapped to the target overlapping area.

It should be noted that the overlapping amount or the distribution density of the target scene elements may be set according to actual requirements, and is not specifically limited herein.

According to the technical scheme provided by the embodiment, after the target scene element corresponding to the scene type in the preliminary shot picture is obtained, the target scene element is overlapped in the preliminary shot picture, the operation of overlapping the target scene element is used as a target picture processing mode, and the preliminary shot picture is processed based on the target picture processing mode, so that the target shot picture is obtained. The shot picture has more substitution feeling and unique style, and is favorable for improving the visual experience of the player.

Example four

Fig. 4 is a flowchart illustrating a method for generating a shot picture according to a fourth embodiment of the present invention. The technical solution of this embodiment is refined on the basis of the foregoing embodiment, and optionally, the determining a target picture processing manner corresponding to the preliminary shot picture includes: and if two or more than two primary shooting pictures corresponding to the same target scene are acquired, determining a target picture processing mode corresponding to the primary shooting pictures based on at least two primary shooting pictures, wherein the target picture processing mode comprises image fusion and/or image splicing. In the method, reference is made to the above-described embodiments for those parts which are not described in detail. Referring specifically to fig. 4, the method may include the steps of:

and S410, receiving the shooting instruction, and acquiring target picture data corresponding to the shooting instruction.

And S420, rendering the target picture data to obtain a primary shooting picture.

And S430, if two or more than two primary shooting pictures corresponding to the same target scene are acquired, determining a target picture processing mode corresponding to the primary shooting pictures based on the at least two primary shooting pictures.

Note that the two or more preliminary shot screens may include the same screen or may include different screens. For example, the target picture data includes pictures of the player passing the 2 nd level, and the preliminary shot pictures are two shot pictures with different definitions and including the same object, or one picture of the preliminary shot pictures is a picture of the player releasing the skill, and the other picture is a picture of the level.

The target picture processing mode comprises image fusion and/or image splicing.

Optionally, if the target picture processing mode is image fusion, the at least two preliminary shot pictures may be fused according to coordinates of each pixel point in the at least two preliminary shot pictures. Specifically, the at least two preliminary shot pictures are fused based on image information of each pixel point in the at least two preliminary shot pictures. Image information includes, but is not limited to, pixel values, texture information, luminance information, and the like.

Optionally, if the target picture processing mode is image stitching, the at least two preliminary shot pictures may be fused according to image information of edge pixel points of the at least two preliminary shot pictures. Image information includes, but is not limited to, pixel values, texture information, luminance information, and the like.

And S440, processing the preliminary shot picture based on the target picture processing mode to obtain a target shot picture.

According to the technical scheme provided by the embodiment, if two or more than two primary shooting pictures corresponding to the same target scene are obtained, the target picture processing mode corresponding to the primary shooting pictures is determined based on the at least two primary shooting pictures, and the primary shooting pictures are processed based on the target picture processing mode, so that the target shooting pictures with complete information and special styles can be obtained, the shot pictures can have a substituted feeling, and the visual experience of a player can be improved.

EXAMPLE five

Fig. 5 is a schematic structural diagram of a shot picture generation apparatus according to a fifth embodiment of the present invention. Referring to fig. 5, the apparatus includes: a target screen data acquisition module 510, a preliminary photographing screen determination module 520, and a target photographing screen generation module 530.

The target picture data acquiring module 510 is configured to receive a shooting instruction, and acquire target picture data corresponding to the shooting instruction;

a preliminary shot picture determining module 520, configured to render the target picture data to obtain a preliminary shot picture;

and a target shooting picture generating module 530, configured to determine a target picture processing manner corresponding to the preliminary shooting picture, and process the preliminary shooting picture based on the target picture processing manner to obtain a target shooting picture.

According to the technical scheme provided by the embodiment, after the shooting instruction is received, the target picture data corresponding to the shooting instruction is acquired, so that the important picture in the current game scene can be determined, the target picture data can be determined, the important picture can be provided for the player, and the player can capture the important information; the method comprises the steps of rendering target picture data to obtain a primary shot picture, determining a target picture processing mode corresponding to the primary shot picture, finding a suitable target picture processing mode for different pictures, flexibly processing the primary shot picture, further processing the primary shot picture based on the target picture processing mode to obtain the target shot picture, enabling the style of the obtained shot picture to be more unique, having a substitution feeling, and achieving the effect of improving the visual experience of a player.

On the basis of the foregoing technical solutions, the target captured image generating module 530 is further configured to determine a target image processing manner corresponding to the preliminary captured image based on the scene type of the preliminary captured image.

On the basis of the above technical solutions, the target shooting picture generating module 530 is further configured to obtain a target scene element corresponding to the scene type in the preliminary shooting picture;

and determining a target picture processing mode corresponding to the preliminary shot picture based on the target scene element.

On the basis of the foregoing technical solutions, the target captured image generating module 530 is further configured to determine a target role object of the target scene element in the preliminary captured image, and determine a target image processing manner corresponding to the preliminary captured image based on the target scene element and the target role object.

On the basis of the foregoing technical solutions, the target captured picture generating module 530 is further configured to use, as a target picture processing manner corresponding to the preliminary captured picture, a picture effect generated when the target scene element acts on the target acting object.

On the basis of the above technical solutions, the target shooting picture generating module 530 is further configured to superimpose the target scene element in the preliminary shooting picture.

On the basis of the foregoing technical solutions, the target shooting picture generating module 530 is further configured to, if two or more preliminary shooting pictures corresponding to the same target scene are obtained, determine a target picture processing manner corresponding to the preliminary shooting pictures based on at least two of the preliminary shooting pictures, where the target picture processing manner includes image fusion and/or image stitching.

EXAMPLE six

Fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 6 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.

As shown in FIG. 6, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.

Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.

The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. The system memory 28 may include at least one program product having a set of program modules (e.g., a target picture data acquisition module 510, a preliminary captured picture determination module 520, and a target captured picture generation module 530 of a captured picture generation apparatus) configured to perform the functions of embodiments of the present invention.

A program/utility 44 having a set of program modules 46 (e.g., a target picture data acquisition module 510, a preliminary captured picture determination module 520, and a target captured picture generation module 530 of a captured picture generation apparatus) may be stored, for example, in the system memory 28, such program modules 46 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. Program modules 46 generally carry out the functions and/or methodologies of the described embodiments of the invention.

Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.

The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, and implements, for example, a method for generating a captured picture provided by an embodiment of the present invention, the method including:

receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction;

rendering the target picture data to obtain a primary shooting picture;

and determining a target picture processing mode corresponding to the preliminary shooting picture, and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.

The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, and implements, for example, a shot picture generation method provided by an embodiment of the present invention.

Of course, those skilled in the art can understand that the processor can also implement the technical solution of the method for generating a shot picture provided in any embodiment of the present invention.

EXAMPLE seven

The seventh embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for generating a captured picture according to the seventh embodiment of the present invention, where the method includes:

receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction;

rendering the target picture data to obtain a primary shooting picture;

and determining a target picture processing mode corresponding to the preliminary shooting picture, and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.

Of course, the computer program stored on the computer-readable storage medium provided by the embodiment of the present invention is not limited to the above method operations, and may also perform related operations in a captured picture generation method provided by any embodiment of the present invention.

Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device.

The computer-readable signal medium may include data on a target picture, a preliminary shot picture, a target shot picture, etc., in which computer-readable program code is carried. Such a form of propagated target picture data, preliminary shot picture, target shot picture, and the like. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

It should be noted that, in the embodiment of the apparatus for generating a shot picture, the modules included in the apparatus are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:虚拟装备替换方法、装置和电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类