CN112791418B - Determination method and device of shooting object, electronic equipment and storage medium - Google Patents

Determination method and device of shooting object, electronic equipment and storage medium Download PDF

Info

Publication number
CN112791418B
CN112791418B CN202011624233.0A CN202011624233A CN112791418B CN 112791418 B CN112791418 B CN 112791418B CN 202011624233 A CN202011624233 A CN 202011624233A CN 112791418 B CN112791418 B CN 112791418B
Authority
CN
China
Prior art keywords
target object
determining
target
photographic
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011624233.0A
Other languages
Chinese (zh)
Other versions
CN112791418A (en
Inventor
胡婷婷
赵男
包炎
刘超
施一东
李鑫培
师锐
董一夫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Mihoyo Tianming Technology Co Ltd
Original Assignee
Shanghai Mihoyo Tianming Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Mihoyo Tianming Technology Co Ltd filed Critical Shanghai Mihoyo Tianming Technology Co Ltd
Priority to CN202011624233.0A priority Critical patent/CN112791418B/en
Publication of CN112791418A publication Critical patent/CN112791418A/en
Application granted granted Critical
Publication of CN112791418B publication Critical patent/CN112791418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/85Providing additional services to players
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene

Landscapes

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

Abstract

The embodiment of the invention discloses a method and a device for determining a shot object, electronic equipment and a storage medium. The method for determining the shot object comprises the following steps: determining a first target object to be shot; determining at least one second target object based on the first target object and a preset distance upper limit threshold; a target photographic object is determined based on the first target object and at least one second target object. According to the technical scheme of the embodiment of the invention, the first target object is determined, the second target object is further determined based on the first target object and the preset distance upper limit threshold, and the target shooting object is determined based on the first target object and the second target object, so that the determination of the key object of the game scene is realized, and the problem that the key object in the game scene cannot be shot in the prior art is solved.

Description

Determination method and device of shooting object, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for determining a shot object, electronic equipment and a storage medium.
Background
At present, the game screenshot is often realized through manual operation of a player. When a player needs to intercept a game picture, the current picture is intercepted by manually triggering corresponding operation. In such a manual capturing mode, the game screen acquired by the player often includes each object, that is, there are too many interfering objects in the game screen, and the player cannot acquire the game screen including only the key object. Therefore, the prior art has the problem that the key objects in the game picture cannot be shot.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining a shot object, electronic equipment and a storage medium, and aims to solve the problem that the prior art cannot shoot a key object in a game scene.
In a first aspect, an embodiment of the present invention provides a method for determining a photographic subject, where the method includes:
determining a first target object to be shot;
determining at least one second target object based on the first target object and a preset distance upper limit threshold;
determining a target photographic object based on the first target object and the at least one second target object.
In a second aspect, an embodiment of the present invention further provides an apparatus for determining a photographic subject, where the apparatus includes:
the first target object determining module is used for determining a first target object to be shot;
the second target object determining module is used for determining at least one second target object based on the first target object and a preset distance upper limit threshold;
and the target shooting object determining module is used for determining a target shooting object based on the first target object and the at least one second target object.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device to store one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the determination method of the photographic subject as provided by any of the embodiments of the present invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the determination method of the photographic subject as provided in any of the embodiments of the present invention.
The embodiment of the invention has the following advantages or beneficial effects:
determining a first target object to be shot; determining at least one second target object based on the first target object and a preset distance upper limit threshold; the target photographic object is determined based on the first target object and at least one second target object. According to the technical scheme of the embodiment of the invention, the first target object is determined, the second target object is further determined based on the first target object and the preset distance upper limit threshold, and the target shooting object is determined based on the first target object and the second target object, so that the determination of the key object of the game scene is realized, and the problem that the key object in the game scene cannot be shot in the prior art is solved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It is clear that the described figures are only figures of a part of the embodiments of the invention to be described, not all figures, and that for a person skilled in the art, without inventive effort, other figures can also be derived from them.
Fig. 1 is a schematic flowchart of a method for determining a photographic subject according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for determining a photographic subject according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for determining a photographic subject according to a third embodiment of the present invention;
fig. 4 is a schematic flowchart of a method for determining a photographic subject according to a fourth embodiment of the present invention;
fig. 5 is a schematic flowchart of a method for determining a photographic subject according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for determining a photographic subject according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a seventh 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 structures related to the present invention are shown in the drawings, not all of them.
Example one
Fig. 1 is a flowchart of a method for determining a photographic object according to an embodiment of the present invention, where this embodiment is applicable to a case of determining a target photographic object in a multimedia resource, and is particularly applicable to a case of determining a target photographic object in a game screen, and the method may be executed by a device for determining a photographic object, where the device may be implemented by hardware and/or software, and the method specifically includes the following steps:
and S110, determining a first target object to be shot.
Wherein the first target object can be understood as a main reference object in the current game scene. The first target objects include, but are not limited to, player characters, game monsters, game Non-Player characters (NPCs), skill and scene buildings. It is noted that player-manipulated characters include, but are not limited to, characters and animals; scene buildings include, but are not limited to, natural landscapes such as mountains, sky and grasslands, and real buildings such as churches and fountains; the skill may be an active skill or a passive skill released by the player manipulating the character or game monster.
It should be noted that the current game scene may be a game scene displayed on the client of the target player. For example, the current game scene may be an interaction scene between a plurality of player-controlled characters, an interaction scene between a player-controlled character and an NPC, a battle scene between a player-controlled character and a BOSS, a battle scene between a plurality of player-controlled characters, or a scene in which a player-controlled character appreciates a scene building. In the current game scene, at least one other object may be included in addition to the first target object to be photographed, and therefore, it is necessary to determine the first target object to be photographed from the current game scene.
Specifically, the first target object to be photographed may be determined based on a scene type of a current game scene and/or attribute information of the object.
The scene type of the current game scene can be an interactive scene, a battle scene or a scenery scene. For example, interaction scenes among a plurality of player control characters and interaction scenes between the player control characters and the NPC are interaction scene types; the combat scenes between the player control role and the BOSS and between the plurality of player control roles are all of combat scene types; the player controls the character to enjoy the scene of the scene building as the scene.
Different scene types are provided with corresponding first target objects. For example, the first target object to be photographed corresponding to the interactive scene may be a player control character of a target player; the first target object to be shot corresponding to the battle scene can be a player control character of a target player or a game monster; the first target object to be photographed corresponding to the scene may be a player-operated character of the target player or a scene building. Specifically, the scene type of the current game scene is determined, and the first target object to be shot is determined based on the scene type.
For example, the battle scene can be further divided into scenes corresponding to various game copies, such as the ruins of the dragon, the gold houses and other copies, and the first target objects corresponding to different copies are different. Corresponding scene identifications can be distributed for the subdivided game scenes, and corresponding object identifications of the first target object are set for different scene identifications in advance. When a first target object to be shot of a current game scene needs to be determined, a scene identification of the current game scene is identified, a corresponding object identification is determined based on the scene identification of the current game scene, and an object conforming to the object identification is identified in the current game scene and serves as the first target object to be shot.
In another embodiment, a player manipulation character of a target player in a current game scene may be determined as a first target object to be photographed. And if the current game scene does not contain the player control role of the target player, determining the BOSS as a first target object to be shot. And if the current game scene does not contain the player control role and the BOSS of the target player, determining a first target object to be shot based on the attribute information of the other player control roles.
And S120, determining at least one second target object based on the first target object and a preset distance upper limit threshold.
The preset upper distance threshold may be understood as a maximum object distance between the second target object and the first target object. The application does not limit the specific value of the distance upper threshold. Specifically, an object whose distance from the first target object is less than or equal to a preset distance upper limit threshold is determined as the second target object. The second target object may be understood as a candidate object to be photographed close to the first target object. The number of the second target objects in this embodiment may be one or more.
In one embodiment, a sphere region may be determined with the first target object as a center and a preset distance upper threshold as a radius, and each object in the sphere region may be determined as the second target object. In another embodiment, an orientation marking line is established based on the orientation direction of the first target object, an angle range is determined based on the orientation marking line, a fan-shaped area with the vertex of the first target object is created in the angle range, and each object in the fan-shaped area is determined as the second target object.
It should be noted that the preset distance upper limit threshold corresponding to different first target objects may be different. The distance upper threshold may be determined based on attribute information of the first target object. Wherein, the attribute information includes but is not limited to attack attribute information and volume information, wherein the attack information includes but is not limited to general attack distance, active skill attack distance and passive skill trigger distance. Specifically, the distance upper threshold may be equal to any one of a general attack distance, an active skill attack distance, and a passive skill trigger distance of the first target object. Alternatively, the preset upper threshold of the distance corresponding to the first target object may be equal to any one of the three distances plus a preset distance adjustment value.
Alternatively, the distance upper threshold may be determined based on volume information of the first target object. The larger the volume of the first target object, the larger the distance upper threshold. For example, the volume of the BOSS is usually much larger than that of the player-operated character, and the distance upper threshold corresponding to the BOSS should be much larger than that corresponding to the player-operated character.
In another embodiment, the distance upper threshold may also be determined based on the scene type of the current game scene.
Optionally, determining at least one second target object based on the first target object and a preset distance upper threshold, including: calculating an object distance between the first target object and at least one target object to be selected; and if the object distance is less than or equal to the preset distance upper limit threshold, determining the target object to be selected as a second target object.
The target object to be selected may be each object except the first target object in the current game scene. Specifically, an object distance between each candidate target object and the first target object is calculated, and the second target object is determined based on the object distance of each candidate target object. The object distance may be understood as a euclidean distance between each candidate target object and the first target object, i.e., a straight-line distance. Alternatively, the object distance may be determined based on the collision box, the root node, or the feature point of each object and the first target object.
Specifically, collision boxes of a first target object and other objects than the first target object are acquired, respectively, and object distances of the first target object and the other objects are calculated based on position information of the collision boxes. Or, root nodes or feature points of the first target object and other objects except the first target object are respectively acquired, and the object distance between the first target object and the other objects is calculated based on the position information of the root nodes or the feature points. The root node can be understood as a key node on the subject body, such as a hand, a foot, and the like; the feature point may be a point on the subject's body that is closest or farthest to the first target subject, or a center of gravity, center, or centroid of the subject, or the like.
In these alternative embodiments, the object distance between the first target object and the at least one candidate target object is calculated; and if the object distance is less than or equal to the preset distance upper limit threshold, determining the target object to be selected as a second target object so as to determine the second target object based on the object distance, thereby accurately determining the second target object.
And S130, determining a target shooting object based on the first target object and at least one second target object.
The target shooting object can be understood as a key object in the current game scene, namely an object to be shot. The number of target photographic subjects may be one or more.
In one embodiment, the number of the target photographic objects is plural, the first target object may be determined as the target photographic object, and the target photographic object may be determined based on at least one of attribute information of the second target object, orientation information of the first target object and the second target object, and a scene type of a current game scene.
The attribute information includes, but is not limited to, type information, volume information, blood volume information, rareness information, and grade information. The type information indicates a type corresponding to the second target object, for example, a player character, a parietal monster, a BOSS, an NPC, a building, and the like. The rarity information may be rarity of the second target object, such as rarity of BOSS, rarity of a player-operated character, rarity of NPC, rarity of a scene building, or the like, and may also be rarity of weapons or equipment worn by the second target object. The level information may be a level corresponding to the second target object, such as a level of a player manipulating a character or a level of BOSS, and the level information may also be a level corresponding to a weapon or equipment worn by the second target object.
Specifically, the second target object of the player character type or the BOSS type may be determined as the target photographic object. Or, a second target object satisfying at least one of the attributes of the largest volume, the largest blood volume, the highest rareness degree, and the highest rank is determined as the target photographic object.
The orientation information may be orientation direction information of a target portion of the first target object or the second target object, for characterizing an overall orientation direction of the object. The target part may be a part such as a hand, a foot, a back, or a face. The corresponding orientation angles may be determined based on the orientation information, resulting in orientation angles of the target portions of the first and second target objects, the overall orientation direction of the object being characterized by the orientation angles. Specifically, the orientation angle difference is determined based on the orientation angles of the first target object and each second target object, and the second target object with the orientation angle difference smaller than a preset angle difference threshold value is determined as the target shooting object.
According to the technical scheme of the embodiment, a first target object to be shot is determined; determining at least one second target object based on the first target object and a preset distance upper limit threshold; the target photographic object is determined based on the first target object and at least one second target object. According to the technical scheme of the embodiment of the invention, the first target object is determined, the second target object is further determined based on the first target object and the preset distance upper limit threshold, and the target shooting object is determined based on the first target object and the second target object, so that the determination of the key object of the game scene is realized, and the problem that the key object in the game scene cannot be shot in the prior art is solved.
Example two
Fig. 2 is a schematic flowchart of a method for determining a photographic object according to a second embodiment of the present invention, where this embodiment optionally determines a target photographic object based on a first target object and at least one second target object based on the above embodiments, and includes: determining volume information of the at least one second target object, determining at least one third target object based on the volume information; and determining a target shooting object based on the first target object and the third target object. Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted.
Referring to fig. 2, the method for determining a photographic subject according to the present embodiment includes the following steps:
s210, determining a first target object to be shot.
S220, determining at least one second target object based on the first target object and a preset distance upper limit threshold.
And S230, determining volume information of the at least one second target object, and determining at least one third target object based on the volume information.
Wherein the volume information may be determined based on a volume size of a collision box or bounding box of the second target object. In particular, a second target object exceeding a preset volume threshold may be determined as a third target object. The preset volume threshold may be determined according to attribute information of the first target object or a scene type of a current game scene, which is not limited in this application. The number of the third target objects in this embodiment may be one or more.
In a game scene, the BOSS in a battle scene and the scene building in a scenery scene are both large in volume. For example, the current game scenario is that a player-controlled character is about to fight a BOSS, a plurality of corner monsters are beside the BOSS, the volume of the BOSS is much larger than that of each corner monster, and if the first target object is the player-controlled character, the second target object is the BOSS and each corner monster, the third target object is the BOSS.
In another embodiment, the second target objects may be sorted based on the volume information of the second target objects, an ordered list with gradually decreasing volume size is generated, the first second target object in the list is determined as the third target object, or the top N second target objects in the list are determined as the third target object. For example, the number of the BOSSs in the battle scene is multiple, and the size of the volume differs little, each BOSSs may be a third target object.
And S240, determining a target shooting object based on the first target object and the third target object.
Specifically, the target photographic object may include the first target object and all the third target objects; the first target object and a part of the third target object may also be included, and the target photographic object is determined based on the orientation information of the first target object and the third target object, for example. And determining a third target object with the orientation angle difference smaller than a preset angle difference threshold value as a target shooting object.
According to the technical scheme, volume information of at least one second target object is determined, and at least one third target object is determined based on the volume information; the target shooting object is determined based on the first target object and the third target object, so that the third target object is accurately determined, the target shooting object is accurately determined, and the accuracy of the target shooting object is improved.
EXAMPLE III
Fig. 3 is a schematic flowchart of a method for determining a photographic object according to a third embodiment of the present invention, where this embodiment optionally determines a target photographic object based on a first target object and at least one second target object based on the above embodiments, and includes: and determining a first target object and a second target object which is closest to the first target object as target shooting objects. Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted.
Referring to fig. 3, the method for determining a photographic subject according to the present embodiment includes the following steps:
and S310, determining a first target object to be shot.
S320, determining at least one second target object based on the first target object and a preset distance upper limit threshold.
And S330, determining the first target object and a second target object closest to the first target object as target shooting objects.
Wherein, the distance between the second target object and the first target object may be the distance between the root nodes or feature points of the first target object and the second target object, and the root nodes may be key nodes such as hands, feet, etc.; the feature point may be a point on the subject's body that is closest or farthest to another subject, or the subject's center of gravity, center, or centroid, etc. In one embodiment, the distance between the first target object and the second target object may be a distance between a point on the body of the first target object closest to the second target object and a point on the body of the second target object closest to the first target object.
Specifically, the distance between the first target object and each second target object is determined, and the second target object closest to the first target object and the first target object are determined as target shooting objects. For example, in the current game scenario, a player-controlled character is about to fight against the BOSS, and a plurality of corner monsters are further arranged behind the BOSS, in this case, if the first target object is the player-controlled character, the second target object is the BOSS and the corner monsters, the second target object closest to the player-controlled character is the BOSS, and the target shooting objects are the player-controlled character and the BOSS.
According to the technical scheme, the first target object and the second target object which is closest to the first target object are determined as the target shooting objects, so that the target shooting objects are accurately determined, and the accuracy of the target shooting objects is improved.
Example four
Fig. 4 is a schematic flowchart of a method for determining a photographic object according to a fourth embodiment of the present invention, where this embodiment optionally determines a target photographic object based on a first target object and at least one second target object on the basis of the foregoing embodiments, and includes: determining motion information of at least one second target object, determining at least one third target object based on the motion information; and determining a target shooting object based on the first target object and the third target object. Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted.
Referring to fig. 4, the method for determining a photographic subject according to the present embodiment includes the following steps:
and S410, determining a first target object to be shot.
And S420, determining at least one second target object based on the first target object and a preset distance upper limit threshold.
S430, determining motion information of the at least one second target object, and determining at least one third target object based on the motion information.
The motion information includes, but is not limited to, a moving distance, a moving speed, a moving direction, and an instantaneous acceleration of the second target object within a set time. The moving speed refers to an average moving speed of the second target object within a set time. In the present embodiment, the at least one third target object may be determined based on at least one of a moving distance, a moving speed, a moving direction, and an instantaneous acceleration of the second target object.
Optionally, determining a second target object with the largest moving distance, moving speed or instantaneous acceleration within a set time as a third target object; and/or determining a second target object with the moving direction facing to the first target object as a third target object. For example, in the current game scenario, each player-controlled character fights with the BOSS, the first target object is the BOSS, each player-controlled character may rush to the BOSS when releasing skills, and at this time, the player-controlled character with the largest moving distance, moving speed or instantaneous acceleration may be determined as the third target object, and/or the player-controlled character with the moving direction toward the BOSS may be determined as the third target object.
Optionally, determining at least one third target object based on the motion information includes: at least one third target object is determined based on the amount of change in the motion information.
The variation of the motion information may be a variation of a moving speed or a variation of a moving distance. Specifically, the second target object whose movement speed or movement distance has the largest variation is determined as the third target object. Or, determining a second target object of which the variation of the moving speed is greater than a preset speed variation threshold or the variation of the moving distance is greater than a preset distance variation threshold as a third target object. The specific numerical values of the preset speed change threshold and the preset distance change threshold are not limited in the application.
For example, when each player control character fights the BOSS in the current game scenario, the first target object is the BOSS, and when each player control character attacks the BOSS, some player control characters may instantaneously move to the vicinity of the position of the BOSS through the skill after the cooling time of the skill is over, and at this time, although the variation of the movement speed of the some player control characters may be small, the variation of the movement distance is large, and the player control character with the large variation of the movement distance may be determined as the third target object. Alternatively, in the process of preparing to release the move skill or release the move, some of the player characters may accelerate toward the BOSS, and at this time, the variation of the moving speed of the some of the player characters is large, and the player character with the large variation of the moving speed may be determined as the third target object.
In these alternative embodiments, the determination of the at least one third target object based on the variation amount of the motion information enables accurate determination of the third target object, and further, enables accurate determination of the target photographic object.
And S440, determining a target shooting object based on the first target object and the third target object.
According to the technical scheme of the embodiment, the motion information of at least one second target object is determined, and at least one third target object is determined based on the motion information; and determining a target shooting object based on the first target object and the third target object. The third target object is determined based on the motion information, so that the target shooting object is accurately determined, and the accuracy of the target shooting object is improved.
EXAMPLE five
Fig. 5 is a schematic flowchart of a method for determining a photographic object according to a fifth embodiment of the present invention, where this embodiment optionally determines a target photographic object based on a first target object and at least one second target object on the basis of the foregoing embodiments, and includes: determining position information of at least one second target object, and determining at least one third target object based on the position information; and determining a target shooting object based on the first target object and the third target object. Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted.
Referring to fig. 5, the method for determining a photographic subject according to the present embodiment includes the following steps:
and S510, determining a first target object to be shot.
S520, determining at least one second target object based on the first target object and a preset distance upper limit threshold.
S530, determining the position information of the at least one second target object, and determining the at least one third target object based on the position information.
The position information of the second target object may be position information of the second target object in the current game scene, and may be understood as coordinates of the second target object in the current game scene. Specifically, the sitting position information of the second target object in the current game scene may be determined based on the root node or the feature point of the second target object. For example, the coordinates corresponding to the head of the second target object are determined as the coordinates of the second target object, so as to obtain the position information of the second target object.
In one embodiment, the coordinates of the second target object in the current game scene may be determined based on the three-dimensional space coordinate axis by establishing the three-dimensional space coordinate axis based on the display range of the current game scene.
Specifically, the determining of the at least one third target object based on the position information includes at least one of: if the second target object is located in the preset area or at the preset position, determining the second target object as a third target object; and determining a relative distance and/or a relative angle between the second target object and the first target object based on the position information of the second target object, and determining the second target object as a third target object if the relative distance is in a preset distance range or the relative angle meets a preset angle range.
The preset area may be an area preset in the current game scene, such as: a cylinder region centered at the BOSS; or a sector area with the scene building as a vertex. The size and shape of the preset area can be adjusted according to actual requirements. The preset position may be understood as a preset coordinate, such as a certain coordinate in the vicinity of the NPC. Specifically, the position information of at least one second target object is determined, and the second target object located in the preset area or at the preset position is determined as a third target object.
The position information of the second target object may be a relative position between the second target object and the first target object, including but not limited to a relative distance and/or a relative angle to the first target object. Specifically, the position information of at least one second target object is determined, and the second target object whose relative distance is within a preset distance range or whose relative angle satisfies a preset angle range is determined as a third target object. It should be noted that the preset distance range and the preset angle range can be adjusted according to actual requirements, and the specific numerical values of the preset distance range and the preset angle range are not limited in the present application.
And S540, determining a target shooting object based on the first target object and the third target object.
According to the technical scheme of the embodiment, the position information of at least one second target object is determined, and at least one third target object is determined based on the position information; and determining a target shooting object based on the first target object and the third target object. The third target object is determined based on the position information, so that the target shooting object is accurately determined, and the accuracy of the target shooting object is improved.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a device for determining a photographic object according to a sixth embodiment of the present invention, which is applicable to a case of determining a target photographic object in a multimedia resource, and is particularly applicable to a case of determining a target photographic object in a game screen, and the device specifically includes: a first target object determination module 610, a second target object determination module 620, and a target photographic object determination module 630.
A first target object determination module 610 for determining a first target object to be photographed;
a second target object determining module 620, configured to determine at least one second target object based on the first target object and a preset distance upper threshold;
the target photographic subject determination module 630 determines a target photographic subject based on the first target subject and the at least one second target subject.
In the embodiment, a first target object to be photographed is determined by a first target object determination module; determining at least one second target object based on the first target object and a preset distance upper limit threshold value through a second target object determination module; the target photographic subject determination module determines a target photographic subject based on the first target subject and the at least one second target subject. According to the technical scheme of the embodiment of the invention, the first target object is determined, the second target object is further determined based on the first target object and the preset distance upper limit threshold, and the target shooting object is determined based on the first target object and the second target object, so that the determination of the key object of the game picture is realized, and the problem that the key object in the picture cannot be shot in the prior art is solved.
Optionally, the second target object determining module 620 is specifically configured to calculate an object distance between the first target object and at least one target object to be selected; and if the object distance is less than or equal to the preset distance upper limit threshold, determining the target object to be selected as a second target object.
Optionally, the target photographic object determining module 630 includes a first determining subunit, configured to determine volume information of the at least one second target object, and determine at least one third target object based on the volume information; and determining a target shooting object based on the first target object and the third target object.
Optionally, the target photographic subject determination module 630 includes a second determination subunit configured to determine the first target subject and a second target subject closest to the first target subject as the target photographic subject.
Optionally, the target photographic object determining module 630 includes a third determining subunit, configured to determine motion information of at least one second target object, and determine at least one third target object based on the motion information; and determining a target shooting object based on the first target object and the third target object.
Optionally, the third determining subunit is further configured to determine at least one third target object based on the variation of the motion information.
Optionally, the target photographic object determining module 630 includes a fourth determining subunit, configured to determine position information of the at least one second target object, and determine the at least one third target object based on the position information; and determining a target shooting object based on the first target object and the third target object.
The determination device of the shot object provided by the embodiment of the invention can execute the determination method of the shot object provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the system are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; 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 embodiment of the present invention.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present invention. FIG. 7 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. 7 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. The device 12 is typically an electronic device that assumes the function of determining a photographic subject.
As shown in fig. 7, electronic device 12 is 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 memory 28, and a bus 18 that couples the various components (including the 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 can include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer-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.
Memory 28 may include computer device readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only, the storage device 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, and commonly referred to as a "hard drive"). Although not shown in FIG. 7, 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 Compact disk-Read Only Memory (CD-ROM), digital Video disk (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. Memory 28 may include at least one program product 40, with program product 40 having a set of program modules 42 configured to carry out the functions of embodiments of the invention. Program product 40 may be stored, for example, in memory 28, and such program modules 42 include, but are not limited to, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. Program modules 42 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, mouse, camera, etc., and display), one or more devices that enable a user to interact with electronic device 12, and/or any device (e.g., network card, modem, etc.) that enables 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), 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 (Redundant Arrays of Independent Disks) devices, tape drives, and data backup storage devices, to name a few.
The processor 16 executes various functional applications and data processing by running the program stored in the memory 28, for example, to implement the determination method of the photographic subject provided by the above-described embodiment of the present invention, including:
determining a first target object to be shot;
determining at least one second target object based on the first target object and a preset distance upper limit threshold;
the target photographic object is determined based on the first target object and at least one second target object.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the determination method for the photographic object provided in any embodiment of the present invention.
Example eight
An eighth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method for determining a photographic subject according to any of the embodiments of the present invention, the method including:
determining a first target object to be shot;
determining at least one second target object based on the first target object and a preset distance upper limit threshold;
a target photographic object is determined based on the first target object and at least one second target object.
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, apparatus, 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, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may 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, apparatus, 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 embodiments 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 and 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 is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be 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.

Claims (7)

1. A determination method of a photographic subject, characterized by comprising:
determining a first target object to be shot;
determining at least one second target object based on the first target object and a preset distance upper limit threshold;
determining a target photographic object based on the first target object and the at least one second target object;
the determining a target photographic object based on the first target object and the at least one second target object comprises:
determining volume information of the at least one second target object, determining at least one third target object based on the volume information;
determining a target photographic object based on the first target object and the third target object;
the determining of the volume information of the at least one second target object, the determining of the at least one third target object based on the volume information, comprises: determining a second target object exceeding a preset volume threshold as a third target object;
the target shooting object comprises a first target object and all third target objects or the first target object and part of the third target objects;
the determining at least one second target object based on the first target object and a preset distance upper limit threshold comprises:
calculating an object distance between the first target object and at least one target object to be selected;
and if the object distance is less than or equal to a preset distance upper limit threshold, determining the target object to be selected as a second target object.
2. The method of claim 1, wherein the determining a target photographic object based on the first target object and the at least one second target object comprises:
and determining the first target object and a second target object closest to the first target object as target shooting objects.
3. The method of claim 1, wherein the determining a target photographic object based on the first target object and the at least one second target object comprises:
determining motion information of the at least one second target object, determining at least one third target object based on the motion information; determining a target photographic object based on the first target object and the third target object;
the determining motion information of the at least one second target object and determining at least one third target object based on the motion information comprises: determining a second target object with the largest moving distance, moving speed or instantaneous acceleration in a set time as a third target object; and/or determining a second target object with the moving direction facing to the first target object as a third target object;
said determining at least one third target object based on said motion information comprises:
determining at least one third target object based on the amount of change in the motion information;
the determining at least one third target object based on the amount of change in the motion information includes: and determining the second target object with the largest variation of the moving speed or the moving distance as a third target object, or determining the second target object with the variation of the moving speed larger than a preset speed variation threshold or the variation of the moving distance larger than a preset distance variation threshold as the third target object.
4. The method of claim 1, wherein the determining a target photographic object based on the first target object and the at least one second target object comprises:
determining position information of the at least one second target object, determining at least one third target object based on the position information;
determining a target photographic object based on the first target object and the third target object;
the determining of the position information of the at least one second target object and the determining of the at least one third target object based on the position information comprises: and determining the second target object with the relative distance within the preset distance range or the relative angle meeting the preset angle range as a third target object.
5. An apparatus for determining a subject to be photographed, comprising:
the first target object determining module is used for determining a first target object to be shot;
the second target object determination module is used for determining at least one second target object based on the first target object and a preset distance upper limit threshold;
a target photographic object determination module which determines a target photographic object based on the first target object and the at least one second target object;
the target photographic object determination module comprises a first determination subunit, a second determination subunit and a third determination subunit, wherein the first determination subunit is used for determining the volume information of at least one second target object and determining at least one third target object based on the volume information; determining a target shooting object based on the first target object and the third target object;
the determining of the volume information of the at least one second target object, the determining of the at least one third target object based on the volume information, comprises: determining a second target object exceeding a preset volume threshold value as a third target object;
the target shooting object comprises a first target object and all third target objects or the first target object and part of the third target objects;
the second target object determination module is specifically configured to calculate an object distance between the first target object and at least one target object to be selected; and if the object distance is less than or equal to the preset distance upper limit threshold, determining the target object to be selected as a second target object.
6. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device to store one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the determination method of photographic subject as defined in any one of claims 1-4.
7. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the determination method of a photographic subject according to any one of claims 1 to 4.
CN202011624233.0A 2020-12-31 2020-12-31 Determination method and device of shooting object, electronic equipment and storage medium Active CN112791418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011624233.0A CN112791418B (en) 2020-12-31 2020-12-31 Determination method and device of shooting object, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011624233.0A CN112791418B (en) 2020-12-31 2020-12-31 Determination method and device of shooting object, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112791418A CN112791418A (en) 2021-05-14
CN112791418B true CN112791418B (en) 2023-04-14

Family

ID=75807539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011624233.0A Active CN112791418B (en) 2020-12-31 2020-12-31 Determination method and device of shooting object, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112791418B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110554898A (en) * 2019-09-06 2019-12-10 网易(杭州)网络有限公司 Marking method in game scene, touch terminal and readable storage medium
CN111399743A (en) * 2020-03-18 2020-07-10 网易(杭州)网络有限公司 Display control method and device in game
CN111888762A (en) * 2020-08-13 2020-11-06 网易(杭州)网络有限公司 Method for adjusting visual angle of lens in game and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5291305B2 (en) * 2007-07-06 2013-09-18 任天堂株式会社 GAME PROGRAM AND GAME DEVICE
JP5515671B2 (en) * 2009-11-20 2014-06-11 ソニー株式会社 Image processing apparatus, control method thereof, and program
CN108939556B (en) * 2018-07-27 2021-08-20 珠海金山网络游戏科技有限公司 Screenshot method and device based on game platform
CN109240576B (en) * 2018-09-03 2021-09-07 网易(杭州)网络有限公司 Image processing method and device in game, electronic device and storage medium
CN109806596B (en) * 2019-03-20 2023-04-07 网易(杭州)网络有限公司 Game picture display method and device, storage medium and electronic equipment
CN111538410A (en) * 2020-04-16 2020-08-14 上海唯二网络科技有限公司 Method and device for determining target algorithm in VR scene and computing equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110554898A (en) * 2019-09-06 2019-12-10 网易(杭州)网络有限公司 Marking method in game scene, touch terminal and readable storage medium
CN111399743A (en) * 2020-03-18 2020-07-10 网易(杭州)网络有限公司 Display control method and device in game
CN111888762A (en) * 2020-08-13 2020-11-06 网易(杭州)网络有限公司 Method for adjusting visual angle of lens in game and electronic equipment

