CN-122027887-A - Camera shooting parameter setting method and related device
Abstract
The embodiment of the application discloses a camera shooting parameter setting method and a related device, wherein the method can comprise the steps of obtaining first requirement information related to a target shooting effect, wherein the first requirement information comprises at least one of a reference image representing the target shooting effect, voice information describing the target shooting effect, text information describing the target shooting effect, generating first shooting parameters based on the first requirement information, wherein the first shooting parameters comprise shooting parameters of each shooting dimension in at least one shooting dimension associated with the first requirement information, generating a first preset file comprising the first shooting parameters, obtaining a second shooting parameter corresponding to a camera when the camera calls the first preset file, and controlling a camera module of the camera to acquire images based on the second shooting parameters. Therefore, the application can simplify the camera shooting parameter setting flow.
Inventors
- ZHAO ZICONG
Assignees
- 纳欣科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260211
Claims (14)
- 1. A camera shooting parameter setting method, the method comprising: Acquiring first demand information related to a target shooting effect, wherein the first demand information comprises at least one of a reference image representing the target shooting effect, voice information describing the target shooting effect, text information describing the target shooting effect, and a target image; Generating first shooting parameters based on the first requirement information, wherein the first shooting parameters comprise shooting parameters of each shooting dimension in at least one shooting dimension associated with the first requirement information; generating a first preset file comprising the first shooting parameters; when the camera calls the first preset file, obtaining a second shooting parameter corresponding to the camera; and controlling a camera module of the camera to acquire images based on the second shooting parameters.
- 2. The method of claim 1, wherein the reference image is a preview image of a camera, the method further comprising: Receiving a shooting parameter adjustment for at least one shooting dimension of the preview image; And generating a first preset file based on the adjusted shooting parameters of at least one shooting dimension.
- 3. The method of claim 2, wherein after generating the first preset file based on the adjusted shooting parameters of the at least one shooting dimension, the method further comprises: and when the image acquisition is carried out based on the first preset file, at least one image post-processing algorithm conflicting with shooting parameters in the first preset file is forbidden.
- 4. The method of claim 2, wherein controlling the camera module of the camera to capture an image based on the second capture parameter comprises: Responding to a received shooting instruction, taking the second shooting parameter as first metadata , and storing the first shooting parameter and first image data acquired by a camera to obtain a first film forming file; the method further comprises the steps of: Reading the second shooting parameters from the first film forming file in response to a viewing request for the first image data; and performing image rendering on the first image data based on the second shooting parameters so as to enable the film forming to be consistent with the visual effect in preview.
- 5. The method of claim 1, wherein generating a first shooting parameter based on the first demand information comprises: and importing the first requirement information into a pre-trained artificial intelligent model to obtain a first shooting parameter output by the artificial intelligent model.
- 6. The method of claim 5, wherein the artificial intelligence model comprises a first sub-model and a second sub-model; The step of importing the first requirement information into an artificial intelligent model trained in advance to obtain a first shooting parameter output by the artificial intelligent model comprises the following steps: The first demand information is imported into the first sub-model, the first sub-model converts the first demand information into visual statistical features, and the visual statistical features are mapped into shooting parameters of each shooting dimension in at least one shooting dimension, wherein the shooting parameters of each shooting dimension are the first shooting parameters; The generating a first preset file including the first shooting parameters includes: And importing the shooting parameters of each shooting dimension map into the second sub-model, and packaging the shooting parameters of each shooting dimension map into a first preset file which can be called by a camera by the second sub-model.
- 7. The method of claim 1, wherein the second shooting parameters comprise shooting parameters of a first shooting dimension, the shooting parameters of the first shooting dimension being a parameter range, the first shooting dimension being any one of the at least one shooting dimension; the controlling the camera module of the camera to collect the image based on the second shooting parameter includes: Determining a target parameter from the parameter range in response to a shooting instruction; and controlling a camera module of the camera to acquire images based on the target parameters.
- 8. The method of claim 1, wherein the first demand information includes a reference image characterizing the target capture effect, the reference image including a plurality of pictures, the method further comprising: classifying the pictures to obtain at least one scene category and pictures corresponding to each scene category in the at least one scene category; Generating preset files corresponding to the scene categories based on the pictures corresponding to the scene categories; when an image of a first scene category is shot, controlling the camera to acquire the image based on a second preset file corresponding to the first scene category.
- 9. The method of claim 1, wherein the obtaining, when the camera invokes the first preset file, the second shooting parameters corresponding to the camera includes: Determining imaging offset of a camera module according to hardware parameters of the camera module when the camera calls the first preset file, and/or determining presentation offset of a display module of the camera according to hardware parameters of the display module of the camera; and adjusting a first shooting parameter in the first preset file based on the imaging offset and/or the presentation offset to obtain a second shooting parameter corresponding to the camera.
- 10. The method according to claim 1, wherein the method further comprises: responding to a storage instruction aiming at the first preset file, acquiring a first preset identifier defined for the first preset file, and establishing a mapping relation between the first preset identifier and the first preset file; Storing the first preset identifier into a shooting parameter list; Displaying the shooting parameter list on a camera starting interface or a shooting mode selection interface; And responding to a selection instruction aiming at the first preset identifier, calling the first preset file based on the first preset identifier and the mapping relation, and controlling the camera to acquire images.
- 11. A camera shooting parameter setting apparatus, characterized in that the camera shooting parameter setting apparatus comprises means for performing the method of any one of claims 1-10.
- 12. A camera shooting parameter setting apparatus comprising at least one processor coupled to a memory, the memory having stored therein a program or instructions that, when executed by the processor, cause the camera shooting parameter setting apparatus to perform the method of any of claims 1-10.
- 13. A computer readable storage medium having stored thereon a computer program or instructions, which when executed, cause a camera shooting parameter setting apparatus to perform the method of any of claims 1-10.
- 14. A computer program product comprising computer program code which, when run on a camera shooting parameter setting apparatus, implements the method of any of claims 1-10.
Description
Camera shooting parameter setting method and related device Technical Field The present application relates to the field of photography technologies, and in particular, to a method and an apparatus for setting shooting parameters of a camera. Background With the continuous development of electronic information technology, electronic devices (such as smart phones, tablet computers, digital cameras, etc.) are increasingly used, and become an indispensable necessity for life or work of users. Currently, electronic devices generally have a camera function, where a camera shooting parameter determines a shooting effect of a camera. In the daily shooting process, whether in an automatic shooting mode or a professional shooting mode, the shooting parameters of the camera are quickly and accurately set, so that satisfactory photos of the user can be shot. Currently, the commonly used photographing modes include an automatic photographing mode and a professional photographing mode. The automatic photographing mode can adjust photographing parameters with a small number of style types. The mode of taking the intensity of light as the main parameter setting basis enables the color reduction degree to be greatly different in different scenes, so that the shooting effect is poor. Under the professional photographing mode, the user is required to repeatedly and manually set photographing parameters, even some parameters have large adjustable ranges, the adjustable parameters are various, the whole process is complicated, the time consumption is long, the threshold of the professional photographing mode is high, and the user is difficult to obtain parameters corresponding to satisfactory photographing effects, so that the photographing effects are poor. Therefore, how to set the shooting parameters of the mobile terminal to improve the shooting effect is a problem to be solved. Disclosure of Invention The embodiment of the application provides a camera shooting parameter setting method and a related device, which can simplify the camera shooting parameter setting flow and improve the shooting effect. The embodiment of the application provides a camera shooting parameter setting method, which comprises the steps of obtaining first requirement information related to a target shooting effect, wherein the first requirement information comprises at least one of a reference image representing the target shooting effect, voice information describing the target shooting effect, text information describing the target shooting effect, generating first shooting parameters based on the first requirement information, wherein the first shooting parameters comprise shooting parameters of each shooting dimension in at least one shooting dimension associated with the first requirement information, generating a first preset file comprising the first shooting parameters, obtaining a second shooting parameter corresponding to a camera when the camera calls the first preset file, and controlling a camera module of the camera to acquire images based on the second shooting parameters. It can be seen that, in the embodiment of the present application, by acquiring the multi-mode first requirement information related to the target shooting effect, including the reference image, the voice description or the text description, the parameter configuration covering multiple shooting dimensions is intelligently generated based on the requirement information, and the corresponding preset file is created. When the camera calls the preset file, the file can be automatically analyzed and applied to the camera module, so that automatic setting of shooting parameters is realized, the camera shooting parameter setting flow is simplified, meanwhile, consistency of imaging quality and preset style is ensured, and shooting effect is improved. In one possible implementation, the reference image is a preview image of the camera, and the method further comprises receiving a shooting parameter adjustment for at least one shooting dimension of the preview image, and generating a first preset file based on the adjusted shooting parameter for the at least one shooting dimension. Therefore, in this way, the flexibility of camera shooting parameter setting is improved by receiving shooting parameter adjustment of certain shooting dimensions of the preview image of the camera. In one possible implementation, after generating the first preset file based on the adjusted shooting parameters of the at least one shooting dimension, the method further comprises disabling at least one image post-processing algorithm that conflicts with shooting parameters in the first preset file when image acquisition is performed based on the first preset file. Therefore, in the method, when the image is acquired, the consistency of preview and sheeting is ensured by closing at least one image post-processing algorithm which conflicts with the shooting parameters of the preview image, the obta