CN112367462B - Shooting method, shooting device, electronic equipment and storage medium - Google Patents

Shooting method, shooting device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112367462B
CN112367462B CN202011179786.XA CN202011179786A CN112367462B CN 112367462 B CN112367462 B CN 112367462B CN 202011179786 A CN202011179786 A CN 202011179786A CN 112367462 B CN112367462 B CN 112367462B
Authority
CN
China
Prior art keywords
resolution level
resolution
level
target
frame rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011179786.XA
Other languages
Chinese (zh)
Other versions
CN112367462A (en
Inventor
胡立
曾凡平
施雪梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011179786.XA priority Critical patent/CN112367462B/en
Publication of CN112367462A publication Critical patent/CN112367462A/en
Application granted granted Critical
Publication of CN112367462B publication Critical patent/CN112367462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes

Abstract

The disclosure relates to a shooting method, a shooting device, electronic equipment and a storage medium, wherein shooting information is obtained, and a level mapping table is searched according to upper and lower thresholds in the shooting information; determining a target resolution ratio grade according to the search result, wherein the target resolution ratio grade is determined based on the size relation between the frame rate and the upper and lower thresholds in the search result; and finally, acquiring the target resolution corresponding to the target resolution grade, and shooting by adopting the target resolution. The mapping table stores the corresponding relation between the resolution level and the frame rate in the historical shooting operation, the target resolution level is determined through the upper threshold value, the lower threshold value and the level mapping table, and the determination of the target resolution matched with the terminal shooting function is achieved through the scheme disclosed by the invention, so that the definition of an image can be ensured, and meanwhile, the power consumption and the heating caused by the fact that the terminal shoots the image with the overlarge resolution can be reduced.

Description

Shooting method, shooting device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a shooting method, an apparatus, an electronic device, and a storage medium.
Background
With the popularization of electronic devices such as smart phones and smart tablet computers, the number of application programs installed on the electronic devices is increasing. Among them, the shooting function of an application is receiving more and more attention from users. In particular, as the short video industry has emerged, the shooting function of short video applications has become particularly important as a loop of content supply.
In the related art, the shooting resolution is a core index of the shooting function, and it determines the initial definition on the subsequent content processing link. However, in the conventional technology, when shooting is performed by using one application program shooting function, the adopted shooting resolution does not match with the shooting capability of the electronic device in which the application program is installed, so that the electronic device of a low-end model is severely jammed.
Disclosure of Invention
The disclosure provides a shooting method, a shooting device, electronic equipment and a storage medium, which are used for at least solving the problem that the electronic equipment of a low-end machine type is seriously jammed in the related technology. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a photographing method including:
acquiring shooting information, wherein the shooting information comprises an upper threshold and a lower threshold, the upper threshold and the lower threshold comprise a first threshold and a second threshold, the first threshold is a critical value corresponding to a preset minimum frame rate, and the second threshold is a critical value corresponding to a preset maximum frame rate;
searching a level mapping table according to the upper threshold and the lower threshold, wherein the mapping table is used for representing the mapping relation between the resolution level and the frame rate, and the mapping relation between the partial resolution level based on the current equipment and the frame rate is recorded in the mapping table;
determining a target resolution level according to a search result, wherein the target resolution level is determined based on the size relationship between the frame rate in the search result and the upper threshold and the lower threshold;
acquiring a target resolution corresponding to the target resolution level;
and shooting by adopting the target resolution.
In one embodiment, the determining the target resolution level according to the search result includes:
when the frame rate larger than the first threshold value does not exist in the mapping table, acquiring the minimum resolution level in the mapping table;
and determining a target resolution level according to the minimum resolution level.
In one embodiment, the determining a target resolution level according to the minimum resolution level includes:
determining the minimum resolution level as the target resolution level when the minimum resolution level is a minimum of global resolution levels.
In one embodiment, the determining a target resolution level according to the minimum resolution level includes:
when the minimum resolution level is not the minimum value of the global resolution levels, selecting a resolution level lower than the minimum resolution level of the global resolution levels as the target resolution level.
In one embodiment, the determining the target resolution level according to the search result includes:
when the frame rate greater than the first threshold value exists in the mapping table, determining a maximum resolution level from resolution levels corresponding to the frame rate greater than the first threshold value in the mapping table;
and determining a target resolution level according to the maximum resolution level.
In one embodiment, the determining a target resolution level according to the maximum resolution level includes:
determining the maximum resolution level as the target resolution level when the maximum resolution level is a maximum value of the global resolution levels.
In one embodiment, the determining a target resolution level according to the maximum resolution level includes:
determining the maximum resolution level as the target resolution level when the maximum resolution level is not a maximum value of the global resolution levels and a resolution level higher than the maximum resolution level by one level exists in the mapping table.
In one embodiment, the determining a target resolution level according to the maximum resolution level includes:
when the maximum resolution level is not the maximum value of the global resolution levels and there is no resolution level higher than the maximum resolution level by one level in the mapping table, comparing the frame rate corresponding to the maximum resolution level with the frame rate of the second threshold;
when the frame rate corresponding to the maximum resolution level is greater than the frame rate of the second threshold, selecting a resolution level higher than the maximum resolution level from the global resolution levels as the target resolution level;
and when the frame rate corresponding to the maximum resolution level is less than the frame rate of the second threshold, determining that the maximum resolution level is the target resolution level.
In one embodiment, after the photographing with the target resolution, the method further includes:
when the target resolution level is not in the mapping table, acquiring a target frame rate when shooting is carried out by adopting the target resolution;
and adding the mapping relation between the target resolution and the target frame rate into the mapping table.
In one embodiment, after the photographing with the target resolution, the method further includes:
when the target resolution level is in the mapping table, acquiring a target frame rate when shooting is carried out by adopting the target resolution;
and determining the latest average frame rate corresponding to the target resolution level according to the historical average frame rate corresponding to the target resolution level, the target frame rate and the historical shooting times corresponding to the target resolution level in the mapping table.
In one embodiment, the shooting information further includes an initial resolution level; the method further comprises the following steps:
judging whether the mapping table is blank or not;
determining the initial resolution level as the target resolution level based on the mapping table being a blank mapping table.
According to a second aspect of the embodiments of the present disclosure, there is provided a photographing apparatus including:
a camera, comprising:
the shooting information acquisition module is configured to execute acquisition of shooting information, wherein the shooting information comprises upper and lower threshold values, the upper and lower threshold values comprise a first threshold value and a second threshold value, the first threshold value is a critical value corresponding to a preset minimum frame rate, and the second threshold value is a critical value corresponding to a preset maximum frame rate;
a mapping table lookup module configured to perform lookup of a level mapping table according to the upper and lower thresholds, where the mapping table is used for representing a mapping relationship between a resolution level and a frame rate, and the mapping table records a mapping relationship between a partial resolution level based on current equipment and a frame rate;
a level determination module configured to perform determining a target resolution level according to a search result, wherein the target resolution level is determined based on a size relationship between a frame rate in the search result and the upper and lower thresholds;
a target resolution acquisition module configured to perform acquisition of a target resolution corresponding to the target resolution level;
a photographing module configured to perform photographing with the target resolution.
In one embodiment, the level determining module is further configured to obtain a minimum resolution level in the mapping table when there is no frame rate greater than the first threshold in the mapping table; and determining a target resolution level according to the minimum resolution level.
In one embodiment, the level determining module is further configured to determine the minimum resolution level as the target resolution level when the minimum resolution level is a minimum of global resolution levels.
In one embodiment, the level determining module is further configured to select, as the target resolution level, a resolution level lower than the minimum resolution level from among the global resolution levels when the minimum resolution level is not the minimum value from among the global resolution levels.
In one embodiment, the level determining module is further configured to determine, when there is a frame rate greater than the first threshold in the mapping table, a maximum resolution level from resolution levels corresponding to the frame rates greater than the first threshold in the mapping table; and determining a target resolution level according to the maximum resolution level.
In one embodiment, the level determining module is further configured to determine the maximum resolution level as the target resolution level when the maximum resolution level is a maximum value of the global resolution levels.
In one embodiment, the level determining module is further configured to determine that the maximum resolution level is the target resolution level when the maximum resolution level is not a maximum value of the global resolution levels and a resolution level higher than the maximum resolution level is present in the mapping table.
In one embodiment, the level determining module is further configured to perform comparing, when the maximum resolution level is not the maximum value of the global resolution levels and there is no resolution level higher than the maximum resolution level in the mapping table, a frame rate corresponding to the maximum resolution level with a frame rate of the second threshold; when the frame rate corresponding to the maximum resolution level is greater than the frame rate of the second threshold, selecting a resolution level higher than the maximum resolution level from the global resolution levels as the target resolution level; and when the frame rate corresponding to the maximum resolution level is less than the frame rate of the second threshold, determining that the maximum resolution level is the target resolution level.
In one embodiment, the shooting device further comprises a mapping relation adding module configured to execute, when the target resolution level is not in the mapping table, acquiring a target frame rate when shooting with the target resolution; and adding the mapping relation between the target resolution and the target frame rate into the mapping table.
In one embodiment, the shooting device further comprises a mapping relation updating module configured to execute, when the target resolution level is in the mapping table, acquiring a target frame rate when shooting with the target resolution; and determining the latest average frame rate corresponding to the target resolution level according to the historical average frame rate corresponding to the target resolution level, the target frame rate and the historical shooting times corresponding to the target resolution level in the mapping table.
In one embodiment, the shooting information further includes an initial resolution level; the shooting device further comprises a judging module configured to execute the judgment of whether the mapping table is blank; determining the initial resolution level as the target resolution level based on the mapping table being a blank mapping table.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the photographing method described in any embodiment of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, a storage medium, in which instructions are executed by a processor of an electronic device, so that the electronic device can perform the photographing method as described in any one of the embodiments of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program stored in a readable storage medium, from which at least one processor of an apparatus reads and executes the computer program, so that the apparatus performs the photographing method described in any one of the embodiments of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
searching a level mapping table according to an upper threshold and a lower threshold in the shooting information by acquiring the shooting information; determining a target resolution level according to a search result, wherein the target resolution level is determined based on the size relationship between the frame rate in the search result and the upper threshold and the lower threshold; and finally, acquiring the target resolution corresponding to the target resolution grade, and shooting by adopting the target resolution. Because the mapping table stores the corresponding relation between the resolution level and the frame rate in the historical shooting operation, the target resolution level is determined through the upper threshold value, the lower threshold value and the level mapping table, and the determination of the target resolution matched with the terminal shooting function is realized. The terminal adopts the target resolution corresponding to the target resolution grade to shoot, so that the definition of the image can be ensured, the power consumption and the heating caused by the fact that the terminal shoots the image with the overlarge resolution can be reduced, and the phenomenon that the terminal is blocked is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is an application environment diagram illustrating a photographing method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a photographing method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating step S230 according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating step S230 according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating step S420 according to an exemplary embodiment.
Fig. 6 is a flow chart illustrating a photographing method according to an exemplary embodiment.
Fig. 7 is a flowchart illustrating a photographing method according to an exemplary embodiment.
Fig. 8 is a flowchart illustrating a photographing method according to an exemplary embodiment.
Fig. 9a to 9b are flowcharts illustrating a photographing method according to an exemplary embodiment.
Fig. 10 is a block diagram illustrating a photographing apparatus according to an exemplary embodiment.
Fig. 11 is an internal block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The shooting method provided by the present disclosure can be applied to the application environment as shown in fig. 1. Specifically, the terminal 110 is installed with an application program or an applet having a shooting function, and in response to an operation instruction of the application program or the applet, such as an application start instruction or an application setting instruction, the server 120 issues shooting information to the terminal, where the shooting information may include an upper threshold and a lower threshold, the upper threshold and the lower threshold may include a first threshold and a second threshold, and the second threshold is greater than the first threshold. The terminal 110 acquires shooting information; searching a level mapping table according to an upper threshold and a lower threshold in the shooting information, wherein the mapping relation between the resolution level and the frame rate is recorded in the level mapping table, and the mapping relation between the partial resolution level based on the current equipment and the frame rate is recorded in the mapping table; determining a target resolution ratio grade according to the search result, wherein the target resolution ratio grade is determined based on the size relation between the frame rate and the upper and lower thresholds in the search result; acquiring a target resolution corresponding to the target resolution level; and shooting by adopting the target resolution. The terminal 110 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 120 may be implemented by an independent server or a server cluster formed by a plurality of servers.
Fig. 2 is a flowchart illustrating a photographing method according to an exemplary embodiment, and as shown in fig. 2, the photographing method is used in the terminal 110, and includes the following steps:
in step S210, shooting information is acquired.
Wherein the photographing information is information on which the terminal sets the target resolution to perform the photographing function. The shooting information comprises an upper threshold and a lower threshold, the upper threshold and the lower threshold comprise a first threshold and a second threshold, the second threshold is larger than the first threshold, the first threshold is a critical value corresponding to a preset minimum frame rate, and the second threshold is a critical value corresponding to a preset maximum frame rate. The Frame rate (Fram edrate) is a frequency (rate) at which a bitmap image continuously appears on a display in units of frames, and is measured as a number of display frames Per Second (Frame Per Second), which is colloquially referred to as the number of pictures of a moving picture or video. The greater the number of frames per second, the more fluid the displayed motion will be. The threshold is also called a critical value, and the upper and lower thresholds refer to a preset maximum frame rate or a preset minimum frame rate. Specifically, the server issues the shooting information to the terminal, and the terminal acquires the shooting information.
In step S220, the level mapping table is searched according to the upper and lower thresholds.
The mapping relation between the resolution level and the frame rate is recorded in the level mapping table, and the mapping relation between the partial resolution level based on the current equipment and the frame rate is recorded in the mapping table. The resolution may be an image resolution, i.e., the precision of a screen image, i.e., the number of pixels contained in a unit inch. The resolution levels may include resolution levels less than 540P, 576P, 720P, 1080P, greater than 1080P, etc. (P is an abbreviation for Progressive, meaning "Progressive" meaning "total number of lines of video pixels"). 720P represents 720 lines of pixels on the screen, and the specific resolution is 1280 × 720; 1080P indicates a total of 1080 lines of pixels on the screen, and the specific resolution is 1920 x 1080. When a shooting application program on the terminal is used for shooting an image or a video with a certain resolution, the frame rate of shooting with the resolution can be obtained, on one hand, the resolution and the frame rate can be set to be in a corresponding relation or a mapping relation and stored on the terminal; on the other hand, the frame rate corresponding to the resolution may be an average of the frame rates of each shooting with the resolution. Specifically, after the terminal starts the shooting application program, before the shooting instruction starts to be processed, the upper and lower thresholds are searched in the level mapping table, and each frame rate and each resolution level in the mapping table are checked.
In step S230, a target resolution level is determined according to the search result.
And the target resolution level is determined based on the size relationship between the frame rate in the search result and the upper threshold and the lower threshold. The target resolution level is a level corresponding to a resolution that matches a photographing function of the terminal. Specifically, the level mapping table is searched according to the acquired upper and lower thresholds, the acquired upper and lower thresholds are compared with each frame rate in the mapping table, and the target resolution level is determined according to the size relationship between the frame rate in the search result and the upper and lower thresholds and the corresponding resolution level in the search result.
In step S240, a target resolution corresponding to the target resolution level is acquired.
In step S250, shooting is performed with the target resolution.
Specifically, the shooting resolution may be divided into several levels in advance, and the correspondence between the resolution level and the frame rate is recorded in the mapping table. After determining the target resolution level according to the search result, in order to perform a photographing operation, a target resolution corresponding to the target resolution level may be acquired to perform photographing with the target resolution.
In the shooting method, the shooting information is obtained, and a level mapping table is searched according to the upper threshold and the lower threshold in the shooting information; determining a target resolution ratio grade according to the search result, wherein the target resolution ratio grade is determined based on the size relation between the frame rate and the upper and lower thresholds in the search result; and finally, acquiring the target resolution corresponding to the target resolution grade, and shooting by adopting the target resolution. Because the mapping table stores the corresponding relation between the resolution level and the frame rate in the historical shooting operation, the target resolution level is determined through the upper threshold value, the lower threshold value and the level mapping table, and the determination of the target resolution matched with the terminal shooting function is realized. The terminal adopts the target resolution corresponding to the target resolution grade to shoot, so that the definition of the image can be ensured, the power consumption and the heating caused by the fact that the terminal shoots the image with the overlarge resolution can be reduced, and the phenomenon that the terminal is blocked is avoided.
In an exemplary embodiment, as shown in fig. 3, in step S230, the target resolution level is determined according to the search result, which may specifically be implemented by the following steps:
in step S310, when there is no frame rate greater than the first threshold in the mapping table, a minimum resolution level in the mapping table is acquired.
In step S320, a target resolution level is determined according to the minimum resolution level.
The first threshold is a critical value corresponding to a preset minimum frame rate, and the first threshold is mainly used for comparing with each frame rate in the mapping table to select a target resolution level. The size of the first threshold may be set according to actual conditions, for example, the first threshold is set to ensure fluency of video playing, and the first threshold may be dynamically configured according to the device model of the terminal, for example, in a case where the performance of the terminal is generally poor, a lower first threshold is selected. The first threshold is the minimum of the upper and lower thresholds. Specifically, when the first threshold is the minimum value of the upper and lower thresholds, the frame rate of the first threshold is compared with each frame rate in the mapping table. If the frame rate greater than the first threshold does not exist in the mapping table, this indicates that the shooting performance of the terminal cannot meet the shooting requirement of a larger resolution on the premise of smoothness and no overheating. In order to ensure that the terminal runs smoothly and the shooting performance of the terminal is utilized to the maximum extent, when the frame rate which is greater than the first threshold value does not exist in the mapping table, the minimum resolution level in the table is obtained from the mapping table. Due to the corresponding relation between the resolution levels adopted by the shooting of the past times and the frame rate, which are stored in the mapping table, the target resolution level can be determined by taking the minimum resolution level in the mapping table as a reference.
In the shooting method, by comparing each frame rate in the mapping table with the frame rate of the first threshold, when the frame rate larger than the first threshold does not exist in the mapping table, the minimum resolution level in the mapping table is obtained; and determining a target resolution level based on the minimum resolution level. Under the condition that the terminal shooting performance is not high, the smooth operation of the terminal is ensured, the shooting performance of the terminal is utilized to the maximum extent, and the clear image quality which can be realized by the terminal is realized.
In an exemplary embodiment, the determining the target resolution level according to the minimum resolution level in step S320 includes: when the minimum resolution level is the minimum of the global resolution levels, the minimum resolution level is determined to be the target resolution level.
Wherein the global resolution level is a resolution level pre-created according to the actual situation of the existing image resolution. For example, resolutions less than 540P, 576P, 720P, 1080P and greater than 1080P appearing on the market may be defined at level0, level1, level2, level3, level4 and level5, respectively. level0, level1, level2, level3, level4, and level5 may be referred to as global resolution levels. And the minimum value in the global resolution level is denoted as level0, and the maximum value in the global resolution level is denoted as level 5. Specifically, when there is no frame rate greater than the first threshold in the mapping table, the minimum resolution level in the table is obtained from the mapping table. And obtaining the minimum value in the global resolution levels, comparing the minimum value in the global resolution levels with the minimum resolution level in the mapping table, and determining the minimum resolution level as the target resolution level if the minimum resolution level is the minimum value in the global resolution levels.
In the above shooting method, the minimum resolution level in the mapping table is compared with the minimum value in the global resolution levels by setting the global resolution levels, and when the minimum resolution level is the minimum value in the global resolution levels, the minimum resolution level is determined to be the target resolution level. The terminal with low shooting performance can further smoothly execute shooting operation, particularly the image processing process after responding to the shooting instruction, so that the shooting performance of the terminal is utilized to the maximum extent, and the problems of blockage and overheating caused by overlarge energy consumption are avoided.
In an exemplary embodiment, the determining the target resolution level according to the minimum resolution level in step S320 includes: and when the minimum resolution level is not the minimum value in the global resolution levels, selecting a resolution level lower than the minimum resolution level in the global resolution levels as a target resolution level.
Specifically, when there is no frame rate greater than the first threshold in the mapping table, the minimum resolution level in the table is obtained from the mapping table. And acquiring the minimum value in the global resolution levels, and comparing the minimum value in the global resolution levels with the minimum resolution level in the mapping table. If the minimum resolution level is not the minimum value of the global resolution levels, and a resolution level lower than the minimum resolution level needs to be determined for the terminal in order to ensure smooth operation of the terminal, a resolution level one level lower than the minimum resolution level is selected from the global resolution levels as a target resolution level.
In the shooting method, the minimum resolution level in the mapping table is compared with the minimum value in the global resolution levels, and when the minimum resolution level is not the minimum value in the global resolution levels, the resolution level lower than the minimum resolution level in the global resolution levels is selected as the target resolution level. The terminal with low shooting performance can further smoothly execute shooting operation, particularly the image processing process after responding to the shooting instruction, so that the shooting performance of the terminal is utilized to the maximum extent, and the problems of blockage and overheating caused by overlarge energy consumption are avoided.
In an exemplary embodiment, as shown in fig. 4, in step S230, the target resolution level is determined according to the search result, which may specifically be implemented by the following steps:
in step S410, when there is a frame rate greater than the first threshold in the mapping table, a maximum resolution level is determined from resolution levels corresponding to the frame rate greater than the first threshold in the mapping table.
In step S420, a target resolution level is determined according to the maximum resolution level.
The first threshold is a critical value corresponding to a preset minimum frame rate. The mapping table records the mapping relationship between the partial resolution level and the frame rate based on the terminal, that is, the frame rate used by the terminal for shooting is recorded in the mapping table. Specifically, when the first threshold is the minimum value of the upper and lower thresholds, the frame rate of the first threshold is compared with each frame rate in the mapping table, and if the frame rate greater than the first threshold exists in the mapping table, this indicates that the frame rate greater than the first threshold is used in the history shooting record of the terminal, which also indicates that a higher-quality and clearer image or video can be obtained through the shooting performance of the terminal, that is, further increasing the shooting resolution of the terminal may not cause the terminal to be stuck. Then, on the premise of ensuring sufficient fluency, the higher-level resolution level can be selected to obtain a higher-quality and clearer image or video, so that the shooting performance of the terminal is utilized to the maximum extent. Therefore, when there is a frame rate greater than the first threshold in the mapping table, the largest resolution level is selected from the mapping table among resolution levels corresponding to the frame rates greater than the first threshold. The target resolution level is determined according to the maximum resolution level selected in the mapping table. Because the mapping table records the corresponding relation between the resolution level and the frame rate adopted by the history shooting, the history shooting information in the mapping table is taken as a reference, so that the phenomenon that the terminal is jammed when the terminal runs due to the fact that too large resolution is selected and used blindly can be avoided, and the phenomenon that the terminal performance is wasted and the quality of pictures or videos is poor due to the fact that too small resolution is used due to the fact that the terminal is jammed can also be avoided.
In the shooting method, by comparing each frame rate in the mapping table with the frame rate of the first threshold, when the frame rate greater than the first threshold exists in the mapping table, the maximum resolution level corresponding to the frame rate greater than the first threshold in the mapping table is obtained; and determining a target resolution level based on the maximum resolution level. According to the embodiment, when the shooting performance of the terminal is poor, the shooting resolution is improved on the premise that the terminal runs smoothly, so that the shooting performance of the terminal can be utilized to the maximum extent, and the clearer image quality which can be realized by the terminal is realized.
In an exemplary embodiment, the determining the target resolution level according to the maximum resolution level in step S420 includes: when the maximum resolution level is a maximum value among the global resolution levels, the maximum resolution level is determined as a target resolution level.
Wherein the global resolution level is a resolution level pre-created according to the actual situation of the existing image resolution. For example, resolutions less than 540P, 576P, 720P, 1080P and greater than 1080P appearing on the market may be defined at level0, level1, level2, level3, level4 and level5, respectively. level0, level1, level2, level3, level4, and level5 may be referred to as global resolution levels. And the minimum value in the global resolution level is denoted as level0, and the maximum value in the global resolution level is denoted as level 5. Specifically, when there is a frame rate greater than the first threshold in the mapping table, the maximum resolution level in the table is obtained from the mapping table. And acquiring the maximum value in the global resolution levels, comparing the maximum value in the global resolution levels with the maximum resolution levels in the mapping table, and determining the maximum resolution level as the target resolution level if the maximum resolution level is the maximum value in the global resolution levels.
In the shooting method, the global resolution level is set, the maximum resolution level corresponding to the frame rate which is greater than the first threshold value in the mapping table is compared with the maximum value in the global resolution level, and when the maximum resolution level is the maximum value in the global resolution level, the maximum resolution level is determined to be the target resolution level. The terminal with high shooting performance can further shoot high-quality images or videos, the shooting performance of the terminal is utilized to the maximum extent, particularly the image processing process after the shooting instruction is responded, and meanwhile the problems of blocking and overheating caused by excessive energy consumption are avoided.
In an exemplary embodiment, the determining the target resolution level according to the maximum resolution level in step S420 includes: when the maximum resolution level is not the maximum value among the global resolution levels and there is a resolution level one level higher than the maximum resolution level in the mapping table, the maximum resolution level is determined as the target resolution level.
Specifically, when the frame rate greater than the first threshold exists in the mapping table, the maximum resolution level corresponding to the frame rate greater than the first threshold in the table is obtained from the mapping table. Obtaining the maximum value in the global resolution level, and comparing the maximum value in the global resolution level with the maximum resolution level in the mapping table. And if the maximum resolution level is not the maximum value in the global resolution levels and a resolution level one level higher than the maximum resolution level exists in the mapping table, determining the maximum resolution level as the target resolution level.
In the shooting method, the maximum resolution level corresponding to the frame rate greater than the first threshold in the mapping table is compared with the maximum value in the global resolution levels, and when the maximum resolution level is not the maximum value in the global resolution levels and a resolution level higher than the maximum resolution level by one level exists in the mapping table, the maximum resolution level is determined to be the target resolution level. Further, the terminal with high shooting performance can smoothly execute shooting operation and acquire images or video contents with the maximum definition.
In an exemplary embodiment, the upper and lower thresholds include a second threshold, the second threshold being greater than the first threshold. As shown in fig. 5, in step S420, determining a target resolution level according to the maximum resolution level includes:
in step S510, when the maximum resolution level is not the maximum value of the global resolution levels and there is no resolution level higher than the maximum resolution level by one step in the mapping table, the frame rate corresponding to the maximum resolution level is compared with the frame rate of the second threshold.
In step S520, when the frame rate corresponding to the maximum resolution level is greater than the frame rate of the second threshold, a resolution level higher than the maximum resolution level in the global resolution levels is selected as the target resolution level.
In step S530, when the frame rate corresponding to the maximum resolution level is less than the frame rate of the second threshold, the maximum resolution level is determined as the target resolution level.
The upper threshold and the lower threshold comprise a first threshold and a second threshold, and the second threshold is larger than the first threshold. Both of them may be set according to actual conditions, may be empirical values, or may be determined by dynamic configuration. The first threshold is a critical value corresponding to a preset minimum frame rate, and the second threshold is a critical value corresponding to a preset maximum frame rate, for example, the first threshold may be 15, and the second threshold may be 25. Specifically, when there is a frame rate greater than the first threshold in the mapping table, the maximum resolution level in the table is obtained from the mapping table. Obtaining the maximum value in the global resolution level, and comparing the maximum value in the global resolution level with the maximum resolution level in the mapping table. When the maximum resolution level is not the maximum value of the global resolution levels and there is no resolution level one level higher than the maximum resolution level in the mapping table, it is indicated that the resolution level one level higher than the maximum resolution level has not been used. However, the resolution level one level higher than the maximum resolution level cannot be blindly enabled for shooting, and it is necessary to further compare the frame rate corresponding to the maximum resolution level with the frame rate of the second threshold value. When the frame rate corresponding to the maximum resolution level is greater than the frame rate of the second threshold, which indicates that the shooting performance of the terminal may bear a higher level of resolution, a resolution level higher than the maximum resolution level may be selected as the target resolution level among the global resolution levels, and further, a resolution level higher than the maximum resolution level by one level may be selected as the target resolution level. And when the frame rate corresponding to the maximum resolution level is less than the frame rate of the second threshold, in order to ensure the smoothness of the operation of the terminal and not generate excessive heat, determining the maximum resolution level as the target resolution level.
In the shooting method, when the maximum resolution level corresponding to the frame rate larger than the first threshold is not the maximum value of the global resolution levels and the mapping table does not have a resolution level higher than the maximum resolution level by one level, the maximum resolution level or a resolution level higher than the maximum resolution level is selected as a target resolution level according to the comparison result by comparing the frame rate corresponding to the maximum resolution level with the frame rate of the second threshold, and the matched target resolution is selected for the terminal to shoot through one-time comparison, so that the optimal target resolution level is determined between the definition and the fluency.
In an exemplary embodiment, as shown in fig. 6, after step S250, the photographing method further includes the steps of:
in step S610, when the target resolution level is not in the mapping table, the target frame rate at the time of photographing with the target resolution is acquired.
In step S620, the mapping relationship between the target resolution and the target frame rate is added to the mapping table.
Wherein, the mapping relation between the resolution level and the frame rate is recorded in the level mapping table. Therefore, after photographing with the target resolution, a resolution level corresponding to the photographing operation and a corresponding frame rate need to be added to the mapping table. Specifically, whether a target resolution level exists in the mapping table is detected, and when the target resolution level is not in the mapping table, a target frame rate when shooting is performed with the target resolution is acquired. For example, the duration of the captured video and the frame number of the video may be obtained, and the target frame rate may be obtained by dividing the video frame number by the video duration. Thereby adding the mapping relation between the target resolution and the target frame rate to the mapping table.
According to the shooting method, the mapping table is updated in time according to the target resolution level and the target frame rate corresponding to the shooting operation, an accurate basis is provided for determining the matched target resolution for the subsequent shooting operation, and stable operation of the terminal is ensured.
In an exemplary embodiment, as shown in fig. 7, after step S250, the photographing method further includes the steps of:
in step S710, when the target resolution level is in the mapping table, the target frame rate at the time of photographing with the target resolution is acquired.
In step S720, the latest average frame rate corresponding to the target resolution level is determined according to the historical average frame rate corresponding to the target resolution level, the target frame rate, and the historical shooting frequency corresponding to the target resolution level in the mapping table.
Wherein, the mapping relation between the resolution level and the frame rate is recorded in the level mapping table. Therefore, after photographing with the target resolution, a resolution level corresponding to the photographing operation and a corresponding frame rate need to be added to the mapping table. Specifically, whether a target resolution level exists in the mapping table is detected, and when the target resolution level is in the mapping table, a frame rate corresponding to the target resolution level is obtained from the mapping table. And acquiring a target frame rate when shooting is carried out by adopting the target resolution. For example, the duration of the captured video and the frame number of the video may be obtained, and the target frame rate may be obtained by dividing the video frame number by the video duration. After the target frame rate when shooting with the target resolution is acquired, the historical shooting times before shooting with the target resolution by the terminal need to be acquired. And acquiring the historical average frame rate corresponding to the target resolution level from the mapping table, so as to determine the latest average frame rate corresponding to the target resolution level according to the historical average frame rate corresponding to the target resolution level, the historical shooting times and the target frame rate. And updating the mapping relation between the target resolution level and the latest average frame rate into the mapping table. It is understood that the history shooting times corresponding to the target resolution level also needs to be updated.
For example, 10 shots have been previously taken with a resolution of 720p (corresponding to a resolution level of 4), and in the mapping table, the average frame rate corresponding to a resolution level of 4 is 16. The target frame rate at this time of shooting at the resolution 720p is 18. That is, the acquired historical photographing number is 10, the historical average frame rate is 16, and the target frame rate is 18, the latest average frame rate corresponding to the target resolution level is equal to (16 × 10+18)/(10+1), and the historical photographing number corresponding to the updated resolution 720p is 11.
According to the shooting method, the latest average frame rate corresponding to the target resolution level is determined according to the historical average frame rate corresponding to the target resolution level, the target frame rate and the historical shooting times corresponding to the target resolution level in the mapping table, the mapping table is updated in time, an accurate basis is provided for determining the matched target resolution for subsequent shooting operation, and stable operation of the terminal is guaranteed.
In an exemplary embodiment, the photographing information further includes an initial resolution level; as shown in fig. 8, the photographing method further includes the steps of:
in step S810, it is determined whether the mapping table is empty.
In step S820, if yes, the initial resolution level is determined as the target resolution level.
The initial resolution level may be related to the device model of the terminal, may be an empirical value, and may also be dynamically configured. Specifically, if the terminal is the first shot, the mapping table should be an empty table. Therefore, whether the terminal shoots for the first time is judged by judging whether the mapping table is blank, if so, the terminal shoots for the first time is judged, and shooting is carried out through the initial resolution level sent by the server, namely, the initial resolution level is determined as the target resolution level.
Fig. 9a is a flowchart illustrating a photographing method according to an exemplary embodiment, and as shown in fig. 9, the photographing method is used in the terminal 110, and includes the following steps:
in step S902, shooting information is acquired.
The shooting information comprises an upper threshold value, a lower threshold value and an initial resolution level, the upper threshold value and the lower threshold value comprise a first threshold value and a second threshold value, the second threshold value is larger than the first threshold value, the first threshold value is a critical value corresponding to a preset minimum frame rate, and the second threshold value is a critical value corresponding to a preset maximum frame rate.
In step S904, it is determined whether the mapping table is blank.
In step S906, if yes, the initial resolution level is determined as the target resolution level.
In step S908, if not, the level mapping table is searched according to the upper and lower thresholds.
The mapping relation between the resolution level and the frame rate is recorded in the level mapping table, and the mapping relation between the partial resolution level based on the current equipment and the frame rate is recorded in the mapping table.
In step S910, it is determined whether there is a frame rate greater than a first threshold in the mapping table.
In step S912, when there is no frame rate greater than the first threshold in the mapping table, a minimum resolution level in the mapping table is acquired.
In step S914, the minimum resolution level is compared with the minimum value of the global resolution levels.
In step S916, when the minimum resolution level is the minimum value among the global resolution levels, the minimum resolution level is determined to be the target resolution level.
In step S918, when the minimum resolution level is not the minimum value of the global resolution levels, a resolution level lower than the minimum resolution level of the global resolution levels is selected as a target resolution level.
In step S920, when there is a frame rate greater than the first threshold in the mapping table, a maximum resolution level is determined from resolution levels corresponding to the frame rate greater than the first threshold in the mapping table.
In step S922, the maximum resolution level is compared with the maximum value of the global resolution levels.
In step S924, when the maximum resolution level is the maximum value among the global resolution levels, the maximum resolution level is determined as the target resolution level.
In step S926, when the maximum resolution level is not the maximum value of the global resolution levels, it is determined whether there is a resolution level one level higher than the maximum resolution level in the mapping table.
In step S928, when there is a resolution level one level higher than the maximum resolution level in the mapping table, the maximum resolution level is determined as the target resolution level.
In step S930, when there is no resolution level one level higher than the maximum resolution level in the mapping table, the frame rate corresponding to the maximum resolution level is compared with the frame rate of the second threshold value.
In step S932, when the frame rate corresponding to the maximum resolution level is greater than the frame rate of the second threshold, a resolution level higher than the maximum resolution level in the global resolution levels is selected as the target resolution level.
In step S934, when the frame rate corresponding to the maximum resolution level is less than the frame rate of the second threshold, the maximum resolution level is determined as the target resolution level.
Fig. 9b is a flowchart illustrating a photographing method according to an exemplary embodiment, the photographing method further including the steps of, after determining a target resolution level:
in step S936, a target resolution corresponding to the target resolution level is acquired.
In step S938, shooting is performed with the target resolution.
In step S940, it is determined whether the mapping table has a target resolution level.
In step S942, when the target resolution level is not in the mapping table, the target frame rate at the time of photographing with the target resolution is acquired.
In step S944, the mapping relationship between the target resolution and the target frame rate is added to the mapping table.
In step S946, when the target resolution level is in the mapping table, the target frame rate at the time of shooting with the target resolution is acquired.
In step S948, the latest average frame rate corresponding to the target resolution level is determined from the historical average frame rate corresponding to the target resolution level, the target frame rate, and the historical number of times of image capturing corresponding to the target resolution level in the mapping table.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the above-mentioned flowcharts may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or the stages in other steps.
Fig. 10 is a block diagram of a camera shown in accordance with an exemplary embodiment. Referring to fig. 10, the photographing apparatus includes: a photographing information obtaining module 1002, a mapping table lookup module 1004, a level determination module 1006, a target resolution obtaining module 1008, and a photographing module 1010.
A shooting information obtaining module 1002 configured to perform obtaining of shooting information, where the shooting information includes upper and lower thresholds, where the upper and lower thresholds include a first threshold and a second threshold, the first threshold is a critical value corresponding to a preset minimum frame rate, and the second threshold is a critical value corresponding to a preset maximum frame rate;
a mapping table lookup module 1004 configured to perform lookup of a level mapping table according to the upper and lower thresholds, where the mapping table is used for representing a mapping relationship between a resolution level and a frame rate, and the mapping table records a mapping relationship between a partial resolution level based on a current device and a frame rate;
a level determining module 1006, configured to determine a target resolution level according to a search result, where the target resolution level is determined based on a size relationship between a frame rate in the search result and the upper and lower thresholds;
a target resolution acquisition module 1008 configured to perform acquisition of a target resolution corresponding to the target resolution level;
a photographing module 1010 configured to perform photographing with the target resolution.
In an exemplary embodiment, the level determining module 1006 is further configured to obtain a minimum resolution level in the mapping table when there is no frame rate greater than the first threshold in the mapping table; and determining a target resolution level according to the minimum resolution level.
In an exemplary embodiment, the level determining module 1006 is further configured to determine the minimum resolution level as the target resolution level when the minimum resolution level is a minimum of global resolution levels.
In an exemplary embodiment, the level determining module 1006 is further configured to select a resolution level lower than the minimum resolution level from the global resolution levels as the target resolution level when the minimum resolution level is not the minimum value of the global resolution levels.
In an exemplary embodiment, the level determining module 1006 is further configured to determine, when there is a frame rate greater than the first threshold in the mapping table, a maximum resolution level from resolution levels corresponding to the frame rates greater than the first threshold in the mapping table; and determining a target resolution level according to the maximum resolution level.
In an exemplary embodiment, the level determining module 1006 is further configured to determine the maximum resolution level as the target resolution level when the maximum resolution level is a maximum value of the global resolution levels.
In an exemplary embodiment, the level determining module 1006 is further configured to determine the maximum resolution level as the target resolution level when the maximum resolution level is not a maximum value of the global resolution levels and a resolution level higher than the maximum resolution level by one level exists in the mapping table.
In an exemplary embodiment, the level determining module 1006 is further configured to perform comparing, when the maximum resolution level is not the maximum value of the global resolution levels and there is no resolution level higher than the maximum resolution level in the mapping table, a frame rate corresponding to the maximum resolution level with a frame rate of the second threshold; when the frame rate corresponding to the maximum resolution level is greater than the frame rate of the second threshold, selecting a resolution level higher than the maximum resolution level from the global resolution levels as the target resolution level; and when the frame rate corresponding to the maximum resolution level is less than the frame rate of the second threshold, determining that the maximum resolution level is the target resolution level.
In an exemplary embodiment, the shooting device further includes a mapping relation adding module configured to execute, when the target resolution level is not in the mapping table, acquiring a target frame rate at the time of shooting with the target resolution; and adding the mapping relation between the target resolution and the target frame rate into the mapping table.
In an exemplary embodiment, the photographing apparatus further includes a mapping relation updating module configured to perform, when the target resolution level is in the mapping table, acquiring a target frame rate at the time of photographing with the target resolution; and determining the latest average frame rate corresponding to the target resolution level according to the historical average frame rate corresponding to the target resolution level, the target frame rate and the historical shooting times corresponding to the target resolution level in the mapping table.
In an exemplary embodiment, the photographing information further includes an initial resolution level; the shooting device also comprises a judging module which is configured to execute the judgment of whether the mapping table is blank; determining the initial resolution level as the target resolution level based on the mapping table being a blank mapping table.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 11 is a block diagram illustrating an apparatus 1100 for a photographing method according to an exemplary embodiment. For example, the device 1100 can be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.
Referring to fig. 11, device 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input/output (I/O) interface 1112, a sensor component 1114, and a communications component 1116.
The processing component 1102 generally controls the overall operation of the device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1102 may include one or more processors 1120 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operation at the device 1100. Examples of such data include instructions for any application or method operating on device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1104 may be implemented by any type or combination of volatile or non-volatile storage devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power component 1106 provides power to the various components of the device 1100. The power components 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1100.
The multimedia component 1108 includes a screen that provides an output interface between the device 1100 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 1100 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the device 1100 is in operating modes, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1114 includes one or more sensors for providing various aspects of state assessment for the device 1100. For example, the sensor assembly 1114 may detect the open/closed state of the device 1100, the relative positioning of components, such as a display and keypad of the device 1100, the sensor assembly 1114 may also detect a change in the position of the device 1100 or a component of the device 1100, the presence or absence of user contact with the device 1100, orientation or acceleration/deceleration of the device 1100, and a change in the temperature of the device 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the device 1100 and other devices. The device 1100 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the device 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as memory 1104 comprising instructions, executable by processor 1120 of device 1100 to perform the above-described capture method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (24)

1. A photographing method, characterized by comprising:
acquiring shooting information, wherein the shooting information comprises an upper threshold and a lower threshold, the upper threshold and the lower threshold comprise a first threshold and a second threshold, the first threshold is a critical value corresponding to a preset minimum frame rate, and the second threshold is a critical value corresponding to a preset maximum frame rate;
searching a level mapping table according to the upper threshold and the lower threshold, wherein the mapping table is used for representing the mapping relation between the resolution level and the frame rate, and the mapping relation between the partial resolution level based on the current equipment and the frame rate is recorded in the mapping table;
determining a target resolution level according to a search result, wherein the target resolution level is determined based on the size relationship between the frame rate in the search result and the upper threshold and the lower threshold;
acquiring a target resolution corresponding to the target resolution level;
and shooting by adopting the target resolution.
2. The capture method of claim 1, wherein determining the target resolution level according to the search result comprises:
when the frame rate larger than the first threshold value does not exist in the mapping table, acquiring the minimum resolution level in the mapping table;
and determining a target resolution level according to the minimum resolution level.
3. The photographing method according to claim 2, wherein the determining a target resolution level according to the minimum resolution level includes:
when the minimum resolution level is a minimum value among global resolution levels, determining the minimum resolution level as the target resolution level, the global resolution levels being different resolution levels divided in advance according to an actual image resolution.
4. The photographing method according to claim 3, wherein the determining a target resolution level according to the minimum resolution level further comprises:
when the minimum resolution level is not the minimum value of the global resolution levels, selecting a resolution level lower than the minimum resolution level of the global resolution levels as the target resolution level.
5. The capture method of claim 2, wherein the determining a target resolution level according to the search result comprises:
when the frame rate greater than the first threshold value exists in the mapping table, determining a maximum resolution level from resolution levels corresponding to the frame rate greater than the first threshold value in the mapping table;
and determining a target resolution level according to the maximum resolution level.
6. The photographing method according to claim 5, wherein the determining a target resolution level according to the maximum resolution level includes:
when the maximum resolution level is a maximum value of global resolution levels, determining that the maximum resolution level is the target resolution level, where the global resolution levels are different resolution levels divided in advance according to an actual image resolution.
7. The photographing method according to claim 6, wherein the determining a target resolution level according to the maximum resolution level further comprises:
determining the maximum resolution level as the target resolution level when the maximum resolution level is not a maximum value of the global resolution levels and a resolution level higher than the maximum resolution level by one level exists in the mapping table.
8. The photographing method according to claim 6, wherein the determining a target resolution level according to the maximum resolution level further comprises:
when the maximum resolution level is not the maximum value of the global resolution levels and there is no resolution level higher than the maximum resolution level by one level in the mapping table, comparing the frame rate corresponding to the maximum resolution level with the frame rate of the second threshold;
when the frame rate corresponding to the maximum resolution level is greater than the frame rate of the second threshold, selecting a resolution level higher than the maximum resolution level from the global resolution levels as the target resolution level;
and when the frame rate corresponding to the maximum resolution level is less than the frame rate of the second threshold, determining that the maximum resolution level is the target resolution level.
9. The photographing method according to any one of claims 1 to 8, wherein after photographing with the target resolution, the method further comprises:
when the target resolution level is not in the mapping table, acquiring a target frame rate when shooting is carried out by adopting the target resolution;
and adding the mapping relation between the target resolution and the target frame rate into the mapping table.
10. The photographing method according to any one of claims 1 to 8, wherein after photographing with the target resolution, the method further comprises:
when the target resolution level is in the mapping table, acquiring a target frame rate when shooting is carried out by adopting the target resolution;
and determining the latest average frame rate corresponding to the target resolution level according to the historical average frame rate corresponding to the target resolution level, the target frame rate and the historical shooting times corresponding to the target resolution level in the mapping table.
11. The photographing method according to any one of claims 1 to 8, wherein the photographing information further includes an initial resolution level; the method further comprises the following steps:
judging whether the mapping table is blank or not;
determining the initial resolution level as the target resolution level based on the mapping table being a blank mapping table.
12. A camera, comprising:
the shooting information acquisition module is configured to execute acquisition of shooting information, wherein the shooting information comprises upper and lower threshold values, the upper and lower threshold values comprise a first threshold value and a second threshold value, the first threshold value is a critical value corresponding to a preset minimum frame rate, and the second threshold value is a critical value corresponding to a preset maximum frame rate;
a mapping table lookup module configured to perform lookup of a level mapping table according to the upper and lower thresholds, where the mapping table is used for representing a mapping relationship between a resolution level and a frame rate, and the mapping table records a mapping relationship between a partial resolution level based on current equipment and a frame rate;
a level determination module configured to perform determining a target resolution level according to a search result, wherein the target resolution level is determined based on a size relationship between a frame rate in the search result and the upper and lower thresholds;
a target resolution acquisition module configured to perform acquisition of a target resolution corresponding to the target resolution level;
a photographing module configured to perform photographing with the target resolution.
13. The camera according to claim 12, wherein the level determination module is further configured to perform obtaining a minimum resolution level in the mapping table when there is no frame rate greater than the first threshold in the mapping table; and determining a target resolution level according to the minimum resolution level.
14. The photographing apparatus according to claim 13, wherein the level determination module is further configured to perform determining that the minimum resolution level is the target resolution level when the minimum resolution level is a minimum value of global resolution levels, the global resolution levels being different resolution levels divided in advance depending on an actual image resolution.
15. The camera according to claim 14, wherein the level determination module is further configured to select a lower resolution level of the global resolution levels than the minimum resolution level as the target resolution level when the minimum resolution level is not the minimum value of the global resolution levels.
16. The shooting device according to claim 13, wherein the level determining module is further configured to determine a maximum resolution level from resolution levels corresponding to frame rates greater than the first threshold in the mapping table when there is a frame rate greater than the first threshold in the mapping table; and determining a target resolution level according to the maximum resolution level.
17. The photographing apparatus according to claim 16, wherein the level determination module is further configured to perform determining that the maximum resolution level is the target resolution level when the maximum resolution level is a maximum value of global resolution levels, the global resolution levels being different resolution levels divided in advance depending on an actual image resolution.
18. The camera according to claim 17, wherein the level determination module is further configured to perform determining that the maximum resolution level is the target resolution level when the maximum resolution level is not a maximum value of the global resolution levels and a resolution level higher than the maximum resolution level is present in the mapping table.
19. The photographing apparatus according to claim 17, wherein the level determination module is further configured to perform comparing, when the maximum resolution level is not a maximum value of the global resolution levels and there is no resolution level higher than the maximum resolution level in the mapping table, a frame rate corresponding to the maximum resolution level with a frame rate of the second threshold; when the frame rate corresponding to the maximum resolution level is greater than the frame rate of the second threshold, selecting a resolution level higher than the maximum resolution level from the global resolution levels as the target resolution level; and when the frame rate corresponding to the maximum resolution level is less than the frame rate of the second threshold, determining that the maximum resolution level is the target resolution level.
20. The imaging apparatus according to any one of claims 12 to 19, further comprising a mapping relation addition module configured to execute acquiring a target frame rate at the time of imaging with the target resolution when the target resolution level is not in the mapping table; and adding the mapping relation between the target resolution and the target frame rate into the mapping table.
21. The imaging apparatus according to any one of claims 12 to 19, further comprising a mapping relationship updating module configured to execute acquiring a target frame rate at the time of imaging with the target resolution when the target resolution level is in the mapping table; and determining the latest average frame rate corresponding to the target resolution level according to the historical average frame rate corresponding to the target resolution level, the target frame rate and the historical shooting times corresponding to the target resolution level in the mapping table.
22. The photographing apparatus according to any one of claims 12 to 19, wherein the photographing information further includes an initial resolution level; the shooting device further comprises a judging module configured to execute the judgment of whether the mapping table is blank; determining the initial resolution level as the target resolution level based on the mapping table being a blank mapping table.
23. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the photographing method according to any one of claims 1 to 11.
24. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the photographing method according to any one of claims 1 to 11.
CN202011179786.XA 2020-10-29 2020-10-29 Shooting method, shooting device, electronic equipment and storage medium Active CN112367462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011179786.XA CN112367462B (en) 2020-10-29 2020-10-29 Shooting method, shooting device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011179786.XA CN112367462B (en) 2020-10-29 2020-10-29 Shooting method, shooting device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112367462A CN112367462A (en) 2021-02-12
CN112367462B true CN112367462B (en) 2022-04-22

Family

ID=74512581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011179786.XA Active CN112367462B (en) 2020-10-29 2020-10-29 Shooting method, shooting device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112367462B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010283856A (en) * 2008-09-17 2010-12-16 Panasonic Corp Recording medium, reproduction device, and integrated circuit
TW201108736A (en) * 2009-08-24 2011-03-01 Kcs Digital Inc Method and system for setting audio and video configuration
CN103155585A (en) * 2010-07-12 2013-06-12 欧普斯梅迪库斯股份有限公司 Systems and methods for networked in-context, high-resolution image viewing
CN103517137A (en) * 2013-09-30 2014-01-15 广州华多网络科技有限公司 Network video transmission method and system, sending/receiving end processing method and device
WO2015136963A1 (en) * 2014-03-12 2015-09-17 富士フイルム株式会社 Endoscope system, processor device for endoscope system, and method for operating endoscope system
CN105025249A (en) * 2014-04-22 2015-11-04 中国移动通信集团江苏有限公司 Video monitoring data transmission control method, apparatus and video monitoring system
CN105100800A (en) * 2015-09-11 2015-11-25 Tcl集团股份有限公司 Video coder coding code rate adjustment method and device
CN105191291A (en) * 2013-03-13 2015-12-23 株式会社理光 Information processing apparatus, program, and video output system
CN106303551A (en) * 2015-05-18 2017-01-04 阿里巴巴集团控股有限公司 A kind of video capture method and relevant device and system
CN106658174A (en) * 2016-10-31 2017-05-10 努比亚技术有限公司 Video decoding terminal and method
CN106713846A (en) * 2016-11-14 2017-05-24 浙江宇视科技有限公司 Live connection establishing method and device
CN207835580U (en) * 2017-12-30 2018-09-07 广州市源瑞信息科技有限公司 The special non-volume video frequency collection card of subway
CN110139026A (en) * 2018-02-02 2019-08-16 丰田自动车株式会社 Remote operating system and its communication means
CN111147893A (en) * 2018-11-02 2020-05-12 华为技术有限公司 Video self-adaption method, related equipment and storage medium
CN111385553A (en) * 2018-12-27 2020-07-07 佳能株式会社 Image projection apparatus and control method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060047779A1 (en) * 2004-07-12 2006-03-02 Sharp Laboratories Of America, Inc. HTTP agent-driven content negotiation for scalable video coding
JP5426080B2 (en) * 2007-06-19 2014-02-26 株式会社コナミデジタルエンタテインメント Traveling toy system
CN102348115B (en) * 2010-08-02 2014-04-16 南京壹进制信息技术有限公司 Method and device for removing redundant images from video
KR102104410B1 (en) * 2014-01-20 2020-04-27 한화테크윈 주식회사 Method of setting camera profile and apparatus of obtaining image
CN108513067B (en) * 2018-03-29 2021-01-08 维沃移动通信有限公司 Shooting control method and mobile terminal

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010283856A (en) * 2008-09-17 2010-12-16 Panasonic Corp Recording medium, reproduction device, and integrated circuit
TW201108736A (en) * 2009-08-24 2011-03-01 Kcs Digital Inc Method and system for setting audio and video configuration
CN103155585A (en) * 2010-07-12 2013-06-12 欧普斯梅迪库斯股份有限公司 Systems and methods for networked in-context, high-resolution image viewing
CN105191291A (en) * 2013-03-13 2015-12-23 株式会社理光 Information processing apparatus, program, and video output system
CN103517137A (en) * 2013-09-30 2014-01-15 广州华多网络科技有限公司 Network video transmission method and system, sending/receiving end processing method and device
WO2015136963A1 (en) * 2014-03-12 2015-09-17 富士フイルム株式会社 Endoscope system, processor device for endoscope system, and method for operating endoscope system
CN105025249A (en) * 2014-04-22 2015-11-04 中国移动通信集团江苏有限公司 Video monitoring data transmission control method, apparatus and video monitoring system
CN106303551A (en) * 2015-05-18 2017-01-04 阿里巴巴集团控股有限公司 A kind of video capture method and relevant device and system
CN105100800A (en) * 2015-09-11 2015-11-25 Tcl集团股份有限公司 Video coder coding code rate adjustment method and device
CN106658174A (en) * 2016-10-31 2017-05-10 努比亚技术有限公司 Video decoding terminal and method
CN106713846A (en) * 2016-11-14 2017-05-24 浙江宇视科技有限公司 Live connection establishing method and device
CN207835580U (en) * 2017-12-30 2018-09-07 广州市源瑞信息科技有限公司 The special non-volume video frequency collection card of subway
CN110139026A (en) * 2018-02-02 2019-08-16 丰田自动车株式会社 Remote operating system and its communication means
CN111147893A (en) * 2018-11-02 2020-05-12 华为技术有限公司 Video self-adaption method, related equipment and storage medium
CN111385553A (en) * 2018-12-27 2020-07-07 佳能株式会社 Image projection apparatus and control method thereof

Also Published As

Publication number Publication date
CN112367462A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN107105314B (en) Video playing method and device
CN108419016B (en) Shooting method and device and terminal
CN106559712B (en) Video playing processing method and device and terminal equipment
US11061202B2 (en) Methods and devices for adjusting lens position
CN104683691B (en) Image pickup method, device and equipment
CN112114765A (en) Screen projection method and device and storage medium
CN106534951B (en) Video segmentation method and device
EP3961491A1 (en) Method for extracting video clip, apparatus for extracting video clip, and storage medium
CN104869314A (en) Photographing method and device
CN112188091B (en) Face information identification method and device, electronic equipment and storage medium
CN108769769B (en) Video playing method and device and computer readable storage medium
CN110796012B (en) Image processing method and device, electronic equipment and readable storage medium
CN111880681A (en) Touch screen sampling rate adjusting method and device and computer storage medium
CN109145878B (en) Image extraction method and device
CN112685599B (en) Video recommendation method and device
CN113079493A (en) Information matching display method and device and electronic equipment
CN110399082B (en) Terminal attribute control method and device, electronic equipment and medium
CN112367462B (en) Shooting method, shooting device, electronic equipment and storage medium
CN107122356B (en) Method and device for displaying face value and electronic equipment
CN112333384B (en) Image preview method, image preview device and storage medium
CN109714247B (en) Group chat information processing method and device, electronic equipment and storage medium
CN108769513B (en) Camera photographing method and device
CN115713641A (en) Video acquisition method, device and storage medium
CN108874482B (en) Image processing method and device
CN107682623B (en) Photographing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant