Method, device, electronic device and storage medium for controlling object grouping

By identifying the motion trajectories in human body images and generating formation trajectories in the game interface, the problem of convenience in selecting multiple virtual objects and adjusting formations in RTS games is solved, and the user experience is improved.

CN113908537BActive Publication Date: 2025-10-10SHANGHAI INGOT NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111058517.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-08
Publication Date
2025-10-10
Estimated Expiration
2041-09-08

AI Technical Summary

Technical Problem

In RTS games, when selecting and controlling multiple virtual objects, existing technologies cannot easily select multiple virtual objects and cannot quickly adjust the formation, resulting in the obstruction of virtual objects and affecting the user experience.

Method used

By identifying the target part in the user's body image, obtaining the spatial motion trajectory and projecting it onto the game interface, generating the formation trajectory, adjusting the formation of the object grouping, and using the formation controls and target position to determine the position of the virtual object, direct touching of the game interface is avoided.

Benefits of technology

This allows for quick switching of virtual object formations in RTS games while avoiding occlusion of virtual objects, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113908537B_ABST
    Figure CN113908537B_ABST
Patent Text Reader

Abstract

The application discloses a kind of object formation control method, device, electronic equipment and storage medium, the method includes: obtaining the human image of user;Target site is identified from human image, and the space motion trajectory of target site is obtained;Space motion trajectory is projected to the specified area of game interface, and the corresponding formation trajectory of space motion trajectory on game interface is obtained;According to formation trajectory, the formation of object formation in game interface is adjusted, and the object formation includes multiple virtual objects.By identifying the space motion trajectory of human body site, the corresponding formation trajectory of space motion trajectory on game interface is obtained, to adjust the formation of object formation in game interface according to formation trajectory, so as to not need to touch the virtual object displayed on game interface, and then avoid causing obstruction to virtual object in the process of formation switching, reduce the hindrance when user observes multiple virtual objects, improve user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a control method, device, electronic device, and storage medium for object grouping. Background Art

[0002] In some games, such as RTS (Real-Time Strategy) games, it is often necessary to select and control multiple virtual objects. When running such games on a mobile terminal, if you need to select and control multiple virtual objects, you need to perform a selection operation for each virtual object, such as clicking on multiple virtual objects separately, in order to select and control multiple virtual objects. However, this method cannot easily select multiple virtual objects, nor can it quickly adjust the formation of multiple virtual objects.

[0003] To this end, related technologies use a sliding touch operation on a virtual object to select and control a group of multiple virtual objects, allowing for quick adjustment of the formation of the multiple virtual objects. However, because the sliding touch operation requires touching the virtual objects displayed on the game interface, adjusting the formation of the virtual objects obscures the virtual objects. This hinders the user's ability to observe the multiple virtual objects during the formation switching process, impacting the user experience. Summary of the Invention

[0004] The purpose of this application is to solve at least one of the technical problems existing in the prior art, and to provide a control method, device, electronic device and storage medium for object grouping, which can achieve rapid switching of the formations of multiple virtual objects while avoiding obstruction of the virtual objects during the formation switching process, reducing the obstacles that arise when users observe multiple virtual objects, and improving the user experience.

[0005] In a first aspect, an embodiment of the present application provides a method for controlling object grouping, including:

[0006] Obtaining the user's body image;

[0007] Identify the target part from the human body image and obtain the spatial motion trajectory of the target part;

[0008] Project the spatial motion trajectory onto a specified area of ​​the game interface, and obtain the formation trajectory corresponding to the spatial motion trajectory on the game interface;

[0009] The formation of an object group in a game interface is adjusted according to the formation trajectory, wherein the object group includes a plurality of virtual objects.

[0010] Furthermore, the formation of the object group in the game interface is adjusted according to the formation trajectory, including:

[0011] Generate corresponding formation controls according to formation trajectory;

[0012] In response to a selection operation on a formation control, the formation of the object grouping in the game interface is adjusted according to the formation track of the selected formation control.

[0013] Furthermore, the formation control is associated with a number;

[0014] The response to the selection operation of the formation control includes:

[0015] The current posture of the target part is detected, and when it is detected that the current posture matches any one of a plurality of preset postures, a formation control with a corresponding number is selected according to the preset posture that matches the current posture.

[0016] Furthermore, the formation of object groups in the game interface is adjusted, including:

[0017] Determine multiple target positions within a preset range of the formation trajectory;

[0018] The position of each virtual object in the object group is determined based on the multiple target positions.

[0019] Furthermore, multiple target positions are determined within a preset range of the formation trajectory, including:

[0020] Identify multiple target locations on the lineup trajectory; or,

[0021] Identify multiple target locations on one side of the lineup trajectory.

[0022] Furthermore, determining the position of each virtual object in the object group according to the multiple target positions includes:

[0023] A plurality of target positions are determined as positions of the respective virtual objects in the object group.

[0024] Furthermore, determining the position of each virtual object in the object group according to the multiple target positions includes:

[0025] A plurality of target positions are determined as positions of the respective virtual objects in the object group.

[0026] In a second aspect, an embodiment of the present application further provides a control device for object grouping, including:

[0027] The determining the position of each virtual object in the object group according to the multiple target positions includes:

[0028] A plurality of target positions are determined as positions of the respective virtual objects in the object group.

[0029] In a third aspect, an embodiment of the present application provides an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the control method for object grouping as described in the above embodiment is implemented.

[0030] In a fourth aspect, an embodiment of the present application provides a storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to enable a computer to execute the object grouping control method as described in the above embodiment.

[0031] By identifying the spatial motion trajectories of human body parts, the formation trajectories corresponding to the spatial motion trajectories on the game interface are obtained, so that the formation of the object grouping in the game interface can be adjusted according to the formation trajectories. In this way, when controlling the object grouping, there is no need to touch the virtual objects displayed on the game interface. In addition, while realizing the rapid switching of the formations of multiple virtual objects, the virtual objects are avoided from being blocked during the formation switching process, which reduces the obstacles that occur when the user observes multiple virtual objects and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The present application is further described below with reference to the accompanying drawings and embodiments;

[0033] Figure 1 A diagram illustrating an application environment of a method for controlling object grouping provided by an embodiment;

[0034] Figure 2 is a flow chart of a method for controlling object grouping provided by an embodiment;

[0035] Figure 3 A schematic diagram of a game scene after obtaining formation trajectories provided by an embodiment;

[0036] Figure 4 A schematic diagram of a game scene before and after a formation switch provided by an embodiment;

[0037] Figure 5 A schematic diagram of target location deployment provided by an embodiment;

[0038] Figure 6 A schematic diagram of a formation arrangement provided by an embodiment;

[0039] Figure 7 Another target location deployment diagram provided by an embodiment;

[0040] Figure 8 Another formation layout diagram provided by an embodiment;

[0041] Figure 9 A schematic diagram of the structure of a control device for object grouping in one embodiment;

[0042] Figure 10 FIG. 1 is a structural block diagram of a computer device in one embodiment. DETAILED DESCRIPTION

[0043] This section will describe the specific embodiments of the present application in detail. The preferred embodiments of the present application are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and overall technical solution of the present application, but it cannot be understood as a limitation on the scope of protection of the present application.

[0044] The following is a detailed description of the embodiments of the present application with reference to the accompanying drawings. The control method for object grouping provided by the embodiments of the present application is applied to the following embodiments: Figure 1 In the application environment shown, a terminal device 110 and a camera device 120 are connected via a network. The terminal device 110 can be a desktop terminal or a mobile terminal, wherein the mobile terminal can be a mobile phone, tablet computer, laptop computer, wearable device, etc. The camera device 120 can be a camera mounted on the terminal device. An application 130 using the above-described object grouping control method is displayed via the terminal device 110.

[0045] While the application is running, a camera captures real-time images of the user's body and transmits them to the terminal device. After receiving the images, the terminal device identifies the target body part from the images, obtains the spatial motion trajectory of the target part, and projects this spatial motion trajectory onto a designated area of ​​the game interface generated by the application on the terminal device, obtaining the corresponding formation trajectory on the game interface. After obtaining the formation trajectory, the formation of the objects grouped on the game interface is adjusted based on the formation trajectory.

[0046] By identifying the spatial motion trajectories of human body parts, the formation trajectories corresponding to the spatial motion trajectories on the game interface are obtained, so that the formation of the object grouping in the game interface can be adjusted according to the formation trajectories. In this way, when controlling the object grouping, there is no need to touch the virtual objects displayed on the game interface. In addition, while realizing the rapid switching of the formations of multiple virtual objects, the virtual objects are avoided from being blocked during the formation switching process, which reduces the obstacles that occur when the user observes multiple virtual objects and improves the user experience.

[0047] Below, the object grouping control method provided by the embodiment of the present application will be introduced and explained in detail through several specific embodiments.

[0048] like Figure 2As shown, in one embodiment, a method for controlling object grouping is provided. This embodiment mainly uses the method applied to a computer device as an example. The computer device can be the above-mentioned Figure 1 The terminal device 110 in.

[0049] Reference Figure 2 , the object grouping control method specifically includes the following steps:

[0050] S11. Obtaining a user's body image.

[0051] In one embodiment, when the application is running, a human body image acquisition instruction is sent to the camera device so that the camera device can acquire images in real time through the camera, acquire the images acquired by the camera device in real time, and recognize the human body image from the acquired images.

[0052] Because images captured by a camera typically contain not only human images but also areas that do not require recognition, such as buildings and plants, in one embodiment, after image capture by the camera, the raw images captured by the camera can be preprocessed, and the human position can be detected from the raw images using a trained human recognition model. Alternatively, a camera with thermal imaging capabilities can be used for image capture, enabling rapid detection of the human position based on the raw images captured by the camera. After the human position is detected from the raw images, the raw images are cropped based on the detected human position to obtain the human image, thereby narrowing the range of subsequent recognition of spatial motion trajectories and improving the speed of acquiring spatial motion trajectories.

[0053] In one embodiment, the camera device may also be a motion-sensing camera, such as a Kinect. The motion-sensing camera extracts characteristic parameters from the three-dimensional image of a human body part in the captured image. The characteristic parameters include the three-dimensional coordinates of the human body part and the spatial motion trajectory of the human body part. A human body image is generated based on the extracted characteristic parameters and transmitted to a terminal device, allowing the terminal device to capture the human body image.

[0054] S12. Identify the target part from the human body image and obtain the spatial motion trajectory of the target part.

[0055] In one embodiment, after acquiring a human body image, the image can be fed into a part recognition model trained to identify specific human body parts. After the part recognition model identifies a target part from the human body image, the target part is tracked to obtain the spatial motion trajectory of the target part. For example, if the human body image is fed into a hand recognition model used to identify a human hand, the hand recognition model identifies the hand from the human body image, and then the hand's motion trajectory is tracked to obtain the hand's spatial motion trajectory.

[0056] In one embodiment, the part recognition model can be obtained by using transfer learning to train parameters of a model used to recognize the target part. Alternatively, multiple traditional image recognition models, such as AlexNet, ResNet, or VGGNet, can be pre-trained using a large number of positive and negative samples to select the image recognition model with the highest target part detection accuracy and a preset accuracy rate, such as 95%, as the trained target part.

[0057] In one embodiment, the target part may be a hand, which may be set according to actual needs.

[0058] S13: Project the spatial motion trajectory onto a designated area of ​​the game interface, and obtain a formation trajectory corresponding to the spatial motion trajectory on the game interface.

[0059] For example, after obtaining the spatial motion trajectory of the human body image, the spatial motion trajectory is spatially transformed based on the three-dimensional coordinates of the target part, and the transformed spatial motion trajectory is aligned with the designated area of ​​the game interface to obtain the spatial positional relationship between the two. Based on this spatial positional relationship, the three-dimensional spatial motion trajectory recognition result is then converted into two-dimensional scattered points in the two-dimensional coordinate system of the designated area of ​​the game interface, thereby obtaining the formation trajectory corresponding to the spatial motion trajectory on the game interface.

[0060] In addition to the above methods, other conventional methods of converting three-dimensional coordinates into two-dimensional coordinates can also be used to project the spatial motion trajectory onto a designated area of ​​the game interface. The specific projection method selected is not limited here.

[0061] In one embodiment, the designated area is an area in the game interface for displaying virtual objects.

[0062] S14. Adjusting the formation of the object group in the game interface according to the formation trajectory, wherein the object group includes a plurality of virtual objects.

[0063] In one embodiment, after acquiring the formation trajectory, the terminal device may directly convert the image data formed by the formation trajectory into an operation instruction, so that the object grouping in the game interface adjusts its formation according to the operation instruction formed by the formation trajectory. Alternatively, the terminal device may match the formation trajectory with multiple pre-stored preset trajectories. If a preset trajectory among the multiple preset trajectories has a similarity with the formation trajectory that meets a preset threshold, the image data formed by the formation trajectory is converted into an operation instruction, so that the object grouping in the game interface adjusts its formation according to the operation instruction formed by the formation trajectory.

[0064] In one embodiment, after receiving an operation instruction, the terminal device determines the formation trajectory that forms the operation instruction as the formation of the object group. For example, if the formation trajectory is triangular, the formation of the object group is a triangular formation; if the formation trajectory is arc-shaped, the formation of the object group is an arc formation; if the formation trajectory is wavy, the formation of the object group is a wavy formation, etc.

[0065] By identifying the spatial motion trajectories of human body parts, the formation trajectories corresponding to the spatial motion trajectories on the game interface are obtained, so that the formation of the object grouping in the game interface can be adjusted according to the formation trajectories. In this way, when controlling the object grouping, there is no need to touch the virtual objects displayed on the game interface. In addition, while realizing the rapid switching of the formations of multiple virtual objects, the virtual objects are avoided from being blocked during the formation switching process, which reduces the obstacles that occur when the user observes multiple virtual objects and improves the user experience.

[0066] When a formation trajectory is obtained, if the formation of the object group in the game scene is adjusted directly based on the obtained formation trajectory, the formation of the object group may be adjusted due to user error, affecting the user experience. Therefore, in one embodiment, adjusting the formation of the object group in the game interface based on the formation trajectory includes: generating a corresponding formation control based on the formation trajectory; and in response to a selection operation on the formation control, adjusting the formation of the object group in the game interface based on the formation trajectory of the selected formation control.

[0067] In one embodiment, when a formation trajectory is obtained, a formation control corresponding to the shape formed by the formation trajectory is generated on the game interface. If the formation trajectory is a triangle, a triangle control is generated on the game interface; if the formation trajectory is an arc, an arc control is generated on the game interface. Figure 3 This makes it easy for players to select the corresponding formation controls to adjust the formation of the object grouping.

[0068] In one embodiment, the formation control can be displayed in a game scene with a highlight effect. For example, the game scene can set a circle with a brighter color than the background of the game scene around the formation control, or stroke the formation control to achieve a highlighted display of the formation control.

[0069] Alternatively, the formation control may be displayed in the game scene according to an animation effect, which may be a flickering effect or a shaking effect, for example, by flickering or shaking the generated formation control in the game scene.

[0070] To achieve a distinctive display of the formation control and effectively improve its visibility and promptness, in one embodiment, corresponding display effects can be applied based on the different formation control tools generated. For example, when the formation control is a triangular control, it is highlighted; when the formation control is an arc control, it is flashed; and when the formation control is a rectangular control, it is jittered.

[0071] In one embodiment, each time a formation track is obtained, a corresponding formation control is generated. Therefore, when a formation track is obtained multiple times, multiple formation controls can be obtained. When a player selects any of the multiple formation controls, such as a click operation, the formation control is determined to be the formation control selected by the player. Then, the formation of the object grouping in the game scene is adjusted according to the selected formation control. Figure 4 As shown, after the player clicks the triangle control on the left, the object grouping in the game scene switches from the square array on the left to the triangle array on the right. While switching the object grouping according to the formation control selected by the player, the clicked formation control can also be removed from the game scene.

[0072] By first obtaining the corresponding formation control according to the formation trajectory when obtaining the formation trajectory, and then adjusting the formation of the object grouping in the game scene according to the selected formation control after receiving the player's selection operation on the formation control, it avoids the situation where the formation of the object grouping is adjusted due to the player's misoperation, thereby improving the user experience.

[0073] Considering that selection of a formation control typically requires touching the game interface, which can obstruct the game interface to a certain extent, in one embodiment, the formation controls are numbered. Responding to the selection of a formation control includes detecting a current posture of the target part, and upon detecting that the current posture matches any of a plurality of preset postures, selecting a formation control with a corresponding number based on the preset posture that matches the current posture.

[0074] In one embodiment, when a formation control is generated, each formation control is assigned a corresponding number based on the order in which it was generated. For example, if the formation control is the first one generated, it is assigned the number "1"; if the formation control is the second one generated, it is assigned the number "2", and so on. Each formation control is assigned a unique number.

[0075] In one embodiment, the terminal device is preset with multiple preset postures and numbers corresponding to each preset posture. For example, if the preset posture is to extend one finger, the corresponding number is "1"; if the preset posture is to extend two fingers, the corresponding number is "2", and so on. The specific correspondence relationship can be set according to actual conditions. When identifying the target part from the human body image, the terminal device detects the current posture of the target part in real time. If the current posture is identified as the same as any of the multiple preset postures, it is detected whether there is a formation control with a number corresponding to the preset posture on the game interface. If it exists, the formation of the object grouping in the formation control game interface is selected; if it does not exist, the current posture is ignored.

[0076] By detecting the current posture of the target part, the corresponding numbered formation control is selected, so that there is no need to touch the game interface during the process of adjusting the formation of the object group, so that the game interface will not be blocked during the process of adjusting the formation of the object group, thereby improving the user experience.

[0077] In one embodiment, after obtaining the formation trajectory, adjusting the formation of the object group in the game interface includes: determining multiple target positions within a preset range of the formation trajectory; and determining the position of each virtual object in the object group according to the multiple target positions.

[0078] In one embodiment, after a player selects a formation control, the terminal device generates a display track of the formation control on the display area of ​​the object group in the game scene based on the selected formation control, and obtains the display track as the formation track of the formation control. If the selected formation control is a triangle control, a triangular formation track is generated on the display area of ​​the game object group. After obtaining the formation track, the formation track is used to determine multiple target positions on the display area of ​​the object group. The number of target positions is determined based on the number of virtual objects in the object group, that is, the number of target positions is the same as the number of virtual objects in the object group. After determining the multiple target positions, the positions of each virtual object in the object group are adjusted based on the target positions, thereby completing the formation adjustment of the object group.

[0079] In one embodiment, determining multiple target positions based on the formation trajectory includes: determining multiple target positions within a preset range of the formation trajectory. The preset range may be on the formation trajectory, on one side of the formation trajectory, etc. That is, determining multiple target positions within the preset range of the formation trajectory includes: determining multiple target positions on the formation trajectory, such as Figure 5 After determining multiple target positions, the multiple target positions are determined as the positions of each virtual object in the object group, so that each virtual object in the object group is moved to the target position, so that the formation of the adjusted object group is as follows Figure 6 Alternatively, multiple target locations can be determined on one side of the lineup trajectory, such as Figure 7After determining multiple target positions, the multiple target positions are determined as the positions of each virtual object in the object group, so that each virtual object in the object group is moved to the target position, so that the formation of the adjusted object group is as follows Figure 8 shown.

[0080] If multiple target positions are determined as the positions of each virtual object in the object group, in order to ensure that the virtual objects after the formation adjustment do not block each other and affect the player's observation of each virtual object, in one embodiment, the multiple target positions are determined based on the display area of ​​each virtual object in the game interface, and there is a preset interval greater than zero between adjacent target positions.

[0081] The area of ​​each target position is the same as the display area of ​​each virtual object in the game interface. When adjusting the formation of each virtual object, the virtual object is moved to a target position with the same area as its display area based on the virtual object's display area. The preset interval is the preset interval between the boundaries of two adjacent target positions. Because the preset interval between the boundaries of two adjacent target positions is greater than zero, there is no intersection between the two adjacent target positions. This ensures that the virtual objects in the object group will not obstruct each other when adjusted to the target positions, thereby facilitating the player's observation of the virtual objects and improving the user experience.

[0082] In one embodiment, a control device for object grouping is provided, such as Figure 9 Shown, including:

[0083] The human body image acquisition module 101 is used to acquire the human body image of the user.

[0084] The motion trajectory acquisition module 102 is used to identify the target part from the human body image and obtain the spatial motion trajectory of the target part.

[0085] The formation trajectory acquisition module 103 is used to project the spatial motion trajectory to a specified area of ​​the game interface and acquire the formation trajectory corresponding to the spatial motion trajectory on the game interface.

[0086] The object grouping control module 104 is configured to adjust the formation of the object grouping in the game interface according to the formation trajectory, wherein the object grouping includes a plurality of virtual objects.

[0087] In one embodiment, the object grouping control module 104 is specifically used to: generate a corresponding formation control according to the formation trajectory; respond to a selection operation on the formation control, and adjust the formation of the object grouping in the game interface according to the formation trajectory of the selected formation control.

[0088] In one embodiment, the formation control is associated with a number; the object grouping control module 104 is specifically used to: detect the current posture of the target part, and when it is detected that the current posture matches any preset posture of multiple preset postures, select the formation control with the corresponding number according to the preset posture matching the current posture.

[0089] In one embodiment, the object grouping control module 104 is specifically configured to: determine a plurality of target positions within a preset range of the formation trajectory; and determine the position of each virtual object in the object group according to the plurality of target positions.

[0090] In one embodiment, the object grouping control module 104 is specifically configured to: determine a plurality of target positions on a lineup trajectory; or determine a plurality of target positions on one side of a lineup trajectory.

[0091] In one embodiment, the object grouping control module 104 is specifically configured to determine the multiple target positions as the positions of the virtual objects in the object grouping.

[0092] In one embodiment, the plurality of target positions are determined according to the display area of ​​each virtual object in the game interface, and there is a preset interval greater than zero between adjacent target positions.

[0093] In one embodiment, a computer device is provided, such as Figure 10 As shown, the computer device includes a processor, memory, communication interface, input device and display screen connected via a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the control method for object grouping. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can implement the control method for object grouping. It will be understood by those skilled in the art that Figure 10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0094] In one embodiment, the object grouping control device provided by the present application can be implemented in the form of a computer program. The computer program can be used in Figure 10 The computer device is shown. The memory of the computer device may store various program modules that constitute the control device of the object grouping. The computer program composed of each program module enables the processor to execute the steps of the object grouping control method of each embodiment of the present application described in this specification.

[0095] In one embodiment, a storage medium is provided, the storage medium storing computer-executable instructions for causing a computer to execute the steps of the object grouping control method described above. The steps of the object grouping control method described herein may be the steps of the object grouping control method described in the various embodiments described above.

[0096] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications are also considered to be within the scope of protection of the present application.

[0097] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium, and when executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a ROM (Read-Only Memory), or a RAM (Random Access Memory).

Claims

1. A method for controlling object grouping, characterized in that: include: Obtaining the user's body image; Identify the target part from the human body image and obtain the spatial motion trajectory of the target part; According to the three-dimensional coordinates of the target part, the spatial motion trajectory is spatially transformed, the transformed spatial motion trajectory is aligned with the designated area of ​​the game interface to obtain the spatial position relationship between the two, and the spatial motion trajectory is projected onto the designated area of ​​the game interface based on the spatial position relationship to obtain the formation trajectory corresponding to the spatial motion trajectory on the game interface; Generate corresponding formation controls according to formation trajectory; In response to a selection operation on a formation control, adjusting a formation of an object group in a game interface according to a formation trajectory of the selected formation control, the object group including a plurality of virtual objects; Wherein, the formation control is associated with a number; The response to the selection operation of the formation control includes: The current posture of the target part is detected, and when it is detected that the current posture matches any one of a plurality of preset postures, a formation control with a corresponding number is selected according to the preset posture that matches the current posture.

2. The object grouping control method according to claim 1, characterized in that: Adjust the formation of object groups in the game interface, including: Determine multiple target positions within a preset range of the formation trajectory; The position of each virtual object in the object group is determined based on the multiple target positions.

3. The object grouping control method according to claim 2, characterized in that: Identify multiple target locations within the preset range of the formation trajectory, including: Identify multiple target locations on the lineup trajectory; or, Identify multiple target locations on one side of the lineup trajectory.

4. The object grouping control method according to claim 2, characterized in that: The determining the position of each virtual object in the object group according to the multiple target positions includes: A plurality of target positions are determined as positions of the respective virtual objects in the object group.

5. The object grouping control method according to claim 4, characterized in that: The multiple target positions are determined according to the display area of ​​each virtual object on the game interface, and there is a preset interval greater than zero between adjacent target positions.

6. A control device for object grouping, characterized in that: A control method for executing object grouping according to any one of claims 1 to 5, comprising: A human body image acquisition module, used to acquire the user's human body image; A motion trajectory acquisition module is used to identify the target part from the human body image and obtain the spatial motion trajectory of the target part; A formation trajectory acquisition module is used to project the spatial motion trajectory onto a specified area of ​​the game interface and obtain the formation trajectory corresponding to the spatial motion trajectory on the game interface; The object grouping control module is used to adjust the formation of the object grouping in the game interface according to the formation trajectory, and the object grouping includes multiple virtual objects.

7. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the object grouping control method according to any one of claims 1 to 5 when executing the computer program.

8. A storage medium, characterized in that: The storage medium stores a computer program, which is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the object grouping control method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Game scene and role control method based on fists of player

    CN101110102A

  • Control method and device of groupings in game

    CN110215702A