A method, apparatus, computer device, and storage medium for acquiring image data.

CN116017133BActive Publication Date: 2026-09-01BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211735194.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2026-09-01
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

[0003]当前的拍照功能在使用时,需要用户先控制虚拟对象到达虚拟场景中的某个地点,在到达该地点后,可以进一步调整相关的第一拍摄参数,在第一拍摄参数达到目标所需要的效果后,通过触发拍照按钮获得影像数据,这种拍摄方法操作较为复杂

Benefits of technology

[0030] For a description of the effects of the aforementioned image data acquisition device, computer equipment, and computer-readable storage medium, please refer to the description of the image data acquisition method above; it will not be repeated here.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116017133B_ABST
    Figure CN116017133B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, computer device, and storage medium for acquiring image data. The method includes: receiving first image data corresponding to a first virtual object, the first image data including first shooting parameters when the first image data was captured; responding to a first trigger operation, determining a shooting scene corresponding to the first image data based on the first shooting parameters; displaying the shooting scene and displaying a second virtual object in the shooting scene; and responding to a second trigger operation, acquiring second image data of the second virtual object in the shooting scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer application technology, and more specifically, to a method, apparatus, computer device, and storage medium for acquiring image data. Background Technology

[0002] Many games offer in-game photo features to meet users' needs for commemoration and interaction; others set up photo tasks and reward users for completing them. For example, in some games, users can control virtual characters to grow, learn, and travel in a virtual world; users can use the game's photo feature to record their virtual characters' growth, learning, and travels in the virtual world.

[0003] The current photo-taking function requires the user to first control a virtual object to reach a certain location in the virtual scene. After reaching the location, the user can further adjust the relevant initial shooting parameters. Once the initial shooting parameters achieve the desired effect, the user can obtain image data by triggering the photo-taking button. This shooting method is relatively complicated. Summary of the Invention

[0004] This disclosure provides at least one method, apparatus, computer device, and storage medium for acquiring image data.

[0005] In a first aspect, embodiments of this disclosure provide a method for acquiring image data, comprising: receiving first image data corresponding to a first virtual object, the first image data including first shooting parameters when the first image data was captured; responding to a first trigger operation, determining a shooting scene corresponding to the first image data based on the first shooting parameters; displaying the shooting scene and displaying a second virtual object in the shooting scene; and responding to a second trigger operation, acquiring second image data of the second virtual object in the shooting scene.

[0006] In this way, by obtaining the first shooting parameters of other users when taking photos, the shooting scene of other users when taking photos can be determined, thereby obtaining image data with the same or similar first shooting parameters as other users, so as to improve the shooting efficiency of image data and reduce the shooting complexity when taking photos.

[0007] In one optional implementation, the method further includes: displaying the first virtual object in the shooting scene; the step of acquiring second image data of the second virtual object in the shooting scene in response to a second trigger operation includes: acquiring second image data of the first virtual object and the second virtual object in the shooting scene in response to the second trigger operation.

[0008] In one optional implementation, the first shooting parameters include: object parameters of the first virtual object when shooting the first image data; the step of displaying the first virtual object in the shooting scene includes: displaying the first virtual object in the shooting scene based on the object parameters of the first virtual object in the first image data; the object parameters include at least one of the following: the position, posture, expression, action, and model information of the first virtual object in the shooting scene when shooting the first image data.

[0009] In this way, the object state of the first virtual object can be replicated in the shooting scene, thereby realizing asynchronous group photos of the first and second virtual objects, reducing the difficulty of shooting group photos.

[0010] In one optional implementation, the method further includes: displaying a location indicator in the shooting scene; and, in response to a third triggering operation, controlling the second virtual object to be displayed in the shooting scene at a position indicated by the location indicator.

[0011] In this way, location indicators can be used to quickly position and display the second virtual object in the shooting scene, improving the convenience of taking photos. These location indicators can also be used for multiple users taking asynchronous group photos to quickly achieve the target positioning, further reducing the difficulty of taking group photos. This enhances the controllability and interactivity of the multi-person asynchronous group photo process.

[0012] In one optional implementation, the first shooting parameters include: scene parameters and camera parameters when shooting the first image data; determining the shooting scene corresponding to the first image data based on the first shooting parameters includes: determining scene content corresponding to the shooting scene based on the scene parameters and the camera parameters; generating the shooting scene corresponding to the first image data based on the scene content, and controlling the second virtual object to enter the shooting scene.

[0013] In this way, the shooting scene of the first image data can be replicated using scene parameters and camera parameters, making it convenient for users to obtain second image data similar to the first image data in the replicated shooting scene.

[0014] In one optional implementation, prior to the second triggering operation, the method further includes: adjusting the object state of the second virtual object in the shooting scene in response to an object parameter adjustment operation of the second virtual object, and / or adjusting the shooting parameters of the virtual camera in response to a camera parameter adjustment operation of the virtual camera.

[0015] This allows users to further adjust the shooting parameters after replicating the content captured in the first image data using the first shooting parameters, thus enhancing the interactivity of the image data shooting process.

[0016] In one optional implementation, after acquiring the second image data of the second virtual object in the shooting scene, the method further includes: sharing the second image data in response to a sharing operation of the second image data; the second image data includes second shooting parameters associated with the second image data.

[0017] In this way, the second image data can be shared with other users, making it convenient for them to use the second shooting parameters included in the second image data to take images.

[0018] In an optional implementation, the method further includes: in response to a map viewing operation, displaying a scene map of the virtual scene, and displaying an indicator of shooting popularity corresponding to at least one virtual scene location in the scene map; and in response to triggering a target indicator in the indicator, controlling the second virtual object to move to the virtual scene location corresponding to the target indicator.

[0019] In this way, the system displays an indicator of the shooting heat level at the virtual scene location, allowing users to quickly control virtual objects based on this indicator.

[0020] Secondly, embodiments of this disclosure also provide an image data acquisition device, comprising: a receiving module, configured to receive first image data corresponding to a first virtual object, the first image data including first shooting parameters when the first image data was captured; a determining module, configured to respond to a first trigger operation and determine a shooting scene corresponding to the first image data based on the first shooting parameters; a display module, configured to display the shooting scene and display a second virtual object in the shooting scene; and a shooting module, configured to respond to a second trigger operation and acquire second image data of the second virtual object in the shooting scene.

[0021] In one possible implementation, the display module is further configured to: display the first virtual object in the shooting scene; and the shooting module, when acquiring second image data of the second virtual object in the shooting scene in response to the second trigger operation, is configured to: acquire second image data of the first virtual object and the second virtual object in the shooting scene in response to the second trigger operation.

[0022] In one possible implementation, the first shooting parameters include: object parameters of the first virtual object when shooting the first image data; the display module, when displaying the first virtual object in the shooting scene, is used to: display the first virtual object in the shooting scene based on the object parameters of the first virtual object in the first image data; the object parameters include at least one of the following: the position, posture, expression, action, and model information of the first virtual object in the shooting scene when shooting the first image data.

[0023] In one possible implementation, the display module is further configured to: display a location indicator in the shooting scene; and further configured to: respond to a third trigger operation, control the second virtual object to be displayed in the shooting scene at the position indicated by the location indicator.

[0024] In one possible implementation, the first shooting parameters include: scene parameters and camera parameters when shooting the first image data; the determining module, when determining the shooting scene corresponding to the first image data based on the first shooting parameters, is used to: determine the scene content corresponding to the shooting scene based on the scene parameters and the camera parameters; generate the shooting scene corresponding to the first image data based on the scene content, and control the second virtual object to enter the shooting scene.

[0025] In one possible implementation, it further includes: an adjustment module, configured to adjust the object state of the second virtual object in the shooting scene in response to an object parameter adjustment operation of the second virtual object before responding to the second trigger operation, and / or adjust the shooting parameters of the virtual camera in response to a camera parameter adjustment operation of the virtual camera.

[0026] In one possible implementation, it further includes: a sharing module, configured to share the second image data in response to a sharing operation on the second image data after acquiring the second image data of the second virtual object in the shooting scene; the second image data includes second shooting parameters associated with the second image data.

[0027] In one possible implementation, it further includes: a viewing module, configured to: in response to a map viewing operation, display a scene map of the virtual scene, and in the scene map, display an indicator of shooting heat corresponding to at least one virtual scene location; and in response to a triggering of a target indicator in the indicator, control the second virtual object to move to the virtual scene location corresponding to the target indicator.

[0028] Thirdly, an optional implementation of this disclosure also provides a computer device, a processor, and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the steps of the first aspect above, or any possible implementation of the first aspect, are performed.

[0029] Fourthly, an optional implementation of this disclosure also provides a computer-readable storage medium storing a computer program that, when run, performs the steps of the first aspect or any possible implementation of the first aspect.

[0030] For a description of the effects of the aforementioned image data acquisition device, computer equipment, and computer-readable storage medium, please refer to the description of the image data acquisition method above; it will not be repeated here.

[0031] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0032] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort.

[0033] Figure 1 A flowchart illustrating a method for acquiring image data provided in some embodiments of this disclosure is shown;

[0034] Figure 2 This illustration shows one specific example of the first image data and shooting scene provided in some embodiments of this disclosure;

[0035] Figure 3 This is a second specific example of a shooting scenario provided by some embodiments of this disclosure;

[0036] Figure 4 This is the third specific example of a shooting scenario provided by some embodiments of this disclosure;

[0037] Figure 5 A schematic diagram of an image data acquisition apparatus provided in some embodiments of this disclosure is shown;

[0038] Figure 6 A schematic diagram of a computer device provided in an embodiment of this disclosure is shown. Detailed Implementation

[0039] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown herein can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.

[0040] Research has revealed that currently, when users capture image data, such as images or videos, within a game's virtual scene, they first need to adjust shooting parameters at the virtual location. After adjusting these parameters, they trigger the shutter button to obtain the image data within the virtual scene. However, in reality, with the diversification of in-game photography features, the number of shooting parameters requiring adjustment is increasing. These include the virtual object's position, posture, expression, and movement; the virtual camera's position, focal length, and filters; and ambient lighting and weather conditions. Selecting the appropriate shooting parameters from this diverse range to obtain satisfactory photographic data is quite difficult, requiring users to make numerous trial-and-error adjustments to achieve the desired results, making the process rather complex.

[0041] In addition, when taking group photos of multiple people in the game, each user needs to adjust the state of the virtual object they control before taking the photo, making it difficult to maintain consistent operation and making it more challenging to take photos of multiple virtual objects together.

[0042] Based on the above research, this disclosure provides a method for acquiring image data. By acquiring the first shooting parameters of other users when taking photos, the shooting scene of other users when taking photos is replicated, thereby obtaining image data with shooting parameters similar to or the same as those of other users, thereby improving the shooting efficiency of image data and reducing the shooting complexity when taking photos.

[0043] In addition, the embodiments of this disclosure can also replicate the shooting scene of other users through the first shooting parameters. The shooting scene displays the first virtual object corresponding to other users. Image data including the first virtual object and the second virtual object can be captured in the shooting scene, realizing an asynchronous group photo method for different users in the same shooting scene, reducing the difficulty of taking group photos.

[0044] The shortcomings of the above solutions are the result of the inventor's practical experience and careful research. Therefore, the discovery process of the above problems and the solutions proposed in this disclosure below should be considered as the inventor's contribution to this disclosure.

[0045] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0046] In addition, before using the technical solutions disclosed in the following embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0047] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0048] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0049] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0050] To facilitate understanding of this embodiment, a method for acquiring image data disclosed in this disclosure will first be described in detail. The execution subject of the image data acquisition method provided in this disclosure is generally a computer device with a certain computing capability. This computer device may include, for example, a terminal device, a server, or other processing devices. The terminal device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, an in-vehicle device, a wearable device, etc. In some possible implementations, the image data acquisition method can be implemented by a processor calling computer-readable instructions stored in memory.

[0051] The interactive control method provided in this disclosure can be applied to any scenario where interactive control of virtual objects is required, such as games, virtual communities built upon virtual scenes, augmented reality (AR), virtual reality (VR), etc. The interactive control method provided in this disclosure is applicable to any game that needs to acquire image data within a virtual scene, as well as virtual communities, etc.

[0052] Taking the application of the interactive control method provided in this disclosure embodiment to a game as an example, the terminal device has an application corresponding to the game installed. When the application runs on the terminal device, the user can use the image data acquisition method provided in this disclosure embodiment to obtain images or videos in the game. It should be noted that the application can also run on a server, and the server completes the relevant data processing, with the terminal device acting as a display device to display the data sent by the server.

[0053] When the game runs on a terminal device, the terminal device's display interface can show the game's virtual scene. The virtual scene includes virtual objects; virtual objects can include, but are not limited to, virtual objects that can be controlled by the user, non-player characters (NPCs), and various other scene objects that constitute the virtual scene, such as vegetation, mountains, etc.; virtual objects can include, but are not limited to, at least one of virtual characters and virtual animals. Virtual objects that can be controlled by the user and non-player characters are set according to the game requirements, and there are no specific restrictions here.

[0054] The following describes the image data acquisition method provided in this disclosure by taking the terminal device as the execution subject and applying the image data acquisition method provided in this disclosure embodiment to a game as an example.

[0055] See Figure 1The diagram shows a flowchart of a method for acquiring image data according to an embodiment of this disclosure. The method includes steps S101 to S104, wherein:

[0056] S101: Receive the first image data corresponding to the first virtual object, wherein the first image data includes the first shooting parameters when the first image data was captured.

[0057] S102: In response to the first trigger operation, determine the shooting scene corresponding to the first image data based on the first shooting parameters;

[0058] S103: Display the shooting scene, and display the second virtual object in the shooting scene;

[0059] S104: In response to the second trigger operation, acquire the second image data of the second virtual object in the shooting scene.

[0060] This embodiment of the present disclosure receives first image data corresponding to a first virtual object, and determines a shooting scene corresponding to the first image data based on the first shooting parameters carried in the first image data. Then, in the shooting scene, it obtains second image data of a second virtual object, thereby replicating the shooting scene when other users shoot the first image data, so as to obtain image data with shooting parameters similar to or the same as those of other users, thereby improving the shooting efficiency of image data and reducing shooting complexity.

[0061] The following provides a detailed explanation of S101 to S104.

[0062] Regarding the above S101: In a specific implementation, in this embodiment of the disclosure, the terminal device corresponding to the first image data is the first terminal device, and the corresponding user is the first user; the terminal device corresponding to the second image data is the second terminal device, and the corresponding user is the second user.

[0063] After the first user takes the first image data using the first terminal device, the first image data can be shared with other users, such as the second user.

[0064] When the first terminal device shares the first image data with other users, it can do so within the game. For example, after capturing the first image data, a share button can be displayed on the first terminal device's interface. The first user can trigger the share button to share the first image data as a shared message to a public chat channel set up within the game. The second terminal device receives and displays this shared message through the public chat channel. This shared message can include a thumbnail or link to the first image data, or it can be the first image data itself. In response to the triggering operation of this shared message, the first image data is displayed on the second terminal device's display interface. Here, if the shared message is the first image data itself, since the first image data is displayed in the chat channel during sharing, if the first image data displayed in the chat channel is triggered, the first image data can be enlarged and displayed on the second terminal device's interface.

[0065] In addition, the first terminal device can also share information with the second terminal device via private message; the second terminal device receives and displays the shared information based on the private message function provided by the game, and displays the first image data on the display interface of the second terminal device in response to the triggering of the shared information.

