Lens configuration method and device, electronic equipment and readable storage medium

By automatically configuring the lens group and dynamically allocating the lens, the problem of time-consuming and laborious lens configuration and single perspective in the prior art is solved, the diversity of game dialogue scenes and player experience is improved, and more efficient lens production and development is achieved.

CN119280808APending Publication Date: 2025-01-10BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311774728.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The camera configuration of dialogue scenes in existing games is time-consuming and labor-intensive, and the perspective is single, so it cannot fully demonstrate the diversity and depth of the plot, reducing the player's gaming experience.

Method used

By obtaining dialogue scripts in virtual dialogue scenarios, the target lens group is automatically configured according to the attribute information and atmosphere information of the lines, and the lens is dynamically allocated to adapt to different dialogue scenarios, achieving flexible adjustment and diversity of the lens.

Benefits of technology

It improves the dynamicity and visual effects of the conversation scenario, enhances the immersive experience of players, reduces the workload of human-laborated lenses, reduces the cost of lens production, and improves development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119280808A_ABST
    Figure CN119280808A_ABST
Patent Text Reader

Abstract

The invention provides a lens configuration method and device, electronic equipment and a readable storage medium, and relates to the field of game making. The method comprises the steps of obtaining a dialogue script of a virtual character in a virtual dialogue scene; according to the atmosphere information and the target type, a target dialogue shot group is screened from preset dialogue shot groups, and virtual roles in the virtual dialogue scene comprise a first virtual role and a second virtual role; the preset dialogue lens group comprises a first dialogue lens for shooting a first virtual character and a second dialogue lens for shooting a second virtual character; and according to the target type, distributing the shot in the target dialogue shot group to the virtual role to which the current line belongs. According to the method, the dynamic nature of dialogue scene making is increased, the purpose of flexibly and automatically adjusting the lens in the virtual dialogue scene is achieved, meanwhile, the workload of manually arranging the lens is omitted, the development cost of the lens sequence in the scene such as the dialogue in the game is reduced, and the development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of game production, and in particular to a lens configuration method, device, electronic device and readable storage medium. Background Art

[0002] With the rapid development of online games, scenes with task processing have been added to the game, thus enriching the game content and the player's gaming experience. In the task processing scene, when the player talks with the task NPC (Non-Player Character) or between the task NPCs, different forms of dialogue scenarios will be shown to the player to enrich the player experience. In this process, the reasonable use of the camera in the game can better convey the depth of the plot, add artistry and visual appeal, and make the player more immersed in the game plot.

[0003] At present, existing dialogue scenes usually use manually arranged shots or simple static shots generated by game engine configuration to display dialogue scenes. Manually arranged shots require constant human intervention, which not only wastes time, but also increases the complexity of the work, making dialogue presentation costly in terms of resources. Simple static shots generated by configuration usually present a single perspective, lack of change and dynamism, and cannot fully display the diversity and depth of the plot, which reduces the accuracy of players' understanding of the dialogue content, thereby reducing the players' gaming experience. Summary of the invention

[0004] In view of this, the present application provides a lens configuration method, device, electronic device and readable storage medium, the main purpose of which is to solve the problems of existing lens configuration solutions being time-consuming, labor-intensive and having a single viewing angle.

[0005] In a first aspect, an embodiment of the present application provides a lens configuration method, comprising:

[0006] Obtaining a dialogue script of a virtual character in a virtual dialogue scenario, wherein the dialogue script includes lines and atmosphere information of the lines;

[0007] Process the dialogue script to determine the target type of the lines;

[0008] Filtering a target dialogue shot group from a preset dialogue shot group according to the atmosphere information and the target type, wherein the virtual characters in the virtual dialogue scenario include a first virtual character and a second virtual character, and the preset dialogue shot group includes a first dialogue shot for shooting the first virtual character and a second dialogue shot for shooting the second virtual character;

[0009] According to the target type, the shots in the target dialogue shot group are allocated to the virtual character to which the current lines belong, so as to capture the visual field of the virtual dialogue scene through the shots in the target dialogue shot group.

[0010] In a possible implementation, the dialogue script is processed to determine the target type of the lines, including:

[0011] The lines are divided and processed according to the attribute information of the lines in the dialogue script to determine the candidate types of the lines, wherein the candidate types include: at least one of the dialogue structure type, the action type and the scene type, and the attribute information includes: at least one of the virtual character corresponding to the lines, the position information of the lines in the dialogue script, the action feature information of the virtual character corresponding to the lines, the identification label of the lines and the atmosphere information;

[0012] Determine the preset priority of candidate types according to the position of the virtual character in the virtual dialogue scenario;

[0013] The target type is determined from the candidate types according to a preset priority.

[0014] In a possible implementation, selecting a target dialogue shot group from preset dialogue shot groups according to atmosphere information and target type includes:

[0015] Matching at least one of the target type and the position of the virtual character in the virtual dialogue scenario with different preset lens group sets, and determining a candidate lens group set that matches at least one of the target type and the position of the virtual character in the virtual dialogue scenario, wherein the preset lens group set includes a plurality of preset dialogue lens groups having different preset weight values ​​and conforming to a preset lens parameter range, and different preset lens group sets correspond to different preset lens parameter ranges;

[0016] Determining a first preset trigger probability associated with the candidate shot group set and a target weight value corresponding to the atmosphere information;

[0017] According to the first preset trigger probability, a preset dialogue shot group corresponding to a target weight value in the candidate shot group set is determined as a target dialogue shot group.

[0018] In a possible implementation, according to the target type, allocating the shots in the target dialogue shot group to the virtual character to which the current line belongs includes:

[0019] Determining a target shot allocation rule and a second preset trigger probability of the target shot allocation rule according to the target type;

[0020] According to the second preset trigger probability, the shots in the target dialogue shot group are allocated to the virtual character to which the current line belongs using the target shot allocation rule.

[0021] In a possible implementation, the lines are divided according to the attribute information of the lines in the dialogue script to determine the candidate types of the lines, including:

[0022] If the lines correspond to a virtual character, determine that the lines belong to the single-line structure type;

[0023] If the virtual character corresponding to the first line in the adjacent lines is the same as the virtual character corresponding to the second line in the adjacent lines, it is determined that the first line and the second line belong to a multi-line structure type;

[0024] If the virtual character corresponding to the first line in the adjacent lines is different from the virtual character corresponding to the second line in the adjacent lines, it is determined that the first line and the second line belong to the interactive structure type.

[0025] In a possible implementation, the lines are divided according to the attribute information of the lines in the dialogue script to determine the candidate types of the lines, including:

[0026] If the line is located at the starting scene of the dialogue script, determining that the line belongs to the first scene type;

[0027] If the line is located at the end scene position of the dialogue script, it is determined that the line belongs to the second scene type;

[0028] If the line is located at a position corresponding to the target scene in the dialogue script, it is determined that the line belongs to the third scene type;

[0029] If the dialogue is associated with a target animation tag, the dialogue is determined to be of the fourth scene type.

[0030] In a possible implementation, the lines are divided according to the attribute information of the lines in the dialogue script to determine the candidate types of the lines, including:

[0031] If the action feature information of the virtual character corresponding to the line includes a giving feature, determining that the line belongs to a giving action type;

[0032] If the action feature information of the virtual character corresponding to the line includes a picking feature, determining that the line is a picking action type;

[0033] If the line is located after the third line in the dialogue script and does not belong to the take dialogue structure, the line is determined to be a close-up action type, wherein the third line is a line belonging to the give action type;

[0034] If the line is located after the fourth line in the dialogue script, the line is determined to be a head-turning action type, wherein the action feature information of the virtual character corresponding to the fourth line includes a head-turning feature.

[0035] In a possible implementation, the preset priority of the action type and the scene type is greater than the preset priority of the dialogue structure type;

[0036] The preset priority of the multi-line structure type is greater than the preset priority of the interactive structure type;

[0037] The preset priority of the interactive structure type is greater than the preset priority of the single-line structure type.

[0038] In a possible implementation, the target type includes any one of a single-line structure type, a giving action type, a taking action type, a close-up action type, a second scene type, a third scene type, and a fourth scene type, and the target shot allocation rule is used to allocate the shots in the target dialogue shot group to the virtual character to which the current line belongs, including:

[0039] If the current dialogue belongs to the first virtual character, assigning the first dialogue shot to the first virtual character;

[0040] If the current dialogue belongs to the second virtual character, the second dialogue shot is assigned to the second virtual character.

[0041] In a possible implementation, the target type includes a multi-line structure type, and the target shot allocation rule is used to allocate the shots in the target dialogue shot group to the virtual character to which the current line belongs, including:

[0042] Determine the number of lines in the first line group to which the current line belongs, wherein the first line group includes multiple adjacent lines corresponding to the same virtual character;

[0043] Determine a shot distribution rule associated with the number of lines in the target shot distribution rule, and a third trigger probability of the shot distribution rule;

[0044] If the current line belongs to the first virtual character, assigning the first dialogue shot to the first virtual character according to a shot distribution rule associated with the number of lines and a corresponding third trigger probability;

[0045] If the current line belongs to the second virtual character, the second dialogue shot is allocated to the second virtual character according to a shot distribution rule associated with the number of lines and a corresponding third trigger probability.

[0046] In a possible implementation, the target type includes an interactive structure type and the target dialogue shot group is a replacement shot group, or the target type includes a first scene type, and the target shot allocation rule is used to allocate the shots in the target dialogue shot group to the virtual character to which the current line belongs, including:

[0047] If the current dialogue belongs to the first virtual character, assigning the first dialogue shot to the first virtual character or the second virtual character;

[0048] If the current dialogue belongs to the second virtual character, the second dialogue shot is assigned to the first virtual character or the second virtual character.

[0049] In a possible implementation, the target type includes an interactive structure type, and the target dialogue shot group is a special shot group, and the shots in the target dialogue shot group are allocated to the virtual character to which the current line belongs using a target shot allocation rule, including:

[0050] Determine, according to the target shot allocation rule, a second dialogue group belonging to the interactive structure type in the dialogue script and a fourth trigger probability of the second dialogue group;

[0051] If the current line belongs to the second line group, the shots in the target dialogue shot group are allocated to the virtual character to which the current line belongs according to the target shot allocation rule corresponding to the fourth trigger probability.

[0052] In a possible implementation, the target type includes a head-turning action type, and the shots in the target dialogue shot group are allocated to the virtual character to which the current line belongs using a shot allocation rule, including:

[0053] If the current line belongs to the first virtual character, assigning a first dialogue shot corresponding to the head turning feature of the virtual character corresponding to the line to the first virtual character;

[0054] If the current line belongs to the second virtual character, the second dialogue shot corresponding to the head turning feature of the virtual character corresponding to the line is allocated to the second virtual character.

[0055] In a second aspect, an embodiment of the present application provides a lens configuration device, comprising:

[0056] An acquisition module, used to acquire a dialogue script of a virtual character in a virtual dialogue scenario, wherein the dialogue script includes lines and atmosphere information of the lines;

[0057] A first processing module is used to process the dialogue script to determine the target type of the lines;

[0058] A second processing module is used to select a target dialogue shot group from a preset dialogue shot group according to the atmosphere information and the target type, wherein the virtual characters in the virtual dialogue scene include a first virtual character and a second virtual character, and the preset dialogue shot group includes a first dialogue shot for shooting the first virtual character and a second dialogue shot for shooting the second virtual character;

[0059] The lens configuration module is used to allocate the lenses in the target dialogue lens group to the virtual character to which the current lines belong according to the target type, so as to capture the field of view of the virtual dialogue scene through the lenses in the target dialogue lens group.

[0060] In a possible implementation, the first processing module is specifically used to divide and process the lines according to the attribute information of the lines in the dialogue script, and determine the candidate types of the lines, wherein the candidate types include: at least one of dialogue structure type, action type and scene type, and the attribute information includes: the virtual character corresponding to the lines, the position information of the lines in the dialogue script, the action feature information of the virtual character corresponding to the lines, and at least one of the identification label and atmosphere information of the lines; determine the preset priority of the candidate types according to the position of the virtual character in the virtual dialogue scene; and determine the target type from the candidate types according to the preset priority.

[0061] In one possible implementation, the second processing module is specifically used to match at least one of the target type and the position of the virtual character in the virtual dialogue scenario with different preset lens group sets, determine a candidate lens group set that matches at least one of the target type and the position of the virtual character in the virtual dialogue scenario, wherein the preset lens group set includes a plurality of preset dialogue lens groups with different preset weight values ​​and conforming to a preset lens parameter range, and different preset lens group sets correspond to different preset lens parameter ranges; determine a first preset trigger probability associated with the candidate lens group set, and a target weight value corresponding to the atmosphere information; and determine, based on the first preset trigger probability, the preset dialogue lens group in the candidate lens group set that corresponds to the target weight value as the target dialogue lens group.

[0062] In a possible implementation, the shot configuration module is specifically used to determine a target shot allocation rule based on a target type, and a second preset trigger probability of the target shot allocation rule; based on the second preset trigger probability, the target shot allocation rule is used to allocate the shots in the target dialogue shot group to the virtual character to which the current line belongs.

[0063] In a possible implementation, the first processing module is specifically used to determine that the lines belong to a single-line structure type if the lines correspond to a virtual character; determine that the first lines and the second lines belong to a multi-line structure type if the virtual character corresponding to the first line in adjacent lines is the same as the virtual character corresponding to the second line in adjacent lines; and determine that the first lines and the second lines belong to an interactive structure type if the virtual character corresponding to the first line in adjacent lines is different from the virtual character corresponding to the second line in adjacent lines.

[0064] In one possible implementation, the first processing module is specifically used to determine that the lines belong to the first scene type if the lines are located at the starting scene of the dialogue script; determine that the lines belong to the second scene type if the lines are located at the ending scene of the dialogue script; determine that the lines belong to the third scene type if the lines are located at the position corresponding to the target scene in the dialogue script; and determine that the lines are of the fourth scene type if the lines are associated with a target animation tag.

[0065] In a possible implementation, the first processing module is specifically used to determine that the lines belong to the giving action type if the action feature information of the virtual character corresponding to the lines includes a giving feature; determine that the lines are the taking action type if the action feature information of the virtual character corresponding to the lines includes a taking feature; determine that the lines are the close-up action type if the lines are located after the third lines in the dialogue script and do not belong to the taking dialogue structure, wherein the third lines are the lines of the giving action type; and determine that the lines are the head turning action type if the lines are located after the fourth lines in the dialogue script, wherein the action feature information of the virtual character corresponding to the fourth lines includes the head turning feature.

[0066] In one possible implementation, the target type includes any one of a single-line structure type, a giving action type, a taking action type, a close-up action type, a second scene type, a third scene type, and a fourth scene type. The lens configuration module is specifically used to assign a first dialogue lens to the first virtual character if the current line belongs to the first virtual character; and assign a second dialogue lens to the second virtual character if the current line belongs to the second virtual character.

[0067] In a possible implementation, the target type includes a multi-line structure type, and a shot configuration module is specifically used to determine the number of lines in the first speech group to which the current line belongs, wherein the first speech group includes multiple adjacent lines corresponding to the same virtual character; determine the shot distribution rule associated with the number of lines in the target shot allocation rule, and the third trigger probability of the shot distribution rule; if the current line belongs to the first virtual character, allocate the first dialogue shot to the first virtual character according to the shot distribution rule associated with the number of lines and the corresponding third trigger probability; if the current line belongs to the second virtual character, allocate the second dialogue shot to the second virtual character according to the shot distribution rule associated with the number of lines and the corresponding third trigger probability.

[0068] In one possible implementation, the target type includes an interactive structure type and the target dialogue shot group is a replacement shot group, or the target type includes a first scene type, and the shot configuration module is specifically used to assign the first dialogue shot to the first virtual character or the second virtual character if the current line belongs to the first virtual character; and assign the second dialogue shot to the first virtual character or the second virtual character if the current line belongs to the second virtual character.

[0069] In a possible implementation, the target type includes an interactive structure type, and the target dialogue shot group is a special shot group. The shot configuration module is specifically used to determine the second dialogue group belonging to the interactive structure type in the dialogue script and the fourth trigger probability of the second dialogue group according to the target shot allocation rule; if the current line belongs to the second dialogue group, the shots in the target dialogue shot group are allocated to the virtual character to which the current line belongs according to the target shot allocation rule corresponding to the fourth trigger probability.

[0070] In one possible implementation, the target type includes a head turning action type, and the lens configuration module is specifically used to assign a first dialogue lens corresponding to the head turning feature of the virtual character corresponding to the line to the first virtual character if the current line belongs to the first virtual character; and assign a second dialogue lens corresponding to the head turning feature of the virtual character corresponding to the line to the second virtual character if the current line belongs to the second virtual character.

[0071] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.

[0072] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0073] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.

[0074] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.

[0075] In an embodiment of the present application, a dialogue script of a first virtual character and a second virtual character in a virtual dialogue scenario is obtained. The dialogue script records the lines of the virtual characters and the atmosphere information corresponding to the lines. The lines in the dialogue script are classified to determine the target type to which the lines belong. A target dialogue shot group is selected from a preset dialogue shot group based on the atmosphere information and the target type. Based on the target type, the shots in the target dialogue shot group are allocated to the virtual character to which the current lines belong, so that the field of view of the virtual dialogue scenario is captured through the shots in the target dialogue shot group.

[0076] In the embodiment of the present application, the system can use the atmosphere and target type of the lines to automatically configure the lenses in different target dialogue lens groups for the characters corresponding to the lines, so as to set different character perspectives for different dialogue scenarios, increase the dynamics of dialogue scenario production, and achieve the purpose of flexible and automatic adjustment of lenses in virtual dialogue scenarios. This provides richer lenses for picture acquisition, enhances the scene effect of dialogue scenes, and is conducive to improving the immersive experience of players. At the same time, it also saves the workload of human lens arrangement, greatly improves the lens production efficiency, reduces the development cost of lens sequences in scenes such as dialogues in the game, and helps to improve development efficiency.

[0077] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0079] Figure 1 A schematic diagram of the process of the lens configuration method provided in an embodiment of the present application is shown;

[0080] Figure 2 One of the station schematic diagrams provided in an embodiment of the present application is shown;

[0081] Figure 3 The second schematic diagram of the station provided in the embodiment of the present application is shown;

[0082] Figure 4 A structural block diagram of a lens configuration device provided in an embodiment of the present application is shown;

[0083] Figure 5 A structural block diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0084] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0085] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0086] The lens configuration method, device, electronic device, and readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0087] The present application embodiment provides a lens configuration method, such as Figure 1 As shown, the method includes:

[0088] Step 101, obtaining a dialogue script of a virtual character in a virtual dialogue scenario.

[0089] In the embodiment of the present application, the virtual dialogue scene includes but is not limited to the task dialogue between task NPCs, the task dialogue between player characters and task NPCs, and the dialogue content generated by the dialogue between player characters. In the embodiment of the present application, the virtual dialogue scene is applicable to online games or stand-alone games, including but not limited to puzzle games, role-playing games, competitive games, etc., so that when a task dialogue occurs between NPCs or player characters, the dialogue scene is shot based on the automatically configured lens.

[0090] Among them, the dialogue script includes: lines, atmosphere information of the lines, for example, the number of dialogue characters, character positions, character audio, character emotions, and whether the character turns his head in each dialogue, whether the character gives an item, whether the character accepts an item, and whether the character performs a large range of actions, etc., which are related to the lines and characters. Lines refer to the content generated by the dialogue between different dialogue characters in a virtual dialogue scenario. Position refers to the positional relationship between virtual characters. The atmosphere information of the lines refers to a distinctive and highly individualized atmosphere surrounding or belonging to a specific root, such as normal, tense, ambiguous, etc. The atmosphere information can be set by the creator of the dialogue script, or it can be obtained by system matching according to the intention and semantics of the lines. The virtual characters in the virtual dialogue scenario include a first virtual character and a second virtual character, that is, the number of dialogue characters is 2 or a multiple of 2. The embodiment of the present application does not specifically limit the content in the dialogue script.

[0091] It is worth mentioning that when the number of dialogue characters is 2, the first virtual character and the second virtual character can construct a dual-character standing relationship. The dual-character standing can be side by side, face to face, or front and back parallel, etc. In order to improve the reusability of the target shot allocation rule, when the number of dialogue characters is a multiple of 2, the two virtual characters that meet the above dual-character standing can be regarded as a character group, and a character group can reuse the shot allocation rule of the dual-character standing. For example, 4 virtual characters standing side by side can be regarded as standing side by side in pairs, or in a dialogue scenario with 6 virtual characters, 6 virtual characters stand facing each other in pairs, and the two virtual characters facing each other can be regarded as a character group. Then there are 3 character groups with the same standing position in the dialogue scenario, and each character group can use the same shot allocation rule when two virtual characters face each other.

[0092] It is understandable that the dialogue script can be a dialogue script pre-set by the game operator, or it can be a dialogue configuration input by the player in real time, thereby opening up the configuration of the shot and automatically generating a shot sequence after the user enters the dialogue configuration.

[0093] Step 102: Process the dialogue script to determine the target type of the lines.

[0094] In this embodiment, the target types of different lines are distinguished by classifying the lines in the dialogue script, so that suitable shots can be dynamically allocated using different dialogue types in the future. This allows the camera settings to be adjusted at any time during the shooting of the dialogue scene according to the plot requirements, and the diversity of the character's perspective can be achieved without manual lens arrangement, supporting the generation of more expressive lens sequences, thereby better expressing the plot and character emotions of the virtual dialogue scene.

[0095] In one embodiment of the present application, step 102, i.e., processing the dialogue script to determine the target type of the lines, specifically includes the following steps:

[0096] Step 102-1, classify the lines according to the attribute information of the lines in the dialogue script to determine the candidate types of the lines.

[0097] Among them, the attribute information can be recorded in the dialogue script. The attribute information includes but is not limited to at least one of the following: the virtual character corresponding to the line, the position information of the line in the dialogue script, the action feature information of the virtual character corresponding to the line, the identification label and atmosphere information of the line. Since each line is generated by a virtual character, each line can determine the corresponding virtual character. Candidate types include: at least one of dialogue structure type, action type and scene type. The dialogue structure type, action type and scene type can be further subdivided according to the actual dialogue scenario requirements. For example, the dialogue structure type can be divided into a single-line structure type, a multi-line structure type and an interactive structure type. The single-line structure type refers to a single sentence generated by a virtual character; the multi-line structure type refers to multiple lines generated continuously by a virtual character; the interactive structure type refers to a virtual character generating the first line, and another virtual character generating the second line, alternating repeatedly. The action types include: giving action type, taking action type, close-up action type of close-up parts, turning head action type, etc. The scene types include: a first scene type for the starting lines, a second scene type for the ending lines, a third scene type for special lines, a fourth scene type for animations with larger motion ranges, and the like.

[0098] Specifically, if the candidate type is a dialog structure type, step 102-1 can be implemented by the following method:

[0099] (1) If the dialogue corresponds to a fictional character, determine that the dialogue belongs to the single-line structure type.

[0100] (2) If the virtual character corresponding to the first line in the adjacent lines is the same as the virtual character corresponding to the second line in the adjacent lines, it is determined that the first line and the second line belong to the multi-line structure type.

[0101] (3) If the virtual character corresponding to the first line in the adjacent lines is different from the virtual character corresponding to the second line in the adjacent lines, it is determined that the first line and the second line belong to the interactive structure type.

[0102] Among them, the first line is one of the two adjacent lines, and the second line is the other of the two adjacent lines.

[0103] For example, Table 1 is a time sequence table of lines in a dialogue script. As shown in Table 1, the virtual characters corresponding to lines 1 to 9 are AABBABAAA in chronological order. Among them, each line in lines 1 to 9 corresponds to a virtual character, and each line in lines 1 to 9 meets the discrimination condition of the single-line structure type. Lines 1 to 2 and lines 7 to 9 are continuous lines spoken by character A, and lines 3 to 4 are continuous lines spoken by character B. Lines 1 to 2, lines 3 to 4, and lines 7 to 9 meet the discrimination condition of the multi-line structure type. Lines 2 to 3 are continuous A→B interactions, and lines 4 to 7 are continuous B→A→B→A interactions. Lines 2 to 3 and lines 4 to 7 are character A satisfying the interaction structure type. In this way, it can be determined that the candidate types of lines 1, lines 8, and lines 9 include single-line structure types and multi-line structure types; the candidate types of lines 2, lines 3, lines 4, and lines 7 include single-line structure types, multi-line structure types, and interactive structure types; the candidate types of lines 5 and lines 6 include single-line structure types and interactive structure types.

[0104] Table 1

[0105]

[0106]

[0107] Specifically, if the candidate type is a special scene type, step 102-1 can be implemented by the following method:

[0108] (1) If the lines are located at the starting scene of the dialogue script, it is determined that the lines belong to the first scene type.

[0109] (2) If the lines are located at the end scene of the dialogue script, it is determined that the lines belong to the second scene type.

[0110] (3) If the lines are located at a position corresponding to the target scene in the dialogue script, it is determined that the lines belong to the third scene type.

[0111] It is understandable that the position of the starting scene, the position of the ending scene and the position corresponding to the target scene are reasonably set according to actual needs. Exemplarily, the first two sentences in the dialogue script are used as the starting scene, then the lines at the position of the starting scene in the dialogue script are the starting lines, which belong to the first scene type. The last sentence in the dialogue script is used as the ending scene, then the lines at the position of the ending scene in the dialogue script are the ending lines, which belong to the second scene type. In the dialogue script, except for the initial lines, multi-line structure type lines, lines for giving items, lines for taking items, and large dynamic lines, every 10 lines are designated as special target scenes, and every 10 lines belong to the third scene type.

[0112] (4) If the dialogue is associated with a target animation tag, the dialogue is determined to be of the fourth scene type.

[0113] Exemplarily, check whether the lines hit the keyword. If so, check whether the animation corresponding to the keyword corresponds to a target animation tag with large-scale movements. If so, the lines belong to the fourth scene type.

[0114] Specifically, if the candidate type is an action type, step 102-1 can be implemented by the following method:

[0115] (1) If the action feature information of the virtual character corresponding to the line includes a giving feature, it is determined that the line belongs to the giving action type.

[0116] Exemplarily, if the action feature information of the virtual character corresponding to the lines includes a giving feature, that is, the virtual character corresponding to the lines performs a giving action, it can be determined that the lines belong to the giving action type to highlight the giving action.

[0117] (2) If the action feature information of the virtual character corresponding to the line includes a picking feature, the line is determined to be a picking action type.

[0118] For example, if the action feature information of the virtual character corresponding to the lines includes a picking feature, that is, the virtual character corresponding to the lines makes a picking action, it can be determined that the lines belong to the picking action type to highlight the picking action.

[0119] (3) If the line is located after the third line in the dialogue script and does not belong to the dialogue-taking structure, the line is determined to be a close-up action type; among which, the third line is a line of the given action type.

[0120] For example, if the next sentence of a line of a giving action type is not a line of a taking action type, it means that the line is in the process of giving or taking. At this time, a close-up of the virtual character's hand can be given, and it can be determined that the line belongs to the close-up action type.

[0121] (4) If the line is located after the fourth line in the dialogue script, the line is determined to be a head-turning action type, wherein the action feature information of the virtual character corresponding to the fourth line includes a head-turning feature.

[0122] For example, if the virtual character turns its head, in order to better convey the perspective of the head turning, the next line of the head turning line can be used as a head turning action type line.

[0123] It is understandable that the above-mentioned different candidate types of discrimination conditions can be reasonably set according to the needs of the plot, style and equipment, and the present application embodiment does not make specific limitations. Of course, other types of candidate types can also be included as needed, for example, the lines corresponding to the virtual character making a pointing action can be judged as belonging to the pointing action type, and the lines appearing with music can be judged as belonging to the accompaniment type, etc., which will not be repeated in the present application embodiment.

[0124] Step 102-2, determining a preset priority of candidate types according to the position of the virtual character in the virtual dialogue scenario.

[0125] In this embodiment, different preset priorities of lines associated with different positions are pre-configured in the system. Before or after determining the candidate type, the preset priority of the lines pre-stored in the system that matches the position of the virtual character in the virtual dialogue scenario is determined, so as to facilitate the screening of the target type by the preset priority. On the one hand, the lens allocation rules of different positions can be changed by adjusting the priority, and the operator does not need to set independent lens allocation rules for different positions, which helps to simplify the configuration requirements for the operator, so as to realize the reuse of lens allocation rules, reduce the development cost of lens sequences in the game dialogue and other situations, and improve the lens development efficiency. On the other hand, determining the target type according to the preset priority can make the lens configuration more targeted, making it easier for players to understand and feel the key points and emotions in different position situations, and enhance the visual effect and appeal.

[0126] It is understandable that, since multiple lines of dialogue often have a synergistic effect when a virtual character is performing an action or in a special scene, in order to better express the scene when the virtual character is performing an action or in a special scene, the preset priority of the action type and the scene type can be set to be higher than the preset priority of the conventional dialogue structure type. As for the preset priority of the dialogue structure type, in order to avoid misjudgment of the type caused by the sequence of lines, the preset priority of the multi-line structure type can be set to be higher than the preset priority of the interactive structure type, and the preset priority of the interactive structure type can be set to be higher than the preset priority of the single-line structure type.

[0127] For example, Figure 2 Taking the first virtual character and the second virtual character standing face to face as an example, the preset priority order can be: giving action type / taking action type / turning action type> third scene type> fourth scene type> first scene type> multi-line structure type (MultiLines)> interactive structure type (ABGroup)> single-line structure type (SingleLine)> second scene type. Figure 3Taking the first virtual character and the second virtual character standing side by side as an example, the preset priority levels may be: second scene type>giving action type / taking action type / head turning action type>third scene type>fourth scene type>first scene type>multi-line structure type (MultiLines)>interaction structure type (ABGroup)>single-line structure type (SingleLine).

[0128] Step 102-3, determining the target type from the candidate types according to a preset priority.

[0129] In this embodiment, the lines are divided and processed by comparing the attribute information of the lines and the different types of discrimination conditions, and the candidate types of the lines are determined. The candidate types are all types that can meet the discrimination conditions. And the preset priority of the line type is matched by the position of the virtual character in the virtual dialogue scene. Then all possible candidate types in the candidate types are sorted according to the preset priority, and the candidate type with a higher preset priority is used as the final target type of the line. Not only the required scenarios of different lines are distinguished by classifying the line attributes, but also the preset priority of the candidate type is associated with the position of the virtual character. In this way, the target type can be determined by combining the line scenario and the character position, so that the target type can not only meet the expression requirements of the scenario depth but also prevent the occurrence of lens occlusion, model penetration and other situations that do not meet the lens requirements of the character position, provide reliable guidance for subsequent diverse lens selection, ensure the visual effect of the dialogue scenario, thereby better promoting the development of the game plot, making the story more coherent and tense, and enhancing the player's immersion.

[0130] For example, Figure 2 Taking the face-to-face standing position and the line sequence table in Table 1 as an example, the preset priority is multi-line structure type > interactive structure type > single-line structure type. It can be determined that the target type of lines 1 to 4 and lines 7 to 9 is a multi-line structure type; the target type of lines 5 and 6 is an interactive structure type.

[0131] Step 103 , selecting a target dialogue shot group from the preset dialogue shot groups according to the atmosphere information and the target type.

[0132] The preset dialogue lens group includes a first dialogue lens for shooting the first virtual character and a second dialogue lens for shooting the second virtual character. The dialogue lens can be located at the frontal perspective of the virtual character. The frontal perspective refers to a straight line direction within a certain rotation or deviation range between the lens and the virtual character. The rotation or deviation range can be set as required, and the captured picture can show the details of the front or front part of the virtual character. For two virtual characters standing face to face, the lens group is a set of shot-reverse shots in the dialogue between the two virtual characters.

[0133] It is understandable that the number of the first dialogue lens and the second dialogue lens can be one or more. In the case of more than one, when it is determined that a first dialogue lens needs to be assigned to the virtual character, one of the multiple first dialogue lenses can be randomly selected for shooting. The same is true when multiple second dialogue lenses are configured.

[0134] In this embodiment, a target dialogue shot group that matches the target type and atmosphere information of the lines is selected from the preset dialogue shot group to restore the preset shot composition as much as possible when the virtual character performs different actions. This not only makes the shot echo the dialogue content and action, improves the visual effect, enhances the artistic expression of the shot picture and the player's viewing experience, but also increases the flexibility of shot group reuse, achieves the purpose of calling different preset shot groups for different target types and atmospheres to determine targeted shots, and takes into account both diversified visual effects and shot configuration costs.

[0135] In one embodiment of the present application, step 103, i.e., selecting a target dialogue shot group from a preset dialogue shot group according to the atmosphere information and the target type, specifically includes the following steps:

[0136] Step 103-1, matching at least one of the target type and the position of the virtual character in the virtual dialogue scenario with different preset lens group sets, and determining a candidate lens group set that matches at least one of the target type and the position of the virtual character in the virtual dialogue scenario.

[0137] Among them, the system is pre-configured with multiple preset lens group sets of different functions or types, for example, a normal lens (LensNormal) group set, a character lens (ConditionSpeaker) group set, a special lens (LensSpecial) group set, an insert lens (LensInsert) group set, an initial lens (LensInit) group set, a turn lens (LensTurn) group set, a take lens (LensTake) group set, a hand close-up (LensHand) group set, a large-scale action lens (LensAction) group set, and a long-range lens (LensTele) group set. Each preset lens group set includes at least one preset lens group, and at least one preset lens group in the same preset lens group set corresponds to a different weight value, and the lenses therein all meet the preset lens parameter range. Different preset lens group sets correspond to different preset lens parameter ranges, so as to adapt to different types of lines and atmospheres. The first dialogue lens and the second dialogue lens of the same preset dialogue lens group are different in parameters such as shooting angle and shooting position related to the virtual character, and other lens parameters can be the same. Specifically, the lens parameters include lens position, lens rotation angle, lens focal length, following target, gazing target parameters, etc.

[0138] It is understandable that one target type or one station position can match multiple candidate lens group sets to meet the diversity of lens allocation.

[0139] Step 103-2: Determine a first preset trigger probability associated with the candidate shot group set and a target weight value corresponding to the atmosphere information.

[0140] Among them, the first preset trigger probability refers to the probability of adopting the associated candidate lens group set. The first preset trigger probability can be determined by the system according to the position of the virtual character in the virtual dialogue scenario, or it can be set by the operator, or it can be determined by the system according to the number of lines in the dialogue script and preset rules.

[0141] Step 103 - 3 : According to the first preset trigger probability, a preset dialogue shot group corresponding to a target weight value in the candidate shot group set is determined as a target dialogue shot group.

[0142] In this embodiment, the candidate lens group set is matched by using the target type and / or the virtual character position, so that the candidate lens group set that can be used can meet the requirements of the dialogue context and the character position for the lens at the same time, which not only improves the expressiveness of the picture, but also reduces the possibility of lens occlusion, model penetration and other problems. Further, the set of target dialogue lens groups that can be finally used in the candidate lens group set is determined by the first preset trigger probability of the candidate lens group set, so that the random selection of different preset lens group sets is realized with a certain probability, and there is no need to define a fixed lens group set. Even if the lines belong to the same target type, different target lens groups may be used, which meets the diverse lens personalized allocation requirements, increases the dynamics of dialogue scene production, and thus presents rich visual effects for players. Further, the target dialogue lens group is selected from the randomly selected candidate lens group using the target weight value corresponding to the atmosphere information, so that the target dialogue lens group can echo the dialogue atmosphere, enhance the scene effect of the dialogue scene, and help improve the player's immersive experience.

[0143] For example, taking the lines belonging to the first scene type as an example, the first two lines in the dialogue script are used as the initial lines, and belong to the first scene type. There is a 50% probability of using the LensNormal configuration table (normal lens group set), and a target lens group is selected from it according to the weight value of the atmosphere and applied to the initial lines. Another 50% probability of using the LensInit configuration table (initial lens group set), and a lens group is selected from the LensInit configuration table according to the weight value of the atmosphere and applied to the initial lines.

[0144] Taking the single-line structure type of dialogue as an example, there is a 100% probability of using the LensNormal configuration table (normal lens group set), and a target lens group is selected from it according to the weight value of the atmosphere and applied to the single-line structure type of dialogue.

[0145] Taking the lines of head-turning action type as an example, there is a 100% probability of using the LensTurn configuration table (head-turning lens group set), and a target lens group is selected from it according to the weight value of the atmosphere and applied to the lines of head-turning action type.

[0146] Taking close-up action-type dialogues as an example, there is a 50% probability of using the LensHand configuration table (hand close-up shot group set), and a 50% probability of using the LensNormal configuration table (normal lens group set). After the final lens group set is determined, a target lens group is selected from it according to the weight value of the atmosphere and applied to the close-up action-type dialogues.

[0147] Taking the interactive structure type of lines as an example, since the interactive structure type of lines are generated by the interaction of multiple roles and do not exist as a single sentence, multiple interactive structure type of lines can constitute an interactive structure type of lines group. For the interactive structure type of lines group, it is only executed once globally, using the LensSpecial configuration table (special lens group set). At this time, the first preset trigger probability of the LensSpecial configuration table is the ratio of the hit line group relative to all interactive structure type lines in the dialogue script. For other lines groups, the probability of using the LensInsert configuration table (insert lens group set) is 30%, and the probability of using the LensNormal configuration table (normal lens group set) is 70%. After determining the final lens group set, a target lens group is selected from it according to the weight value of the atmosphere and applied to the interactive structure type of lines.

[0148] Step 104, according to the target type, assign the shots in the target dialogue shot group to the virtual character to which the current line belongs.

[0149] In the embodiment of the present application, a dialogue script of a first virtual character and a second virtual character in a virtual dialogue scenario is obtained. The dialogue script records the lines of the virtual character and the atmosphere information corresponding to the lines. The lines in the dialogue script are classified to determine the target type to which the lines belong. The target dialogue lens group is screened from the preset dialogue lens group according to the atmosphere information and the target type. According to the target type, the lens in the target dialogue lens group is assigned to the virtual character to which the current line belongs, so that the visual field of the virtual dialogue scenario can be collected through the lens in the target dialogue lens group. Thus, the lens in different target dialogue lens groups is automatically configured for the character corresponding to the line by using the atmosphere and target type of the line, so as to set different character perspectives for different dialogue scenarios, increase the dynamics of dialogue scenario production, and achieve the purpose of flexible and automatic adjustment of the lens in the virtual dialogue scenario. Thus, more abundant lenses are provided for picture acquisition, the scene effect of the dialogue scene is enhanced, which is conducive to improving the immersive experience of the player, and at the same time, the workload of human lens arrangement is saved, the lens production efficiency is greatly improved, the development cost of lens sequences in scenes such as dialogues in the game is reduced, and the development efficiency is improved.

[0150] In one embodiment of the present application, step 104, that is, assigning the shots in the target dialogue shot group to the virtual character to which the current line belongs according to the target type, specifically includes the following steps:

[0151] Step 104 - 1 , determining a target shot allocation rule and a second preset trigger probability of the target shot allocation rule according to the target type.

[0152] Among them, the target shot allocation rule is used to define the allocation strategy of the shots in the target shot group. For example, the first shot allocation strategy includes allocating the first dialogue shot to the first virtual character currently speaking and the second dialogue shot to the second virtual character currently speaking; the second shot allocation strategy includes allocating the first dialogue shot to the first virtual character currently speaking or the second virtual character; the third shot allocation strategy includes allocating the first dialogue shot to the virtual character corresponding to the 1st to 2nd lines of the dialogue script and the second dialogue shot to the virtual character corresponding to the 3rd to 4th lines of the dialogue script. The embodiment of the present application does not specifically limit the content of the target shot allocation rule, and it can be reasonably set according to visual requirements.

[0153] Step 104-2, according to the second preset trigger probability, using the target shot allocation rule to allocate the shots in the target dialogue shot group to the virtual character to which the current line belongs.

[0154] In this embodiment, the target type is matched with different preset shot allocation rules to determine the target shot allocation rule that matches the target type. The target shot allocation rule that is finally adopted is determined by the second preset trigger probability of the target shot allocation rule, and the shot allocation operation of the virtual character to which the current line belongs is performed according to the target shot allocation rule hit based on the second preset trigger probability. Thus, the random selection of different shot allocation rules is achieved with a certain probability, making the shot allocation flexible and changeable, realizing the dynamic configuration of the shot, helping to show the diversity and depth of the plot, and improving the accuracy of the player's understanding of the dialogue content.

[0155] Specifically, when the target type includes any one of a single-line structure type, a giving action type, a taking action type, a close-up action type, a second scene type, a third scene type and a fourth scene type, step 104-2 specifically includes: if the current line belongs to the first virtual character, assigning the first dialogue shot to the first virtual character; if the current line belongs to the second virtual character, assigning the second dialogue shot to the second virtual character.

[0156] In this embodiment, conventional shot allocation rules are used as target shot allocation rules for single-line structure type, given action type, taking action type, close-up action type, second scene type, third scene type and fourth scene type. When shot allocation is triggered, the dialogue shots in the target shot group are directly allocated to the lines spoken by the virtual character from the front perspective, thereby ensuring that the lines can correspond to the front picture of the virtual character who speaks, and enhancing the player's perception of the speaker or the action-generating party.

[0157] In the case where the target type includes a multi-line structure type, step 104-2 specifically includes: determining the number of lines in the first line group to which the current line belongs; determining the shot distribution rule associated with the number of lines in the target shot distribution rule, and the third trigger probability of the shot distribution rule; if the current line belongs to the first virtual character, the first dialogue shot is allocated to the first virtual character according to the shot distribution rule associated with the number of lines and the corresponding third trigger probability; if the current line belongs to the second virtual character, the second dialogue shot is allocated to the second virtual character according to the shot distribution rule associated with the number of lines and the corresponding third trigger probability.

[0158] The first dialogue group includes multiple adjacent lines corresponding to the same virtual character.

[0159] In this embodiment, the lines in the first line group are divided according to the third trigger probability of the target shot allocation rule and the shot distribution rule, and the corresponding shots are allocated according to the division result. Thus, a suitable shot distribution rule is dynamically selected according to the number of lines, so that when a virtual character speaks continuously, the shot switching can be triggered multiple times, allowing the player to observe the dialogue scene from multiple perspectives, avoiding the boredom caused by using a unified perspective for a long time, and enhancing the display effect of multi-line structure type lines and virtual characters.

[0160] When the target type includes an interactive structure type and the target dialogue shot group is a replacement shot group, or the target type includes a first scene type, step 104-2 specifically includes: if the current line belongs to the first virtual character, assigning the first dialogue shot to the first virtual character or the second virtual character; if the current line belongs to the second virtual character, assigning the second dialogue shot to the first virtual character or the second virtual character.

[0161] In this embodiment, considering that the dialogue of the interactive structure type is often produced by multiple virtual characters speaking alternately, if the camera angle is frequently switched according to the conventional lens allocation method, it is easy to make the player feel uncomfortable. Similarly, in the initial stage of the dialogue script, that is, the dialogue of the first scene type, if the camera angle is frequently switched, it will affect the player's initial impression of the dialogue. Therefore, when the first virtual character speaks, the first dialogue lens or the second virtual character can be used for shooting with equal probability. Similarly, when the second virtual character speaks, the first dialogue lens or the second virtual character can be used for shooting with equal probability. This reduces the discomfort caused by frequent switching of lenses due to the variable character order of the interactive structure type or the first scene type dialogue.

[0162] When the target type includes an interactive structure type, and the target dialogue shot group is a special shot group, step 104-2 specifically includes: determining the second dialogue group belonging to the interactive structure type in the dialogue script and the fourth trigger probability of the second dialogue group according to the target shot allocation rule; if the current line belongs to the second dialogue group, allocating the shots in the target dialogue shot group to the virtual character to which the current line belongs according to the target shot allocation rule corresponding to the fourth trigger probability.

[0163] In this embodiment, if it is determined that the lens in the special lens group is used to perform the lens allocation operation of the interactive structure type dialogue, the second dialogue group of the special lens group that can be used is randomly hit from all the dialogue groups belonging to the interactive structure type in the dialogue script according to the fourth trigger probability associated with the special lens group. For the lines in the second dialogue group, the first dialogue lens in the special lens group is used to shoot the first virtual character, and the second dialogue lens in the special lens group is used to shoot the second virtual character. In this way, special emotions are inserted into some lines of the interactive structure type, avoiding the use of a single lens allocation method for all lines of the interactive structure type, and improving the visual effect.

[0164] In the case where the target type includes a head-turning action type, step 104-2 specifically includes: if the current line belongs to the first virtual character, assigning the first dialogue shot corresponding to the head-turning feature of the virtual character corresponding to the line to the first virtual character; if the current line belongs to the second virtual character, assigning the second dialogue shot corresponding to the head-turning feature of the virtual character corresponding to the line to the second virtual character.

[0165] Among them, the head turning characteristics include characteristic parameters such as the head turning direction, which will not be repeated in the embodiments of the present application.

[0166] In this embodiment, a corresponding lens is selected from a target lens group based on the head turning feature and assigned to the virtual character, so that the picture captured by the lens can change with the head turning amplitude of the virtual character, thereby enhancing the player's perception of the virtual character's head turning, which is conducive to improving the player's sense of immersion.

[0167] For example, Figure 2 Taking the face-to-face standing position shown as an example, the preset priority setting can be: giving action type / taking action type / head turning action type>third scene type>fourth scene type>first scene type>multi-line structure type (MultiLines)>interaction structure type (ABGroup)>single-line structure type (SingleLine)>second scene type.

[0168] For ABGroup (interactive structure type dialogue group), the following shot allocation methods (1), (2), and (3) can be used:

[0169] (1) Global execution is only once, and can be used to insert special emotions. A lens group is randomly selected from the LensSpecial configuration table according to the atmosphere and the lens group weight under the atmosphere. There is a 50% probability (the fourth trigger probability) that a random ABGroup from all ABGroups applies the lens group. Specifically, the A lens (the first dialogue lens) in the lens group is assigned to the lines spoken by the standing character A (the first virtual character), and the B lens (the second dialogue lens) in the lens group is assigned to the lines spoken by the standing character B (the second virtual character); there is a 50% probability that two ABGroups are randomly selected from all ABGroups, and the two ABGroups respectively apply the A lens and the B lens of the lens group, that is, the A lens in the lens group is assigned to all the lines spoken by the characters A and B in one ABGroup, and the B lens is assigned to all the lines spoken by the characters A and B in another ABGroup.

[0170] (2) For each ABGroup except the dialogue group with special emotions inserted in (1), there is a 30% probability (first trigger probability) to randomly select a lens group from the LensInsert configuration table according to the atmosphere and the lens group weight under the atmosphere. Furthermore, there is a 50% probability (second trigger probability) to assign lens A in the lens group to the lines spoken by standing character A, and to assign lens B in the lens group to the lines spoken by standing character B. The other 50% probability is to equally likely apply only one lens in the lens group, that is, 50% use lens A to shoot characters A and B in ABGroup, and 50% use lens B to shoot characters A and B in ABGroup.

[0171] (3) For each of the remaining ABGroups except the one with special emotions inserted in (1), there is a 30% probability (first trigger probability) to randomly select a lens group from the LensNormal configuration table based on the atmosphere and the lens group weights under the atmosphere, that is, lens A in the lens group is assigned to the lines spoken by standing character A, and lens B in the lens group is assigned to the lines spoken by standing character B.

[0172] For SingleLine (single-line structure type dialogue), a lens group is randomly selected from the LensNormal configuration table according to the atmosphere and the lens group weight under the atmosphere, and the lens corresponding to the speaker's position of the line is selected from the lens group for setting.

[0173] For MultiLines (a dialogue group with a multi-line structure), first determine the number of lines in the dialogue group. When the number of lines in the dialogue group is 2, randomly select a lens group from the LensNormal configuration table based on the atmosphere and the lens group weight under the atmosphere, and select the lens corresponding to the position of the speaker of the two lines from the lens group for setting, that is, the two lines share one lens. Select a lens group from the speaker-related ConditionSpeaker configuration table, the first lens in the lens group covers the first and second lines, that is, the first and second lines share one lens, and the second lens covers the third line. When the number of lines in a dialogue group is 4, there is a 50% probability (the third preset trigger probability) of selecting a lens group containing two lenses from the ConditionSpeaker configuration table associated with the speaker, the first lens in the lens group covers the 1st and 2nd lines, and the second lens in the lens group covers the 3rd and 4th lines; there is a 50% probability (the third preset trigger probability) of selecting a lens group containing three lenses from the ConditionSpeaker configuration table associated with the speaker, the first lens of the lens group covers the 1st and 2nd lines, the second lens covers the 3rd line, and the third lens covers the 4th line. When the number of lines in a dialogue group is equal to 5, there is a 50% probability (third preset trigger probability) to select a lens group containing three lenses from the speaker-related ConditionSpeaker configuration table, in which the first lens covers the 1st and 2nd lines, the second lens covers the 3rd line, and the third lens covers the 4th and 5th lines; there is a 50% probability to select a lens group containing three lenses from the speaker-related ConditionSpeaker configuration table, in which the first lens covers the 1st and 2nd lines, the second lens covers the 3rd and 4th lines, and the third lens covers the 5th line. When the number of lines in a dialogue group is greater than 5, 5 lines are grouped together, and the lines after the 5th line reuse the allocation rules of lines 1 to 5, for example, the 6th line adopts the above-mentioned SingleLine processing method, and the 7th to 10th lines adopt the above-mentioned MultiLines processing method.

[0174] For the first two initial lines in the dialogue script (lines of the first scene type), there is a 50% probability of randomly selecting a lens group from the LensNormal configuration table according to the atmosphere and the weight of the lens group under the atmosphere and applying it to the first two initial lines; there is a 25% probability of randomly selecting a lens group from the LensInit configuration table according to the atmosphere and the weight of the lens group under the atmosphere and applying it to the first two initial lines, and a 25% probability of randomly selecting a lens group from the LensInit configuration table according to the atmosphere and the weight of the lens group under the atmosphere and applying it to the first line, and a lens group from the LensNormal configuration table according to the atmosphere and the weight of the lens group under the atmosphere and applying it to the second line.

[0175] For the last ending line in the dialogue script (the line of the second scene type), there is a 30% probability of selecting and applying a lens from the LensTele configuration table based on the atmosphere and the weight of the lens group under that atmosphere, and a 70% probability of randomly selecting and applying a lens group from the LensNormal configuration table based on the atmosphere and the weight of the lens group under that atmosphere.

[0176] For dialogues that require distant views (the third scene type of dialogues), a lens is randomly selected from the LensTele configuration table based on the atmosphere and the weight of the lens group under the atmosphere.

[0177] For lines that trigger large dynamic logic (the fourth scene type), a lens is randomly selected from the LensAction configuration table based on the atmosphere and the weight of the lens group under the atmosphere.

[0178] For lines with a given action type, a lens group is randomly selected from the LensNormal configuration table according to the atmosphere and the lens group weight under the atmosphere, and the corresponding lens in the lens group is applied according to the current speaker.

[0179] For close-up action lines, there is a 50% probability of randomly selecting a lens group from the LensHand configuration table based on the atmosphere and the weight of the lens group under that atmosphere; there is a 50% probability of randomly selecting a lens group from the LensNormal configuration table based on the atmosphere and the weight of the lens group under that atmosphere.

[0180] For lines with picking action type, a lens group is randomly selected from the LensTake configuration table based on the head turning direction and atmosphere as well as the lens group weight under the atmosphere.

[0181] For lines with head-turning actions, a lens group is randomly selected from the LensTurn configuration table based on the head-turning direction and atmosphere as well as the lens group weight under that atmosphere.

[0182] by Figure 3 Taking the side-by-side standing position shown as an example, the preset priority levels can be: second scene type>giving action type / taking action type / head turning action type>third scene type>fourth scene type>first scene type>multi-line structure type (MultiLines)>interaction structure type (ABGroup)>single-line structure type (SingleLine).

[0183] For the first two initial lines in the dialogue script (lines of the first scene type), there is a 50% probability of randomly selecting a lens group from the LensNormal configuration table according to the atmosphere and the weight of the lens group under the atmosphere and applying it to the first two initial lines; there is a 25% probability of randomly selecting a lens group from the LensTele configuration table according to the atmosphere and the weight of the lens group under the atmosphere and applying it to the first line, and a lens group from the LensNormal configuration table according to the atmosphere and the weight of the lens group under the atmosphere and applying it to the second line, and there is a 25% probability of randomly selecting a lens group from the LensNormal configuration table according to the atmosphere and the weight of the lens group under the atmosphere and applying it to the first line, and a lens group from the LensTele configuration table according to the atmosphere and the weight of the lens group under the atmosphere and applying it to the second line.

[0184] Except for the first type of scene lines, other types of lines can adopt the above-mentioned face-to-face standing distribution method, which will not be elaborated here.

[0185] As a specific implementation of the above lens configuration method, the present application embodiment provides a lens configuration device. Figure 4 As shown, the lens configuration device 400 includes: an acquisition module 401, a first processing module 402, a second processing module 403 and a lens configuration module 404.

[0186] The acquisition module 401 is used to acquire the dialogue script of the virtual character in the virtual dialogue scenario, wherein the dialogue script includes lines and atmosphere information of the lines;

[0187] A first processing module 402 is used to process the dialogue script to determine the target type of the lines;

[0188] The second processing module 403 is used to select a target dialogue shot group from the preset dialogue shot group according to the atmosphere information and the target type, wherein the virtual characters in the virtual dialogue scene include a first virtual character and a second virtual character, and the preset dialogue shot group includes a first dialogue shot for shooting the first virtual character and a second dialogue shot for shooting the second virtual character;

[0189] The lens configuration module 404 is used to allocate the lenses in the target dialogue lens group to the virtual character to which the current line belongs according to the target type, so as to capture the field of view of the virtual dialogue scene through the lenses in the target dialogue lens group.

[0190] In a possible implementation, the first processing module 402 is specifically used to divide and process the lines according to the attribute information of the lines in the dialogue script, and determine the candidate types of the lines, wherein the candidate types include: at least one of dialogue structure type, action type and scene type, and the attribute information includes: the virtual character corresponding to the lines, the position information of the lines in the dialogue script, the action feature information of the virtual character corresponding to the lines, and at least one of the identification label and atmosphere information of the lines; determine the preset priority of the candidate types according to the position of the virtual character in the virtual dialogue scene; and determine the target type from the candidate types according to the preset priority.

[0191] In one possible implementation, the second processing module 403 is specifically used to match at least one of the target type and the position of the virtual character in the virtual dialogue scenario with different preset lens group sets, determine a candidate lens group set that matches at least one of the target type and the position of the virtual character in the virtual dialogue scenario, wherein the preset lens group set includes a plurality of preset dialogue lens groups having different preset weight values ​​and conforming to a preset lens parameter range, and different preset lens group sets correspond to different preset lens parameter ranges; determine a first preset trigger probability associated with the candidate lens group set, and a target weight value corresponding to the atmosphere information; and determine, based on the first preset trigger probability, the preset dialogue lens group in the candidate lens group set that corresponds to the target weight value as the target dialogue lens group.

[0192] In a possible implementation, the shot configuration module 404 is specifically used to determine a target shot allocation rule based on a target type, and a second preset trigger probability of the target shot allocation rule; based on the second preset trigger probability, the target shot allocation rule is used to allocate the shots in the target dialogue shot group to the virtual character to which the current line belongs.

[0193] In a possible implementation, the first processing module 402 is specifically used to determine that the lines belong to a single-line structure type if the lines correspond to a virtual character; if the virtual character corresponding to the first line in adjacent lines is the same as the virtual character corresponding to the second line in adjacent lines, determine that the first line and the second line belong to a multi-line structure type; if the virtual character corresponding to the first line in adjacent lines is different from the virtual character corresponding to the second line in adjacent lines, determine that the first line and the second line belong to an interactive structure type.

[0194] In one possible implementation, the first processing module 402 is specifically used to determine that the lines belong to the first scene type if the lines are located at the starting scene of the dialogue script; determine that the lines belong to the second scene type if the lines are located at the ending scene of the dialogue script; determine that the lines belong to the third scene type if the lines are located at the position corresponding to the target scene in the dialogue script; and determine that the lines are of the fourth scene type if the lines are associated with a target animation tag.

[0195] In a possible implementation, the first processing module 402 is specifically used to determine that the lines belong to the giving action type if the action feature information of the virtual character corresponding to the lines includes a giving feature; determine that the lines are of the taking action type if the action feature information of the virtual character corresponding to the lines includes a taking feature; determine that the lines are of the close-up action type if the lines are located after the third lines in the dialogue script and do not belong to the taking dialogue structure, wherein the third lines are lines of the giving action type; and determine that the lines are of the head turning action type if the lines are located after the fourth lines in the dialogue script, wherein the action feature information of the virtual character corresponding to the fourth lines includes the head turning feature.

[0196] In one possible implementation, the target type includes any one of a single-line structure type, a giving action type, a taking action type, a close-up action type, a second scene type, a third scene type, and a fourth scene type. The lens configuration module 404 is specifically used to assign the first dialogue lens to the first virtual character if the current line belongs to the first virtual character; and assign the second dialogue lens to the second virtual character if the current line belongs to the second virtual character.

[0197] In a possible implementation, the target type includes a multi-line structure type, and the shot configuration module 404 is specifically used to determine the number of lines in the first speech group to which the current line belongs, wherein the first speech group includes multiple adjacent lines corresponding to the same virtual character; determine the shot distribution rule associated with the number of lines in the target shot allocation rule, and the third trigger probability of the shot distribution rule; if the current line belongs to the first virtual character, the first dialogue shot is allocated to the first virtual character according to the shot distribution rule associated with the number of lines and the corresponding third trigger probability; if the current line belongs to the second virtual character, the second dialogue shot is allocated to the second virtual character according to the shot distribution rule associated with the number of lines and the corresponding third trigger probability.

[0198] In a possible implementation, the target type includes an interactive structure type and the target dialogue shot group is a replacement shot group, or the target type includes a first scene type, and the shot configuration module 404 is specifically used to assign the first dialogue shot to the first virtual character or the second virtual character if the current line belongs to the first virtual character; and assign the second dialogue shot to the first virtual character or the second virtual character if the current line belongs to the second virtual character.

[0199] In a possible implementation, the target type includes an interactive structure type, and the target dialogue shot group is a special shot group. The shot configuration module 404 is specifically used to determine the second dialogue group belonging to the interactive structure type in the dialogue script and the fourth trigger probability of the second dialogue group according to the target shot allocation rule; if the current line belongs to the second dialogue group, the shots in the target dialogue shot group are allocated to the virtual character to which the current line belongs according to the target shot allocation rule corresponding to the fourth trigger probability.

[0200] In one possible implementation, the target type includes a head turning action type, and the lens configuration module 404 is specifically used to assign a first dialogue lens corresponding to the head turning feature of the virtual character corresponding to the line to the first virtual character if the current line belongs to the first virtual character; and assign a second dialogue lens corresponding to the head turning feature of the virtual character corresponding to the line to the second virtual character if the current line belongs to the second virtual character.

[0201] The lens configuration device 400 in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (Augmented Reality, AR) / virtual reality (Virtual Reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (Ultra-Mobile Personal Computer, UMPC), a netbook or a personal digital assistant (Personal Digital Assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (Personal Computer, PC), a television (Television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0202] The lens configuration device 400 provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented in the lens configuration method embodiment are not described here.

[0203] The present application also provides an electronic device, such as Figure 5As shown, the electronic device 500 includes a processor 501 and a memory 502. The memory 502 stores programs or instructions that can be run on the processor 501. When the program or instruction is executed by the processor 501, the various steps of the above-mentioned lens configuration method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0204] It should be noted that the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.

[0205] The memory 502 can be used to store software programs and various data. The memory 502 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 502 may include a volatile memory or a non-volatile memory, or the memory 502 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 502 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0206] The processor 501 may include one or more processing units; optionally, the processor 501 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 501.

[0207] The embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned lens configuration method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0208] The embodiment of the present application also provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned lens configuration method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0209] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0210] The embodiment of the present application also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned lens configuration method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0211] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0212] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A lens configuration method, characterized in that: include: Acquire a dialogue script of a virtual character in a virtual dialogue scenario, wherein the dialogue script includes lines and atmosphere information of the lines; Processing the dialogue script to determine the target type of the lines; Filtering a target dialogue shot group from a preset dialogue shot group according to the atmosphere information and the target type, wherein the virtual characters in the virtual dialogue scenario include a first virtual character and a second virtual character, and the preset dialogue shot group includes a first dialogue shot for shooting the first virtual character and a second dialogue shot for shooting the second virtual character; According to the target type, the shots in the target dialogue shot group are allocated to the virtual character to which the current lines belong, so as to capture the visual field of the virtual dialogue scene through the shots in the target dialogue shot group.

2. The method according to claim 1, characterized in that: The step of processing the dialogue script to determine the target type of the lines includes: The lines are divided and processed according to the attribute information of the lines in the dialogue script to determine the candidate types of the lines, wherein the candidate types include: at least one of a dialogue structure type, an action type and a scene type, and the attribute information includes: a virtual character corresponding to the lines, position information of the lines in the dialogue script, action feature information of the virtual character corresponding to the lines, an identification tag of the lines and at least one of the atmosphere information; Determining a preset priority of the candidate types according to the position of the virtual character in the virtual dialogue scenario; The target type is determined from the candidate types according to the preset priority.

3. The method according to claim 1, characterized in that The step of selecting a target dialogue shot group from a preset dialogue shot group according to the atmosphere information and the target type includes: Matching at least one of the target type and the position of the virtual character in the virtual dialogue scenario with different preset lens group sets, and determining a candidate lens group set that matches at least one of the target type and the position of the virtual character in the virtual dialogue scenario, wherein the preset lens group set includes a plurality of preset dialogue lens groups having different preset weight values ​​and conforming to a preset lens parameter range, and different preset lens group sets correspond to different preset lens parameter ranges; Determining a first preset trigger probability associated with the candidate shot group set and a target weight value corresponding to the atmosphere information; According to the first preset trigger probability, the preset dialogue shot group corresponding to the target weight value in the candidate shot group set is determined as the target dialogue shot group.

4. The method according to claim 1, characterized in that: The allocating the shots in the target dialogue shot group to the virtual character to which the current line belongs according to the target type comprises: Determining a target shot allocation rule and a second preset trigger probability of the target shot allocation rule according to the target type; According to the second preset trigger probability, the shots in the target dialogue shot group are allocated to the virtual character to which the current line belongs using the target shot allocation rule.

5. The method according to claim 2, characterized in that: The dividing and processing of the lines according to the attribute information of the lines in the dialogue script to determine the candidate types of the lines includes: If the lines correspond to a virtual character, determining that the lines belong to a single-line structure type; If the virtual character corresponding to the first line of the adjacent lines is the same as the virtual character corresponding to the second line of the adjacent lines, determining that the first line and the second line belong to a multi-line structure type; If the virtual character corresponding to the first line of the adjacent lines is different from the virtual character corresponding to the second line of the adjacent lines, determining that the first line and the second line belong to an interactive structure type; If the lines are located at the starting scene of the dialogue script, determining that the lines belong to the first scene type; If the lines are located at the end scene of the dialogue script, determining that the lines belong to the second scene type; If the line is located at a position corresponding to the target scene in the dialogue script, determining that the line belongs to a third scene type; If the dialogue is associated with a target animation tag, determining that the dialogue is of the fourth scene type; If the action feature information of the virtual character corresponding to the line includes a giving feature, determining that the line belongs to a giving action type; If the action feature information of the virtual character corresponding to the line includes a picking feature, determining that the line is a picking action type; If the line is located after the third line in the dialogue script and does not belong to the take dialogue structure, determine that the line is a close-up action type, wherein the third line is a line belonging to the give action type; If the line is located after the fourth line in the dialogue script, it is determined that the line is a head-turning action type, wherein the action feature information of the virtual character corresponding to the fourth line includes a head-turning feature.

6. The method according to claim 5, characterized in that The preset priorities of the action type and the scene type are greater than the preset priority of the dialogue structure type; The preset priority of the multi-line structure type is greater than the preset priority of the interactive structure type; The preset priority of the interactive structure type is greater than the preset priority of the single-row structure type.

7. The method according to claim 4, characterized in that The target type includes any one of a single-line structure type, a giving action type, a taking action type, a close-up action type, a second scene type, a third scene type, and a fourth scene type. The using the target shot allocation rule to allocate the shots in the target dialogue shot group to the virtual character to which the current line belongs includes: If the current dialogue belongs to the first virtual character, assigning the first dialogue shot to the first virtual character; If the current dialogue belongs to the second virtual character, assigning the second dialogue shot to the second virtual character; The target type includes a multi-line structure type, and the step of using the target shot allocation rule to allocate the shots in the target dialogue shot group to the virtual character to which the current line belongs includes: Determine the number of lines in a first line group to which the current line belongs, wherein the first line group includes a plurality of adjacent lines corresponding to the same virtual character; Determining a shot distribution rule associated with the number of lines in the target shot allocation rule, and a third triggering probability of the shot distribution rule; If the current line belongs to the first virtual character, assigning the first dialogue shot to the first virtual character according to a shot distribution rule associated with the number of lines and the corresponding third trigger probability; If the current line belongs to the second virtual character, assigning the second dialogue shot to the second virtual character according to a shot distribution rule associated with the number of lines and the corresponding third trigger probability; The target type includes an interactive structure type and the target dialogue shot group is a replacement shot group, or the target type includes a first scene type, and the step of using the target shot allocation rule to allocate the shots in the target dialogue shot group to the virtual character to which the current line belongs includes: If the current dialogue belongs to the first virtual character, assigning the first dialogue shot to the first virtual character or the second virtual character; If the current dialogue belongs to the second virtual character, assigning the second dialogue shot to the first virtual character or the second virtual character; The target type includes an interactive structure type, and the target dialogue shot group is a special shot group, and the use of the target shot allocation rule to allocate the shots in the target dialogue shot group to the virtual character to which the current line belongs includes: Determining, according to the target shot allocation rule, a second dialogue group in the dialogue script that belongs to the interactive structure type, and a fourth triggering probability of the second dialogue group; If the current line belongs to the second line group, allocating shots in the target dialogue shot group to the virtual character to which the current line belongs according to the target shot allocation rule corresponding to the fourth trigger probability; The target type includes a head-turning action type, and the step of using the shot allocation rule to allocate the shots in the target dialogue shot group to the virtual character to which the current line belongs includes: If the current line belongs to the first virtual character, assigning the first dialogue shot corresponding to the head turning feature of the virtual character corresponding to the line to the first virtual character; If the current dialogue belongs to the second virtual character, the second dialogue shot corresponding to the head turning feature of the virtual character corresponding to the dialogue is allocated to the second virtual character.

8. A lens configuration device, characterized in that: include: An acquisition module, used to acquire a dialogue script of a virtual character in a virtual dialogue scenario, wherein the dialogue script includes lines and atmosphere information of the lines; A first processing module, used for processing the dialogue script to determine the target type of the lines; A second processing module is used to select a target dialogue shot group from a preset dialogue shot group according to the atmosphere information and the target type, wherein the virtual characters in the virtual dialogue scene include a first virtual character and a second virtual character, and the preset dialogue shot group includes a first dialogue shot for shooting the first virtual character and a second dialogue shot for shooting the second virtual character; The lens configuration module is used to allocate the lenses in the target dialogue lens group to the virtual character to which the current lines belong according to the target type, so as to capture the field of view of the virtual dialogue scene through the lenses in the target dialogue lens group.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the lens configuration method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps of the lens configuration method according to any one of claims 1 to 7 are implemented.