A parameter configuration method, apparatus, device, storage medium, and product

By acquiring the shooting parameters of the target camera device and the reference dataset, the parameters of the target virtual scene are determined, which solves the problem of low efficiency in virtual scene parameter configuration and achieves efficient and accurate virtual scene parameter configuration, ensuring that the depth of field effect of virtual content is consistent with that of real content.

CN116546304BActive Publication Date: 2025-11-07TENCENT DIGITAL (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210525942.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2025-11-07
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

During video shooting, the configuration efficiency of virtual scene parameters is low, and it is difficult to quickly match the shooting parameters of different camera devices with the virtual scene parameters.

Method used

By acquiring the shooting parameters of the target camera device and the reference dataset, and using the correspondence in the reference dataset, the target virtual scene parameters corresponding to the virtual content that the target camera device needs to shoot are determined, and the virtual content is displayed according to the target virtual scene parameters, so that the target camera device can shoot the virtual content.

Benefits of technology

It improves the efficiency and accuracy of configuring virtual scene parameters, ensuring that the depth-of-field effect of virtual content is consistent with that of real content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116546304B_ABST
    Figure CN116546304B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a parameter configuration method, device, equipment, storage medium and product. The method comprises: obtaining a shooting parameter of a target camera device and a reference data set; determining a target virtual scene parameter corresponding to virtual content to be shot by the target camera device according to the shooting parameter of the target camera device and the reference data set; displaying the virtual content according to the target virtual scene parameter; and enabling the target camera device to shoot the virtual content. It can be seen that the target virtual scene parameter corresponding to the virtual content to be shot by the target camera device is determined by using the reference data set, which can improve the configuration efficiency and accuracy of the virtual scene parameter.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a parameter configuration method and device, equipment, storage medium and product. BACKGROUND

[0002] With the progress of scientific research, virtual production technology is widely used in video shooting, and film production, advertisement shooting and the like. The core of virtual production technology is to combine real scene with virtual scene (such as the combination of the depth of field effect of real scene and the depth of field effect of virtual scene), so as to make the video or film shot more real. Since the shooting parameters of the camera equipment used are different when shooting different videos, the parameters of each virtual scene are also mostly different. It is found in practice that the parameters of virtual scene (such as the shooting parameters of virtual camera equipment) are usually obtained by adjusting according to the actual shooting situation by the production personnel, and the configuration efficiency is low. SUMMARY

[0003] The embodiments of the present application provide a parameter configuration method, device, equipment, storage medium and product, which can improve the configuration efficiency of virtual scene parameters.

[0004] In one aspect, the embodiments of the present application provide a parameter configuration method, comprising:

[0005] obtaining the shooting parameters of the target camera equipment; and

[0006] obtaining a reference data set, the reference data set comprising the corresponding relationship between the reference shooting parameters and the virtual scene parameters;

[0007] determining the target virtual scene parameters corresponding to the virtual content to be shot by the target camera equipment according to the shooting parameters of the target camera equipment and the reference data set;

[0008] displaying the virtual content according to the target virtual scene parameters, so that the target camera equipment shoots the virtual content.

[0009] In one aspect, the embodiments of the present application provide a parameter configuration device, comprising:

[0010] an obtaining unit, configured to obtain the shooting parameters of the target camera equipment, and obtain a reference data set, the reference data set comprising the corresponding relationship between the reference shooting parameters and the virtual scene parameters;

[0011] a processing unit, configured to determine the target virtual scene parameters corresponding to the virtual content to be shot by the target camera equipment according to the shooting parameters of the target camera equipment and the reference data set;

[0012] a display unit, configured to display the virtual content according to the target virtual scene parameters, so that the target camera equipment shoots the virtual content.

[0013] In an implementation, the reference shooting parameter is used to describe a shooting parameter of a reference camera device, and the virtual scene parameter is used to describe a shooting parameter of a virtual camera device; the processing unit is further configured to:

[0014] configure the reference dataset according to the shooting parameter of the reference camera device and the shooting parameter of the virtual camera device.

[0015] In an implementation, the reference camera device includes a plurality of groups of shooting parameters; the configuration of the reference dataset includes:

[0016] obtaining a first group of shooting parameters of the reference camera device, and obtaining a real image of a reference object shot by the reference camera device based on the first group of shooting parameters; the first group of shooting parameters is any one of the plurality of groups of shooting parameters;

[0017] adjusting a virtual object corresponding to the reference object by adjusting the virtual scene parameter;

[0018] obtaining a virtual image of the virtual object shot by the reference camera device based on the first group of shooting parameters;

[0019] comparing the virtual image and the real image, and recording a target virtual scene parameter corresponding to a case where the virtual image matches the real image;

[0020] establishing a corresponding relationship between the first group of shooting parameters and the target virtual scene parameter, and adding the corresponding relationship to the reference dataset.

[0021] In an implementation, the reference dataset includes M*N*P groups of shooting parameters, each group of shooting parameters including one focal length, one aperture value and one focus value, M is a number of candidate focal lengths, N is a number of candidate aperture values, and P is a number of candidate focus values, M, N and P are positive integers; the first group of shooting parameters includes an i-th candidate focal length, a j-th candidate aperture value and a k-th candidate focus value, i is a positive integer less than M, j is a positive integer less than N, and k is a positive integer less than P;

[0022] The processing unit is configured to adjust a virtual object corresponding to the reference object by adjusting the virtual scene parameter, and specifically configured to:

[0023] determining the i-th candidate focal length as a virtual focal length of the virtual camera device, and configuring a virtual aperture value and a virtual focus value of the virtual camera device.

[0024] In an implementation, the processing unit is configured to determine a target virtual scene parameter corresponding to a virtual content to be shot by a target camera device according to the shooting parameter of the target camera device and the reference dataset, and specifically configured to:

[0025] According to a relationship between the shooting parameter of the target camera device and the shooting parameter of the reference camera device, and a corresponding relationship between the shooting parameter of the reference camera device and the shooting parameter of the virtual camera device, a target virtual scene parameter corresponding to the virtual content to be shot by the target camera device is determined.

[0026] In an embodiment, the reference data set includes M*N*P groups of shooting parameters, each group of shooting parameters including one focal length, one aperture value, and one focus value, M is the number of candidate focal lengths, N is the number of candidate aperture values, and P is the number of candidate focus values, M, N, and P are all positive integers; the shooting parameter of the target camera device includes an actual focal length, an actual aperture value, and an actual focus value;

[0027] The processing unit is configured to determine the target virtual scene parameter corresponding to the virtual content to be shot by the target camera device according to the shooting parameter of the target camera device and the reference data set, and specifically configured to:

[0028] determine the scene focal length of the target virtual scene corresponding to the virtual content to be shot by the target camera device as the actual focal length;

[0029] if the actual focal length is consistent with the i-th candidate focal length of the reference camera device, determine the scene aperture value and the scene focus value of the target virtual scene according to a relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i-th candidate focal length;

[0030] if the actual focal length is between the i-th candidate focal length and the i+1-th candidate focal length of the reference camera device, determine the scene aperture value and the scene focus value of the target virtual scene according to a relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i-th candidate focal length, and a relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i+1-th candidate focal length;

[0031] wherein i is a positive integer less than M.

[0032] In an embodiment, the processing unit is configured to determine the scene aperture value and the scene focus value of the target virtual scene according to a relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i-th candidate focal length, and specifically configured to:

[0033] if the actual aperture value is consistent with the j-th candidate aperture value associated with the i-th candidate focal length, determine the scene aperture value and the scene focus value of the target virtual scene according to a relationship between the actual focus value and the candidate focus value associated with the j-th candidate aperture value;

[0034] If the actual aperture value is between the jth and the (j+1)th aperture values associated with the ith candidate focal length, the scene aperture value and the scene focal point value of the target virtual scene are determined according to the relationship between the actual focal point value and the candidate focal point value associated with the jth candidate aperture value, and the relationship between the actual focal point value and the candidate focal point value associated with the (j+1)th candidate aperture value.

[0035] wherein j is a positive integer less than N.

[0036] In an embodiment, the processing unit is configured to determine the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual focal point value and the candidate focal point value associated with the jth candidate aperture value, and specifically configured to:

[0037] If the actual focal point value is consistent with the kth focal point value associated with the jth candidate aperture value, the virtual aperture value and the virtual focal point value corresponding to the kth focal point value are determined as the scene aperture value and the scene focal point value of the target virtual scene, respectively.

[0038] If the actual focal point value is between the kth and the (k+1)th focal point values associated with the jth candidate aperture value, the scene aperture value and the scene focal point value of the target virtual scene are calculated according to the virtual aperture value and the virtual focal point value corresponding to the kth focal point value, and the virtual aperture value and the virtual focal point value corresponding to the (k+1)th focal point value.

[0039] wherein k is a positive integer less than P.

[0040] In an embodiment, the processing unit is configured to determine the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual focal point value and the candidate focal point value associated with the jth candidate aperture value, and the relationship between the actual focal point value and the candidate focal point value associated with the (j+1)th candidate aperture value, and specifically configured to:

[0041] If the actual focal point value is consistent with the kth focal point value associated with the jth candidate aperture value, the virtual aperture value and the virtual focal point value corresponding to the kth focal point value associated with the jth candidate aperture value, and the virtual aperture value and the virtual focal point value corresponding to the kth focal point value associated with the (j+1)th candidate aperture value are calculated to determine the scene aperture value and the scene focal point value of the target virtual scene.

[0042] If the actual focal value is between the kth and the (k+1)th focal values associated with the jth candidate aperture value of the ith candidate focal length, the scene aperture value and the scene focal value of the target virtual scene are calculated according to the virtual aperture value and the virtual focal value corresponding to the kth and the (k+1)th focal values associated with the jth candidate aperture value of the ith candidate focal length, and the virtual aperture value and the virtual focal value corresponding to the kth and the (k+1)th focal values associated with the jth candidate aperture value of the (i+1)th candidate focal length.

[0043] wherein k is a positive integer less than P.

[0044] In an embodiment, the processing unit is configured to determine the scene aperture value and the scene focal value of the target virtual scene according to the relationship between the actual aperture value and the actual focal value, the candidate aperture value and the candidate focal value associated with the ith candidate focal length, and the relationship between the candidate aperture value and the candidate focal value associated with the (i+1)th candidate focal length, and specifically configured to:

[0045] If the actual aperture value is consistent with the jth candidate aperture value associated with the ith candidate focal length, the scene aperture value and the scene focal value of the target virtual scene are determined according to the relationship between the actual focal value and the candidate focal value associated with the jth candidate aperture value associated with the ith candidate focal length, and the relationship between the candidate focal value associated with the jth candidate aperture value associated with the (i+1)th candidate focal length.

[0046] If the actual aperture value is between the jth and the (j+1)th candidate aperture value associated with the ith candidate focal length, the scene aperture value and the scene focal value of the target virtual scene are determined according to the relationship between the actual focal value and the candidate focal value associated with the jth and the (j+1)th candidate aperture value associated with the ith candidate focal length, and the relationship between the candidate focal value associated with the jth and the (j+1)th candidate aperture value associated with the (i+1)th candidate focal length.

[0047] wherein j is a positive integer less than N.

[0048] In an embodiment, the processing unit is configured to determine the scene aperture value and the scene focal value of the target virtual scene according to the relationship between the actual focal value and the candidate focal value associated with the jth candidate aperture value associated with the ith candidate focal length, and the relationship between the candidate focal value associated with the jth candidate aperture value associated with the (i+1)th candidate focal length, and specifically configured to:

[0049] if the actual focal point value is consistent with the kth candidate focal point value associated with the jth candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focal point value of the target virtual scene are calculated according to the virtual aperture value and the virtual focal point value corresponding to the kth candidate focal point value associated with the jth candidate aperture value associated with the ith candidate focal length, and the virtual aperture value and the virtual focal point value corresponding to the kth candidate focal point value associated with the jth candidate aperture value associated with the ith+1 candidate focal length;

[0050] if the actual focal point value is between the kth and the k+1th candidate focal point value associated with the jth candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focal point value of the target virtual scene are calculated according to the virtual aperture value and the virtual focal point value corresponding to the kth and the k+1th candidate focal point value associated with the jth candidate aperture value associated with the ith candidate focal length, and the virtual aperture value and the virtual focal point value corresponding to the kth and the k+1th candidate focal point value associated with the jth candidate aperture value associated with the ith+1 candidate focal length;

[0051] wherein k is a positive integer less than P.

[0052] In an embodiment, the processing unit is configured to determine the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual focal point value and the candidate focal point value associated with the jth and the j+1th candidate aperture value associated with the ith candidate focal length, and the relationship between the actual focal point value and the candidate focal point value associated with the jth and the j+1th candidate aperture value associated with the ith+1 candidate focal length, and specifically configured to:

[0053] if the actual focal point value is consistent with the kth candidate focal point value associated with the jth candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focal point value of the target virtual scene are calculated according to the virtual aperture value and the virtual focal point value corresponding to the kth candidate focal point value associated with the jth and the j+1th candidate aperture value associated with the ith candidate focal length, and the virtual aperture value and the virtual focal point value corresponding to the kth candidate focal point value associated with the jth and the j+1th candidate aperture value associated with the ith+1 candidate focal length;

[0054] If the actual focus value is between the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, the scene aperture value and the scene focal length of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth and the j+1th candidate aperture value associated with the ith candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth and the j+1th candidate aperture value associated with the ith+1 candidate focal length.

[0055] wherein k is a positive integer less than P.

[0056] Correspondingly, the present application provides a kind of intelligent device, and the device comprises:

[0057] processor, for loading and executing computer program;

[0058] Computer readable storage medium, the computer readable storage medium has computer program, the computer program is executed by processor, realizes the above-mentioned parameter configuration method.

[0059] Correspondingly, the present application provides a kind of computer readable storage medium, and computer readable storage medium stores computer program, the computer program is suitable for being loaded by processor and executes the above-mentioned parameter configuration method.

[0060] Correspondingly, the present application provides a kind of computer program product or computer program, and the computer program product or computer program includes computer instruction, and the computer instruction is stored in computer readable storage medium.The computer equipment of processor reads this computer instruction from computer readable storage medium, and processor executes this computer instruction, so that the computer equipment executes the above-mentioned parameter configuration method.

[0061] In the embodiment of the present application, the shooting parameters of the target camera device and the reference data set are obtained, the target virtual scene parameters corresponding to the virtual content to be shot by the target camera device are determined according to the shooting parameters of the target camera device and the reference data set, the virtual content is displayed according to the target virtual scene parameters, and the target camera device shoots the virtual content. It can be seen that the target virtual scene parameters corresponding to the virtual content to be shot by the target camera device are determined by referring to the reference data set, which can improve the configuration efficiency and accuracy of the virtual scene parameters. BRIEF DESCRIPTION OF DRAWINGS

[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description only represent some embodiments of the present application, and all other drawings obtained by those of ordinary skill in the art without creative effort based on these drawings also belong to the protection scope of the present application.

[0063] Figure 1 A virtual production scene diagram provided for the embodiments of the present application;

[0064] Figure 2 A parameter configuration method provided for the embodiments of the present application;

[0065] Figure 3 Another parameter configuration method provided for the embodiments of the present application;

[0066] Figure 4a A real image shooting schematic diagram provided for the embodiments of the present application;

[0067] Figure 4b A virtual image shooting schematic diagram provided for the embodiments of the present application;

[0068] Figure 5 A parameter configuration device structure schematic diagram provided for the embodiments of the present application;

[0069] Figure 6 A computer device structure schematic diagram provided for the embodiments of the present application. DETAILED DESCRIPTION

[0070] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments only represent some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort also belong to the protection scope of the present application.

[0071] The embodiments of the present application relate to artificial intelligence, and the related terms and concepts of artificial intelligence will be briefly introduced as follows:

[0072] Artificial Intelligence (AI) is the use of digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology of computer science, which attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines, so that the machine has the functions of perception, reasoning and decision-making.

[0073] AI technology is a comprehensive discipline, involving a wide range of fields, both hardware and software technologies. Artificial intelligence basic technology generally includes technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, large application processing technology, operation / interaction system, mechatronics, etc. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology and machine learning / deep learning, etc.

[0074] Machine learning is a multi-disciplinary subject, involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It is a subject that studies how computers simulate or implement human learning behavior to acquire new knowledge or skills, and reorganize existing knowledge structure to continuously improve their performance. Machine learning is the core of AI and the fundamental approach to making computers intelligent, and its applications are widespread in various fields of artificial intelligence. Machine learning / deep learning usually includes artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and example-based learning.

[0075] Deep learning: the concept of deep learning comes from the research of artificial neural networks. Multi-layer perceptron with multiple hidden layers is a deep learning structure. Deep learning forms more abstract high-level representation attributes or features by combining low-level features to discover distributed feature representation of data. The embodiments of the present application mainly involve training an initial model by referring to a data set to obtain a virtual scene parameter prediction model; the virtual scene parameter prediction model can be used to analyze the shooting parameters of the target camera device and output the target virtual scene parameters corresponding to the virtual content to be shot by the target camera device.

[0076] The parameter configuration scheme proposed in the embodiments of the present application will be briefly introduced below. The parameter configuration scheme can improve the parameter configuration efficiency and accuracy. Please refer to Figure 1 , Figure 1 A scene graph for virtual production provided by the embodiments of the present application. As shown in Figure 1As shown, the scenario mainly includes a camera device 101 and a display device 102. The parameter configuration method provided in this application embodiment can be executed by the server 103. The camera device 101 may include, but is not limited to, smart devices with shooting functions such as smartphones (e.g., Android phones, iOS phones, etc.), tablets, cameras, and camcorders; this application embodiment does not limit this. The display device 102 may be a smart device with image rendering and display functions such as an LED screen.

[0077] It should be noted that, Figure 1 The camera device 101 and the display device 102 can be directly or indirectly connected via wired or wireless communication, and this application does not impose any limitations on this. The number of camera devices and display devices is merely illustrative and does not constitute an actual limitation of this application; for example, Figure 1 The scenario shown may also include a camera device 103 or a display device 104, etc. Optionally, the scenario may also include a server, which can determine virtual scene parameters based on the shooting parameters of the camera device 101 and send the virtual scene parameters to the display device 102 so that the display device 102 displays virtual content according to the virtual scene parameters. The server may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. This application embodiment does not limit this.

[0078] The general principle of the parameter configuration scheme is as follows:

[0079] (1) The display device 102 acquires the shooting parameters of the camera device 101. In one embodiment, the shooting parameters include focal length, aperture value and focus value; wherein, the focus value refers to the distance between the camera device 101 and the subject being photographed by the device.

[0080] (2) The display device 102 acquires a reference dataset, which includes the correspondence between reference shooting parameters and virtual scene parameters. The reference shooting parameters describe the shooting parameters of the reference camera device (i.e., the real camera device used when configuring the reference dataset), and the virtual scene parameters describe the shooting parameters of the virtual camera device. It should be noted that by adjusting the shooting parameters of the virtual camera device, the virtual scene can be adjusted (e.g., to achieve a depth-of-field effect).

[0081] In an embodiment, the reference camera device comprises a plurality of sets of shooting parameters, and the manner of determining the correspondence between the reference shooting parameters and the virtual scene parameters is: making the reference camera device shoot the reference objects to obtain real images according to a first set of reference shooting parameters, adjusting the virtual objects corresponding to the reference objects by adjusting the virtual scene parameters, and making the reference camera device shoot the virtual objects to obtain virtual images according to the first set of reference shooting parameters, when the real images and the virtual images match (for example, the depth-of-field effect of the virtual images matches the depth-of-field effect of the real images), recording the virtual scene parameters, and establishing the correspondence between the virtual scene parameters and the first set of reference shooting parameters, wherein the first set of reference shooting parameters can be any one of the plurality of sets of shooting parameters.

[0082] In an embodiment, N reference objects are arranged in a near-to-far manner, N being an integer greater than 1; the N reference objects are located on the same straight line and have equal distances between each other; and the reference camera device shoots the N reference objects to obtain real images according to a first set of reference shooting parameters. It should be noted that when the real images are collected, the distance between the reference camera device and the closest reference object is the same as the distance between each reference object, and the reference camera device and the N reference objects are located on the same straight line. After obtaining the real images, x reference objects having a distance greater than a distance threshold from the reference camera device are removed from the N reference objects, and the removed x reference objects are simulated in the display device (that is, x virtual objects are displayed in the display device, the x virtual objects and the N-x reference objects not removed are located on the same straight line, and the display effect of the x virtual objects can be adjusted by the virtual scene parameters), and the reference camera device (at the same position as when the real images are shot) shoots the N-x reference objects remaining and the x virtual objects simulated in the display device to obtain virtual images according to the first set of reference shooting parameters. When the real images and the virtual images match, the virtual scene parameters are recorded, and the correspondence between the virtual scene parameters and the first set of reference shooting parameters is established.

[0083] For example, 10 reference objects (e.g., 10 balls) are arranged in a near-to-far manner, and the 10 reference objects are located on the same straight line and have equal distances (e.g., 2 meters) between each other. The reference camera device captures the 10 reference objects to obtain a real image according to the first set of reference shooting parameters. It should be noted that when the real image is captured, if the distance between each reference object is 2 meters, the distance between the reference camera device and the nearest reference object is also 2 meters, and the reference camera device is located on the same straight line as the 10 reference objects. After obtaining the real image, the reference objects with a distance greater than a distance threshold from the reference camera device are removed (e.g., the 5 reference objects farthest from the reference camera device are removed), and the removed 5 reference objects are simulated in the display device, that is, 5 virtual objects are displayed in the display device. The 5 virtual objects are located on the same straight line as the 5 reference objects that are not removed, and the display effect of the 5 virtual objects can be adjusted by the virtual scene parameters. The reference camera device (at the same position as when the real image is captured) captures the remaining 5 reference objects and the 5 virtual objects simulated in the display device to obtain a virtual image according to the first set of reference shooting parameters. When the real image and the virtual image match (e.g., the depth-of-field effect of the virtual image matches the depth-of-field effect of the real image), the virtual scene parameters are recorded, and a corresponding relationship between the virtual scene parameters and the first set of reference shooting parameters is established.

[0084] (3) The display device 102 determines the target virtual scene parameters corresponding to the virtual content to be captured by the camera device 101 according to the shooting parameters of the camera device 101 and the reference data set. Specifically, the display device 102 determines the target virtual scene parameters corresponding to the virtual content to be captured by the camera device 101 according to the relationship between the shooting parameters of the camera device 101 and the shooting parameters of the reference camera device, and the corresponding relationship between the shooting parameters of the reference camera device and the shooting parameters of the virtual camera device.

[0085] (4) The display device 102 displays the virtual content according to the target virtual scene parameters, so that the camera device 101 captures the virtual content.

[0086] In the embodiments of the present application, the shooting parameters of the target camera device and the reference data set are obtained, the target virtual scene parameters corresponding to the virtual content to be captured by the target camera device are determined according to the shooting parameters of the target camera device and the reference data set, the virtual content is displayed according to the target virtual scene parameters, and the target camera device captures the virtual content. It can be seen that the target virtual scene parameters corresponding to the virtual content to be captured by the target camera device are determined by the reference data set, which can improve the configuration efficiency and accuracy of the virtual scene parameters.

[0087] Based on the above parameter configuration scheme, the embodiment of the present application proposes a more detailed parameter configuration method, which will be described in detail below in combination with the drawings.

[0088] Please refer to Figure 2 , Figure 2 A parameter configuration method is provided for the embodiment of the present application, which can be executed by a computer device, which can be specifically a display device 102 as shown in Figure 1 The parameter configuration method can include the following steps S201-S204 as shown in Figure 2

[0089] S201, obtaining the shooting parameter of the target camera device.

[0090] The shooting parameter of the target camera device is the parameter used by the target camera device when shooting an image. In an embodiment, the shooting parameter includes the lens parameter of the target camera device. Specifically, the lens parameter of the target camera device can include focal length, aperture value and focal point value; wherein the focal point value refers to the distance between the target camera device and the shooting subject of the device.

[0091] S202, obtaining a reference data set.

[0092] The reference data set includes the correspondence between the reference shooting parameter and the virtual scene parameter; wherein the reference shooting parameter is used to describe the shooting parameter of the reference camera device (i.e. the real camera device used when configuring the reference data set), and the shooting parameter includes the lens parameter of the reference camera device; the virtual scene parameter is used to describe the shooting parameter of the virtual camera device, and the shooting parameter of the virtual camera device includes the lens parameter of the virtual camera device. It should be noted that by adjusting the shooting parameter of the virtual camera device, the virtual scene can be adjusted (such as adjusting the depth of field effect of the virtual scene).

[0093] S203, determining the target virtual scene parameter corresponding to the virtual content to be shot by the target camera device according to the shooting parameter of the target camera device and the reference data set.

[0094] In an embodiment, the computer device determines the target virtual scene parameter corresponding to the virtual content to be shot by the camera device 101 according to the relationship between the shooting parameter of the target camera device and the shooting parameter of the reference camera device, and the corresponding relationship between the shooting parameter of the reference camera device and the shooting parameter of the virtual camera device (i.e. the shooting parameter of the virtual camera device corresponding to the shooting parameter of the target camera device).

[0095] ​In one embodiment, the reference dataset includes M*N*P groups of shooting parameters, each group of shooting parameters including a focal length, an aperture value and a focus value, M is the number of candidate focal lengths, N is the number of candidate aperture values, and P is the number of candidate focus values, M, N and P are positive integers; the shooting parameters of the target camera device include an actual focal length, an actual aperture value and an actual focus value; and the computer device determines the target virtual scene parameters corresponding to the virtual content to be shot by the target camera device according to the shooting parameters of the target camera device and the reference dataset. The specific implementation is as follows: the actual focal length is determined as the scene focal length of the target virtual scene, and it is determined whether there is a candidate focal length consistent with the actual focal length in the M candidate focal lengths of the reference device; if the actual focal length is consistent with the i-th candidate focal length of the reference camera device, the scene aperture value and the scene focus value of the target virtual scene are determined according to the relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i-th candidate focal length; if the actual focal length is between the i-th candidate focal length and the i+1-th candidate focal length of the reference camera device, the scene aperture value and the scene focus value of the target virtual scene are determined according to the relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i-th candidate focal length, and the relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i+1-th candidate focal length; wherein i is a positive integer less than M.

[0096] In another embodiment, the computer device trains an initial model through the reference dataset to obtain a virtual scene parameter prediction model; the shooting parameters of the target camera device are analyzed through the virtual scene parameter prediction model, and the target virtual scene parameters corresponding to the virtual content to be shot by the target camera device are output. The process of training the initial model through the reference dataset to obtain the virtual scene parameter prediction model is as follows: the shooting parameters of the reference camera device are analyzed through the initial model to predict the shooting parameters of the virtual camera device; the loss value of the predicted shooting parameters of the virtual camera device and the shooting parameters of the virtual camera device corresponding to the shooting parameters of the reference camera device is calculated through a loss function, and the parameters in the initial model are adjusted based on the loss value to obtain the virtual scene parameter prediction model.

[0097] S204, displaying the virtual content according to the target virtual scene parameters.

[0098] The computer device displays the virtual content according to the target virtual scene parameters, and the target camera device shoots the virtual content displayed in the computer device to obtain a virtual production image.

[0099] In the embodiment of the present application, the shooting parameters of the target camera device and the reference data set are acquired, the target virtual scene parameters corresponding to the virtual content to be shot by the target camera device are determined according to the shooting parameters of the target camera device and the reference data set, the virtual content is displayed according to the target virtual scene parameters, and the target camera device is caused to shoot the virtual content. It can be seen that the target virtual scene parameters corresponding to the virtual content to be shot by the target camera device are determined by referring to the reference data set, which can improve the configuration efficiency and accuracy of the virtual scene parameters.

[0100] Please refer to Figure 3 , Figure 3 Another parameter configuration method is provided in the embodiment of the present application, which can be executed by a computer device, and the computer device can be specifically the display device 102 shown in Figure 1 . As shown in Figure 3 , the parameter configuration method can include the following steps S301-S305:

[0101] S301, according to the shooting parameters of the reference camera device and the shooting parameters of the virtual camera device, a reference data set is configured.

[0102] The reference camera device includes multiple groups of shooting parameters, and the configuration process of the computer device to configure the reference data set is as follows: the first group of shooting parameters of the reference camera device is acquired, and the reference camera device is used to shoot a real image of a reference object based on the first group of shooting parameters, and the first group of shooting parameters is any one of the multiple groups of shooting parameters. On the one hand, a simulated object is obtained by simulating the reference object, and the virtual object is adjusted by adjusting the virtual scene parameters; on the other hand, the virtual object is shot by the reference camera device based on the first group of shooting parameters to obtain a virtual image. The virtual image and the real image are compared, and the target virtual scene parameters corresponding to the matching of the virtual image and the real image are recorded; the corresponding relationship between the first group of shooting parameters and the target virtual scene parameters is established, and the corresponding relationship is added to the reference data set.

[0103] In an implementation manner, the reference data set includes M*N*P groups of shooting parameters, each group of shooting parameters includes one focal length, one aperture value and one focus value, M is the number of candidate focal lengths, N is the number of candidate aperture values, and P is the number of candidate focus values, M, N and P are all positive integers; the first group of shooting parameters includes the i th candidate focal length, the j th candidate aperture value and the k th candidate focus value, i is a positive integer less than M, j is a positive integer less than N, and k is a positive integer less than P.

[0104] Figure 4a A shooting schematic diagram of a real image is provided in the embodiment of the present application. As shown in Figure 4aAs shown, 2y reference objects (such as small balls) are placed in order from near to far, all on a straight line, with a distance of x meters between each reference object. A reference camera is positioned x meters away from the first reference object. The reference camera uses the i-th candidate focal length, the j-th candidate aperture value, and the k-th candidate focus value to capture the real image. Here, x is a positive number, and y is an integer greater than or equal to P. In one specific implementation, the focus of the reference camera is set at the center of the first reference object, and the distance between the first reference object and the reference camera is determined as the first candidate focus value. Similarly, the focus of the reference camera is set at the center of the k-th reference object, and the distance between the k-th reference object and the reference camera is determined as the k-th candidate focus value. Candidate aperture values ​​may include, but are not limited to: 2.8, 4, 5.6, 8; candidate focal lengths may include, but are not limited to: 16, 24, 35, 50, 75, 105.

[0105] Figure 4b This is a schematic diagram illustrating the capture of a virtual image, as provided in an embodiment of this application. Figure 4b As shown, y reference objects (such as small balls) are arranged in order from near to far, with a spacing of x meters between each reference object. The distance between the reference camera and the first reference object is x meters, and the distance between the screen and the y-th reference object is x meters. The tangent line of the left edge of the screen coincides with that of the first virtual object on the screen. The screen contains y virtual objects arranged in order from near to far, and these y virtual objects and the y reference objects are on the same straight line, with a spacing of x meters between each virtual object. The reference camera is x meters away from the first reference object, and the reference camera uses the i-th candidate focal length, the j-th candidate aperture value, and the k-th candidate focus value to capture the virtual image.

[0106] In one implementation, the computer device adjusts the virtual object by adjusting virtual scene parameters. Specifically, the i-th candidate focal length is determined as the virtual focal length of the virtual camera device, and the virtual aperture and virtual focus values ​​of the virtual camera device are configured. When the reference camera device follows... Figure 4a The real images acquired in the method described above are compared with those from the reference camera equipment. Figure 4bWhen the virtual images collected in the above manner match (e.g., the depth-of-field effects of the two images are consistent), the computer device records the virtual focal length, the virtual aperture value and the virtual focus point value of the virtual camera device (i.e., records the virtual scene parameters), and establishes the correspondence between the virtual parameters and the i th candidate focal length, the j th candidate aperture value and the k th candidate focus point value (a set of shooting parameters). The above method is repeated to obtain the virtual scene parameters corresponding to M*N*P sets of shooting parameters. Table 1 is a schematic table provided by an embodiment of the present application for recording the virtual scene parameters corresponding to each set of shooting parameters:

[0107] Table 1

[0108]

[0109] As shown in Table 1, when the candidate focal length is A1, the candidate aperture value is B1, and the candidate focus point value is C1, the virtual scene parameters are: A1, D1, E1; where A1 is the virtual focal length, D1 is the virtual aperture value, and E1 is the virtual focus point value. One candidate focal length, one candidate aperture value and one candidate focus point value form a set of shooting parameters of the reference camera device, and each set of shooting parameters of the reference camera device has an index function, i.e., each set of shooting parameters of the reference camera device corresponds to unique virtual scene parameters; for example, the virtual scene parameters corresponding to A1, B1 and C1 are A1, D1 and E1.

[0110] It should be noted that in Table 1, the order of the candidate focal length, the candidate aperture value and the candidate focus point value can be changed, for example, the order of the candidate aperture value and the candidate focus point value is changed; the order in Table 1 represents that under each candidate aperture value, different candidate focus point values correspond to virtual scene parameters, and changing the order of the candidate aperture value and the candidate focus point value represents that under each candidate focus point value, different candidate aperture values correspond to virtual scene parameters. Optionally, since the candidate focal length is consistent with the virtual focal length, the virtual focal length can also be omitted in the virtual scene parameters.

[0111] S302, obtain the shooting parameters of the target camera device.

[0112] S303, obtain the reference data set.

[0113] The specific implementation of steps S302 and S303 can refer to the implementation of steps S201 and S202 in Figure 2 The implementation of steps S201 and S202 in

[0114] S304, determine the target virtual scene parameters corresponding to the virtual content to be shot by the target camera device according to the relationship between the shooting parameters of the target camera device and the shooting parameters of the reference camera device, and the correspondence between the shooting parameters of the reference camera device and the shooting parameters of the virtual camera device.

[0115] The computer device determines the actual focal length as a scene focal length of a target virtual scene corresponding to the virtual content to be photographed by the target camera device; for example, assuming that the actual focal length of the target camera device is 16mm, the computer device configures the scene focal length of the target virtual scene corresponding to the virtual content to be photographed by the target camera device as 16mm.

[0116] S11: The computer device determines whether there is a candidate focal length identical to the actual focal length of the target camera device in the M candidate focal lengths of the reference camera device.

[0117] If the actual focal length of the target camera device is consistent with the i-th candidate focal length of the reference camera device, i is a positive integer less than M, the computer device determines the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual aperture value and the actual focal point value and the candidate aperture value and the candidate focal point value associated with the i-th candidate focal length, for details, see step S12.

[0118] If the actual focal length of the target camera device is between the i-th candidate focal length and the i+1-th candidate focal length of the reference camera device (such as the i-th candidate focal length < actual focal length < i+1-th candidate focal length), i is a positive integer less than M, the computer device determines the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual aperture value and the actual focal point value and the candidate aperture value and the candidate focal point value associated with the i-th candidate focal length, and the relationship between the candidate aperture value and the candidate focal point value associated with the i+1-th candidate focal length, for details, see step S15.

[0119] S12: In the case where the actual focal length of the target camera device is consistent with the i-th candidate focal length of the reference camera device, the computer device determines whether there is a candidate aperture value identical to the actual aperture value of the target camera device in the N candidate aperture values of the reference camera device.

[0120] If the actual aperture value of the target camera device is consistent with the j-th candidate aperture value associated with the i-th candidate focal length of the reference camera device, j is a positive integer less than N, the computer device determines the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual focal point value of the target camera device and the candidate focal point value associated with the j-th candidate aperture value associated with the i-th candidate focal length of the reference camera device, for details, see step S13.

[0121] If the actual aperture value of the target camera device is between the jth candidate aperture value associated with the ith candidate focal length of the reference camera device and the (j+1)th aperture value associated with the ith candidate focal length of the reference camera device (e.g., the jth candidate aperture value < the actual aperture value < the (j+1)th aperture value), and j is a positive integer less than N, the computer device determines the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual focal point value of the target camera device and the candidate focal point value associated with the jth candidate aperture value associated with the ith candidate focal length of the reference camera device, and the relationship between the actual focal point value of the target camera device and the candidate focal point value associated with the (j+1)th aperture value associated with the ith candidate focal length of the reference camera device. Details are shown in step S14.

[0122] S13: In the case that the actual focal length of the target camera device is consistent with the ith candidate focal length of the reference camera device, and the actual aperture value of the target camera device is consistent with the jth candidate aperture value of the reference camera device, the computer device determines whether there is a candidate focal point value in the P candidate focal point values of the reference camera device that is the same as the actual focal point value of the target camera device.

[0123] If the actual focal point value of the target camera device is consistent with the kth focal point value associated with the jth candidate aperture value associated with the ith candidate focal length of the reference camera device, and k is a positive integer less than P, the computer device determines the virtual aperture value and the virtual focal point value corresponding to the kth focal point value associated with the jth candidate aperture value associated with the ith candidate focal length as the scene aperture value and the scene focal point value of the target virtual scene, respectively. Specifically, please refer to Table 1 above, the ith candidate focal length of the reference camera device is A i , the jth candidate aperture value is B j , and the kth candidate focal point value is C k , the computer device determines the scene aperture value and the scene focal point value of the virtual scene corresponding thereto from Table 1 based on A i , B j , and C k , and determines the scene aperture value and the scene focal point value of the virtual scene and the actual focal length of the target camera device as the target virtual scene parameters.

[0124] If the actual focus value of the target camera device is between the jth candidate aperture value associated with the ith candidate focal length of the reference camera device and the kth focus value associated with the jth candidate aperture value and the ith candidate focal length of the reference camera device (for example, the kth candidate focus value < the actual focus value < the k+1th candidate focus value), the computer device calculates the scene aperture value and the scene focus value of the target virtual scene according to the virtual aperture value and the virtual focus value corresponding to the kth focus value associated with the jth candidate aperture value and the ith candidate focal length of the reference camera device, and the virtual aperture value and the virtual focus value corresponding to the k+1th focus value associated with the jth candidate aperture value and the ith candidate focal length of the reference camera device. Specifically, please refer to Table 1 above, the ith candidate focal length of the reference camera device is A i , the jth candidate aperture value is B j , the kth candidate focus value is C k , and the k+1th candidate focus value is C k+1 (set C k+1 > C k ). In a specific implementation, assuming that the actual focus value of the target camera device is R1, the computer device determines from Table 1 that the scene aperture value of the virtual scene corresponding thereto is T i and the scene focus value is W j based on A k , B k and C k ; determines from Table 1 that the scene aperture value of the virtual scene corresponding thereto is T i and the scene focus value is W j based on A k+1 , B k+1 and C k+1 (set W k+1 > W k ); and then in the target virtual scene parameters:

[0125] the target scene aperture value = (T k + T k+1 ) / 2

[0126] the target scene focus value = [(R1-C k ) / (C k+1 -C k )]*(W k+1 -W k )+W k

[0127] In addition, the target scene focal length is the actual focal length of the target camera device.

[0128] S14: In a case where the actual focal length of the target camera device is consistent with the i th candidate focal length of the reference camera device, and the actual aperture value of the target camera device is between the j th candidate aperture value and the j+1 th candidate aperture value of the reference camera device, the computer device determines whether there is a candidate focal point value in the P candidate focal point values of the reference camera device that is the same as the actual focal point value of the target camera device.

[0129] If the actual focal point value of the target camera device is consistent with the k th focal point value associated with the j th candidate aperture value associated with the i th candidate focal length of the reference camera device, the virtual aperture value and the virtual focal point value corresponding to the k th focal point value associated with the j th candidate aperture value associated with the i th candidate focal length of the reference camera device, and the virtual aperture value and the virtual focal point value corresponding to the k th focal point value associated with the j+1 th candidate aperture value associated with the i th candidate focal length of the reference camera device, the computer device calculates the scene aperture value and the scene focal point value of the target virtual scene. Specifically, please refer to Table 1 above, the i th candidate focal length of the reference camera device is A i , the j th candidate aperture value is B j , the j+1 th candidate aperture value is B j+1 , and the k th candidate focal point value is C k . In a specific implementation, assuming that the actual aperture value of the target camera device is Q1, the computer device determines from Table 1 the corresponding scene aperture value T k and scene focal point value W k of the virtual scene based on A i , B j and C k ; determines from Table 1 the corresponding scene aperture value U k (assuming U k >T k ) and scene focal point value V k of the virtual scene based on A i , B j+1 (assuming B j+1 >B j ) and C k ; and then the target virtual scene parameters are:

[0130] Target scene aperture value = [(Q1-B j ) / (B j+1 -B j )]*(U k -T k )+T k

[0131] Target scene focal point value = (W k +V k ) / 2

[0132] In addition, the focal length of the target scene is the actual focal length of the target camera device.

[0133] If the actual focus value of the target camera device lies between the k-th focus value associated with the j-th candidate aperture value related to the i-th candidate focal length of the reference camera device and the (k+1)-th focus value associated with the j-th candidate aperture value associated with the i-th candidate focal length of the reference camera device, then the scene aperture value and scene focus value of the target virtual scene are calculated based on the virtual aperture value and virtual focus value corresponding to the k-th focus value associated with the j-th candidate aperture value of the i-th candidate focal length of the reference camera device, the (k+1)-th focus value associated with the j-th candidate aperture value of the i-th candidate focal length of the reference camera device, the (j+1)-th focus value associated with the j-th candidate aperture value of the reference camera device, and the (k+1)-th focus value associated with the j-th candidate aperture value of the i-th candidate focal length of the reference camera device. Specifically, please refer to Table 1 above, where the i-th candidate focal length of the reference camera device is A. i The j-th candidate aperture value is B. j The (j+1)th candidate aperture value is B. j+1 The value of the kth candidate focus is C. k The value of the (k+1)th candidate focus is C. k+1 .

[0134] In one specific implementation, let the actual focus value of the target camera be R2, the actual aperture value be Q2, and the computer device be based on A... i B j and C k From Table 1, the scene aperture value of the corresponding virtual scene is determined to be T. k The scene focus value is W. k Based on A i B j and C k+1 (Let C) k+1 >C k From Table 1, the scene aperture value for the corresponding virtual scene is determined to be T. k+1 The scene focus value is W. k+1 (Let W) k+1 >W k Based on A i B j+1 (Let B) j+1 >B j ) and C kThe scene aperture value of the corresponding virtual scene is U k , and the scene focus value is V k from Table 1 i , B j+1 and C k+1 , the scene aperture value of the corresponding virtual scene is U k+1 , and the scene focus value is V k+1 (V k+1 >V k ). The specific corresponding relationship is shown in Table 2:

[0135] Table 2

[0136]

[0137]

[0138] Based on the above Table 2, in the target virtual scene parameters:

[0139] The target scene aperture value = [(Q2-B j ) / (B j+1 -B j )]*(Z2-Z1)+Z1

[0140] Wherein, Z1 is the smaller one of (U k +U k+1 ) / 2 and (T k +T k+1 ) / 2, and Z2 is the larger one of (U k +U k+1 ) / 2 and (T k +T k+1 ) / 2.

[0141] The target scene focus value = (Z3+Z4) / 2

[0142] Wherein, Z3 = [(R2-C k ) / (C k+1 -C k )]*(W k+1 -W k )+W k , Z4 = [(R2-C k ) / (C k+1 -C k )]*(V k+1 -V k )+V k . In addition, the target scene focal length is the actual focal length of the target camera device.

[0143] S15: In the case that the actual focal length of the target camera device is between the i th candidate focal length and the i+1 th candidate focal length of the reference camera device, the computer device determines whether there is a candidate aperture value of the reference camera device which is the same as the actual aperture value of the target camera device in the N candidate aperture values of the reference camera device.

[0144] If the actual aperture value of the target camera device is the same as the j th candidate aperture value associated with the i th candidate focal length of the reference camera device, j is a positive integer less than N, the computer device determines the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual focal point value of the target camera device and the candidate focal point value associated with the j th candidate aperture value associated with the i th candidate focal length of the reference camera device, and the relationship between the candidate focal point value associated with the j th candidate aperture value associated with the i+1 th candidate focal length of the reference camera device, for details, see step S16.

[0145] If the actual aperture value of the target camera device is between the j th candidate aperture value associated with the i th candidate focal length of the reference camera device and the j+1 th candidate aperture value associated with the i th candidate focal length of the reference camera device, j is a positive integer less than N, the computer device determines the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual focal point value of the target camera device and the candidate focal point value associated with the j th candidate aperture value associated with the i th candidate focal length of the reference camera device, the relationship between the candidate focal point value associated with the j+1 th candidate aperture value associated with the i th candidate focal length of the reference camera device, the relationship between the candidate focal point value associated with the j th candidate aperture value associated with the i+1 th candidate focal length of the reference camera device, and the relationship between the candidate focal point value associated with the j+1 th candidate aperture value associated with the i+1 th candidate focal length of the reference camera device, for details, see step S17.

[0146] S16: In the case that the actual focal length of the target camera device is between the i th candidate focal length and the i+1 th candidate focal length of the reference camera device, and the actual aperture value of the target camera device is the same as the j th candidate aperture value of the reference camera device, the computer device determines whether there is a candidate focal point value of the reference camera device which is the same as the actual focal point value of the target camera device in the P candidate focal point values of the reference camera device.

[0147] If the actual focus value of the target camera device is consistent with the k-th candidate focus value associated with the j-th candidate aperture value associated with the i-th candidate focal length of the reference camera device, then the computer device calculates the scene aperture value and scene aperture value of the target virtual scene based on the virtual aperture value and virtual focus value corresponding to the k-th candidate focus value associated with the j-th candidate aperture value associated with the i-th candidate focal length, and the virtual aperture value and virtual focus value corresponding to the k-th candidate focus value associated with the j-th candidate aperture value associated with the (i+1)-th candidate focal length. Specifically, please refer to Table 1 above, where the i-th candidate focal length of the reference camera device is A. i The (i+1)th candidate focal length is A i+1 The j-th candidate aperture value is B. j The value of the kth candidate focus is C. k In one specific implementation, let the actual focus value of the target camera be FS1, and let the computer device be based on A... i B j and C k From Table 1, the scene aperture value of the corresponding virtual scene is determined to be T. k The scene focus value is W. k Based on A i+1 B j and C k From Table 1, the scene aperture value of the corresponding virtual scene is determined to be HA. k The scene focus value is HB. k Then, in the target virtual scene parameters:

[0148] Target scene aperture value = (T k +HA k ) / 2

[0149] Target scene focus value = (W k +HB k ) / 2

[0150] In addition, the focal length of the target scene is the actual focal length of the target camera device (i.e., FS1).

[0151] If the actual focus value of the target camera device is between the kth candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, the computer device calculates the scene aperture value and the scene focus value of the target virtual scene according to the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, the virtual aperture value and the virtual focus value corresponding to the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth candidate aperture value associated with the ith+1th candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith+1th candidate focal length. Specifically, referring to Table 1 above, the ith candidate focal length of the reference camera device is A i , the ith+1th candidate focal length is A i+1 , the jth candidate aperture value is B j , the kth candidate focus value is C k , and the k+1th candidate focus value is C k+1 .

[0152] In a specific implementation, assuming that the actual focus value of the target camera device is FS2, the actual focus value is R3, the computer device determines, based on A i , B j , and C k , from Table 1, that the scene aperture value of the corresponding virtual scene is T k , and the scene focus value is W k ; determines, based on A i , B j , and C k+1 (assuming that C k+1 > C k ), from Table 1, that the scene aperture value of the corresponding virtual scene is T k+1 , and the scene focus value is W k+1 (assuming that W k+1 > W k ); determines, based on A i+1 , B j , and C k , from Table 1, that the scene aperture value of the corresponding virtual scene is HA k , and the scene focus value is HB k ; and determines, based on A i+1 , B j , and C k+1 , from Table 1, that the scene aperture value of the corresponding virtual scene is HAk+1 , the scene focal point value is HB k+1 (set HB k+1 > HB k ); the specific corresponding relationship is shown in Table 3:

[0153] Table 3

[0154] Reference shot parameters Virtual scene parameters A i , B j , C k ]]> T k , W k ]] A i , B j , C k+1 ]]> [CAT k+1 , W k+1 ]] A i+1 , B j , C k ]]> HA k , HB k ]] A i+1 , B j , C k+1 ]]> HA k+1 , HB k+1 ]]

[0155] Based on the above Table 3, in the target virtual scene parameters:

[0156] The target scene aperture value = (Z5+Z6) / 2

[0157] Wherein, Z5 = (T k +T k+1 ) / 2, Z6 = (HA k +HA k+1 ) / 2.

[0158] The target scene focal point value = (Z7+Z8) / 2

[0159] Wherein, Z7 = [(R3-C k ) / (C k+1 -C k )]*(W k+1 -W k )+W k , Z8 = [(R3-C k ) / (C k+1 -C k )]*(HB k+1 -HB k )+HB k In addition, the target scene focal length is the actual focal length of the target camera device (i.e. FS2).

[0160] S17: In the case that the actual focal length of the target camera device is between the i th candidate focal length and the i+1 th candidate focal length of the reference camera device, and the actual aperture value of the target camera device is between the j th candidate aperture value associated with the i th candidate focal length and the j+1 th candidate aperture value associated with the i th candidate focal length of the reference camera device, the computer device determines whether there is a candidate focal point value identical to the actual focal point value of the target camera device in the P candidate focal point values of the reference camera device.

[0161] If the actual focus value of the target camera device is consistent with the jth candidate aperture value associated with the ith candidate focal length of the reference camera device and the kth candidate focus value associated with the jth candidate aperture value and the ith candidate focal length, the computer device calculates the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth candidate aperture value and the ith candidate focal length, the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth+1 candidate aperture value and the ith candidate focal length, the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth candidate aperture value and the ith+1 candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth+1 candidate aperture value and the ith+1 candidate focal length. The scene aperture value and the scene focus value of the target virtual scene are calculated. Specifically, please refer to Table 1 above, the ith candidate focal length of the reference camera device is A i , the ith+1 candidate focal length is A i+1 , the jth candidate aperture value is B j , the jth+1 candidate aperture value is B j+1 , and the kth candidate focus value is C k .

[0162] In a specific implementation, assuming that the actual focus value of the target camera device is FS3, and the actual aperture value is Q3, the computer device determines, based on A i , B j and C k , the scene aperture value of the virtual scene corresponding thereto from Table 1 is T k , and the scene focus value is W k ; based on A i , B j+1 (assuming that B j+1 > B j ) and C k , the scene aperture value of the virtual scene corresponding thereto from Table 1 is U k (assuming that U k > W k ), and the scene focus value is V k ; based on A i+1 , B j and C k , the scene aperture value of the virtual scene corresponding thereto from Table 1 is HA k , and the scene focus value is HB k ; based on A i+1 , B j+1 and C k , the scene aperture value of the virtual scene corresponding thereto from Table 1 is GA k (assuming that GA k > HAk ), the scene focal point value is GB k ; the specific corresponding relationship is shown in Table 4:

[0163] Table 4

[0164] Reference shot parameters Virtual scene parameters A i , B j , C k ]]> [CAT k , W k ]] A i , B j+1 , C k ]]> U k , V k ]] A i+1 , B j , C k ]]> HA k , HB k ]] A i+1 , B j+1 , C k ]]> GA k , GB k ]]>

[0165] Based on the above Table 4, in the target virtual scene parameters:

[0166] The target scene aperture value = (Z9+Z 10 ) / 2

[0167] Wherein, Z9= [(Q3-B j ) / (B j+1 -B j )]*(U k -T k )+T k , Z 10 = [(Q3-B j ) / (B j+1 -B j )]*(GA k -HA k )+H k .

[0168] The target scene focal point value = (Z 11 +Z 12 ) / 2

[0169] Wherein, Z 11 = (W k +V k ) / 2, Z 12 = (HB k +GB k ) / 2. In addition, the target scene focal length is the actual focal length of the target camera device (i.e. FS3).

[0170] If the actual focus value of the target camera is between the kth and (k+1)th candidate focus values ​​associated with the jth candidate aperture value associated with the i-th candidate focus length of the reference camera, then the computer device uses the virtual aperture value and virtual focus value corresponding to the kth candidate focus value associated with the jth candidate aperture value associated with the i-th candidate focus length, the virtual aperture value and virtual focus value corresponding to the (k+1)th candidate focus value associated with the jth candidate aperture value associated with the i-th candidate focus length, and the virtual aperture value and virtual focus value corresponding to the (k+1)th candidate focus value associated with the (j+1)th candidate aperture value associated with the i-th candidate focus length, and the virtual aperture value and virtual focus value corresponding to the (k+1)th candidate focus value associated with the (j+1)th candidate aperture value, to determine the virtual aperture value and virtual focus value. The virtual aperture and virtual focus values ​​corresponding to the point values, the virtual aperture and virtual focus values ​​corresponding to the k-th candidate focus value associated with the j-th candidate aperture value associated with the (i+1)-th candidate focal length, the virtual aperture and virtual focus values ​​corresponding to the (i+1)-th candidate focus value associated with the j-th candidate aperture value associated with the (i+1)-th candidate focal length, the virtual aperture and virtual focus values ​​corresponding to the (i+1)-th candidate focus value associated with the j-th candidate aperture value associated with the (i+1)-th candidate focal length, the virtual aperture and virtual focus values ​​corresponding to the (i+1)-th candidate focus value associated with the (i+1)-th candidate focal length, and the virtual aperture and virtual focus values ​​corresponding to the (i+1)-th candidate focus value associated with the (i+1)-th candidate aperture value, are used to calculate the scene aperture and scene aperture values ​​of the target virtual scene. Specifically, please refer to Table 1 above, where the i-th candidate focal length of the reference camera device is A. i The (i+1)th candidate focal length is A i+1 The j-th candidate aperture value is B. j The (j+1)th candidate aperture value is B. j+1 The value of the kth candidate focus is C. k The value of the (k+1)th candidate focus is C. k+1 .

[0171] In one specific implementation, let the actual focus value of the target camera be FS4, the actual aperture value be Q4, and the actual focus value be R4. The computer equipment is based on A... i B j and C k From Table 1, the scene aperture value of the corresponding virtual scene is determined to be T. k The scene focus value is W. k Based on A i B j and C k+1 (Let C) k+1 >C k From Table 1, the scene aperture value for the corresponding virtual scene is determined to be T. k+1 The scene focus value is W. k+1Suppose W k+1 > W k ) and C i , B j+1 (assume B j+1 > B j ) and C k , the scene aperture value of the corresponding virtual scene is U k , and the scene focus value is V k ; based on A i , B j+1 and C k+1 , the scene aperture value of the corresponding virtual scene is U k+1 , and the scene focus value is V k+1 (assume V k+1 > V k ); based on A i+1 , B j and C k , the scene aperture value of the corresponding virtual scene is HA k , and the scene focus value is HB k ; based on A i+1 , B j and C k+1 , the scene aperture value of the corresponding virtual scene is HA k+1 , and the scene focus value is HB k+1 (assume HB k+1 > HB k ); based on A i+1 , B j+1 and C k , the scene aperture value of the corresponding virtual scene is GA k , and the scene focus value is GB k ; based on A i+1 , B j+1 and C k+1 , the scene aperture value of the corresponding virtual scene is GA k+1 , and the scene focus value is GB k+1 (assume GB k+1 > GB k ); the specific corresponding relationship is shown in Table 5:

[0172] Table 5

[0173]

[0174]

[0175] Based on the above Table 5, in the target virtual scene parameters:

[0176] Target scene aperture value = (Z 13 + Z 14 ) / 2

[0177] wherein Z 13 = [(Q4-B j ) / (B j+1 -B j )]*(Z2-Z1)+Z1; Z1 is the smaller one of (U k + U k+1 ) / 2 and (T k + T k+1 ) / 2, Z2 is the larger one of (U k + U k+1 ) / 2 and (T k + T k+1 ) / 2; Z 14 = [(Q4-B j ) / (B j+1 -B j )]*(Z 16 -Z 15 )+Z 15 ; Z 15 is the smaller one of (HA k + HA k+1 ) / 2 and (GA k + GA k+1 ) / 2, Z 16 is the larger one of (HA k + HA k+1 ) / 2 and (GA k + GA k+1 ) / 2.

[0178] Target scene focus value = (Z 17 + Z 18 + Z 19 + Z 20 ) / 4

[0179] wherein Z 17 = [(R4-C k ) / (C k+1 -C k )]*(W k+1 -W k )+W k , Z 18 = [(R4-C k ) / (C k+1 -C k )]*(V k+1 -V k )+V k , Z 19 = [(R4-Ck ) / (C k+1 -C k )]*(HB k+1 -HB k )+HB k , Z 20 = [(R4-C k ) / (C k+1 -C k )]*(GB k+1 -GB k )+GB k In addition, the target scene focal length is the actual focal length of the target camera device (i.e., FS4).

[0180] S305, display the virtual content according to the target virtual scene parameter.

[0181] The specific implementation of step S305 can refer to the implementation of step S204 in Figure 2 , which will not be repeated here.

[0182] In the embodiments of the present application, the correspondence between the reference shooting parameter and the virtual scene parameter is determined by comparing the virtual image and the real image, and then the reference data set is configured. The shooting parameter of the target camera device and the reference data set are obtained, the target virtual scene parameter corresponding to the virtual content to be shot by the target camera device is determined according to the shooting parameter of the target camera device and the reference data set, the virtual content is displayed according to the target virtual scene parameter, and the target camera device shoots the virtual content. It can be seen that the target virtual scene parameter corresponding to the virtual content to be shot by the target camera device is determined by the reference data set, which can improve the configuration efficiency and accuracy of the virtual scene parameter. In addition, since the target virtual scene parameter is calculated based on the reference data set, and the reference data set is determined when the real image and the virtual image are matched, the virtual content displayed according to the target virtual scene parameter is more realistic, and the subject feels more real when watching the camera content.

[0183] The above detailed the method of the embodiments of the present application, in order to facilitate better implementation of the above-mentioned scheme of the embodiments of the present application, accordingly, the device of the embodiments of the present application is provided below.

[0184] Please refer to Figure 5 , Figure 5 The structure diagram of a parameter configuration device provided by the embodiments of the present application, the device can be carried on a computer device, the computer device can be specifically the display device 102 shown in Figure 1 . The parameter configuration device shown in Figure 5 can be used to execute the above-mentioned Figure 2 and Figure 3Part or all of the functions in the described method embodiments. Please refer to Figure 5 Detailed description of each unit is as follows:

[0185] The acquisition unit 501 is configured to acquire a shooting parameter of a target camera device, and acquire a reference data set, the reference data set including a correspondence between a reference shooting parameter and a virtual scene parameter;

[0186] The processing unit 502 is configured to determine, according to the shooting parameter of the target camera device and the reference data set, a target virtual scene parameter corresponding to virtual content to be shot by the target camera device;

[0187] The display unit 503 is configured to display the virtual content according to the target virtual scene parameter, so that the target camera device shoots the virtual content.

[0188] In an embodiment, the reference shooting parameter is used to describe a shooting parameter of a reference camera device, and the virtual scene parameter is used to describe a shooting parameter of a virtual camera device; the processing unit 502 is further configured to:

[0189] According to the shooting parameter of the reference camera device and the shooting parameter of the virtual camera device, the reference data set is configured.

[0190] In an embodiment, the reference camera device includes a plurality of groups of shooting parameters; the configuration process of the reference data set includes:

[0191] Acquire a first group of shooting parameters of the reference camera device, and use the reference camera device to shoot a real image of a reference object based on the first group of shooting parameters; the first group of shooting parameters is any one of the plurality of groups of shooting parameters;

[0192] Adjust a virtual object corresponding to the reference object by adjusting the virtual scene parameter;

[0193] Use the reference camera device to shoot the virtual object based on the first group of shooting parameters to obtain a virtual image;

[0194] Compare the virtual image with the real image, and record a target virtual scene parameter corresponding to a case where the virtual image matches the real image;

[0195] Establish a correspondence between the first group of shooting parameters and the target virtual scene parameter, and add the correspondence to the reference data set.

[0196] In an embodiment, the reference dataset comprises M*N*P groups of shooting parameters, each group of shooting parameters comprising a focal length, an aperture value and a focus value, M is the number of candidate focal lengths, N is the number of candidate aperture values, and P is the number of candidate focus values, M, N and P are positive integers; the first group of shooting parameters comprises the ith candidate focal length, the jth candidate aperture value and the kth candidate focus value, i is a positive integer less than M, j is a positive integer less than N, and k is a positive integer less than P.

[0197] The processing unit 502 is configured to adjust the virtual object corresponding to the reference object by adjusting the virtual scene parameter, and specifically configured to:

[0198] determining the ith candidate focal length as the virtual focal length of the virtual camera device, and configuring the virtual aperture value and the virtual focus value of the virtual camera device.

[0199] In an embodiment, the processing unit 502 is configured to determine the target virtual scene parameter corresponding to the virtual content to be shot by the target camera device according to the shooting parameter of the target camera device and the reference dataset, and specifically configured to:

[0200] determining the target virtual scene parameter corresponding to the virtual content to be shot by the target camera device according to the relationship between the shooting parameter of the target camera device and the shooting parameter of the reference camera device, and the corresponding relationship between the shooting parameter of the reference camera device and the shooting parameter of the virtual camera device.

[0201] In an embodiment, the reference dataset comprises M*N*P groups of shooting parameters, each group of shooting parameters comprising a focal length, an aperture value and a focus value, M is the number of candidate focal lengths, N is the number of candidate aperture values, and P is the number of candidate focus values, M, N and P are positive integers; the shooting parameter of the target camera device comprises an actual focal length, an actual aperture value and an actual focus value.

[0202] The processing unit 502 is configured to determine the target virtual scene parameter corresponding to the virtual content to be shot by the target camera device according to the shooting parameter of the target camera device and the reference dataset, and specifically configured to:

[0203] determining the actual focal length as the scene focal length of the target virtual scene corresponding to the virtual content to be shot by the target camera device;

[0204] if the actual focal length is consistent with the ith candidate focal length of the reference camera device, determining the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the ith candidate focal length;

[0205] If the actual focal length is between the i-th candidate focal length and the i+1-th candidate focal length of the reference camera device, the scene aperture value and the scene focal point value of the target virtual scene are determined according to the relationship between the actual aperture value and the actual focal point value and the relationship between the candidate aperture value and the candidate focal point value associated with the i-th candidate focal length, and the relationship between the candidate aperture value and the candidate focal point value associated with the i+1-th candidate focal length.

[0206] wherein i is a positive integer less than M.

[0207] In an embodiment, the processing unit 502 is configured to determine the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual aperture value and the actual focal point value and the relationship between the candidate aperture value and the candidate focal point value associated with the i-th candidate focal length, and specifically configured to:

[0208] If the actual aperture value is consistent with the j-th candidate aperture value associated with the i-th candidate focal length, the scene aperture value and the scene focal point value of the target virtual scene are determined according to the relationship between the actual focal point value and the candidate focal point value associated with the j-th candidate aperture value.

[0209] If the actual aperture value is between the j-th and the j+1-th aperture value associated with the i-th candidate focal length, the scene aperture value and the scene focal point value of the target virtual scene are determined according to the relationship between the actual focal point value and the candidate focal point value associated with the j-th candidate aperture value, and the relationship between the actual focal point value and the candidate focal point value associated with the j+1-th candidate aperture value.

[0210] wherein j is a positive integer less than N.

[0211] In an embodiment, the processing unit 502 is configured to determine the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual focal point value and the candidate focal point value associated with the j-th candidate aperture value, and specifically configured to:

[0212] If the actual focal point value is consistent with the k-th focal point value associated with the j-th candidate aperture value, the virtual aperture value and the virtual focal point value corresponding to the k-th focal point value are determined as the scene aperture value and the scene focal point value of the target virtual scene, respectively.

[0213] If the actual focal point value is between the k-th and the k+1-th focal point value associated with the j-th candidate aperture value, the scene aperture value and the scene focal point value of the target virtual scene are calculated according to the virtual aperture value and the virtual focal point value corresponding to the k-th focal point value, and the virtual aperture value and the virtual focal point value corresponding to the k+1-th focal point value.

[0214] wherein k is a positive integer less than P.

[0215] In an embodiment, the processing unit 502 is configured to determine the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual focus value and the candidate focus value associated with the jth candidate aperture value, and the relationship between the candidate focus value associated with the (j+1)th candidate aperture value, and specifically configured to:

[0216] If the actual focus value is consistent with the kth focus value associated with the jth candidate aperture value, then the scene aperture value and the scene focus value of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth focus value associated with the jth candidate aperture value, and the virtual aperture value and the virtual focus value corresponding to the kth focus value associated with the (j+1)th candidate aperture value;

[0217] If the actual focus value is between the kth and the (k+1)th focus value associated with the jth candidate aperture value, then the scene aperture value and the scene focus value of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth and the (k+1)th focus value associated with the jth candidate aperture value, and the virtual aperture value and the virtual focus value corresponding to the kth and the (k+1)th focus value associated with the (j+1)th candidate aperture value;

[0218] wherein k is a positive integer less than P.

[0219] In an embodiment, the processing unit 502 is configured to determine the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual aperture value and the candidate aperture value associated with the ith candidate focal length, and the relationship between the candidate aperture value associated with the (i+1)th candidate focal length, and specifically configured to:

[0220] If the actual aperture value is consistent with the jth candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are determined according to the relationship between the actual focus value and the candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, and the relationship between the candidate focus value associated with the jth candidate aperture value associated with the (i+1)th candidate focal length;

[0221] If the actual aperture value is between the jth and the (j+1)th candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are determined according to the relationship between the actual focus value and the candidate focus value associated with the jth and the (j+1)th candidate aperture value associated with the ith candidate focal length, and the relationship between the candidate focus value associated with the jth and the (j+1)th candidate aperture value associated with the (i+1)th candidate focal length;

[0222] wherein j is a positive integer less than N.

[0223] In an implementation, the processing unit 502 is configured to determine the scene aperture value and the scene focus value of the target virtual scene according to a relationship between the actual focus value and a candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, and a relationship between the actual focus value and a candidate focus value associated with the jth candidate aperture value associated with the i+1th candidate focal length, and specifically configured to:

[0224] If the actual focus value is consistent with the kth candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, the processing unit 502 is configured to calculate the scene aperture value and the scene focus value of the target virtual scene according to a virtual aperture value and a virtual focus value corresponding to the kth candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, and a virtual aperture value and a virtual focus value corresponding to the kth candidate focus value associated with the jth candidate aperture value associated with the i+1th candidate focal length.

[0225] If the actual focus value is between the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, the processing unit 502 is configured to calculate the scene aperture value and the scene focus value of the target virtual scene according to a virtual aperture value and a virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, and a virtual aperture value and a virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the i+1th candidate focal length.

[0226] Wherein, k is a positive integer less than P.

[0227] In an implementation, the processing unit 502 is configured to determine the scene aperture value and the scene focus value of the target virtual scene according to a relationship between the actual focus value and a candidate focus value associated with the jth and the j+1th candidate aperture value associated with the ith candidate focal length, and a relationship between the actual focus value and a candidate focus value associated with the jth and the j+1th candidate aperture value associated with the i+1th candidate focal length, and specifically configured to:

[0228] If the actual focus value is consistent with the kth candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, the processing unit 502 is configured to calculate the scene aperture value and the scene focus value of the target virtual scene according to a virtual aperture value and a virtual focus value corresponding to the kth candidate focus value associated with the jth and the j+1th candidate aperture value associated with the ith candidate focal length, and a virtual aperture value and a virtual focus value corresponding to the kth candidate focus value associated with the jth and the j+1th candidate aperture value associated with the i+1th candidate focal length.

[0229] If the actual focus value is between the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, the scene aperture value and the scene focal length of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth and the j+1th candidate aperture value associated with the ith candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth and the j+1th candidate aperture value associated with the ith+1 candidate focal length.

[0230] wherein k is a positive integer less than P.

[0231] According to an embodiment of the present application, Figure 2 and Figure 3 the steps involved in the parameter configuration method shown in Figure 5 may be performed by the respective units in the parameter configuration apparatus shown in Figure 2 For example, the steps S201 and S202 shown in Figure 5 may be performed by the obtaining unit 501 shown in Figure 5 , the step S203 may be performed by the processing unit 502 shown in Figure 5 , and the step S204 may be performed by the display unit 503 shown in Figure 3 . The steps S302 and S303 shown in Figure 5 may be performed by the obtaining unit 501 shown in Figure 5 , the steps S301 and S304 may be performed by the processing unit 502 shown in Figure 5 , and the step S305 may be performed by the display unit 503 shown in Figure 5 . The respective units in the parameter configuration apparatus shown in may be combined into one or several other units respectively or all together to constitute, or some of the units therein can be further split into a plurality of units with smaller functions to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above units are divided based on logical functions, and in actual applications, the functions of one unit can also be realized by multiple units, or the functions of multiple units can be realized by one unit. In other embodiments of the present application, the parameter configuration apparatus can also include other units, and in actual applications, these functions can also be realized by other units and can be realized by multiple units in cooperation.

[0232] According to another embodiment of the present application, the parameter configuration method as described above can be realized by running a program capable of performing the above steps on a general computing device such as a computer including processing elements and storage elements such as a central processing unit (CPU), a random access memory (RAM), a read-only memory (ROM), etc. Figure 2 and Figure 3The computer program (including program code) for each step involved in the corresponding method shown, to construct such... Figure 5 The parameter configuration apparatus shown herein, and the parameter configuration method for implementing the embodiments of this application, are described. A computer program may be recorded on, for example, a computer-readable recording medium, loaded onto the aforementioned computing device via the computer-readable recording medium, and executed therein.

[0233] Based on the same inventive concept, the principle and beneficial effects of the parameter configuration device provided in the embodiments of this application are similar to the principle and beneficial effects of the parameter configuration method in the embodiments of this application. For details, please refer to the principle and beneficial effects of the method implementation. For the sake of brevity, these will not be repeated here.

[0234] Please see Figure 6 , Figure 6 This application provides a schematic diagram of the structure of a computer device, as shown in the embodiment of the present application. Figure 6 As shown, the computer device includes at least a processor 601, a communication interface 602, and a memory 603. The processor 601, communication interface 602, and memory 603 can be connected via a bus or other means. The processor 601 (or Central Processing Unit, CPU) is the computing and control core of the terminal. It can parse various instructions within the terminal and process various types of data. For example, the CPU can parse power-on / off commands sent by the user to the terminal and control the terminal to perform power-on / off operations; it can also transmit various interactive data between internal structures within the terminal, and so on. The communication interface 602 can optionally include standard wired interfaces and wireless interfaces (such as Wi-Fi, mobile communication interfaces, etc.), and can be used to send and receive data under the control of the processor 601; the communication interface 602 can also be used for data transmission and interaction within the terminal. The memory 603 is the memory device in the terminal, used to store programs and data. It can be understood that the memory 603 here can include the terminal's built-in memory, or it can include extended memory supported by the terminal. The memory 603 provides storage space for storing the terminal's operating system, which may include, but is not limited to, Android, iOS, Windows Phone, etc. This application does not limit this.

[0235] The embodiment of the present application further provides a computer readable storage medium (Memory), which is a memory device in a terminal and is used for storing programs and data. It can be understood that the computer readable storage medium herein can include a built-in storage medium in the terminal, and of course can also include an extended storage medium supported by the terminal. The computer readable storage medium provides a storage space, which stores a processing system of the terminal. Furthermore, one or more instructions suitable for being loaded and executed by the processor 601 are stored in the storage space, and the instructions can be one or more computer programs (including program codes). It should be noted that the computer readable storage medium herein can be a high-speed RAM memory, or a non-volatile memory such as at least one disk memory; optionally, the computer readable storage medium can also be at least one computer readable storage medium located away from the aforementioned processor.

[0236] In an embodiment, the computer device can be specifically the display device 102 shown in the figure. The processor 601 executes the following operations by running the executable program code in the memory 603: Figure 1

[0237] Obtains the shooting parameter of the target camera device through the communication interface 602;

[0238] Obtains a reference data set, the reference data set including a corresponding relationship between a reference shooting parameter and a virtual scene parameter;

[0239] According to the shooting parameter of the target camera device and the reference data set, determines a target virtual scene parameter corresponding to virtual content to be shot by the target camera device;

[0240] Displays the virtual content according to the target virtual scene parameter, so that the target camera device shoots the virtual content.

[0241] As an optional embodiment, the reference shooting parameter is used to describe a shooting parameter of a reference camera device, and the virtual scene parameter is used to describe a shooting parameter of a virtual camera device; the processor 601 further executes the following operations by running the executable program code in the memory 603:

[0242] According to the shooting parameter of the reference camera device and the shooting parameter of the virtual camera device, configures the reference data set.

[0243] As an optional embodiment, the reference camera device includes multiple groups of shooting parameters; and a specific embodiment of the configuration process of the reference data set is as follows:

[0244] ​acquire a first set of shooting parameters of the reference camera device, and acquire a real image of the reference object shot by the reference camera device based on the first set of shooting parameters; the first set of shooting parameters is any one of a plurality of sets of shooting parameters;

[0245] adjust the virtual object corresponding to the reference object by adjusting the virtual scene parameter;

[0246] acquire a virtual image of the virtual object shot by the reference camera device based on the first set of shooting parameters;

[0247] compare the virtual image and the real image, and record a target virtual scene parameter corresponding to a case where the virtual image matches the real image;

[0248] establish a corresponding relationship between the first set of shooting parameters and the target virtual scene parameter, and add the corresponding relationship to the reference dataset.

[0249] As an optional embodiment, the reference dataset includes M*N*P sets of shooting parameters, each set of shooting parameters includes a focal length, an aperture value, and a focus value, M is the number of candidate focal lengths, N is the number of candidate aperture values, and P is the number of candidate focus values, M, N, and P are positive integers; the first set of shooting parameters includes an i-th candidate focal length, a j-th candidate aperture value, and a k-th candidate focus value, i is a positive integer less than M, j is a positive integer less than N, and k is a positive integer less than P;

[0250] A specific embodiment of the processor 601 adjusting the virtual object corresponding to the reference object by adjusting the virtual scene parameter is as follows:

[0251] The i-th candidate focal length is determined as the virtual focal length of the virtual camera device, and the virtual aperture value and the virtual focus value of the virtual camera device are configured.

[0252] As an optional embodiment, a specific embodiment of the processor 601 determining the target virtual scene parameter corresponding to the virtual content to be shot by the target camera device according to the shooting parameter of the target camera device and the reference dataset is as follows:

[0253] The target virtual scene parameter corresponding to the virtual content to be shot by the target camera device is determined according to the relationship between the shooting parameter of the target camera device and the shooting parameter of the reference camera device, and the corresponding relationship between the shooting parameter of the reference camera device and the shooting parameter of the virtual camera device.

[0254] As an optional embodiment, the reference dataset comprises M*N*P groups of shooting parameters, each group of shooting parameters comprises a focal length, an aperture value and a focus value, M is the number of candidate focal lengths, N is the number of candidate aperture values, and P is the number of candidate focus values, M, N and P are positive integers; the shooting parameter of the target camera device comprises an actual focal length, an actual aperture value and an actual focus value;

[0255] The processor 601 determines, according to the shooting parameter of the target camera device and the reference dataset, a specific embodiment of the target virtual scene parameter corresponding to the virtual content that needs to be shot by the target camera device as follows:

[0256] The actual focal length is determined as the scene focal length of the target virtual scene corresponding to the virtual content that needs to be shot by the target camera device;

[0257] If the actual focal length is consistent with the i th candidate focal length of the reference camera device, then the scene aperture value and the scene focus value of the target virtual scene are determined according to the relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i th candidate focal length;

[0258] If the actual focal length is between the i th candidate focal length and the i+1 th candidate focal length of the reference camera device, then the scene aperture value and the scene focus value of the target virtual scene are determined according to the relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i th candidate focal length, and the relationship between the candidate aperture value and the candidate focus value associated with the i+1 th candidate focal length;

[0259] Wherein, i is a positive integer less than M.

[0260] As an optional embodiment, the processor 601 determines the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i th candidate focal length as follows:

[0261] If the actual aperture value is consistent with the j th candidate aperture value associated with the i th candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are determined according to the relationship between the actual focus value and the candidate focus value associated with the j th candidate aperture value;

[0262] If the actual aperture value is between the j th and the j+1 th aperture values associated with the i th candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are determined according to the relationship between the actual focus value and the candidate focus value associated with the j th candidate aperture value, and the relationship between the candidate focus value associated with the j+1 th candidate aperture value;

[0263] Wherein, j is a positive integer less than N.

[0264] As an optional embodiment, the processor 601 determines the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual focus value and the candidate focus value associated with the jth candidate aperture value, and the specific embodiment is as follows:

[0265] If the actual focus value is consistent with the kth focus value associated with the jth candidate aperture value, the virtual aperture value and the virtual focus value corresponding to the kth focus value are determined as the scene aperture value and the scene focus value of the target virtual scene, respectively.

[0266] If the actual focus value is between the kth and the k+1th focus values associated with the jth candidate aperture value, the scene aperture value and the scene focus value of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth focus value, and the virtual aperture value and the virtual focus value corresponding to the k+1th focus value.

[0267] Wherein, k is a positive integer less than P.

[0268] As an optional embodiment, the processor 601 determines the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual focus value and the candidate focus value associated with the jth candidate aperture value, and the relationship between the candidate focus value associated with the j+1th candidate aperture value, and the specific embodiment is as follows:

[0269] If the actual focus value is consistent with the kth focus value associated with the jth candidate aperture value, the virtual aperture value and the virtual focus value corresponding to the kth focus value associated with the jth candidate aperture value, and the virtual aperture value and the virtual focus value corresponding to the kth focus value associated with the j+1th candidate aperture value are calculated to calculate the scene aperture value and the scene aperture value of the target virtual scene.

[0270] If the actual focus value is between the kth and the k+1th focus values associated with the jth candidate aperture value, the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th focus values associated with the jth candidate aperture value, and the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th focus values associated with the j+1th candidate aperture value are calculated to calculate the scene aperture value and the scene aperture value of the target virtual scene.

[0271] Wherein, k is a positive integer less than P.

[0272] As an optional embodiment, the processor 601 determines the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual aperture value and the candidate aperture value and the candidate focus value associated with the i th candidate focal length, and the relationship between the actual aperture value and the candidate aperture value and the candidate focus value associated with the i+1 th candidate focal length, and the specific embodiment is:

[0273] If the actual aperture value is consistent with the j th candidate aperture value associated with the i th candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are determined according to the relationship between the actual focus value and the candidate focus value associated with the j th candidate aperture value associated with the i th candidate focal length, and the relationship between the actual focus value and the candidate focus value associated with the j th candidate aperture value associated with the i+1 th candidate focal length;

[0274] If the actual aperture value is between the j th and j+1 th candidate aperture values associated with the i th candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are determined according to the relationship between the actual focus value and the candidate focus value associated with the j th and j+1 th candidate aperture values associated with the i th candidate focal length, and the relationship between the actual focus value and the candidate focus value associated with the j th and j+1 th candidate aperture values associated with the i+1 th candidate focal length;

[0275] Wherein, j is a positive integer less than N.

[0276] As an optional embodiment, the processor 601 determines the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual focus value and the candidate focus value associated with the j th candidate aperture value associated with the i th candidate focal length, and the relationship between the actual focus value and the candidate focus value associated with the j th candidate aperture value associated with the i+1 th candidate focal length, and the specific embodiment is:

[0277] If the actual focus value is consistent with the k th candidate focus value associated with the j th candidate aperture value associated with the i th candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are determined according to the virtual aperture value and the virtual focus value corresponding to the k th candidate focus value associated with the j th candidate aperture value associated with the i th candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the k th candidate focus value associated with the j th candidate aperture value associated with the i+1 th candidate focal length;

[0278] If the actual focus value is between the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith+1th candidate focal length.

[0279] wherein k is a positive integer less than P.

[0280] As an optional embodiment, the processor 601 determines the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the candidate focus values associated with the jth and the j+1th candidate aperture value associated with the ith candidate focal length, and the relationship between the candidate focus values associated with the jth and the j+1th candidate aperture value associated with the ith+1th candidate focal length, as follows:

[0281] If the actual focus value is the kth candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth and the j+1th candidate aperture value associated with the ith candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth and the j+1th candidate aperture value associated with the ith+1th candidate focal length.

[0282] If the actual focus value is between the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith+1th candidate focal length.

[0283] wherein k is a positive integer less than P.

[0284] Based on the same inventive concept, the principle and beneficial effects of the computer device provided in the embodiments of the present application in solving the problem are similar to those of the parameter configuration method in the method embodiments in solving the problem. For brevity, the principles and beneficial effects of the method embodiments are not described here.

[0285] The embodiment of the present application further provides a computer readable storage medium, and one or more instructions are stored in the computer readable storage medium, and the one or more instructions are suitable for being loaded by a processor and performing the parameter configuration method of the method embodiment.

[0286] The embodiment of the present application further provides a computer program product containing instructions, which, when executed on a computer, cause the computer to perform the parameter configuration method of the method embodiment.

[0287] The embodiment of the present application further provides a computer program product or a computer program, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device performs the parameter configuration method.

[0288] The steps in the method embodiments of the present application can be adjusted in sequence, combined and deleted according to actual needs.

[0289] The modules in the device embodiments of the present application can be combined, divided and deleted according to actual needs.

[0290] Those skilled in the art can understand that all or part of the steps in the above-mentioned method embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer readable storage medium, and the computer readable storage medium can include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0291] The above only describes a preferred embodiment of the present application, and of course cannot limit the scope of the rights of the present application, and those skilled in the art can understand that all or part of the above-mentioned embodiments can be implemented, and equivalent changes made according to the claims of the present application still belong to the scope covered by the present application.

Claims

1. A method of parameter configuration, characterized by, The method comprises: obtaining a shooting parameter of a target camera device; obtaining a reference data set, the reference data set comprising a corresponding relationship between a reference shooting parameter and a virtual scene parameter; the reference shooting parameter is used to describe a shooting parameter of a reference camera device, and the virtual scene parameter is used to describe a shooting parameter of a virtual camera device; determining a target virtual scene parameter corresponding to virtual content to be shot by the target camera device according to the shooting parameter of the target camera device and the reference data set; displaying the virtual content according to the target virtual scene parameter, so that the target camera device shoots the virtual content; wherein the reference data set comprises M*N*P groups of shooting parameters, each group of shooting parameters comprising a focal length, an aperture value and a focus value, M is the number of candidate focal lengths, N is the number of candidate aperture values, and P is the number of candidate focus values, M, N and P are all positive integers; the shooting parameter of the target camera device comprises an actual focal length, an actual aperture value and an actual focus value; the determining of the target virtual scene parameter corresponding to the virtual content to be shot by the target camera device according to the shooting parameter of the target camera device and the reference data set comprises: determining the scene focal length of the target virtual scene corresponding to the virtual content to be shot by the target camera device as the actual focal length; if the actual focal length is consistent with the i-th candidate focal length of the reference camera device, determining the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i-th candidate focal length; if the actual focal length is between the i-th candidate focal length and the i+1-th candidate focal length of the reference camera device, determining the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i-th candidate focal length, and the relationship between the actual aperture value and the actual focus value and the candidate aperture value and the candidate focus value associated with the i+1-th candidate focal length; wherein i is a positive integer less than M.

2. The method of claim 1, wherein, The method further comprises: configuring the reference data set according to the shooting parameter of the reference camera device and the shooting parameter of the virtual camera device.

3. The method of claim 2, wherein, The reference camera device comprises a plurality of groups of shooting parameters; the configuration process of the reference data set comprises: obtaining a first group of shooting parameters of the reference camera device, and using the reference camera device to shoot a real image of a reference object based on the first group of shooting parameters; the first group of shooting parameters is any one of the plurality of groups of shooting parameters; adjusting a virtual object corresponding to the reference object by adjusting the virtual scene parameter; using the reference camera device to shoot the virtual object based on the first group of shooting parameters to obtain a virtual image; comparing the virtual image and the real image, and recording the target virtual scene parameter corresponding to the matching of the virtual image and the real image; establish a correspondence between the first set of shooting parameters and the target virtual scene parameters, and add the correspondence to the reference dataset.

4. The method of claim 3, wherein, The first set of shooting parameters includes an i-th candidate focal length, a j-th candidate aperture value, and a k-th candidate focus value, i is a positive integer less than M, j is a positive integer less than N, and k is a positive integer less than P. The adjusting the virtual object corresponding to the reference object by adjusting the virtual scene parameters comprises: determining the i-th candidate focal length as a virtual focal length of the virtual camera device, and configuring a virtual aperture value and a virtual focus value of the virtual camera device.

5. The method of claim 1, wherein, The determining the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual aperture value and the candidate aperture value and the candidate focus value associated with the i-th candidate focal length comprises: if the actual aperture value is consistent with the j-th candidate aperture value associated with the i-th candidate focal length, determining the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual focus value and the candidate focus value associated with the j-th candidate aperture value; if the actual aperture value is between the j-th and the j+1-th aperture values associated with the i-th candidate focal length, determining the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual focus value and the candidate focus value associated with the j-th candidate aperture value, and the relationship between the actual focus value and the candidate focus value associated with the j+1-th candidate aperture value; wherein j is a positive integer less than N.

6. The method of claim 5, wherein, The determining the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual focus value and the candidate focus value associated with the j-th candidate aperture value comprises: if the actual focus value is consistent with the k-th focus value associated with the j-th candidate aperture value, determining the virtual aperture value and the virtual focus value corresponding to the k-th focus value as the scene aperture value and the scene focus value of the target virtual scene, respectively; if the actual focus value is between the k-th and the k+1-th focus values associated with the j-th candidate aperture value, calculating the scene aperture value and the scene focus value of the target virtual scene according to the virtual aperture value and the virtual focus value corresponding to the k-th focus value, and the virtual aperture value and the virtual focus value corresponding to the k+1-th focus value; wherein k is a positive integer less than P.

7. The method of claim 5, wherein, The determining the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual focus value and the candidate focus value associated with the j-th candidate aperture value, and the relationship between the actual focus value and the candidate focus value associated with the j+1-th candidate aperture value comprises: if the actual focal point value is consistent with the kth focal point value associated with the jth candidate aperture value associated with the ith candidate focal length, then determining the scene aperture value and the scene focal point value of the target virtual scene according to the virtual aperture value and the virtual focal point value corresponding to the kth focal point value associated with the jth candidate aperture value associated with the ith candidate focal length and the virtual aperture value and the virtual focal point value corresponding to the kth focal point value associated with the j+1th candidate aperture value associated with the ith candidate focal length; if the actual focal point value is between the kth and the k+1th focal point value associated with the jth candidate aperture value associated with the ith candidate focal length, then determining the scene aperture value and the scene focal point value of the target virtual scene according to the virtual aperture value and the virtual focal point value corresponding to the kth and the k+1th focal point value associated with the jth candidate aperture value associated with the ith candidate focal length and the virtual aperture value and the virtual focal point value corresponding to the kth and the k+1th focal point value associated with the j+1th candidate aperture value associated with the ith candidate focal length; wherein k is a positive integer less than P.

8. The method of claim 1, wherein, The determining the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual aperture value and the candidate aperture value and the candidate focal point value associated with the ith candidate focal length and the relationship between the actual aperture value and the candidate aperture value and the candidate focal point value associated with the i+1th candidate focal length, comprises: if the actual aperture value is consistent with the jth candidate aperture value associated with the ith candidate focal length, then determining the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual focal point value and the candidate focal point value associated with the jth candidate aperture value associated with the ith candidate focal length and the relationship between the actual focal point value and the candidate focal point value associated with the jth candidate aperture value associated with the i+1th candidate focal length; if the actual aperture value is between the jth and the j+1th candidate aperture value associated with the ith candidate focal length, then determining the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual focal point value and the candidate focal point value associated with the jth and the j+1th candidate aperture value associated with the ith candidate focal length and the relationship between the actual focal point value and the candidate focal point value associated with the jth and the j+1th candidate aperture value associated with the i+1th candidate focal length; wherein j is a positive integer less than N.

9. The method of claim 8, wherein, The determining the scene aperture value and the scene focal point value of the target virtual scene according to the relationship between the actual focal point value and the candidate focal point value associated with the jth candidate aperture value associated with the ith candidate focal length and the relationship between the actual focal point value and the candidate focal point value associated with the jth candidate aperture value associated with the i+1th candidate focal length, comprises: if the actual focus value is consistent with the kth candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth candidate aperture value associated with the ith+1 candidate focal length; if the actual focus value is between the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith+1 candidate focal length; wherein k is a positive integer less than P.

10. The method of claim 8, wherein, The determination of the scene aperture value and the scene focus value of the target virtual scene according to the relationship between the actual focus value and the candidate focus values associated with the jth and the j+1th candidate aperture values associated with the ith candidate focal length, and the relationship between the candidate focus values associated with the jth and the j+1th candidate aperture values associated with the ith+1 candidate focal length, comprises: if the actual focus value is consistent with the kth candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth and the j+1th candidate aperture values associated with the ith candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the kth candidate focus value associated with the jth and the j+1th candidate aperture values associated with the ith+1 candidate focal length; if the actual focus value is between the kth and the k+1th candidate focus value associated with the jth candidate aperture value associated with the ith candidate focal length, then the scene aperture value and the scene focus value of the target virtual scene are calculated according to the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth and the j+1th candidate aperture values associated with the ith candidate focal length, and the virtual aperture value and the virtual focus value corresponding to the kth and the k+1th candidate focus value associated with the jth and the j+1th candidate aperture values associated with the ith+1 candidate focal length; wherein k is a positive integer less than P.

11. A parameter configuration apparatus characterized by comprising: The parameter configuration device comprises: The acquisition unit is configured to acquire a shooting parameter of a target camera device, and acquire a reference data set including a correspondence relationship between a reference shooting parameter and a virtual scene parameter, wherein the reference shooting parameter is used to describe a shooting parameter of a reference camera device, and the virtual scene parameter is used to describe a shooting parameter of a virtual camera device. The processing unit is configured to determine a target virtual scene parameter corresponding to virtual content to be shot by the target camera device according to the shooting parameter of the target camera device and the reference data set. The display unit is configured to display the virtual content according to the target virtual scene parameter, so that the target camera device shoots the virtual content. The reference data set includes M*N*P groups of shooting parameters, each group of shooting parameters including a focal length, an aperture value and a focus value, M is a number of candidate focal lengths, N is a number of candidate aperture values, and P is a number of candidate focus values, and M, N and P are positive integers. The processing unit is configured to determine a target virtual scene parameter corresponding to virtual content to be shot by the target camera device according to the shooting parameter of the target camera device and the reference data set, and specifically configured to: determine the actual focal length as a scene focal length of the target virtual scene corresponding to the virtual content to be shot by the target camera device; if the actual focal length is consistent with an i th candidate focal length of the reference camera device, determine a scene aperture value and a scene focus value of the target virtual scene according to a relationship between the actual aperture value and the actual focus value and candidate aperture values and candidate focus values associated with the i th candidate focal length; if the actual focal length is between the i th candidate focal length and an i+1 th candidate focal length of the reference camera device, determine a scene aperture value and a scene focus value of the target virtual scene according to a relationship between the actual aperture value and the actual focus value and candidate aperture values and candidate focus values associated with the i th candidate focal length, and a relationship between the actual aperture value and the actual focus value and candidate aperture values and candidate focus values associated with the i+1 th candidate focal length, wherein i is a positive integer less than M.

12. A computer device, comprising: The storage device and the processor are included. The memory stores a computer program. The processor is configured to load the computer program to implement the parameter configuration method in any one of claims 1-10. The computer readable storage medium stores a computer program, and the computer program is adapted to be loaded by the processor and executed to implement the parameter configuration method in any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, The computer program product includes a computer program, and the computer program is adapted to be loaded by the processor and executed to implement the parameter configuration method in any one of claims 1-10.

14. A computer program product, characterised in that, ​

Citation Information

Patent Citations

  • Virtual shooting method, device and system and storage medium

    CN112311965A