Also Published As

Publication number Publication date
CN112791418A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
JP4425274B2 (en) Method and apparatus for adjusting the view of a scene being displayed according to the motion of the head being tracked
CN105843396B (en) The method of multiple view is maintained on shared stabilization Virtual Space
US8730156B2 (en) Maintaining multiple views on a shared stable virtual space
JP2022527662A (en) Virtual object control methods, devices, equipment and computer programs
JP2022533321A (en) VIRTUAL OBJECT CONTROL METHOD, APPARATUS, DEVICE AND COMPUTER PROGRAM
CN110465087B (en) Virtual article control method, device, terminal and storage medium
JP2022533919A (en) Virtual character control method, its computer equipment, computer program, and virtual character control device
CN112717392B (en) Mark display method, device, terminal and storage medium
CN111045777B (en) Rendering method and device, storage medium and electronic equipment
WO2021227684A1 (en) Method for selecting virtual objects, apparatus, terminal and storage medium
US10740957B1 (en) Dynamic split screen
KR20220042299A (en) Method and apparatus, device, and medium for displaying a picture of a virtual environment
CN112843739B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112839170B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112791418B (en) Determination method and device of shooting object, electronic equipment and storage medium
CN111650953A (en) Aircraft obstacle avoidance processing method and device, electronic equipment and storage medium
CN112843689A (en) Shooting method, shooting device, electronic equipment and storage medium
CN115430153A (en) Collision detection method, device, apparatus, medium, and program in virtual environment
CN112839171B (en) Picture shooting method and device, storage medium and electronic equipment
CN112843694A (en) Picture shooting method and device, storage medium and electronic equipment
CN112807698B (en) Shooting position determining method and device, electronic equipment and storage medium
CN112843713B (en) Method, device, equipment and medium for determining center point of visual field
CN112822396B (en) Shooting parameter determining method, device, equipment and storage medium
CN112843687B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112843715B (en) Shooting visual angle determining method, device, equipment and storage medium

Legal Events

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