Shooting mode determination method, device, storage medium and electronic equipment

By acquiring shooting performance records and target two-dimensional matrix indexing technology, the problem of low scientific accuracy caused by reliance on human experience in existing technologies has been solved. This has enabled global coverage and performance control of high-definition shooting mode, and improved image processing effects.

CN118842996BActive Publication Date: 2025-10-28BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411009013.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2025-10-28
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

In image processing scenarios, how to capture as many high-definition images as possible to improve image performance while controlling resource consumption and performance loss? Existing technologies rely on human experience, resulting in insufficient scientific rigor and an inability to achieve fine-grained performance loss control and global coverage of high-definition shooting modes.

Method used

By acquiring multiple shooting performance records, the performance variation parameters and mode control parameters of each shooting mode under each shooting condition are determined, maximizing the coverage of high-definition shooting modes and controlling performance costs. Target two-dimensional matrix and bitmap indexing technology are used to improve query efficiency.

Benefits of technology

It achieves precise and scientific shooting mode selection, which can maximize the coverage of high-definition shooting modes in the global dimension, and precisely control the shooting performance cost, thereby improving the performance of image processing and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118842996B_ABST
    Figure CN118842996B_ABST
Patent Text Reader

Abstract

This disclosure relates to a method, apparatus, storage medium, and electronic device for determining shooting modes. The method includes acquiring multiple shooting performance records, each recording including shooting conditions, shooting modes, and shooting performance parameters; determining shooting performance variation parameters corresponding to each shooting condition; determining a shooting performance cost corresponding to a first shooting mode based on the shooting performance variation parameters and mode control parameters corresponding to each shooting condition, wherein the mode control parameters indicate whether the first shooting mode is activated under the corresponding shooting condition; and determining the mode control parameters corresponding to each shooting condition by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by the various shooting conditions, provided that the shooting performance cost meets a preset cost constraint. This method can maximize the overall coverage of high-definition shooting modes in the global dimension formed by various shooting conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to methods, apparatus, storage media and electronic devices for determining shooting modes. Background Technology

[0002] With the increasing development of image applications, captured images can be directly processed in image processing scenarios, and the processed images can be presented to users, thereby significantly improving user experience and enhancing image expressiveness. When capturing images in image processing scenarios, the choice of shooting mode has a significant impact on the image processing effect. High-definition shooting mode offers strong image processing performance, but it leads to greater resource consumption and may also cause some performance loss. Therefore, how to capture as many high-definition images as possible to improve image expressiveness while accurately controlling resource consumption and performance loss is an urgent problem to be solved. Summary of the Invention

[0003] This disclosure provides a shooting mode determination method, apparatus, storage medium, and electronic device to at least solve at least one problem in the related art. The technical solution of this disclosure is as follows:

[0004] According to a first aspect of the present disclosure, a shooting mode determination method is provided, comprising:

[0005] Multiple shooting performance records are acquired, each of which includes shooting conditions, shooting mode, and shooting performance parameters. The shooting performance parameters indicate the shooting performance under the corresponding shooting conditions and using the corresponding shooting mode.

[0006] Based on the multiple shooting performance records, a shooting performance change parameter is determined for each shooting condition. The shooting performance change parameter indicates the amount of change in shooting performance when shooting in the first shooting mode under the shooting condition relative to shooting performance when shooting in the second shooting mode under the shooting condition. The second shooting mode is the shooting mode used when the first shooting mode is not used.

[0007] Based on the shooting performance change parameters corresponding to each shooting condition and the mode control parameters corresponding to each shooting condition, the shooting performance cost corresponding to the first shooting mode is determined, and the mode control parameters indicate whether the first shooting mode is enabled under the corresponding shooting conditions.

[0008] When the shooting performance cost meets the preset cost constraint, the mode control parameters corresponding to each of the shooting conditions are determined by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by each of the shooting conditions.

[0009] In one exemplary embodiment, the shooting performance variation parameters include at least one performance variation index, and the shooting performance cost corresponding to the first shooting mode includes the performance cost corresponding to each of the performance variation indices. Determining the shooting performance cost corresponding to the first shooting mode based on the shooting performance variation parameters corresponding to each of the shooting conditions and the mode control parameters corresponding to each of the shooting conditions includes:

[0010] For any performance change index, the performance cost corresponding to the performance change index is determined based on the performance change index corresponding to each of the shooting conditions and the mode control parameters corresponding to each of the shooting conditions.

[0011] In one exemplary embodiment, determining the performance cost corresponding to the performance change index based on each of the shooting conditions and the mode control parameters corresponding to each of the shooting conditions includes:

[0012] For each shooting condition, the unit shooting performance cost corresponding to the performance change index under the shooting condition is determined based on the product of the performance change index corresponding to the shooting condition and the mode control parameter corresponding to the shooting condition.

[0013] The performance cost corresponding to the unit shooting performance under each shooting condition is summed to obtain the performance cost corresponding to the performance change index.

[0014] In one exemplary embodiment, the preset cost constraint includes sub-constraints corresponding to each of the performance costs. The step of determining the mode control parameters corresponding to each of the shooting conditions by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by the shooting conditions, when the shooting performance cost satisfies the preset cost constraint, includes:

[0015] When the performance cost corresponding to each of the aforementioned performance change indicators satisfies the sub-constraints corresponding to the performance cost, the mode control parameters corresponding to each of the aforementioned shooting conditions are determined by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by the aforementioned shooting conditions.

[0016] In an exemplary embodiment, before determining the mode control parameters corresponding to each of the shooting conditions by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by the shooting conditions, the method further includes:

[0017] Based on the multiple shooting performance records, determine the first number of shots corresponding to the first shooting mode under each shooting condition and the second number of shots corresponding to the second shooting mode under each shooting condition;

[0018] The total number of shots is obtained by summing the first number of shots corresponding to each of the shooting conditions and the second number of shots corresponding to each of the shooting conditions.

[0019] For each shooting condition, the number of times the first shooting mode covers a cell under that shooting condition is determined based on the product of the mode control parameters corresponding to the shooting condition and the number of first shots corresponding to the shooting condition; the cell coverage rate of the first shooting mode under that shooting condition is determined based on the ratio of the number of cell coverages to the total number of shots.

[0020] Based on the sum of the unit coverage rates of the first shooting mode corresponding to each of the shooting conditions, the coverage rate of the first shooting mode in the shooting condition set formed by the shooting conditions is determined.

[0021] In one exemplary embodiment, the shooting conditions include a first condition and a second condition, wherein the first condition indicates the model of the electronic device used during shooting, and the second condition indicates the image processing scheme used during shooting.

[0022] In one exemplary embodiment, the shooting performance change parameter includes at least one of the following performance change indicators: service quality change indicator and experience quantification change indicator. The service quality change indicator includes at least one of the following: frame rate change, crash rate change, and stuttering rate change. The experience quantification change indicator includes at least one change in the trigger probability of a preset operation.

[0023] In one exemplary embodiment, the method further includes:

[0024] Based on the mode control parameters corresponding to each shooting condition, a target two-dimensional matrix is ​​determined. The rows of the target two-dimensional matrix are used to indicate the first condition, the columns of the target two-dimensional matrix are used to indicate the second condition, and the elements of the target two-dimensional matrix are used to indicate the mode control parameters under the shooting conditions formed by the corresponding first condition and the corresponding second condition.

[0025] Receive a parameter acquisition request sent by the client, the parameter acquisition request including target shooting conditions;

[0026] Based on the target two-dimensional matrix, query the target mode control parameters corresponding to the target shooting conditions, and return the target mode control parameters to the client.

[0027] In one exemplary embodiment, the target shooting conditions include a first target condition and multiple second target conditions. The step of querying the target mode control parameters corresponding to the target shooting conditions based on the target two-dimensional matrix includes:

[0028] Based on the first objective condition, the target row is determined in the target two-dimensional matrix;

[0029] Determine the target column corresponding to each of the second conditions for the target;

[0030] Determine the target mode control parameters corresponding to the target row and each target column.

[0031] According to a second aspect of the present disclosure, a shooting mode determining device is provided, comprising:

[0032] The recording acquisition module is configured to acquire multiple shooting performance records. Each shooting performance record includes shooting conditions, shooting mode, and shooting performance parameters. The shooting performance parameters indicate the shooting performance under the corresponding shooting conditions and using the corresponding shooting mode.

[0033] The variable parameter determination module is configured to perform, based on the plurality of shooting performance records, to determine the shooting performance variable parameter corresponding to each of the shooting conditions. The shooting performance variable parameter indicates the amount of change in shooting performance when shooting using a first shooting mode under the shooting conditions relative to shooting performance when shooting using a second shooting mode under the shooting conditions. The second shooting mode is the shooting mode used when the first shooting mode is not used.

[0034] The shooting mode determination module is configured to execute shooting performance change parameters corresponding to each of the shooting conditions and mode control parameters corresponding to each of the shooting conditions to determine the shooting performance cost corresponding to the first shooting mode. The mode control parameters indicate whether the first shooting mode is enabled under the corresponding shooting conditions.

[0035] Furthermore, when the shooting performance cost meets the preset cost constraint, the mode control parameters corresponding to each of the shooting conditions are determined by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by each of the shooting conditions.

[0036] In one exemplary embodiment, the shooting performance variation parameter includes at least one performance variation index, the shooting performance cost corresponding to the first shooting mode includes the performance cost corresponding to each of the performance variation indices, and the shooting mode determination module is configured to perform:

[0037] For any performance change index, the performance cost corresponding to the performance change index is determined based on the performance change index corresponding to each of the shooting conditions and the mode control parameters corresponding to each of the shooting conditions.

[0038] In one exemplary implementation, the shooting mode determination module is configured to perform:

[0039] For each shooting condition, the unit shooting performance cost corresponding to the performance change index under the shooting condition is determined based on the product of the performance change index corresponding to the shooting condition and the mode control parameter corresponding to the shooting condition.

[0040] The performance cost corresponding to the unit shooting performance under each shooting condition is summed to obtain the performance cost corresponding to the performance change index.

[0041] In one exemplary implementation, the preset cost constraint includes sub-constraints corresponding to each performance cost, and the shooting mode determination module is configured to execute:

[0042] When the performance cost corresponding to each of the aforementioned performance change indicators satisfies the sub-constraints corresponding to the performance cost, the mode control parameters corresponding to each of the aforementioned shooting conditions are determined by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by the aforementioned shooting conditions.

[0043] In one exemplary implementation, the shooting mode determination module is configured to perform:

[0044] Based on the multiple shooting performance records, determine the first number of shots corresponding to the first shooting mode under each shooting condition and the second number of shots corresponding to the second shooting mode under each shooting condition;

[0045] The total number of shots is obtained by summing the first number of shots corresponding to each of the shooting conditions and the second number of shots corresponding to each of the shooting conditions.

[0046] For each shooting condition, the number of times the first shooting mode covers a cell under that shooting condition is determined based on the product of the mode control parameters corresponding to the shooting condition and the number of first shots corresponding to the shooting condition; the cell coverage rate of the first shooting mode under that shooting condition is determined based on the ratio of the number of cell coverages to the total number of shots.

[0047] Based on the sum of the unit coverage rates of the first shooting mode corresponding to each of the shooting conditions, the coverage rate of the first shooting mode in the shooting condition set formed by the shooting conditions is determined.

[0048] In one exemplary embodiment, the shooting conditions include a first condition and a second condition, wherein the first condition indicates the model of the electronic device used during shooting, and the second condition indicates the image processing scheme used during shooting.

[0049] In one exemplary embodiment, the shooting performance change parameter includes at least one of the following performance change indicators: service quality change indicator and experience quantification change indicator. The service quality change indicator includes at least one of the following: frame rate change, crash rate change, and stuttering rate change. The experience quantification change indicator includes at least one change in the trigger probability of a preset operation.

[0050] In one exemplary implementation, the shooting mode determination module is configured to perform:

[0051] Based on the mode control parameters corresponding to each shooting condition, a target two-dimensional matrix is ​​determined. The rows of the target two-dimensional matrix are used to indicate the first condition, the columns of the target two-dimensional matrix are used to indicate the second condition, and the elements of the target two-dimensional matrix are used to indicate the mode control parameters under the shooting conditions formed by the corresponding first condition and the corresponding second condition.

[0052] Receive a parameter acquisition request sent by the client, the parameter acquisition request including target shooting conditions;

[0053] Based on the target two-dimensional matrix, query the target mode control parameters corresponding to the target shooting conditions, and return the target mode control parameters to the client.

[0054] In one exemplary implementation, the target shooting conditions include a first target condition and multiple second target conditions, and the shooting mode determination module is configured to perform:

[0055] Based on the first objective condition, the target row is determined in the target two-dimensional matrix;

[0056] Determine the target column corresponding to each of the second conditions for the target;

[0057] Determine the target mode control parameters corresponding to the target row and each target column.

[0058] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0059] processor;

[0060] Memory used to store the processor's executable instructions;

[0061] The processor is configured to execute the instructions to implement the shooting mode determination method as described in any of the above embodiments.

[0062] According to a fourth aspect of the present disclosure, a computer storage medium is provided, wherein when instructions in the computer storage medium are executed by a processor of an electronic device, the electronic device performs the shooting mode determination method described in any of the above embodiments.

[0063] According to a fifth aspect of the present disclosure, a computer program product is provided, the computer program product including a computer program that, when executed by a processor, implements the shooting mode determination method described in any of the above embodiments.

[0064] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects:

[0065] This disclosure embodiment can acquire multiple shooting performance records, thereby clarifying the shooting performance parameters corresponding to each shooting mode under each shooting condition, and thus determining the shooting performance corresponding to each shooting mode under each shooting condition. Based on the shooting performance records, the shooting performance variation parameters corresponding to each shooting condition can be determined, thereby determining the performance loss generated by the high-definition shooting mode (first shooting mode) under each shooting condition. Based on the performance loss, the shooting performance cost generated by using the high-definition shooting mode under each shooting condition is determined. By controlling this shooting performance cost, with maximizing the high-definition shooting mode as the optimization objective, it is possible to determine which shooting conditions use the high-definition shooting mode and which do not. This shooting mode determination method can achieve precise and scientific shooting mode selection, maximizing the overall coverage of the high-definition shooting mode in the global dimension formed by various shooting conditions, and precisely controlling the shooting performance cost.

[0066] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Attached Figure Description

[0067] The accompanying drawings, which are incorporated in and form part of this disclosure, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0068] Figure 1 This is a flowchart illustrating a shooting mode determination method according to an exemplary embodiment.

[0069] Figure 2 This is a schematic diagram illustrating a performance cost calculation method according to an exemplary embodiment.

[0070] Figure 3 This is a schematic flowchart illustrating a method for determining coverage according to an exemplary embodiment.

[0071] Figure 4 This is a schematic diagram illustrating a mode control parameter query method according to an exemplary embodiment.

[0072] Figure 5 This is a schematic diagram of a bitmap index according to an exemplary embodiment.

[0073] Figure 6 This is a schematic flowchart illustrating a method for determining target mode control parameters according to an exemplary embodiment.

[0074] Figure 7 This is a schematic diagram illustrating the architecture of a shooting mode determination method according to an exemplary embodiment.

[0075] Figure 8 This is a block diagram of a shooting mode determination device according to an exemplary embodiment.

[0076] Figure 9 This is a structural block diagram of a computer device according to an exemplary embodiment. Figure 1 ;

[0077] Figure 10 This is a structural block diagram of a computer device according to an exemplary embodiment. Figure 2 . Detailed Implementation

[0078] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0079] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0080] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0081] For image applications, the sharpness of the image captured in the image processing scenario has a significant impact on the final image processing effect. Taking image effects processing as an example, this scenario allows for the configuration of magical expressions or the generation of various special effects from the captured image. For instance, it can intelligently generate 2D and 3D magical expressions, enhance image beautification, portrait retouching, and generate various image elements based on artificial intelligence. This results in highly expressive image processing results and is crucial for enhancing the user experience in image applications. The higher the sharpness of the captured image, the stronger the expressiveness of the resulting image processing.

[0082] However, high-definition shooting mode often means consuming more hardware resources and sacrificing some performance. For example, it may lead to a degradation in QoS / QoE metrics. QoS stands for "Quality of Service," referring to service quality indicators. QoS metrics refer to client-side service metrics when a user is shooting video, such as frame rate, crash rate, and stuttering rate. QoE stands for "Quality of Experience," referring to quantifiable experience metrics, including the probability of triggering at least one preset action, such as click-through rate and upload rate.

[0083] To control performance loss, related technologies rely on human experience to specify whether high-definition shooting mode can be used under each shooting condition. However, this approach is not scientifically reliable enough, relies too heavily on human experience, and cannot achieve fine-grained control of performance loss, nor can it maximize the coverage of high-definition shooting mode globally.

[0084] To precisely control the fine-grained degradation loss of key QoS / QoE indicators and maximize the global coverage of high-definition shooting modes while keeping the degree of degradation controllable, this disclosure provides a shooting mode determination scheme. This method can accurately control the performance loss (performance cost) of each important QoS / QoE indicator, and, while accurately controlling the performance loss of each important QoS / QoE indicator, ensures the maximization of the coverage of high-definition shooting modes in the set of shooting conditions formed by various shooting conditions. This disclosure does not rely on human experience and is more scientific and reliable.

[0085] Figure 1This is a flowchart illustrating a shooting mode determination method according to an exemplary embodiment. The shooting mode determination method can be applied to an electronic device, which can be implemented independently by a server or a terminal, or jointly by a terminal and a server. The terminal can be, but is not limited to, physical devices such as smartphones, tablets, laptops, desktop computers, smart speakers, smart wearable devices, digital assistants, augmented reality devices, and virtual reality devices, and can also include software such as applications running on the physical device. The server can be, but is not limited to, a standalone server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, network services, cloud communication, middleware services, domain name services, security services, and big data and artificial intelligence platforms, etc. (Refer to...) Figure 1 As shown, the method includes the following steps.

[0086] In step S101, multiple shooting performance records are acquired. Each of the above shooting performance records includes shooting conditions, shooting mode, and shooting performance parameters. The shooting performance parameters indicate the shooting performance under the corresponding shooting conditions and using the corresponding shooting mode.

[0087] For each shooting condition, a first shooting mode can be used to take several shots under that condition. Based on the shooting performance data obtained during each shot, a statistical result of the shooting performance data corresponding to the first shooting mode under that shooting condition is obtained, i.e., the shooting performance parameters corresponding to shooting with the first shooting mode under that shooting condition are obtained, thus generating a shooting performance record. This shooting performance record includes the shooting condition, the first shooting mode, and the corresponding shooting performance parameters. Furthermore, a second shooting mode can also be used to take several shots under that shooting condition. Based on the shooting performance data obtained during each shot, a statistical result of the shooting performance data corresponding to the second shooting mode under that shooting condition is obtained, i.e., the shooting performance parameters corresponding to shooting with the second shooting mode under that shooting condition are obtained, thus generating a shooting performance record. This shooting performance record includes the shooting condition, the second shooting mode, and the corresponding shooting performance parameters.

[0088] In this disclosure, the first shooting mode can be a high-definition shooting mode, specifically, a 1080P shooting mode. In 1080P shooting mode, the captured image has a resolution of 1920×1080 pixels, enabling the capture of more details. The second shooting mode can be any shooting mode other than the first shooting mode; that is, the second shooting mode is a non-high-definition shooting mode.

[0089] This disclosure does not limit the method of obtaining shooting performance records. In an exemplary embodiment, shooting performance data generated by the client when shooting images in an image processing scenario, such as an image effects processing scenario, can be recorded, such as single frame rate, number of stutters, number of crashes, number of uploaded works, etc., to obtain shooting records. Each shooting record may include shooting conditions, shooting mode (first shooting mode or second shooting mode), and the generated shooting performance data. Then, shooting records are aggregated with shooting conditions and shooting mode as the primary key. For example, shooting records with shooting condition 1 and first shooting mode are aggregated together. Based on the shooting performance data in these aggregated shooting records, the shooting performance parameters corresponding to shooting condition 1 and first shooting mode are statistically obtained, thereby generating a shooting performance record.

[0090] In some implementations, shooting modes can be randomly assigned to clients, so that some clients use the first shooting mode and others use the second shooting mode, thereby enriching the content of the aforementioned shooting records and enabling the acquisition of shooting records generated under various shooting modes and conditions, so as to obtain high-quality shooting performance records.

[0091] For example, if a total of 10 shooting records are obtained under shooting condition 1 and the first shooting mode, and these 10 shooting records include shooting performance data such as single frame rate, number of stutters, number of crashes, and number of uploaded works, then statistical calculations can be performed on these shooting performance data to obtain shooting performance parameters such as frame rate (average frame rate), stutter rate, crash rate, and uploaded works rate under shooting condition 1 and the first shooting mode, and generate corresponding shooting performance records.

[0092] In step S102, based on the above multiple shooting performance records, a shooting performance change parameter corresponding to each of the above shooting conditions is determined. The shooting performance change parameter indicates the amount of change in shooting performance when shooting using the first shooting mode under the above shooting conditions relative to shooting performance when shooting using the second shooting mode under the above shooting conditions. The second shooting mode is the shooting mode used when the first shooting mode is not used.

[0093] In this disclosure, the aforementioned shooting performance variation parameters include at least one of the following performance variation indicators: service quality variation indicator and experience quantification variation indicator. The service quality variation indicator includes at least one of the following: frame rate variation, crash rate variation, and stuttering rate variation. The experience quantification variation indicator includes at least one preset operation trigger probability variation. Shooting performance parameters include service quality indicators and / or experience quantification indicators, and the shooting performance parameter variation parameters indicate the differences in shooting performance parameters between different shooting modes under the same shooting conditions. This disclosure provides scalable support for precise performance loss control of fine-grained shooting performance indicators, and, under the premise of fine-grained performance loss control, achieves maximum coverage of global high-definition shooting modes.

[0094] Taking shooting condition 1 as an example, among the aforementioned multiple shooting performance records, there is a shooting performance record Note1 that uses shooting condition 1 and the first shooting mode, and there is also a shooting performance record Note2 that uses shooting condition 1 and the second shooting mode. The change in frame rate in Note1 relative to the frame rate in Note2 is the change in frame rate corresponding to shooting condition 1; the change in stuttering rate in Note1 relative to the stuttering rate in Note2 is the change in stuttering rate corresponding to shooting condition 1, and so on for the shooting performance change parameters corresponding to other shooting conditions.

[0095] This disclosure does not limit the shooting conditions, which may include several sub-conditions. Therefore, this disclosure supports scalable shooting mode decisions under multiple conditions. For example, the shooting conditions include a first condition and a second condition. The first condition indicates the model of the electronic device used during shooting, and the second condition indicates the image processing scheme used during shooting. Continuing with the previous example, shooting condition 1 = electronic device model A and image processing scheme B, that is, one electronic device model paired with one image processing scheme uniquely determines one shooting condition. Therefore, this disclosure can select the most suitable shooting mode for any electronic device model and any image processing scheme, and achieve maximum coverage of global high-definition shooting modes under the premise of fine-grained performance loss control.

[0096] In step S103, based on the shooting performance change parameters corresponding to each of the above shooting conditions and the mode control parameters corresponding to each of the above shooting conditions, the shooting performance cost corresponding to the first shooting mode is determined, and the mode control parameters indicate whether the first shooting mode is activated under the corresponding shooting conditions.

[0097] In this disclosure, the shooting performance cost corresponding to the first shooting mode includes the performance cost corresponding to each of the above-mentioned performance change indicators. The determination of the shooting performance cost corresponding to the first shooting mode based on the shooting performance change parameters corresponding to each of the above-mentioned shooting conditions and the mode control parameters corresponding to each of the above-mentioned shooting conditions includes: for any performance change indicator, determining the performance cost corresponding to the performance change indicator based on the performance change indicators corresponding to each of the above-mentioned shooting conditions and the mode control parameters corresponding to each of the above-mentioned shooting conditions.

[0098] This disclosure allows you to calculate the corresponding performance cost, or performance loss, for each performance change metric. Please refer to [link / reference]. Figure 2 The diagram illustrates a flowchart of the performance cost calculation method of this disclosure. The performance cost corresponding to the aforementioned performance change indicators is determined based on the performance change indicators corresponding to each of the aforementioned shooting conditions, and the mode control parameters corresponding to each of the aforementioned shooting conditions, including:

[0099] In step S201, for each of the above shooting conditions, the unit shooting performance cost corresponding to the above shooting conditions is determined based on the product of the above performance change index corresponding to the above shooting conditions and the mode control parameter corresponding to the above shooting conditions.

[0100] For example, b i,j,t Let t represent the performance change index corresponding to the shooting conditions determined for electronic device model i and image processing scheme j. If there are 3 performance change indices, t can take the values ​​1, 2, and 3 respectively. i,j This indicates the mode control parameter corresponding to this shooting condition, x i,j A value of 0 indicates that the first shooting mode is not used under these shooting conditions. i,j A value of 1 indicates that the first shooting mode is used under these shooting conditions. i,j,t x i,j This indicates the unit shooting performance cost corresponding to this performance change index under the shooting conditions.

[0101] In step S202, the unit shooting performance costs corresponding to the above performance change indicators under each of the above shooting conditions are summed to obtain the performance costs corresponding to the above performance change indicators.

[0102] For example, one can use b i,j,t x i,jThe performance cost corresponding to the performance change index numbered t is calculated, where N represents the total number of electronic device models and M represents the total number of image processing schemes. This disclosure defines a method for calculating the performance cost corresponding to any performance change index, thereby enabling precise control over the performance cost generated by fine-grained performance change indexes and improving the accuracy of performance loss control.

[0103] In step S104, when the shooting performance cost satisfies the preset cost constraint, the mode control parameters corresponding to each of the above shooting conditions are determined by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by each of the above shooting conditions.

[0104] This disclosure embodiment can acquire multiple shooting performance records, thereby clarifying the shooting performance parameters corresponding to each shooting mode under each shooting condition, and thus determining the shooting performance corresponding to each shooting mode under each shooting condition. Based on the shooting performance records, the shooting performance variation parameters corresponding to each shooting condition can be determined, thereby determining the performance loss generated by the high-definition shooting mode (first shooting mode) under each shooting condition. Based on the performance loss, the shooting performance cost generated by using the high-definition shooting mode under each shooting condition is determined. By controlling this shooting performance cost, with maximizing the high-definition shooting mode as the optimization objective, it is possible to determine which shooting conditions use the high-definition shooting mode and which do not. This shooting mode determination method can achieve precise and scientific shooting mode selection, maximizing the overall coverage of the high-definition shooting mode in the global dimension formed by various shooting conditions, and precisely controlling the shooting performance cost.

[0105] In this disclosure, the aforementioned preset cost constraint includes sub-constraints corresponding to each of the aforementioned performance costs. When the aforementioned shooting performance costs satisfy the preset cost constraint, determining the mode control parameters corresponding to each of the aforementioned shooting conditions by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by the aforementioned shooting conditions includes:

[0106] When the performance cost corresponding to each of the above-mentioned performance change indicators satisfies the sub-constraints corresponding to the above-mentioned performance cost, the mode control parameters corresponding to each of the above-mentioned shooting conditions are determined by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by each of the above-mentioned shooting conditions.

[0107] For example, if the shooting performance change parameter includes three performance change indicators, then a sub-constraint is set for each performance change indicator, for a total of three sub-constraints. That is, the preset cost constraint includes three sub-constraints. For example, suppose the preset cost constraint can be described as a frame rate decrease of no less than 0.1%, a stuttering rate increase of no more than 0.2%, and a recording upload rate decrease of no less than 0 (the number of uploaded works cannot decrease); then the preset cost constraint can be decomposed into three sub-constraints, namely, constraint B1 corresponding to the frame rate change, which is used to constrain the frame rate decrease of no less than 0.1%; constraint B2 corresponding to the stuttering rate change, which is used to constrain the stuttering rate increase of no more than 0.2%; and constraint B3 corresponding to the upload rate change, which is used to constrain the recording upload rate decrease of no less than 0. Then the aforementioned "the performance cost corresponding to each of the above performance change indicators satisfies the sub-constraints corresponding to the above performance costs" can be expressed as the following formula (I):

[0108]

[0109]

[0110] Formula (1)

[0111] In Formula (I), b i,j,1 b i,j,2 b i,j,3 These correspond to changes in frame rate, stuttering, and upload rate, respectively.

[0112] Please refer to Figure 3 This illustrates a flowchart of a method for determining the coverage of a first shooting mode within a set of shooting conditions formed by the aforementioned shooting conditions. Before determining the mode control parameters corresponding to each of the aforementioned shooting conditions by maximizing the coverage of the first shooting mode within the set of shooting conditions formed by the aforementioned shooting conditions, the method further includes:

[0113] In step S301, based on the above multiple shooting performance records, the first number of shots corresponding to the first shooting mode under each of the above shooting conditions and the second number of shots corresponding to the second shooting mode under each of the above shooting conditions are determined.

[0114] Taking the previous example, under shooting condition 1, each shot taken using the first shooting mode creates a shooting record. Therefore, if there are T shooting records formed under shooting condition 1 using the first shooting mode, then the first shooting count is T. The method for obtaining the second shooting count is based on the same inventive concept and will not be elaborated here. For example, p can be used in this disclosure. i,j The first number of shots under the shooting conditions determined by the electronic device model number i and the image processing scheme number j can be represented by q. i,jThis indicates the second number of shots under the shooting conditions determined by the electronic device model number i and the image processing scheme number j.

[0115] In step S302, the first number of shots corresponding to each of the above shooting conditions and the second number of shots corresponding to each of the above shooting conditions are summed to obtain the total number of shots.

[0116] For example, based on formula The total number of shots (cnt) can then be calculated.

[0117] In step S303, for each of the above shooting conditions, the number of times the first shooting mode covers the unit under the above shooting conditions is determined based on the product of the mode control parameters corresponding to the above shooting conditions and the number of first shots corresponding to the above shooting conditions; and the unit coverage rate of the first shooting mode under the above shooting conditions is determined based on the ratio of the number of unit coverages to the total number of shots.

[0118] For example, based on formula The unit coverage rate of the first shooting mode can be calculated under the shooting conditions determined by the electronic device model number i and the image processing scheme number j.

[0119] In step S304, the coverage rate of the first shooting mode in the shooting condition set formed by the shooting conditions is determined based on the sum of the unit coverage rates corresponding to each of the above shooting conditions for the first shooting mode.

[0120] For example, based on The coverage rate of the first shooting mode in the set of shooting conditions formed by the aforementioned shooting conditions can then be obtained. This disclosure provides a specific calculation scheme for the coverage rate of the first shooting mode in the set of shooting conditions formed by the aforementioned shooting conditions, thereby expressing both the constraints and the coverage rate of the first shooting mode in the set of shooting conditions using formulas. Therefore, it supports obtaining the mode control parameters under each shooting condition by solving formulas, thus ensuring the accuracy of the mode control parameters. Furthermore, the solution process is simple and resource-efficient.

[0121] The process of maximizing the coverage of the first shooting mode in the set of shooting conditions formed by the aforementioned shooting conditions can be expressed as formula (II).

[0122]

[0123] Formula (II)

[0124] This disclosure, under the constraint of formula (I), makes formula (II) reach its maximum value, thereby determining x. i,j xi,j This refers to the mode control parameters under the shooting conditions determined by the electronic device model number i and the image processing scheme number j.

[0125] This disclosure proposes that, for each electronic device model and each image processing scheme, querying the corresponding mode control parameters using traditional query methods would be extremely time-consuming. For example, after a client enters an image processing scene, a list of effects can be pushed to the client, indicating multiple image processing effects available. For instance, if the effect list includes 10 effects, the user can select any effect to capture an image in the corresponding image processing scene. The client then needs to know the corresponding mode control parameters, i.e., whether 1080P recording is required. Using traditional query methods, querying the server for the corresponding mode control parameters for each effect would be extremely time-consuming. Therefore, this disclosure provides a fast mode control parameter query scheme for the server.

[0126] Please refer to Figure 4 The diagram illustrates a flowchart of the mode control parameter query method of this disclosure. The method further includes:

[0127] In step S401, a target two-dimensional matrix is ​​determined based on the mode control parameters corresponding to each of the above shooting conditions. The rows of the target two-dimensional matrix are used to indicate the first condition, the columns of the target two-dimensional matrix are used to indicate the second condition, and the elements of the target two-dimensional matrix are used to indicate the mode control parameters under the shooting conditions formed by the corresponding first condition and the corresponding second condition.

[0128] The target two-dimensional matrix in this disclosure can be understood as a bitmap index built based on bitmap concepts, serving as a data indexing technique to accelerate the retrieval of mode control parameters. Please refer to [reference needed]. Figure 5 This illustrates a bitmap index diagram in this disclosure. Figure 5Each row in the bitmap index corresponds to an electronic device model, and each column corresponds to an effect, or in other words, an image processing scheme. The unique row and column numbers define unique two-dimensional matrix elements that represent the mode control parameters under the query conditions determined by the corresponding electronic device model and effect. During a query, given several rows and columns to be queried (e.g., several electronic device models and corresponding image processing schemes for several effects), the corresponding mode control parameters can be directly retrieved from the bitmap index in one query. Compared to related technologies where only one request can be generated for each electronic device model and effect, and multiple requests can only be sent for multiple electronic device models and multiple effects, with each request only able to query the mode control parameters for a single electronic device model and a single effect, the bitmap index-based mode control parameter query method proposed in this disclosure significantly improves query efficiency and can meet the needs of real-time queries.

[0129] In step S402, a parameter acquisition request sent by the client is received, which includes the target shooting conditions.

[0130] For example, the target shooting conditions mentioned above include a first target condition and multiple second target conditions. For instance, if the client's electronic device model is Model 1, and the associated image processing scheme, or the associated special effect, is an effect labeled 0-9, then the first target condition is "Model 1", and the 10 second target conditions correspond to labels 0-9 respectively.

[0131] In step S403, the target mode control parameters corresponding to the target shooting conditions are queried based on the above target two-dimensional matrix, and the above target mode control parameters are returned to the above client.

[0132] Please refer to Figure 6 The diagram illustrates a flowchart of the method for determining target mode control parameters disclosed herein. The above-mentioned method of querying the target mode control parameters corresponding to the target shooting conditions based on the above-mentioned two-dimensional target matrix includes:

[0133] In step S601, the target row is determined in the target two-dimensional matrix based on the first target condition.

[0134] Following the previous example, if the row corresponding to "Model 1" is in Figure 5 If the first line is in the middle, then the target line is the first line.

[0135] In step S602, the target column corresponding to each of the above-mentioned target second conditions is determined.

[0136] Following the previous example, the 10 target second conditions correspond to labels 0-9 respectively. When the label of the effect is the same as the label of the column, the columns labeled 0-9 are all target columns.

[0137] In step S603, the target mode control parameters corresponding to the target row and each of the target columns are determined.

[0138] Following the previous example, the values ​​of the elements in the first row corresponding to the columns marked 0-9 all belong to the target mode control parameters. If the value of the element in the first row corresponding to the columns marked 0-9 is "1, 1, 1, 1, 1, 0, 0, 0, 0", then the state of the first shooting mode corresponding to the special effects 0-9 is "On, On, On, On, On, On, Off, Off, Off, Off, Off, Off, Off".

[0139] Please refer to Figure 7 The diagram illustrates the architecture of the shooting mode determination method disclosed herein. At regular intervals, step S101 can be initiated to obtain multiple shooting performance records, thereby determining the mode control parameters corresponding to each shooting condition, and updating the bitmap index based on these mode control parameters. When the client requests to obtain the mode control parameters, a list of effects adapted to the client can be determined. Each effect in the effect list corresponds to an image processing scheme. Based on the client's electronic device model and the effect list, the target mode control parameters corresponding to each effect in the effect list can be determined, and the effect list and each mode control parameter are fed back to the client. The client can present the effect list to the user, and when any effect is triggered, the shooting mode is determined based on the mode control parameters corresponding to that effect, thereby supporting image capture in that shooting mode. The captured image is then applied to the corresponding effect.

[0140] Figure 8 This is a block diagram illustrating a shooting mode determining device according to an exemplary embodiment. (Refer to...) Figure 8 The device includes:

[0141] The recording acquisition module 801 is configured to acquire multiple shooting performance records. Each of the above shooting performance records includes shooting conditions, shooting mode and shooting performance parameters. The shooting performance parameters indicate the shooting performance under the corresponding shooting conditions and using the corresponding shooting mode.

[0142] The variable parameter determination module 802 is configured to perform, based on the above multiple shooting performance records, to determine the shooting performance change parameter corresponding to each of the above shooting conditions. The shooting performance change parameter indicates the amount of change in shooting performance when shooting using the first shooting mode under the above shooting conditions relative to shooting performance when shooting using the second shooting mode under the above shooting conditions. The second shooting mode is the shooting mode used when the first shooting mode is not used.

[0143] The shooting mode determination module 803 is configured to execute shooting performance change parameters corresponding to each of the above shooting conditions and mode control parameters corresponding to each of the above shooting conditions to determine the shooting performance cost corresponding to the first shooting mode. The mode control parameters indicate whether the first shooting mode is enabled under the corresponding shooting conditions.

[0144] Furthermore, when the aforementioned shooting performance cost satisfies the preset cost constraint, the mode control parameters corresponding to each of the aforementioned shooting conditions are determined by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by the aforementioned shooting conditions.

[0145] In one exemplary embodiment, the aforementioned shooting performance variation parameters include at least one performance variation index, the shooting performance cost corresponding to the aforementioned first shooting mode includes the performance cost corresponding to each of the aforementioned performance variation indexes, and the shooting mode determination module 803 is configured to execute:

[0146] For any performance change index, based on the performance change index corresponding to each of the above shooting conditions and the mode control parameters corresponding to each of the above shooting conditions, the performance cost corresponding to the above performance change index is determined.

[0147] In one exemplary embodiment, the shooting mode determination module 803 is configured to perform:

[0148] For each of the above shooting conditions, the unit shooting performance cost corresponding to the above shooting conditions is determined based on the product of the above performance change index corresponding to the above shooting conditions and the mode control parameter corresponding to the above shooting conditions.

[0149] The performance cost corresponding to each unit shooting under each of the above shooting conditions is summed to obtain the performance cost corresponding to the above performance change index.

[0150] In one exemplary embodiment, the preset cost constraint includes sub-constraints corresponding to each of the aforementioned performance costs, and the shooting mode determination module 803 is configured to execute:

[0151] When the performance cost corresponding to each of the above-mentioned performance change indicators satisfies the sub-constraints corresponding to the above-mentioned performance cost, the mode control parameters corresponding to each of the above-mentioned shooting conditions are determined by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by each of the above-mentioned shooting conditions.

[0152] In one exemplary embodiment, the shooting mode determination module 803 is configured to perform:

[0153] Based on the above multiple shooting performance records, the first number of shots corresponding to the first shooting mode under each of the above shooting conditions and the second number of shots corresponding to the second shooting mode under each of the above shooting conditions are determined.

[0154] The total number of shots is obtained by summing the first number of shots corresponding to each of the above shooting conditions and the second number of shots corresponding to each of the above shooting conditions.

[0155] For each of the above shooting conditions, the number of times the first shooting mode covers a cell under the above shooting conditions is determined based on the product of the mode control parameters corresponding to the above shooting conditions and the number of first shots corresponding to the above shooting conditions; the cell coverage rate of the first shooting mode under the above shooting conditions is determined based on the ratio of the number of cell coverages to the total number of shots.

[0156] Based on the sum of the unit coverage rates of the first shooting mode corresponding to each of the above shooting conditions, the coverage rate of the first shooting mode in the shooting condition set formed by the above shooting conditions is determined.

[0157] In one exemplary embodiment, the shooting conditions include a first condition and a second condition, wherein the first condition indicates the model of the electronic device used during shooting, and the second condition indicates the image processing scheme used during shooting.

[0158] In an exemplary embodiment, the shooting performance change parameters include at least one of the following performance change indicators: service quality change indicator and experience quantification change indicator. The service quality change indicator includes at least one of the following: frame rate change, crash rate change, and stuttering rate change. The experience quantification change indicator includes at least one preset operation trigger probability change.

[0159] In one exemplary embodiment, the shooting mode determination module 803 is configured to perform:

[0160] Based on the mode control parameters corresponding to each of the above shooting conditions, a target two-dimensional matrix is ​​determined. The rows of the target two-dimensional matrix are used to indicate the first condition, the columns of the target two-dimensional matrix are used to indicate the second condition, and the elements of the target two-dimensional matrix are used to indicate the mode control parameters under the shooting conditions formed by the corresponding first condition and the corresponding second condition.

[0161] Receive parameter acquisition requests sent by the client, including target shooting conditions;

[0162] Based on the above target two-dimensional matrix, query the target mode control parameters corresponding to the above target shooting conditions, and return the above target mode control parameters to the above client.

[0163] In one exemplary embodiment, the target shooting conditions include a first target condition and multiple second target conditions, and the shooting mode determination module 803 is configured to perform:

[0164] Based on the first objective condition described above, the target row is determined in the aforementioned two-dimensional target matrix;

[0165] Determine the target column corresponding to the second condition of each of the above objectives;

[0166] Determine the target mode control parameters corresponding to the above target rows and each of the above target columns.

[0167] Regarding the apparatus in the above embodiments, the specific manner of each step has been described in detail in the embodiments of the foregoing method, and will not be elaborated here.

[0168] Please refer to Figure 9 It illustrates the structural block of a computer device provided in an exemplary embodiment of this disclosure. Figure 1 The computer device can be a terminal. This computer device is used to implement the shooting mode determination method provided in the above embodiments. Specifically:

[0169] Typically, computer device 900 includes a processor 901 and a memory 902.

[0170] Processor 901 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 901 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 901 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In an exemplary embodiment, processor 901 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In an exemplary embodiment, processor 901 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0171] The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In an exemplary embodiment, the non-transitory computer-readable storage medium in the memory 902 is used to store at least one instruction, at least one program, code set, or instruction set, configured to be executed by one or more processors to implement the above-described shooting mode determination method.

[0172] In one exemplary embodiment, the computer device 900 may optionally include a peripheral device interface 903 and at least one peripheral device. The processor 901, memory 902, and peripheral device interface 903 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 904, a touch display screen 905, a camera assembly 906, an audio circuit 907, a positioning assembly 908, and a power supply 909.

[0173] Those skilled in the art will understand that Figure 9 The structure shown does not constitute a limitation on the computer device 900, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0174] Please refer to Figure 10 It illustrates the structural block of a computer device provided in another exemplary embodiment of this disclosure. Figure 2 The computer device can be a server for executing the aforementioned method for determining the shooting mode. Specifically:

[0175] Computer device 1000 includes a central processing unit (CPU) 1001, a system memory 1004 including random access memory (RAM) 1002 and read-only memory (ROM) 1003, and a system bus 1005 connecting the system memory 1004 and the CPU 1001. Computer device 1000 also includes a basic input / output system (I / O system) 1006 that facilitates information transfer between various devices within the computer, and a mass storage device 1007 for storing the operating system 1013, application programs 1014, and other program modules 1011.

[0176] The basic input / output system 1006 includes a display 1008 for displaying information and an input device 1009 for user input, such as a mouse or keyboard. Both the display 1008 and the input device 1009 are connected to the central processing unit 1001 via an input / output controller 1100 connected to the system bus 1005. The basic input / output system 1006 may also include the input / output controller 1100 for receiving and processing input from multiple other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 1100 also provides output to a display screen, printer, or other types of output devices.

[0177] Mass storage device 1007 is connected to central processing unit 1001 via a mass storage controller (not shown) connected to system bus 1005. Mass storage device 1007 and its associated computer-readable media provide non-volatile storage for computer device 1000. That is, mass storage device 1007 may include computer-readable media (not shown) such as hard disk or CD-ROM (Compact Disc Read-Only Memory) drive.

[0178] Without loss of generality, computer-readable media can include computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other solid-state storage technologies, CD-ROM, DVD (Digital Video Disc) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that computer storage media are not limited to the above-mentioned types. The system memory 1004 and mass storage device 1007 described above can be collectively referred to as memory.

[0179] According to various embodiments of this disclosure, the computer device 1000 can also be connected to a remote computer on a network, such as the Internet. That is, the computer device 1000 can be connected to the network 1012 via a network interface unit 1011 connected to the system bus 1005, or the network interface unit 1011 can be used to connect to other types of networks or remote computer systems (not shown).

[0180] The aforementioned memory also includes a computer program stored in the memory and configured to be executed by one or more processors to implement the aforementioned shooting mode determination method.

[0181] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, at least one program, code set, or instruction set is executed by a processor to implement the shooting mode determination method.

[0182] Optionally, the computer-readable storage medium may include: ROM (Read Only Memory), RAM (Random Access Memory), SSD (Solid State Drives), or optical disc, etc. The random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0183] In an exemplary embodiment, a computer-readable storage medium including program code is also provided, such as a memory including program code, which can be executed by a processor to complete the above-described shooting mode determination method. Optionally, the computer-readable storage medium may be read-only memory (ROM), random access memory (RAM), compact-disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0184] In an exemplary embodiment, a computer program product is also provided, including a computer program that, when executed by a processor, implements the shooting mode determination method described above.

[0185] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0186] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for determining a shooting mode, characterized in that, include: Multiple shooting performance records are acquired, each of which includes shooting conditions, shooting mode, and shooting performance parameters. The shooting performance parameters indicate the shooting performance under the corresponding shooting conditions and using the corresponding shooting mode. Based on the multiple shooting performance records, a shooting performance change parameter is determined for each shooting condition. The shooting performance change parameter indicates the amount of change in shooting performance when shooting in the first shooting mode under the shooting condition relative to shooting performance when shooting in the second shooting mode under the shooting condition. The second shooting mode is the shooting mode used when the first shooting mode is not used. Based on the shooting performance change parameters corresponding to each shooting condition and the mode control parameters corresponding to each shooting condition, the shooting performance cost corresponding to the first shooting mode is determined, and the mode control parameters indicate whether the first shooting mode is enabled under the corresponding shooting conditions. When the shooting performance cost meets the preset cost constraint, the mode control parameters corresponding to each of the shooting conditions are determined by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by each of the shooting conditions.

2. The method according to claim 1, characterized in that, The shooting performance variation parameters include at least one performance variation index, and the shooting performance cost corresponding to the first shooting mode includes the performance cost corresponding to each of the aforementioned performance variation indices. Determining the shooting performance cost corresponding to the first shooting mode based on the shooting performance variation parameters corresponding to each of the aforementioned shooting conditions and the mode control parameters corresponding to each of the aforementioned shooting conditions includes: For any performance change index, the performance cost corresponding to the performance change index is determined based on the performance change index corresponding to each of the shooting conditions and the mode control parameters corresponding to each of the shooting conditions.

3. The method according to claim 2, characterized in that, The determination of the performance cost corresponding to the performance change index based on each of the shooting conditions and the mode control parameters corresponding to each of the shooting conditions includes: For each shooting condition, the unit shooting performance cost corresponding to the performance change index under the shooting condition is determined based on the product of the performance change index corresponding to the shooting condition and the mode control parameter corresponding to the shooting condition. The performance cost corresponding to the unit shooting performance under each shooting condition is summed to obtain the performance cost corresponding to the performance change index.

4. The method according to claim 2 or 3, characterized in that, The preset cost constraint includes sub-constraints corresponding to each of the performance costs. When the shooting performance cost satisfies the preset cost constraint, determining the mode control parameters corresponding to each of the shooting conditions by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by the shooting conditions includes: When the performance cost corresponding to each of the aforementioned performance change indicators satisfies the sub-constraints corresponding to the performance cost, the mode control parameters corresponding to each of the aforementioned shooting conditions are determined by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by the aforementioned shooting conditions.

5. The method according to claim 4, characterized in that, Before determining the mode control parameters corresponding to each of the shooting conditions by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by the shooting conditions, the method further includes: Based on the multiple shooting performance records, determine the first number of shots corresponding to the first shooting mode under each shooting condition and the second number of shots corresponding to the second shooting mode under each shooting condition; The total number of shots is obtained by summing the first number of shots corresponding to each of the shooting conditions and the second number of shots corresponding to each of the shooting conditions. For each shooting condition, the number of times the first shooting mode covers a cell under that shooting condition is determined based on the product of the mode control parameters corresponding to the shooting condition and the number of first shots corresponding to the shooting condition; the cell coverage rate of the first shooting mode under that shooting condition is determined based on the ratio of the number of cell coverages to the total number of shots. Based on the sum of the unit coverage rates of the first shooting mode corresponding to each of the shooting conditions, the coverage rate of the first shooting mode in the shooting condition set formed by the shooting conditions is determined.

6. The method according to claim 1, characterized in that, The shooting conditions include a first condition and a second condition. The first condition indicates the model of the electronic device used during shooting, and the second condition indicates the image processing scheme used during shooting.

7. The method according to claim 4, characterized in that, The shooting performance change parameters include at least one of the following performance change indicators: service quality change indicator and experience quantification change indicator. The service quality change indicator includes at least one of the following: frame rate change, crash rate change, and stuttering rate change. The experience quantification change indicator includes at least one preset operation trigger probability change.

8. The method according to claim 6, characterized in that, The method further includes: Based on the mode control parameters corresponding to each shooting condition, a target two-dimensional matrix is ​​determined. The rows of the target two-dimensional matrix are used to indicate the first condition, the columns of the target two-dimensional matrix are used to indicate the second condition, and the elements of the target two-dimensional matrix are used to indicate the mode control parameters under the shooting conditions formed by the corresponding first condition and the corresponding second condition. Receive a parameter acquisition request sent by the client, the parameter acquisition request including target shooting conditions; Based on the target two-dimensional matrix, query the target mode control parameters corresponding to the target shooting conditions, and return the target mode control parameters to the client.

9. The method according to claim 8, characterized in that, The target shooting conditions include a first target condition and multiple second target conditions. The step of querying the target mode control parameters corresponding to the target shooting conditions based on the target two-dimensional matrix includes: Based on the first objective condition, the target row is determined in the target two-dimensional matrix; Determine the target column corresponding to each of the second conditions for the target; Determine the target mode control parameters corresponding to the target row and each target column.

10. A shooting mode determining device, characterized in that, include: The recording acquisition module is configured to acquire multiple shooting performance records. Each shooting performance record includes shooting conditions, shooting mode, and shooting performance parameters. The shooting performance parameters indicate the shooting performance under the corresponding shooting conditions and using the corresponding shooting mode. The variable parameter determination module is configured to perform, based on the plurality of shooting performance records, to determine the shooting performance variable parameter corresponding to each of the shooting conditions. The shooting performance variable parameter indicates the amount of change in shooting performance when shooting using a first shooting mode under the shooting conditions relative to shooting performance when shooting using a second shooting mode under the shooting conditions. The second shooting mode is the shooting mode used when the first shooting mode is not used. The shooting mode determination module is configured to execute shooting performance change parameters corresponding to each of the shooting conditions and mode control parameters corresponding to each of the shooting conditions to determine the shooting performance cost corresponding to the first shooting mode. The mode control parameters indicate whether the first shooting mode is enabled under the corresponding shooting conditions. Furthermore, when the shooting performance cost meets the preset cost constraint, the mode control parameters corresponding to each of the shooting conditions are determined by maximizing the coverage of the first shooting mode in the set of shooting conditions formed by each of the shooting conditions.

11. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the shooting mode determination method as described in any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device performs the shooting mode determination method as described in any one of claims 1-9.

13. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the shooting mode determination method as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Control method and control device

    CN110248090A

  • Imaging apparatus, control method thereof, and program

    JP2010087899A