[0066] In addition, the first terminal device can also publish the first image data to the information display page set in the game corresponding to the first user; the second user can use the second terminal device to view the information display page corresponding to the first user and view the first image data of the first user on the information display page.

[0067] In addition, the first terminal device can also share the first image data with a second user through a preset application. The second terminal device can view the first image data through the preset application. When displaying the first image data through the preset application, the second terminal device can also display a QR code or a triggerable link; the second user can use the second terminal device to scan the displayed QR code or click the corresponding trigger link to launch a game on the second terminal device, and the game will show the second user the shooting scene corresponding to the first image data.

[0068] Here, the preset application can be, for example, an application completely different from the game; the preset application and the game can each be configured with an interface for data interaction between the two, through which the game and the preset application can call each other and transfer data; in addition, the game can run within the preset application, in which case a button for entering the game can be provided in the preset application; the user can launch the game in the target preset application by triggering the button.

[0069] The first image data includes: images or videos; in addition, it also includes first shooting parameters when the first image data was captured.

[0070] The first shooting parameters include, for example, at least one of the following a1 to a3:

[0071] a1: Scene parameters when capturing the first image data.

[0072] Scene parameters describe the scene state of the corresponding virtual scene when the first image data was captured, such as the scene identifier of the virtual scene and the shooting location; they may also include ambient light and weather elements. Ambient light includes, for example, the direction, intensity, and color of the ambient light. Weather elements include, for example, the specific weather conditions in the virtual scene when the first image data was captured, such as rain, snow, or clouds.

[0073] Based on scene parameters, the virtual scene in which the first virtual object was located when the first image data was captured can be replicated to obtain the shooting scene. This enables the acquisition of second image data with the same or similar scene state as the first image data under the same shooting scene.

[0074] a2: Camera parameters when capturing the first image data.

[0075] Camera parameters are used to describe the relevant state of the virtual camera when capturing the first image data, such as the virtual camera position, focal length, and filters used.

[0076] Among them, camera positions include, for example, data such as the location, orientation, and movement trajectory of the virtual camera in the virtual scene.

[0077] a3: Object parameters of the first virtual object when capturing the first image data.

[0078] The object parameter is used to describe the object state of the first virtual object when capturing the first image data. The object parameter includes, for example, at least one of the following: the position, posture, expression, action, and model information of the first virtual object in the shooting scene.

[0079] The actions can be, for example, pre-set fixed interactive actions, such as greeting, falling, jumping, dancing, etc.; or they can be skill actions performed by the first virtual object when releasing a game skill. The model information includes, for example, at least one of the following: the 3D model corresponding to the first virtual object, and the appearance parameters of the appearance of the 3D model corresponding to the first virtual object, such as, but not limited to, parameters related to the clothing, accessories, pets, etc. of the first virtual object.

[0080] Based on object parameters, the state of the first virtual object when capturing the first image data can be replicated, and the first virtual object can be displayed in the shooting scene. At this time, when acquiring the second image data, for example, second image data including both the first and second virtual objects in the shooting scene can be acquired, thus realizing an asynchronous synergy between the first and second virtual objects. This asynchronous synergy means that: the first user first captures the first image data of the first virtual object in the game using a first terminal device; the second user then replicates the shooting scene and the state of the first virtual object when capturing the first image data based on the first shooting parameters carried in the first image data, and then acquires the second image data including both the first and second virtual objects in that shooting scene.

[0081] Furthermore, based on the object parameters, it can also be used to adjust the object state of the second virtual object to be consistent with the state of the first virtual object when capturing the first image data, thereby making the object state of the second virtual object in the captured second image data the same as or similar to the object state of the first virtual object when capturing the first image data.

[0082] For example, if the object parameters include the position and posture of the first virtual object, the second virtual object can be controlled to be in the same position and pose the same when the second image data is captured, based on the first image data; if the object parameters include actions and expressions, the second virtual object can be controlled to make the same actions and expressions as the first virtual object when the second image data is captured; if the object parameters include the model information of the first virtual object, the appearance or model parameters of the corresponding 3D model of the second virtual object can be adjusted to be consistent with the first virtual object when the second image data is captured.

[0083] For S102 and S103 above, the first triggering operation may vary depending on the actual application scenario.

[0084] In one example, when the second terminal device displays the first image data within the same game, it may also display a shooting button; clicking the shooting button is the first trigger operation.

[0085] In another example, when the second terminal device displays the first image data in a third-party application, it may also display a QR code or a triggerable link. The first triggering operation includes scanning the QR code or clicking the triggerable link.

[0086] In addition, in some embodiments, long-pressing, double-clicking, or other operations on the first image data can be directly regarded as the first triggering operation.

[0087] The second terminal device responds to the first trigger operation and determines the shooting scene corresponding to the first image data based on the first shooting parameters.

[0088] M1: The shooting scene corresponding to the first image data, such as a pre-constructed virtual scene within a game. For example, the game includes multiple virtual scenes corresponding to different areas; the shooting scene can be the virtual scene corresponding to any one of these areas.

[0089] In this case, the first shooting parameters may include, for example, scene parameters; the scene parameters may include, for example, the scene identifier and shooting position of the virtual scene in the game where the first virtual object is located when the first image data is captured. Based on the scene identifier and shooting position, the second terminal device can be controlled to display the same shooting scene. When displaying the same shooting scene, for example, based on the scene identifier and shooting position, the second virtual object corresponding to the second user can be controlled to automatically find its way to the corresponding shooting position in the corresponding virtual scene.

[0090] In addition, the first shooting parameters may include, for example, camera parameters. When displaying the shooting scene, the content in the displayed shooting scene can be adjusted directly according to the camera parameters.

[0091] The first shooting parameters may not include camera parameters. When displaying the shooting scene, the shooting scene can be displayed according to the current perspective of the virtual camera controlled by the second user. At this time, the content in the displayed shooting scene may be different from the content included in the first image data.

[0092] The first shooting parameters may include, for example, object parameters of the first virtual object, which can be used to replicate the state of the first virtual object when shooting the first image data in the displayed shooting scene, so that the second user can obtain the second image data of the first virtual object and the second virtual object taking a photo together in the shooting scene.

[0093] The object parameters corresponding to the first virtual object may not be included in the first shooting parameters. In this way, second image data under the same shooting scene can be obtained, so as to realize the reuse of the first shooting parameters included in the first image data.

[0094] like Figure 2 The example shown provides a specific example of first image data and second image data:

[0095] Figure 2 Figure a illustrates a specific example of displaying first image data in a second terminal device, which includes a first virtual object S1 and a shooting scene S2.

[0096] Figure 2Figure b shows the shooting scene S2 when the first shooting parameters do not include camera parameters, and in this shooting scene, a second virtual object S3 is also displayed; and the position of the second virtual object S3 in the shooting scene S2 is the same as the position of the first virtual object S1 in the shooting scene; it can be seen that... Figure 2 a and Figure 2 The shooting scene for both images (b and b) is the same, but the pose of the virtual camera is different, resulting in... Figure 2 a and Figure 2 The content captured by b is somewhat different.

[0097] Figure 2 Figure c illustrates the shooting scene S2 when the first shooting parameters include camera parameters and object parameters. Within this shooting scene, a first virtual object S1 and a second virtual object S3 are also displayed; wherein the object state of the first virtual object S1 and... Figure 2 The object state of the first virtual object S1 shown in Figure a is the same, and Figure 2 The shooting scene S1 shown in C is... Figure 2 The shooting angle of the shooting scene S1 shown in Figure a is the same.

[0098] M2: The shooting scene can also be a virtual scene recreated based on the first shooting parameters. This shooting scene can be created only when acquiring the second image data, and is canceled after the second image data is captured. In other words, the shooting scene is a virtual space replicated based on the first shooting parameters, identical to the content in the first image data. When other users capture other image data based on the first shooting parameters carried in the first image data, the corresponding shooting scene is recreated on the terminal device corresponding to those other users.

[0099] In this case, the first shooting parameters may include, for example, scene parameters and camera parameters. The scene parameters may include, for example, a scene identifier for the virtual scene; the camera parameters may include, for example, camera pose. Based on the scene identifier and camera parameters, the scene content corresponding to the first image data is determined. Then, based on the scene content, the shooting scene corresponding to the first image data is generated, and the second virtual object is controlled to enter the shooting scene.

[0100] Here, since virtual scenes in games typically include multiple virtual objects, such as virtual objects that constitute the scenery of the virtual scene, like mountains, grasslands, vegetation, and animals, these virtual objects all have corresponding 3D models. The scene content includes, for example, the 3D models of each virtual object projected into the first image data in the virtual scene corresponding to the game. Then, based on the 3D models of each virtual object projected into the first image data, 3D rendering is performed to obtain the captured scene.

[0101] In another embodiment of this disclosure, a location indicator may also be displayed in the shooting scene; in response to a third trigger operation, the second virtual object is controlled to stand and be displayed in the shooting scene according to the position indicated by the location indicator.

[0102] In practice, there can be at least one location indicator displayed in the shooting scene. Each indicator points to a location within the shooting scene. A third triggering operation may include, for example, clicking or swiping the location indicator.

[0103] The location indicated by the location marker could be, for example, specified by the first user in the shooting scene when capturing the first image data corresponding to the first virtual object. In this case, the first user could specify at least one location when capturing the first image data and include the location information corresponding to that location in the first image data. When the second user displays the shooting scene through the second terminal device, the location marker corresponding to the location specified by the first user can be displayed in the shooting scene. The second user can perform a second trigger operation for any of the location markers to control the second virtual character to stand and be displayed according to the position indicated by that location marker. In this way, the first user can specify the formation or positions of the group photo before taking the group photo, and then multiple users can successively transmit their captured image data to achieve a group photo with the specified positions.

[0104] In another possible implementation, the location indicated by the location indicator can also be determined based on a pre-generated position template. For example, when a first user takes first image data, they can select a target position template from multiple pre-generated position templates. This target position template includes at least two specified locations. The first user can select a location from the locations included in the target position template and control a first virtual object to stand at the selected location before taking first image data. Then, the target position template is carried in the first image data and transmitted to a second user, enabling the second user to select an unoccupied location based on the target position template and control a second virtual object to stand at the selected unoccupied location to obtain second image data that conforms to the position indicated by the target position template. In this way, a group photo at a specified position can also be achieved.

[0105] In the example above, after the second virtual object takes its position according to the location indicator, the second user can also adjust the camera parameters of the virtual camera, such as the distance of the lens and the filter used by the camera; the user can also adjust the object parameters of the second virtual object, such as the action, expression, appearance and clothing of the second virtual object, so as to meet the diverse needs of the user in the process of taking a group photo.

[0106] like Figure 3 In the example shown, such as Figure 3 As shown in Figure a, the shooting scene displayed on the second terminal device includes a first virtual object S1, a shooting scene S2, and two location indicator marks S4 and S5 are displayed in the shooting scene; the different location indicator marks indicate different locations in the shooting scene.

[0107] like Figure 3 As shown in b, in response to the third trigger operation on the position indicator S4, the second virtual object S3 takes a position according to the position indicated by the position indicator S4.

[0108] like Figure 3 As shown in Figure c, after the second virtual object takes its position according to the position indicator S4, the second user adjusts the actions and expressions of the second virtual object.

[0109] Regarding S104 above: After displaying the shooting scene and displaying the second virtual object in the shooting scene, the second image data of the second virtual object in the shooting scene can be obtained in response to the second trigger operation.

[0110] The second triggering operation may include, for example, triggering the camera button displayed on the display interface of the second terminal device; the second triggering operation may also be a voice command input by the user to capture second image data, such as voice input of "take a picture"; the second triggering operation may also be certain gestures made by the user using the second terminal device, such as shaking or swinging the second terminal device in a certain target direction, etc., which are not limited in this embodiment.

[0111] In another embodiment of this disclosure, before acquiring the second image data of the second virtual object in the shooting scene in response to the second triggering operation, the image data acquisition method provided in this embodiment of the disclosure may further include:

[0112] In response to an operation adjusting the object parameters of the second virtual object, the object state of the second virtual object in the shooting scene is adjusted. This allows the second virtual object's position, movement, posture, expression, and even model information such as the appearance of its equipment or the currently following pet to be modified in the shooting scene, based on the object parameter adjustment operation, before capturing the second image data. This enables the second user to adjust the second virtual object and meet more of the user's interactive needs.

[0113] like Figure 4 In the example shown, such as Figure 4As shown in Figure a, the shooting scene displayed on the second terminal device includes a second virtual object S3 and a shooting scene S2. After the second user triggers an operation to adjust the object parameters of the first virtual object S3, adjusting the position of the second virtual object in the shooting scene, as well as the actions and expressions of the second virtual object in the shooting scene, the shooting scene displayed on the second terminal device is as follows: Figure 4 As shown in Figure b, the expression, movement, and position of the second virtual object S3 have all changed.

[0114] Additionally, before capturing the second image data, the shooting parameters of the virtual camera can be adjusted in response to a camera parameter adjustment operation on the virtual camera. This allows for camera parameter adjustment operations on the virtual camera before capturing the second image data, enabling adjustments to the shooting angle, filters used, etc., for the second image data.

[0115] In another embodiment of this disclosure, after acquiring the second image data of the second virtual object in the shooting scene, the second image data can also be shared in response to a sharing operation of the second image data; the second image data includes second shooting parameters associated with the second image data.

[0116] In practice, the method of sharing the second image data is similar to the method of sharing the first image data by the first terminal device, and will not be described in detail here.

[0117] When the second image data includes a second virtual object, the second shooting parameters associated with the second image data may include at least one of the following: object parameters of the second virtual object when shooting the second image data, scene parameters of the shooting scene, and camera parameters of the virtual camera. The object parameters, scene parameters, and camera parameters of the virtual camera included in the above-mentioned second shooting parameters may be exactly the same, partially the same, or completely different from the object parameters, scene parameters, and camera parameters of the virtual camera included in the first shooting parameters, depending on the actual shooting situation of the second image data.

[0118] Furthermore, when the second image data includes both a first virtual object and a second virtual object, the second shooting parameters associated with the second image data may include, for example, at least one of: object parameters of the second virtual object when shooting the second image data, object parameters of the first virtual object in the second image data, scene parameters of the shooting scene, and camera parameters of the virtual camera. Here, the object parameters of the first virtual object in the second image data are the same as its object parameters in the first image data.

[0119] In another embodiment of this disclosure, the method for acquiring image data may further include, for example, displaying a scene map of a virtual scene in response to a map viewing operation, and displaying an indicator of shooting heat corresponding to at least one virtual scene location in the scene map;

[0120] In response to the triggering of the target indicator in the indicator, the second virtual object is controlled to move to the virtual scene position corresponding to the target indicator.

[0121] In specific implementations, in this embodiment of the disclosure, multiple popular locations for capturing image data can be pre-set in various virtual scenes of the game, and the shooting popularity indicators of each popular location can be marked on the scene map; or, during the game's operation, as various users trigger the operation of capturing image data in the virtual scene, the shooting locations can be statistically analyzed to obtain popular locations for capturing image data, and the shooting popularity of each popular location can be determined based on the shooting frequency of multiple users capturing image data at popular locations or the total number of shots, and the shooting popularity indicators of each popular location can be marked on the scene map.

[0122] When a user views a map using their terminal device, a virtual scene map is displayed, along with markers indicating popular locations—those corresponding to high shooting activity within the virtual scene. When the user triggers a target marker, a second virtual object moves to the location indicated by that marker, allowing the user to quickly reach these popular spots and capture images, thus facilitating image capture.

[0123] Here, the triggering of the target indicator in the indicator can be, for example, by clicking, swiping, or long-pressing the target indicator; in addition, it can also be a voice command input, such as "find the way to XX location", etc. The specific settings can be set according to actual needs, and this disclosed embodiment does not limit it.

[0124] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0125] Based on the same inventive concept, this disclosure also provides an image data acquisition device corresponding to the image data acquisition method. Since the principle of the device in this disclosure for solving the problem is similar to the image data acquisition method described above in this disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.

[0126] Reference Figure 5 The diagram shown is a schematic representation of an image data acquisition device provided in an embodiment of this disclosure. The device includes:

[0127] The receiving module 51 is used to receive the first image data corresponding to the first virtual object, wherein the first image data includes the first shooting parameters when the first image data is captured.

[0128] The determination module 52 is used to respond to the first trigger operation and determine the shooting scene corresponding to the first image data based on the first shooting parameters.

[0129] Display module 53 is used to display the shooting scene and display a second virtual object in the shooting scene;

[0130] The shooting module 54 is used to acquire second image data of the second virtual object in the shooting scene in response to the second trigger operation.

[0131] In one possible implementation, the display module 53 is further configured to: display the first virtual object in the shooting scene;

[0132] When the shooting module 54 acquires the second image data of the second virtual object in the shooting scene in response to the second trigger operation, it is used to:

[0133] In response to the second triggering operation, the second image data of the first virtual object and the second virtual object in the shooting scene are obtained.

[0134] In one possible implementation, the first shooting parameters include: object parameters of the first virtual object when shooting the first image data;

[0135] When the display module 53 displays the first virtual object in the shooting scene, it is used for:

[0136] Based on the object parameters of the first virtual object in the first image data, the first virtual object is displayed in the shooting scene;

[0137] The object parameters include at least one of the following: the position, posture, expression, action, and model information of the first virtual object in the shooting scene when the first image data is captured.

[0138] In one possible implementation, the display module 53 is further configured to: display a location indicator in the shooting scene;

[0139] It also includes: a response module 55, which, in response to a third trigger operation, controls the second virtual object to be displayed in the shooting scene at the position indicated by the position indicator.

[0140] In one possible implementation, the first shooting parameters include: scene parameters when shooting the first image data, and camera parameters;

[0141] The determining module 52, when determining the shooting scene corresponding to the first image data based on the first shooting parameters, is used for:

[0142] Based on the scene parameters and the camera parameters, determine the scene content corresponding to the shooting scene;

[0143] Based on the scene content, a shooting scene corresponding to the first image data is generated, and the second virtual object is controlled to enter the shooting scene.

[0144] In one possible implementation, it further includes: an adjustment module 56, configured to adjust the object state of the second virtual object in the shooting scene in response to an object parameter adjustment operation of the second virtual object before responding to the second trigger operation, and / or,

[0145] In response to a camera parameter adjustment operation on the virtual camera, the shooting parameters of the virtual camera are adjusted.

[0146] In one possible implementation, it further includes: a sharing module 57, configured to, after acquiring the second image data of the second virtual object in the shooting scene,

[0147] In response to a sharing operation of the second image data, the second image data is shared; the second image data includes second shooting parameters associated with the second image data.

[0148] In one possible implementation, it further includes: a viewing module 58, used for:

[0149] In response to a map viewing operation, a scene map of the virtual scene is displayed, and an indicator of the shooting heat corresponding to at least one virtual scene location is displayed in the scene map;

[0150] In response to a triggering of a target indicator in the indicator, the second virtual object is controlled to move to the virtual scene position corresponding to the target indicator.

[0151] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.

[0152] This disclosure also provides a computer device, such as... Figure 6 The diagram shown is a schematic representation of a computer device structure provided in an embodiment of this disclosure, including:

[0153] A processor 61 and a memory 62; the memory 62 stores machine-readable instructions executable by the processor 61, and the processor 61 executes the machine-readable instructions stored in the memory 62. When the machine-readable instructions are executed by the processor 61, the processor 61 performs the following steps:

[0154] Receive first image data corresponding to the first virtual object, wherein the first image data includes first shooting parameters when the first image data was captured;

[0155] In response to the first trigger operation, the shooting scene corresponding to the first image data is determined based on the first shooting parameters;

[0156] Display the shooting scene, and display the second virtual object in the shooting scene;

[0157] In response to a second triggering operation, the second image data of the second virtual object in the shooting scene is acquired.

[0158] The aforementioned memory 62 includes a main memory 621 and an external memory 622. The main memory 621, also known as internal memory, is used to temporarily store the computational data in the processor 61, as well as the data exchanged with external memory such as a hard disk. The processor 61 exchanges data with the external memory 622 through the main memory 621.

[0159] The specific execution process of the above instructions can be referred to the steps of the image data acquisition method described in the embodiments of this disclosure, and will not be repeated here.

[0160] This disclosure also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the image data acquisition method described in the above method embodiments. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0161] This disclosure also provides a computer program product carrying program code. The program code includes instructions that can be used to execute the steps of the image data acquisition method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.

[0162] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0163] If the image data acquisition method provided in this disclosure is applied to the field of augmented reality, by acquiring image information of target objects in the real environment, and then using various visual correlation algorithms to detect or identify the relevant features, states, and attributes of the target objects, an AR effect combining virtual and reality that matches the specific application can be obtained. For example, the target objects may involve human-related features such as faces, limbs, gestures, and actions, or object-related features such as markers and signs, or venues or locations such as sand tables, display areas, or display items. Visual correlation algorithms may involve visual positioning, SLAM, 3D reconstruction, image registration, background segmentation, key point extraction and tracking of objects, and object pose or depth detection. Specific applications may involve interactive scenarios related to real scenes or objects, such as guided tours, navigation, explanations, reconstruction, and virtual effect overlay displays, as well as human-related special effects processing, such as makeup enhancement, limb enhancement, special effects displays, and virtual model displays. Convolutional neural networks can be used to detect or identify the relevant features, states, and attributes of the target objects. The aforementioned convolutional neural network is a network model obtained by training a model based on a deep learning framework.

[0164] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the above-described devices and computer equipment can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0165] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0166] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0167] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0168] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.

Claims

1. A method for acquiring image data, characterized in that, include: Receive first image data corresponding to the first virtual object, wherein the first image data includes first shooting parameters when the first image data was captured; In response to the first trigger operation, the shooting scene corresponding to the first image data is determined based on the first shooting parameters; Display the shooting scene, and display the second virtual object in the shooting scene; In response to the second triggering operation, the second image data of the second virtual object in the shooting scene is acquired; The first virtual object is displayed in the shooting scene; The step of responding to the second trigger operation and acquiring the second image data of the second virtual object in the shooting scene includes: responding to the second trigger operation and acquiring the second image data of the first virtual object and the second virtual object in the shooting scene; The method further includes: adjusting the object state of the second virtual object to be consistent with the state of the first virtual object when the first image data was captured, based on the object parameters of the first virtual object in the first image data, wherein the object parameters include at least one of the following: the posture, expression, action and model information of the first virtual object in the shooting scene.

2. The method according to claim 1, characterized in that, The first shooting parameters include: the object parameters of the first virtual object when shooting the first image data; Displaying the first virtual object in the shooting scene includes: Based on the object parameters of the first virtual object in the first image data, the first virtual object is displayed in the shooting scene.

3. The method according to claim 1, characterized in that, The method further includes: A location indicator is displayed in the shooting scene; In response to a third trigger operation, the second virtual object is controlled to be displayed in the shooting scene at the position indicated by the position indicator.

4. The method according to claim 1, characterized in that, The first shooting parameters include: scene parameters and camera parameters when shooting the first image data; The step of determining the shooting scene corresponding to the first image data based on the first shooting parameters includes: Based on the scene parameters and the camera parameters, determine the scene content corresponding to the shooting scene; Based on the scene content, a shooting scene corresponding to the first image data is generated, and the second virtual object is controlled to enter the shooting scene.

5. The method according to any one of claims 1-4, characterized in that, The method further includes responding before the second triggering operation: In response to an operation adjusting the object parameters of the second virtual object, the object state of the second virtual object in the shooting scene is adjusted, and / or, In response to a camera parameter adjustment operation on the virtual camera, the shooting parameters of the virtual camera are adjusted.

6. The method according to claim 1, characterized in that, After acquiring the second image data of the second virtual object in the shooting scene, the method further includes: In response to a sharing operation of the second image data, the second image data is shared; the second image data includes second shooting parameters associated with the second image data.

7. The method according to claim 1, characterized in that, The method further includes: In response to a map viewing operation, a scene map of the virtual scene is displayed, and an indicator of the shooting heat corresponding to at least one virtual scene location is displayed in the scene map; In response to a triggering of a target indicator in the indicator, the second virtual object is controlled to move to the virtual scene position corresponding to the target indicator.

8. An image data acquisition device, characterized in that, include: A receiving module is used to receive first image data corresponding to a first virtual object, wherein the first image data includes first shooting parameters when the first image data is captured. The determination module is used to respond to the first trigger operation and determine the shooting scene corresponding to the first image data based on the first shooting parameters. The display module is used to display the shooting scene and display a second virtual object in the shooting scene; The shooting module is used to acquire second image data of the second virtual object in the shooting scene in response to the second trigger operation; The display module is also used to display the first virtual object in the shooting scene; When the shooting module acquires the second image data of the second virtual object in the shooting scene in response to the second triggering operation, the shooting module is configured to: acquire the second image data of the first virtual object and the second virtual object in the shooting scene in response to the second triggering operation; The device further includes an adjustment module, which is used to adjust the object state of the second virtual object to be consistent with the state of the first virtual object when the first image data was captured, based on the object parameters of the first virtual object in the first image data. The object parameters include at least one of the following: the posture, expression, action and model information of the first virtual object in the shooting scene.

9. A computer device, characterized in that, include: The processor and the memory, wherein the memory stores machine-readable instructions executable by the processor, the processor is configured to execute the machine-readable instructions stored in the memory, and when the machine-readable instructions are executed by the processor, the processor performs the steps of the image data acquisition method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a computer device, performs the steps of the image data acquisition method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Shooting method and device, electronic equipment and storage medium

    CN111355889A

  • Game data processing method and device, storage medium and electronic device

    CN112138381A