WO2019109801A1 - Method and device for adjusting photographing parameter, storage medium, and mobile terminal - Google Patents

Method and device for adjusting photographing parameter, storage medium, and mobile terminal Download PDF

Info

Publication number
WO2019109801A1
WO2019109801A1 PCT/CN2018/116588 CN2018116588W WO2019109801A1 WO 2019109801 A1 WO2019109801 A1 WO 2019109801A1 CN 2018116588 W CN2018116588 W CN 2018116588W WO 2019109801 A1 WO2019109801 A1 WO 2019109801A1
Authority
WO
WIPO (PCT)
Prior art keywords
preview image
shooting
scene
parameter
area
Prior art date
Application number
PCT/CN2018/116588
Other languages
French (fr)
Chinese (zh)
Inventor
刘耀勇
陈岩
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019109801A1 publication Critical patent/WO2019109801A1/en

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/62Control of parameters via user interfaces

Definitions

  • the embodiment of the present invention relates to a mobile terminal technology, for example, to a method, an apparatus, a storage medium, and a mobile terminal for adjusting a shooting parameter.
  • one method is that the user can manually adjust the shooting parameters according to his own needs, but the adjustment method requires the user to have high professional skills and be skilled. Master the meaning of various shooting parameters and the effect of mutual cooperation, and frequent adjustment operations are cumbersome and time-consuming, and it is difficult to capture instantaneous scenes;
  • another method is that the manufacturer of the user terminal stores in advance in the user terminal.
  • the shooting mode each shooting mode corresponds to a series of shooting parameter settings, the user can select the corresponding shooting mode, the camera module of the user terminal calls the corresponding parameter setting according to the shooting mode selected by the user, and automatically realizes the shooting parameters. Adjustment, however, this type of adjustment can only call a few limited shooting modes, which is relatively rigid, resulting in an image that is not satisfactory to the user.
  • the embodiment of the present application provides a method, a device, a storage medium, and a mobile terminal for adjusting a shooting parameter, which can provide an optimized shooting parameter adjustment scheme and improve the shooting effect of the mobile terminal.
  • the embodiment of the present application provides a method for adjusting a shooting parameter, including:
  • the embodiment of the present application further provides a parameter adjustment device, where the device includes:
  • An image acquisition module configured to acquire a first preview image of the object to be photographed, wherein the first preview image is a screen of the object to be photographed captured by the camera according to the first photographing parameter;
  • a scene recognition module configured to identify a shooting scene of the first preview image by a preset scene recognition model, wherein the scene recognition model is a deep learning model trained according to a picture sample set;
  • a parameter adjustment module configured to adjust a first shooting parameter of the camera according to a second shooting parameter corresponding to the preset scene, in a case that the shooting scene is a preset scene, according to the second shooting parameter pair The subject to be photographed is photographed.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the method for adjusting the shooting parameters as described above is implemented.
  • the embodiment of the present application further provides another terminal, including a memory, a processor, and a computer program stored on the memory and executable by the processor, where the processor executes the computer program as described above.
  • the method of adjusting the shooting parameters includes a memory, a processor, and a computer program stored on the memory and executable by the processor, where the processor executes the computer program as described above.
  • FIG. 1 is a flowchart of a method for adjusting shooting parameters provided by an embodiment of the present application
  • FIG. 2 is a flowchart of another method for adjusting shooting parameters provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of a user modifying a shooting parameter according to an embodiment of the present application
  • FIG. 4 is a flowchart of still another method for adjusting shooting parameters provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an image display interface provided by an embodiment of the present application.
  • FIG. 6 is a structural block diagram of an apparatus for adjusting shooting parameters according to an embodiment of the present application.
  • FIG. 7 is a structural block diagram of a mobile terminal according to an embodiment of the present application.
  • FIG. 8 is a structural block diagram of a smart phone according to an embodiment of the present application.
  • FIG. 1 is a flowchart of a method for adjusting shooting parameters according to an embodiment of the present application.
  • the method can be performed by an adjustment device for the shooting parameters, wherein the device can be implemented by software and/or hardware, and can generally be integrated in a mobile terminal, such as a mobile terminal having a camera.
  • the method includes:
  • Step 110 Acquire a first preview image of the object to be photographed.
  • the first preview image is a picture of the object to be captured captured by the camera according to the first shooting parameter.
  • the first preview image may include a screen captured by a camera displayed in a shooting interface of the mobile terminal before the user presses the photo button.
  • the first preview image in this embodiment includes, but is not limited to, a character class image, a natural landscape class image, and a human architecture class image.
  • the first shooting parameter may be a default parameter of the camera application or other application software having a shooting function when shooting. Alternatively, the first shooting parameter may also be a parameter corresponding to a shooting mode selected by the user, and the like.
  • the acquiring operation of the first preview image by the mobile terminal may be performed by a system of the mobile terminal, or performed by any application software that includes a shooting function in the mobile terminal, and the operation of acquiring the first preview image may be performed by the user.
  • the operating instructions are executed by the system or application software.
  • the user can directly open the camera function in the mobile terminal system to take pictures of the person, or use the camera option of the application software to take pictures of the building.
  • the first preview image may be obtained by projecting an optical image of the object onto the photosensitive chip through a lens in the camera, and converting the optical image signal into an electrical signal by the photosensitive chip, and passing through a series of settings
  • the first preview image is obtained, and the first preview image is sent to the Image Processor Processor (ISP) for processing through a dedicated interface Mobile Industry Processor Interface (MIPI).
  • ISP Image Processor Processor
  • MIPI Mobile Industry Processor Interface
  • Step 120 Identify a shooting scene of the first preview image by using a preset scene recognition model.
  • the scene recognition model is a deep learning model trained according to a set of picture samples.
  • the scene recognition model can be used to quickly and accurately identify the shooting scene of the first preview image after inputting the first preview image.
  • the shooting scene may be a category label obtained by classifying the shooting object according to the set target object, including but not limited to a gourmet scene, a green scene, a sports scene, a building scene, a character scene, and a night scene.
  • the scene recognition model may be a model obtained by training a preset deep learning model by using a machine learning algorithm based on a set of image samples, wherein the scene recognition model may be a convolutional neural network model.
  • the foregoing training process may be performed by a server, and may also be performed by a mobile terminal, which is not limited in this embodiment.
  • the image sample set includes image samples for location marking of the target object in multiple scene types, including but not limited to network pictures in the network platform and user pictures in the mobile terminal picture library.
  • the network picture can be downloaded from the network platform by the web crawler, and the specific target object in the network picture is manually marked to obtain a first picture sample, and the first picture sample is stored in the picture sample set.
  • the target object can be used to distinguish shooting scenes.
  • the marking of the target object may be by manually marking the location of the target object, including but not limited to marking the pixels representing the target object.
  • the outline of the dish can be marked, and the pixels in the outline are used as the corresponding pixels of the dish.
  • the grass is to be marked, the outline of the grass can be marked, and the pixels in the outline are used as the pixels corresponding to the grass.
  • the user picture in the picture library (or album) of the mobile terminal may be obtained, and a specific target object in the network picture is manually marked to obtain a second picture sample, and the second picture sample is stored. In the image sample set.
  • the server acquires the user permission before acquiring the user picture from the mobile terminal album. Therefore, when the server first acquires the user picture from the mobile terminal album, the mobile terminal displays the inquiry information in the form of a dialog box to ask whether to grant The server's access to the album. The user's input instruction is obtained, and if the user inputs a positive information, the server is given permission to access the album.
  • the set machine learning algorithm includes, but is not limited to, a forward propagation algorithm and a backward propagation algorithm.
  • the scene recognition model may be configured by setting a preset number of hidden layers and a number of nodes in each of the input layer, the hidden layer, and the output layer, and initializing a first parameter of the convolutional neural network, where The first parameter includes the offset value of each layer and the weight of the edge, and the deep learning model is initially obtained. Then, using the picture sample set, the deep learning model is trained in two stages of forward propagation and backward propagation; when the error calculated by the backward propagation training reaches the expected error value, the training ends and the scene recognition model is obtained. After the training ends, the server sends a scene recognition model to the mobile terminal in response to the request of the mobile terminal.
  • the mobile terminal acquires a scene recognition model sent by the server and is configured locally on the mobile terminal. Since the scene recognition model learns effective features from a large number of image samples containing different scene categories, the types of identifiable scenes can be increased, and the accuracy of scene recognition is improved.
  • network parameters such as the number of layers of the neural network model, the number of neurons, the convolution kernel, and/or the weight are not limited.
  • the first preview image is input into a pre-configured scene recognition model, and the probability that the first preview image belongs to the scene specified in the scene recognition model is analyzed by the scene recognition model, and the scene recognition model is output. The scene with the highest probability is taken as the shooting scene of the first preview image.
  • Step 130 When the shooting scene is a preset scene, adjust a first shooting parameter of the camera according to the second shooting parameter corresponding to the preset scene, to shoot the object to be photographed according to the second shooting parameter. .
  • the preset scene may be a category label configured with a preset of the shooting parameters, and the preset scene may be stored in a preset scene library.
  • the association relationship between the captured scene and the shooting parameters may be obtained by the server by analyzing historical shooting data of different shooting scenes of the target user group (which may be a professional photographer or the like), according to the association. The relationship constitutes a preset scene library.
  • the server may deliver the scenario library to the mobile terminal according to the request of the mobile terminal.
  • the historical shooting data includes a picture and a corresponding camera parameter. When the picture captured by the camera is saved, the camera parameter when the picture is acquired is saved, and the historical shooting data is formed by the picture and the corresponding camera parameter.
  • the scenario library can be constructed by the mobile terminal based on the historical shooting data of different scenarios, which is not limited in the embodiment of the present application.
  • the first shooting parameter and the second shooting parameter may be related parameters of the camera at the time of shooting, including but not limited to aperture, shutter, exposure compensation, focal length, sensitivity, and white balance.
  • the shooting scene may be matched with the preset scene according to the shooting scene; and the preset scene successfully matched with the shooting scene is determined, and the Determining a second shooting parameter corresponding to the preset scene, and replacing the first shooting parameter according to the second shooting parameter.
  • the preset scene library may be queried according to the shooting scene to determine whether the preset scene is the same as the shooting scene. If yes, the shooting scene is determined to be a preset scene. Otherwise, it is determined that the shooting scene does not belong to the preset scene. Set the scene library.
  • the shooting scene is a preset scene
  • the second shooting parameter corresponding to the preset scene is obtained, and the difference parameter between the second shooting parameter and the first shooting parameter may be determined, and the corresponding parameter is used to replace the corresponding one of the first shooting parameters.
  • the parameters in this way, can be photographed according to the second shooting parameter to obtain a picture that conforms to the professional shooting rules, thereby improving the shooting effect.
  • the exposure compensation and the value of the shutter in the second shooting parameter are used to replace the corresponding exposure in the first shooting parameter. Compensation and shutter.
  • the technical solution of the present embodiment is to obtain a first preview image of the object to be photographed; to identify the shooting scene of the first preview image by using a preset scene recognition model; and when the shooting scene belongs to the preset scene, corresponding to the preset scene
  • the second shooting parameter adjusts the first shooting parameter of the camera, which can effectively improve the shooting effect of the mobile terminal.
  • the scene recognition based on the scene recognition model can improve the accuracy of the scene recognition and expand the type of the scene recognition, thereby automatically adjusting the shooting parameters of the camera according to the shooting scene, thereby improving the shooting effect.
  • FIG. 2 is a flowchart of another method for adjusting shooting parameters provided by an embodiment of the present application. The method includes:
  • Step 210 Acquire a first preview image of the object to be photographed.
  • the first preview image is a picture of the object to be photographed captured by the camera according to the first shooting parameter.
  • the method for obtaining the first preview image is similar to the description of the above example, and details are not described herein again.
  • Step 220 Identify a shooting scene of the first preview image by using a preset scene recognition model.
  • the scene recognition model is a deep learning model trained according to a picture sample set.
  • the scene recognition model is preset in the mobile terminal, and may be sending an acquisition request to the server, and acquiring the scene recognition model by the server.
  • the scene recognition model is a deep learning model trained by the server according to the picture sample set, and the picture sample set includes a picture sample for performing location tagging on the target object.
  • the scene recognition operation is similar to the description of the above example, and will not be described here.
  • Step 230 Match the shooting scene with a preset scene in a preset scene library.
  • Step 240 Determine a preset scene that is successfully matched with the shooting scene, acquire a second shooting parameter corresponding to the preset scene, and replace the first shooting parameter according to the second shooting parameter.
  • the steps of parameter adjustment are similar to those in the above examples, and are not described herein again.
  • the first shooting parameter is replaced by the second shooting parameter, and the shooting object is photographed according to the second shooting parameter, so that the shooting effect can be improved.
  • Step 250 Obtain a parameter correction operation.
  • the parameter correction operation is a correction operation of the shooting parameter input by the user, including but not limited to adjusting the aperture, the shutter, the exposure compensation, the focal length, the sensitivity, and the range of the white balance.
  • the user may take a different shooting parameter than the current shooting scene for the artistic effect. At this time, the user will artificially modify the shooting parameters.
  • FIG. 3 provides a flowchart for modifying a shooting parameter by a user.
  • the shooting parameter modification interface 320 may be popped up in the form of a dialog box.
  • the shooting parameter modification interface 320 displays shooting parameters such as aperture, shutter, exposure compensation, focal length, sensitivity, white balance, etc., and obtains modification information such as a correction value input by the user or a position of the slider.
  • the system detects a modification operation of the shooting parameter input by the user, including detecting a click operation of the control corresponding to the one or more shooting parameters, and a modified value input in the control. It may also be a sliding operation of detecting a slider control corresponding to one or more shooting parameters.
  • the system acquires a parameter correction operation input by the user, including which parameter is modified, and what the parameter value is.
  • Step 260 Adjust the second shooting parameter according to the parameter correction operation to obtain a third shooting parameter, and perform a shooting operation by using the third shooting parameter.
  • the parameter correction operation includes the modified parameters as well as the parameter data. Based on this, the parameter corresponding to the parameter correction operation in the second shooting parameter can be modified correspondingly. As shown in FIG. 3, if the parameter correction operation is an operation corresponding to the shutter, and the correction data is to change the focal length from x 1 mm to x 2 mm, the range of the shutter value in the second shooting parameter is adjusted to obtain the first Three shooting parameters. The shooting parameter is modified according to the modification information, and then the operation information about the preview button is acquired, and the preview interface is displayed in response to the operation information, so that the user can view the shooting effect of the captured image corresponding to the modified shooting parameter.
  • Step 270 Record the number of times of shooting using the third shooting parameter in the set time interval.
  • the photographing operation is performed using the third photographing parameter, and the number of times the photographing is performed using the third photographing parameter is incremented by one.
  • Obtain the number of times the third shooting parameter is used for shooting within the set time interval since the first shooting with the third shooting parameter.
  • the set time interval may be a system default time, including but not limited to one week or one month. That is, a survey period is set in advance. If the user often takes a third photographing parameter to take a photograph in a certain shooting scene, it proves that the user is not accustomed to adopting a preset corresponding to the shooting scene in the shooting scene. Shooting parameters, but accustomed to shooting with the third shooting parameters.
  • Step 280 Determine whether the number of times exceeds the set number threshold. If yes, execute step 290; otherwise, perform step 2100.
  • the set number threshold is the default value set by the system or the value set by the user according to his own needs.
  • Step 290 Associate the third shooting parameter with the preset scene in a preset scene library.
  • the association relationship between the preset scene and the shooting parameter is stored in the preset scene library.
  • the preset scene may be a shooting scene corresponding to the shooting screen of the parameter correction operation.
  • the third shooting parameter is stored in the preset scene database in association with the preset scene, and the preset scene is used as the search keyword, the scene library is queried, and the second shooting parameter corresponding to the preset scene is determined. Then, the second shooting parameter is replaced by the third shooting parameter, so that the scene library is more in line with the user's shooting habits, and a personalized scene library is provided.
  • storing the third shooting parameter in the preset scene library in association with the preset scene may also be establishing an association relationship between the third shooting parameter and the preset scene, and adding a preset scene and a scene in the scene library. Recording of the third shooting parameter.
  • the same preset scene corresponds to at least two sets of shooting parameters. For example, a certain preset scene is associated with both the second shooting parameter and the third shooting parameter.
  • Step 2100 Display a preview image in the display area.
  • the first preview image is recognized by the scene recognition model.
  • the first shooting parameter is adjusted according to the second shooting parameter corresponding to the shooting scene, and the second preview image corresponding to the second shooting parameter is displayed in the display area.
  • the scene recognition model is recognized by the scene recognition model.
  • a shooting scene of the first preview image is displayed, and the shooting scene is a scene corresponding to the third shooting parameter.
  • the first shooting parameter is adjusted according to the third shooting parameter corresponding to the shooting scene, and a new preview image corresponding to the third shooting parameter is displayed in the display area.
  • the scene recognition model is recognized by the scene recognition model.
  • the shooting scene of the first preview image Obtaining a second shooting parameter and a third shooting parameter corresponding to the shooting scene, and adjusting shooting parameters of the camera according to the second shooting parameter and the third shooting parameter respectively.
  • the camera acquires two frame preview images according to the second shooting parameter and the third shooting parameter respectively, and displays the preview image in the display area of the display screen for the user to select a satisfactory preview image for shooting.
  • a preview image corresponding to the second shooting parameter is displayed in the first area of the display area, and a preview image corresponding to the third shooting parameter is displayed in the second area of the display screen, so as to simultaneously display a preview corresponding to different shooting parameters.
  • the image is convenient for the user to compare the difference between the two images and select a preview image that satisfies the shooting requirements for shooting.
  • the technical solution of the embodiment after adjusting the first shooting parameter of the camera according to the second shooting parameter corresponding to the preset scene, performing an acquiring parameter correcting operation, and adjusting the second shooting parameter according to the parameter correcting operation, Obtaining a third shooting parameter, recording the number of times of shooting using the third shooting parameter in the set time interval, and if the number of times exceeds the set number of times threshold, the third shooting parameter and the preset
  • the scene association is stored in the preset scene library, and the scene library is updated according to the user's shooting habits, so that the shooting parameters corresponding to the shooting scene in the scene library are more in line with the user's personal shooting habits.
  • FIG. 4 is a flowchart of still another method for adjusting shooting parameters according to an embodiment of the present application. This method is suitable for the user to set the camera's shooting parameters according to their own shooting habits or to take some artistic effect. As shown in FIG. 4, the method includes:
  • Step 410 Acquire a first preview image of the object to be photographed.
  • the first preview image is a screen of the photographic subject captured by the camera according to the first shooting parameter, and the first shooting parameter may be set by the user according to his own shooting habits. It can be understood that the first shooting parameter may also be a parameter of the camera set by the user for capturing a photo with certain artistic effect. For example, in order to capture a photo with a slow shutter effect, the user manually sets parameters such as shutter speed and aperture, and it is not appropriate to automatically adjust the shooting parameters according to the shooting scene.
  • Step 420 Identify a shooting scene of the first preview image by using a preset scene recognition model.
  • Step 430 Match the shooting scene with a preset scene in a preset scene library.
  • Step 440 Determine a preset scene that is successfully matched with the shooting scene, acquire a second shooting parameter corresponding to the preset scene, and replace the first shooting parameter according to the second shooting parameter.
  • Step 450 Acquire a second preview image of the object to be captured captured by the camera according to the second shooting parameter.
  • the camera is adjusted according to the second shooting parameter, and then the optical image of the object is projected onto the photosensitive chip by the adjusted camera, and the optical image signal is converted into an electrical signal by the photosensitive chip, and after a series of settings.
  • a second preview image is obtained, and the second preview image is sent to the ISP for processing through the MIPI interface.
  • Step 460 Control the first preview image to be displayed in a preset first area, and display the second preview image in a preset second area.
  • the area of the first area is smaller than the area of the display area of the display screen, and the area of the second area is also smaller than the area of the display area of the display screen, which may be spliced by the first area and the second area to form a display screen. Display area.
  • a new layer can be created as the first layer.
  • the first preview image is acquired by the ISP, and a backup image of the first preview image is saved, and then the image is reduced by the image of the first preview image to obtain a third preview image.
  • the size of the third preview image is the same as the size of the first area.
  • a third preview image is drawn on the first area of the first layer by a graphics processing unit (GPU), so that the first area is filled with a frame of the third preview image.
  • the first preview image may be subjected to image reduction processing using a nearest neighbor interpolation method, a bilinear interpolation method, or a cubic convolution method.
  • the reduced preview first preview image is drawn on the first region of the first layer.
  • the second layer Acquiring a second preview image through the ISP, and saving a backup image of the second preview image, and then performing image reduction processing on the second preview image to obtain a fourth preview image.
  • the size of the fourth preview image is the same as the size of the second area.
  • the fourth preview image is drawn by the image processor GPU in the second region of the second layer, so that the second region is filled with the fourth preview image.
  • the first layer and the second layer are synthesized by the image processor GPU to obtain a picture to be displayed.
  • the to-be-displayed screen is displayed on the display screen of the mobile terminal according to the set refresh rate.
  • the third layer corresponding to the first area of the second layer is a transparent layer.
  • FIG. 5 is a schematic diagram of an image display interface provided by an embodiment of the present application.
  • the first layer 510 includes a first area 511, and the area of the first area 511 is smaller than the area of the first layer 510, and the reduced image of the first preview image is drawn in the first area 511, ie, Three preview images 512.
  • the second layer 520 includes a second area 521, and the area of the second area 521 is smaller than the area of the second layer 520, and the reduced image of the second preview image, that is, the fourth preview image 522 is drawn in the second area 521.
  • the third layer 520 corresponds to the first area 511 of the first layer 510.
  • Area 523 is a transparent layer. Therefore, after the first layer 510 and the second layer 520 are synthesized, the first region 511 is displayed with the reduced first preview image, and the second region 521 is displayed with the reduced second preview image.
  • Step 470 Acquire a user operation for the preview image.
  • the preview image may be a third preview image or a fourth preview image.
  • the user operation includes a user's touch operation for the mobile terminal display screen, a user's pressing operation for setting the physical button (eg, by pressing the sound key +, selecting the third preview image of the first area, and pressing the sound key - selecting A fourth preview image of the second area), a setting gesture, a voice indication, and the like.
  • the touch operation includes a click operation on the display screen, including but not limited to selecting a third preview image of the first area by clicking an arbitrary position of the display screen, and selecting a fourth area of the second area by double-clicking any position of the display screen. Preview the image.
  • the touch operation may also be a touch gesture acting on the display screen, and the touch gesture includes, but is not limited to, drawing a Z on the display screen to select a third preview image of the first area, and drawing a V on the display screen to indicate that the second area is selected.
  • the setting gesture includes a spatial gesture including, but not limited to, an indoor preview image in which the first region is selected by the mobile phone in the space drawing C, and a fourth preview image in the second region is selected by the mobile phone in the space drawing O.
  • the touch operation may also be a click operation acting in the first area, indicating that the third preview image is selected; and a click operation acting on the second area, indicating that the fourth preview image is selected.
  • the touch operation may also be a sliding operation (including a sliding operation that slides from the inside of the first area to the outside) in the first area, indicating that the third preview image is discarded.
  • Step 480 Acquire a first preview image or a second preview image according to the user operation, and display the first preview image or the second preview image in a display area of the display screen.
  • the first preview image and the second preview image are shot images that are not subjected to image reduction processing, and may be acquired by an ISP, and may be a backup image of the first preview image or a second preview image. Backup image.
  • the association relationship between the user operation, the preview image, and the processing operation is established in advance, and the association relationship is stored in the operation whitelist.
  • the user operation, the preview image, and the processing operation are stored in the white list in the following association record: draw Z on the display screen - the third preview image - select the first preview image; draw O on the display screen - a fourth preview image - selecting the second preview image; clicking the display - the third preview image - selecting the first preview image; double clicking on the display - the fourth preview image - selecting the second preview image; pressing Volume + key - third preview image - select the first preview image; press volume - key - fourth preview image - select the second preview image; in the first area, enter the third preview image to the right - a third preview image - discarding the first preview image; sliding the fourth preview image to the right in the second region - the fourth preview image - discarding the second preview image and the like.
  • the above description of the relationship between the user operation, the preview image, and the processing operation is
  • the object operated by the user and the processing operation are determined according to the operation gesture and the operation position of the user operation. For example, if the user operation is a click operation acting on the first area, the object of the operation is a third preview image, and the processing operation is to select the first preview image. If the user operation is to draw O on the display screen, the operation object is the fourth preview image, and the processing operation is to select the second preview image and the like.
  • a captured image is acquired according to the processing operation, and the captured image is displayed on the display area. For example, in response to a user operation of the user drawing O on the display screen, a backup image of the second preview image is acquired by the ISP, and the second preview image is displayed in the display area.
  • Step 490 Perform a photographing operation for the first preview image or the second preview image when the photographing instruction is acquired.
  • the shooting instruction may be an operation instruction triggered by the user pressing the shooting button, or may be an operation instruction triggered by the user pressing the setting object button, or may be an operation instruction triggered by the user's setting gesture.
  • the mobile terminal saves the preview image displayed on the current display screen, realizes the shooting operation on the shooting object, obtains the captured picture, and can store the captured picture in the picture library or the album.
  • the preview image currently displayed may be the first preview image or the second preview image.
  • the first preview image corresponding to the first shooting parameter and the second preview image corresponding to the second shooting parameter are respectively acquired, and the first preview image is displayed in the first region, in the second region.
  • Displaying the second preview image, the first preview image and the second preview image are simultaneously displayed in the display area of the display screen, so that the user selects a preview image that conforms to his own shooting habits, and the shooting parameters that are automatically adjusted according to the scene are not consistent with the user's shooting. Habits occur and improve human-computer interaction performance.
  • FIG. 6 is a structural block diagram of an apparatus for adjusting shooting parameters according to an embodiment of the present application.
  • the device may be implemented by software and/or hardware, and may be integrated into the mobile terminal and configured to perform the adjustment method of the shooting parameters provided by the embodiment of the present application. As shown in Figure 6, the device includes:
  • the image obtaining module 610 is configured to acquire a first preview image of the object to be photographed, wherein the first preview image is a screen of the object to be photographed captured by the camera according to the first photographing parameter;
  • the scene recognition module 620 is configured to identify a shooting scene of the first preview image by using a preset scene recognition model, wherein the scene recognition model is a deep learning model trained according to a picture sample set;
  • the parameter adjustment module 630 is configured to adjust, according to the second shooting parameter corresponding to the preset scene, the first shooting parameter of the camera according to the second shooting parameter, in the case that the shooting scene is a preset scene. Tell the subject to shoot.
  • the technical solution of the embodiment provides an adjustment device for shooting parameters, and performs scene recognition based on the scene recognition model, which can improve the accuracy of scene recognition and expand the type of scene recognition, thereby automatically adjusting the shooting parameters of the camera according to the shooting scene. Improve the shooting effect.
  • the apparatus further comprises:
  • a model obtaining module configured to acquire a scene recognition model sent by the server, wherein the scene recognition model is a deep learning model trained by the server according to the image sample set, and the image sample set includes a target object for identifying a shooting scene A sample image of the location marker.
  • the parameter adjustment module 630 is configured to:
  • Determining a preset scene that is successfully matched with the shooting scene acquiring a second shooting parameter corresponding to the preset scene, and replacing the first shooting parameter according to the second shooting parameter.
  • the apparatus further comprises:
  • the scene library update module is configured to: after adjusting the first shooting parameter of the camera according to the second shooting parameter corresponding to the preset scene, acquiring a parameter correcting operation; adjusting the second shooting parameter according to the parameter correcting operation, to obtain a Three shooting parameters are taken, and the shooting operation is performed using the third shooting parameters.
  • the scene library update module is further configured to: record a number of times of shooting using the third shooting parameter within a set time interval; and if the number of times exceeds a set number of times threshold, The third shooting parameter is stored in the preset scene library in association with the preset scene.
  • the apparatus further comprises:
  • a first image display module configured to acquire a second preview image after the first shooting parameter is replaced according to the second shooting parameter, wherein the second preview image is captured by the camera according to the second shooting parameter a screen of the object to be photographed; controlling the first preview image to be displayed in a preset first area, and displaying the second preview image in a preset second area, wherein the first area
  • the display area of the display screen is formed with the second area.
  • the first image display module is configured to:
  • the first layer and the second layer are synthesized to obtain a picture to be displayed, and the picture to be displayed is displayed.
  • the apparatus further comprises:
  • a second image display module configured to acquire a user operation for the third preview image or the fourth preview image after displaying the to-be-displayed image; acquiring the first preview image or the second preview image according to the user operation, And displaying the first preview image or the second preview image in a display area of the display screen;
  • the image capturing module is configured to perform a photographing operation for the first preview image or the second preview image in a case where a photographing instruction is acquired.
  • the second image display module is further configured to: pre-establish an association relationship between the user operation, the third preview image and the fourth preview image, and a processing operation, and associate the association The relationship is stored in an operation whitelist; wherein the processing operation is a processing operation on the first preview image or the second preview image.
  • Embodiments of the present application also provide a storage medium including computer executable instructions for performing an adjustment method of a shooting parameter of any of the above embodiments when executed by a computer processor.
  • Storage media any type of storage device or storage device.
  • the term "storage medium” is intended to include: a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device; a computer system memory or a random access memory such as a dynamic random access memory; (Dynamic Random Access Memory, DRAM), (Double Data Rate Random Access Memory, DDR RAM), Static Random Access Memory (SRAM), Extended Data Output Random Access Memory (Extended Data Output Random Access Memory) , EDO RAM), Rambus Random Access Memory (Rambus RAM), etc.; non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory components Wait.
  • a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device
  • a computer system memory or a random access memory such as a dynamic random access memory
  • DRAM Dynamic Random Access Memory
  • DDR RAM Dyna
  • the storage medium may also include other types of memory or a combination thereof. Additionally, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet. The second computer system can provide program instructions to the first computer for execution.
  • the term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network).
  • a storage medium may store program instructions (eg, a computer program) executable by one or more processors.
  • the storage medium including the computer executable instructions provided by the embodiment of the present application is not limited to the adjustment operation of the shooting parameters as described above, and may also perform the shooting parameters provided by any embodiment of the present application. Related operations in the adjustment method.
  • FIG. 7 is a structural block diagram of a mobile terminal according to an embodiment of the present application.
  • the mobile terminal can include a memory 710 and a processor 720.
  • the memory 710 is configured to store a computer program, a scene recognition model, a preset scene library, and the like; the central processing unit 720 reads and executes a computer program stored in the memory 710.
  • the processor 720 implements the method of any of the above embodiments when executing the computer program.
  • FIG. 8 is a structural block diagram of a smart phone according to an embodiment of the present application.
  • the smart phone may include: a memory 80l, a central processing unit (CPU) 802 (also referred to as a processor, hereinafter referred to as a CPU), a peripheral interface 803, and a radio frequency (RF) circuit.
  • CPU central processing unit
  • RF radio frequency
  • CPU graphics processing unit
  • power management chip 808, input / output (I / O) subsystem 809, other inputs / Control device 810 and external port 804, these components communicate via one or more communication buses or signal lines 807.
  • the illustrated smartphone 800 is merely one example of a mobile terminal, and the smartphone 800 can have more or fewer components than those shown in the figures, two or more components can be combined, or can have different Component configuration.
  • Each of the components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the smart phone integrated with the adjustment parameter of the shooting parameter provided in the embodiment will be described in detail below.
  • the memory 801 can be accessed by the CPU 802, the peripheral interface 803, etc., and the memory 801 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • the computer program is stored in the memory 811, and the scene recognition model, the preset scene library, the operation white list, the backup image of the first preview image, the backup image of the second preview image, and the like may also be stored.
  • Peripheral interface 803, which can connect the input and output peripherals of the device to CPU 802 and memory 801.
  • the I/O subsystem 809 can connect input and output peripherals on the device, such as display screen 812 and other input/control devices 810, to peripheral interface 803.
  • the I/O subsystem 809 can include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810.
  • one or more input controllers 8092 receive electrical signals from other input/control devices 810 or transmit electrical signals to other input/control devices 810, and other input/control devices 810 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 8092 can be connected to any of the following: a keyboard, an infrared port, a Universal Serial Bus (USB) interface, and a pointing device such as a mouse.
  • USB Universal Serial Bus
  • a display screen 812 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, video, and the like.
  • the camera 813 acquires an optical image of the object to be photographed, and converts the optical image into an electrical signal, which is input to the image processor 814 through the peripheral interface 803. In addition, the camera 813 acquires shooting parameters from the CPU 802 through the peripheral interface 803, and updates its own shooting parameters accordingly.
  • the image processor 814 is configured to acquire an electrical signal of the captured image, draw a captured image according to the electrical signal, and the drawn captured image is sent to the display 812 for display by the I/O subsystem 809.
  • Display controller 8081 in I/O subsystem 809 receives an electrical signal from display 812 or an electrical signal to display 812.
  • Display 812 detects contact on the display screen and display controller 8091 converts the detected contact into interaction with a user interface object displayed on display screen 812, i.e., enables human-computer interaction, a user interface displayed on display screen 812.
  • the object can be an icon that runs the game, an icon that is networked to the corresponding network, and the like.
  • the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the display screen.
  • the RF circuit 805 is configured to establish communication between the mobile phone and the wireless network (ie, the network side) to implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like.
  • RF circuit 805 receives and transmits an RF signal, also referred to as an electromagnetic signal, and RF circuit 805 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network And other devices to communicate.
  • RF circuitry 805 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec CODER-DECoder (CODEC) chipset, Subscriber Identity Module (SIM), etc.
  • CDDEC codec CODER-DECoder
  • the audio circuit 806 is arranged to receive audio data from the peripheral interface 803, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 811.
  • the speaker 811 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 805 to sound and play the sound to the user.
  • the power management chip 808 is configured to provide power and power management for the hardware connected to the CPU 802, the I/O subsystem, and the peripheral interface.
  • the mobile terminal provided by the embodiment of the present invention can perform shooting scene recognition based on the scene recognition model, and automatically adjust the shooting parameters of the camera according to the shooting scene, thereby improving the accuracy of the scene recognition, expanding the type of the scene recognition, and improving the shooting effect.
  • the adjusting device, the storage medium and the mobile terminal provided in the above embodiments can perform the adjustment method of the shooting parameters provided by any embodiment of the present application, and have the corresponding functional modules and effects for executing the method.
  • the method for adjusting the shooting parameters provided by any embodiment of the present application can perform the adjustment method of the shooting parameters provided by any embodiment of the present application, and have the corresponding functional modules and effects for executing the method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

Disclosed is a method for adjusting a photographing parameter, comprising: acquiring a first preview image of an object to be photographed; using a preset scene recognition model to recognize a scene in which the first preview image is captured; and if the scene is a preset scene, adjusting, according to a second photographing parameter corresponding to the preset scene, a first photographing parameter of a camera so as to photograph the object according to the second photographing parameter. Also disclosed are a device for adjusting a photographing parameter, a storage medium and a mobile terminal.

Description

拍摄参数的调整方法、装置、存储介质及移动终端Method, device, storage medium and mobile terminal for adjusting shooting parameters
本申请要求在2017年12月06日提交中国专利局、申请号为201711275920.4的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. PCT Application No. No. No. No. No. No.
技术领域Technical field
本申请实施例涉及移动终端技术,例如涉及一种拍摄参数的调整方法、装置、存储介质及移动终端。The embodiment of the present invention relates to a mobile terminal technology, for example, to a method, an apparatus, a storage medium, and a mobile terminal for adjusting a shooting parameter.
背景技术Background technique
随着移动终端技术的发展,手机等移动终端中的应用也越来越多,移动终端也变得越来越普及。相关移动终端的功能早已不局限于打电话或者看视频的功能,拍摄已成为大多数移动终端的常用功能之一。With the development of mobile terminal technology, there are more and more applications in mobile terminals such as mobile phones, and mobile terminals are becoming more and more popular. The functions of related mobile terminals have long been limited to the functions of making calls or watching videos, and shooting has become one of the common functions of most mobile terminals.
为了能够拍摄出高质量的图像,相关技术中采用下述两种方法:一种方法是用户可以根据自身需求手动调节拍摄参数,但是,该种调节方法要求用户具备较高的专业技能,能够熟练掌握多种拍摄参数的意义及相互间配合的效果,且频繁调节操作较为繁琐、浪费时间,难以捕捉到瞬间的场景;另一种方法是,用户终端的生产商预先在用户终端内存储了多种拍摄模式,每一种拍摄模式都与一系列的拍摄参数设置相对应,用户可以选择相应的拍摄模式,用户终端的相机模块根据用户选择的拍摄模式调用相应的参数设置,自动实现拍摄参数的调节,但是,该种调节方式只能调用几种有限的拍摄模式,较为死板,从而导致不能拍出令用户满意的图像效果。In order to be able to take high-quality images, the following two methods are used in the related art: one method is that the user can manually adjust the shooting parameters according to his own needs, but the adjustment method requires the user to have high professional skills and be skilled. Master the meaning of various shooting parameters and the effect of mutual cooperation, and frequent adjustment operations are cumbersome and time-consuming, and it is difficult to capture instantaneous scenes; another method is that the manufacturer of the user terminal stores in advance in the user terminal. The shooting mode, each shooting mode corresponds to a series of shooting parameter settings, the user can select the corresponding shooting mode, the camera module of the user terminal calls the corresponding parameter setting according to the shooting mode selected by the user, and automatically realizes the shooting parameters. Adjustment, however, this type of adjustment can only call a few limited shooting modes, which is relatively rigid, resulting in an image that is not satisfactory to the user.
发明内容Summary of the invention
本申请实施例提供一种拍摄参数的调整方法、装置、存储介质及移动终端,可以提供优化的拍摄参数调整方案,提升移动终端的拍摄效果。The embodiment of the present application provides a method, a device, a storage medium, and a mobile terminal for adjusting a shooting parameter, which can provide an optimized shooting parameter adjustment scheme and improve the shooting effect of the mobile terminal.
在一实施例中,本申请实施例提供了一种拍摄参数的调整方法,包括:In an embodiment, the embodiment of the present application provides a method for adjusting a shooting parameter, including:
获取待拍摄对象的第一预览图像,其中,所述第一预览图像是由摄像头根据第一拍摄参数捕获的所述待拍摄对象的画面;Obtaining a first preview image of the object to be photographed, wherein the first preview image is a screen of the object to be photographed captured by the camera according to the first photographing parameter;
通过预先设置的场景识别模型识别所述第一预览图像的拍摄场景,其中,所述场景识别模型为根据图片样本集训练的深度学习模型;Identifying a shooting scene of the first preview image by a preset scene recognition model, wherein the scene recognition model is a deep learning model trained according to a picture sample set;
在所述拍摄场景为预设场景的情况下,根据所述预设场景对应的第二拍摄参数调整所述摄像头的第一拍摄参数,以根据所述第二拍摄参数对所述待拍摄对象进行拍摄。Adjusting the first shooting parameter of the camera according to the second shooting parameter corresponding to the preset scene, in the case that the shooting scene is a preset scene, to perform the object to be photographed according to the second shooting parameter. Shooting.
在一实施例中,本申请实施例还提供了一种参数调整装置,该装置包括:In an embodiment, the embodiment of the present application further provides a parameter adjustment device, where the device includes:
图像获取模块,设置为获取待拍摄对象的第一预览图像,其中,所述第一预览图像是由摄像头根据第一拍摄参数捕获的所述待拍摄对象的画面;An image acquisition module, configured to acquire a first preview image of the object to be photographed, wherein the first preview image is a screen of the object to be photographed captured by the camera according to the first photographing parameter;
场景识别模块,设置为通过预先设置的场景识别模型识别所述第一预览图像的拍摄场景,其中,所述场景识别模型为根据图片样本集训练的深度学习模型;a scene recognition module, configured to identify a shooting scene of the first preview image by a preset scene recognition model, wherein the scene recognition model is a deep learning model trained according to a picture sample set;
参数调整模块,设置为在所述拍摄场景为预设场景的情况下,根据所述预设场景对应的第二拍摄参数调整所述摄像头的第一拍摄参数,以根据所述第二拍摄参数对所述待拍摄对象进行拍摄。a parameter adjustment module, configured to adjust a first shooting parameter of the camera according to a second shooting parameter corresponding to the preset scene, in a case that the shooting scene is a preset scene, according to the second shooting parameter pair The subject to be photographed is photographed.
在一实施例中,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述的拍摄参数的调整方法。In an embodiment, the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the method for adjusting the shooting parameters as described above is implemented.
在一实施例中,本申请实施例还提供另一种终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如上述的拍摄参数的调整方法。In an embodiment, the embodiment of the present application further provides another terminal, including a memory, a processor, and a computer program stored on the memory and executable by the processor, where the processor executes the computer program as described above. The method of adjusting the shooting parameters.
附图说明DRAWINGS
图1是本申请实施例提供的一种拍摄参数的调整方法的流程图;1 is a flowchart of a method for adjusting shooting parameters provided by an embodiment of the present application;
图2是本申请实施例提供的另一种拍摄参数的调整方法的流程图;2 is a flowchart of another method for adjusting shooting parameters provided by an embodiment of the present application;
图3是本申请实施例提供的一种用户修改拍摄参数的流程图;FIG. 3 is a flowchart of a user modifying a shooting parameter according to an embodiment of the present application; FIG.
图4是本申请实施例提供的又一种拍摄参数的调整方法的流程图;4 is a flowchart of still another method for adjusting shooting parameters provided by an embodiment of the present application;
图5是本申请实施例提供的一种图像显示界面示意图;FIG. 5 is a schematic diagram of an image display interface provided by an embodiment of the present application; FIG.
图6是本申请实施例提供的一种拍摄参数的调整装置的结构框图;6 is a structural block diagram of an apparatus for adjusting shooting parameters according to an embodiment of the present application;
图7是本申请实施例提供的一种移动终端的结构框图;FIG. 7 is a structural block diagram of a mobile terminal according to an embodiment of the present application;
图8是本申请实施例提供的一种智能手机的结构框图。FIG. 8 is a structural block diagram of a smart phone according to an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请进行说明。此处所描述的实施例仅仅用于解释本申请,而非对本申请的限定。为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The present application will be described below in conjunction with the accompanying drawings and embodiments. The embodiments described herein are merely illustrative of the present application and are not intended to be limiting. For the convenience of description, only some but not all of the structures related to the present application are shown in the drawings.
相关技术中提供了一些基于移动终端自带的光传感器、气压传感器等来判断移动终端所处的场景的方案。另外,还有一些利用加速稳健特征(Speeded-Up Robust Features,SURF)算法或尺度不变特征转换)(Scale-invariant feature transform,SIFT算法来判断场景信息。然而,上述方案均存在场景识别的准确率不高,且可识别的场景类别有限的问题。为解决上述问题,本申请提供一种拍摄参数的调整方案,可以提高场景识别的准确率,扩充可识别的场景类型,从而,有效地提升拍摄效果。In the related art, some schemes for determining a scene in which a mobile terminal is located based on a light sensor, a barometric pressure sensor, or the like provided by the mobile terminal are provided. In addition, there are some Scale-Up Variant Features (SURF) algorithms or Scale-invariant feature transform (SIFT) to determine scene information. However, the above schemes all have accurate scene recognition. The problem is that the rate is not high, and the identifiable scene category is limited. To solve the above problem, the present application provides an adjustment scheme for shooting parameters, which can improve the accuracy of scene recognition, expand the identifiable scene type, and thereby effectively improve Shooting effect.
图1为本申请实施例提供的一种拍摄参数的调整方法的流程图。该方法可以由拍摄参数的调整装置来执行,其中,该装置可由软件和/或硬件实现,一般可集成在移动终端中,例如具有摄像头的移动终端。如图1所示,该方法包括:FIG. 1 is a flowchart of a method for adjusting shooting parameters according to an embodiment of the present application. The method can be performed by an adjustment device for the shooting parameters, wherein the device can be implemented by software and/or hardware, and can generally be integrated in a mobile terminal, such as a mobile terminal having a camera. As shown in Figure 1, the method includes:
步骤110、获取待拍摄对象的第一预览图像。Step 110: Acquire a first preview image of the object to be photographed.
在一实施例中,第一预览图像是由摄像头根据第一拍摄参数捕获的待拍摄对象的画面。 第一预览图像可以包括用户在按下拍照按钮前,移动终端的拍摄界面中显示的摄像头所捕获的画面。本实施例中的第一预览图像包括但不限于人物类图像、自然风景类图像及人文建筑类图像。其中,第一拍摄参数可以是相机应用或其它具有拍摄功能的应用软件在拍摄时的默认参数。或者,第一拍摄参数还可以是用户选择的拍摄模式对应的参数等等。In an embodiment, the first preview image is a picture of the object to be captured captured by the camera according to the first shooting parameter. The first preview image may include a screen captured by a camera displayed in a shooting interface of the mobile terminal before the user presses the photo button. The first preview image in this embodiment includes, but is not limited to, a character class image, a natural landscape class image, and a human architecture class image. The first shooting parameter may be a default parameter of the camera application or other application software having a shooting function when shooting. Alternatively, the first shooting parameter may also be a parameter corresponding to a shooting mode selected by the user, and the like.
在本申请实施例中,移动终端对第一预览图像的获取操作可以由移动终端的系统执行,或者由移动终端中含有拍摄功能的任意应用软件执行,获取第一预览图像的操作可以在用户的操作指示下由系统或应用软件执行。例如,用户可直接打开移动终端系统中的相机功能对人物进行拍照,也可以使用应用软件的拍照选项对建筑物进行拍照。In the embodiment of the present application, the acquiring operation of the first preview image by the mobile terminal may be performed by a system of the mobile terminal, or performed by any application software that includes a shooting function in the mobile terminal, and the operation of acquiring the first preview image may be performed by the user. The operating instructions are executed by the system or application software. For example, the user can directly open the camera function in the mobile terminal system to take pictures of the person, or use the camera option of the application software to take pictures of the building.
在一实施例中,该第一预览图像的获取方式可以是通过摄像头中的镜头,将拍摄对象的光学图像投射到感光芯片上,由感光芯片将光学图像信号转换为电信号,经过一系列设定的变换或处理后,得到第一预览图像,通过专用的接口移动行业处理器接口(Mobile Industry Processor Interface,MIPI)将第一预览图像发送到图像处理器(Image Signal Processor,ISP)进行处理,最终转换成移动终端的显示屏上可以显示的格式,在移动终端的显示屏上进行显示。In an embodiment, the first preview image may be obtained by projecting an optical image of the object onto the photosensitive chip through a lens in the camera, and converting the optical image signal into an electrical signal by the photosensitive chip, and passing through a series of settings After the fixed transformation or processing, the first preview image is obtained, and the first preview image is sent to the Image Processor Processor (ISP) for processing through a dedicated interface Mobile Industry Processor Interface (MIPI). Finally, it is converted into a format that can be displayed on the display screen of the mobile terminal, and displayed on the display screen of the mobile terminal.
步骤120、通过预先设置的场景识别模型识别所述第一预览图像的拍摄场景。Step 120: Identify a shooting scene of the first preview image by using a preset scene recognition model.
在一实施例中,场景识别模型为根据图片样本集训练的深度学习模型。该场景识别模型可用于在输入第一预览图像之后,快速并准确的识别出第一预览图像的拍摄场景。其中,拍摄场景可以是根据设定的目标对象对拍摄对象进行分类得到的类别标签,包括但不限于美食场景、绿地场景、运动场景、建筑物场景、人物场景及夜景场景。In an embodiment, the scene recognition model is a deep learning model trained according to a set of picture samples. The scene recognition model can be used to quickly and accurately identify the shooting scene of the first preview image after inputting the first preview image. The shooting scene may be a category label obtained by classifying the shooting object according to the set target object, including but not limited to a gourmet scene, a green scene, a sports scene, a building scene, a character scene, and a night scene.
在一实施例中,该场景识别模型可以是基于图片样本集,采用设定机器学习算法对预设的深度学习模型进行训练得到的模型,其中,场景识别模型可以是卷积神经网络模型。在一实施例中,上述训练过程可以由服务器执行,还可以由移动终端执行,本申请实施例并不作限定。其中,图片样本集包括多种场景类型下对目标对象进行位置标记的图片样本,包括但不限于网络平台中的网络图片及移动终端图片库内的用户图片。可以通过网络爬虫从网络平台下载网络图片,并人工标记该网络图片中的特定的目标对象,得到第一图片样本,将该第一图片样本存储于图片样本集。在一实施例中,该目标对象可以用于区分拍摄场景。对目标对象的标记方式可以是人工标记出该目标对象的位置,包括但不限于标记代表该目标对象的像素。例如,若要标记盛菜的盘子,则可以标记出盘子的轮廓,并以圈定的该轮廓内的像素作为盘子对应的像素。又如,若要标记草地,则可以标记出草地的轮廓,并以圈定的该轮廓内的像素作为草地对应的像素。In an embodiment, the scene recognition model may be a model obtained by training a preset deep learning model by using a machine learning algorithm based on a set of image samples, wherein the scene recognition model may be a convolutional neural network model. In an embodiment, the foregoing training process may be performed by a server, and may also be performed by a mobile terminal, which is not limited in this embodiment. The image sample set includes image samples for location marking of the target object in multiple scene types, including but not limited to network pictures in the network platform and user pictures in the mobile terminal picture library. The network picture can be downloaded from the network platform by the web crawler, and the specific target object in the network picture is manually marked to obtain a first picture sample, and the first picture sample is stored in the picture sample set. In an embodiment, the target object can be used to distinguish shooting scenes. The marking of the target object may be by manually marking the location of the target object, including but not limited to marking the pixels representing the target object. For example, to mark the dish of the dish, the outline of the dish can be marked, and the pixels in the outline are used as the corresponding pixels of the dish. For another example, if the grass is to be marked, the outline of the grass can be marked, and the pixels in the outline are used as the pixels corresponding to the grass.
在一实施例中,还可以是获取移动终端的图片库(或相册)中的用户图片,并人工标记该网络图片中的特定的目标对象,得到第二图片样本,将该第二图片样本存储于图片样本集。In an embodiment, the user picture in the picture library (or album) of the mobile terminal may be obtained, and a specific target object in the network picture is manually marked to obtain a second picture sample, and the second picture sample is stored. In the image sample set.
在一实施例中,服务器从移动终端相册中获取用户图片之前要获取用户许可,因此,服务器在首次由移动终端相册获取用户图片时,移动终端以对话框的形式显示询问信息,以询问是否授予服务器访问相册的权限。获取用户的输入指示,若用户输入肯定信息,则赋予该 服务器访问相册的权限。In an embodiment, the server acquires the user permission before acquiring the user picture from the mobile terminal album. Therefore, when the server first acquires the user picture from the mobile terminal album, the mobile terminal displays the inquiry information in the form of a dialog box to ask whether to grant The server's access to the album. The user's input instruction is obtained, and if the user inputs a positive information, the server is given permission to access the album.
在一实施例中,设定机器学习算法包括但不限于前向传播算法和后向传播算法。In an embodiment, the set machine learning algorithm includes, but is not limited to, a forward propagation algorithm and a backward propagation algorithm.
在本申请实施例中,场景识别模型的构建方式可以是预先设置隐藏层的数目以及输入层、隐藏层和输出层中每层的节点数,以及初始化卷积神经网络的第一参数,其中,第一参数包括每层的偏置值及边的权重,初步得到深度学习模型。然后,利用图片样本集对该深度学习模型进行前向传播和后向传播两个阶段的训练;在后向传播训练计算得到的误差达到期望误差值时,训练结束,并得到场景识别模型。在训练结束后,服务器响应移动终端的请求,下发场景识别模型至移动终端。从而,该移动终端获取服务器发送的场景识别模型,并配置于移动终端本地。由于场景识别模型是由大量地包含不同场景类别的图片样本中学习出有效的特征,从而,可以增加可识别的场景的种类,提升了场景识别的准确度。In the embodiment of the present application, the scene recognition model may be configured by setting a preset number of hidden layers and a number of nodes in each of the input layer, the hidden layer, and the output layer, and initializing a first parameter of the convolutional neural network, where The first parameter includes the offset value of each layer and the weight of the edge, and the deep learning model is initially obtained. Then, using the picture sample set, the deep learning model is trained in two stages of forward propagation and backward propagation; when the error calculated by the backward propagation training reaches the expected error value, the training ends and the scene recognition model is obtained. After the training ends, the server sends a scene recognition model to the mobile terminal in response to the request of the mobile terminal. Therefore, the mobile terminal acquires a scene recognition model sent by the server and is configured locally on the mobile terminal. Since the scene recognition model learns effective features from a large number of image samples containing different scene categories, the types of identifiable scenes can be increased, and the accuracy of scene recognition is improved.
本申请实施例中对该神经网络模型的层数、神经元的数量、卷积核和/或权重等网络参数不作限定。In the embodiment of the present application, network parameters such as the number of layers of the neural network model, the number of neurons, the convolution kernel, and/or the weight are not limited.
在本申请实施例中,将第一预览图像输入预先配置的场景识别模型,通过该场景识别模型分析该第一预览图像属于该场景识别模型中规定的场景的概率,将该场景识别模型输出的概率最高的场景作为该第一预览图像的拍摄场景。In the embodiment of the present application, the first preview image is input into a pre-configured scene recognition model, and the probability that the first preview image belongs to the scene specified in the scene recognition model is analyzed by the scene recognition model, and the scene recognition model is output. The scene with the highest probability is taken as the shooting scene of the first preview image.
步骤130、在所述拍摄场景为预设场景时,根据所述预设场景对应的第二拍摄参数调整摄像头的第一拍摄参数,以根据所述第二拍摄参数对所述待拍摄对象进行拍摄。Step 130: When the shooting scene is a preset scene, adjust a first shooting parameter of the camera according to the second shooting parameter corresponding to the preset scene, to shoot the object to be photographed according to the second shooting parameter. .
在本申请实施例中,预设场景可以为预先配置了拍摄参数的设定的类别标签,该预设场景可以被存储于预设的场景库内。在一实施例中,可以由服务器通过分析目标用户群体(可以是专业摄影师等具有拍摄经验的人员)的不同拍摄场景的历史拍摄数据,得到的拍摄场景与拍摄参数的关联关系,根据该关联关系构成预设的场景库。在场景库构建完成后,服务器可以根据移动终端的请求,下发该场景库至移动终端。其中,历史拍摄数据包括图片及对应的摄像头参数,可以是在保存通过摄像头拍摄的图片时,一并保存获取该图片时的摄像头参数,由该图片与对应的摄像头参数构成历史拍摄数据。可以理解的是,还可以由移动终端基于不同场景的历史拍摄数据构建场景库,本申请实施例并不作限定。In the embodiment of the present application, the preset scene may be a category label configured with a preset of the shooting parameters, and the preset scene may be stored in a preset scene library. In an embodiment, the association relationship between the captured scene and the shooting parameters may be obtained by the server by analyzing historical shooting data of different shooting scenes of the target user group (which may be a professional photographer or the like), according to the association. The relationship constitutes a preset scene library. After the scenario library is built, the server may deliver the scenario library to the mobile terminal according to the request of the mobile terminal. The historical shooting data includes a picture and a corresponding camera parameter. When the picture captured by the camera is saved, the camera parameter when the picture is acquired is saved, and the historical shooting data is formed by the picture and the corresponding camera parameter. It can be understood that the scenario library can be constructed by the mobile terminal based on the historical shooting data of different scenarios, which is not limited in the embodiment of the present application.
在一实施例中,第一拍摄参数及第二拍摄参数可以为拍摄时摄像头的相关参数,包括但不限于光圈、快门、曝光补偿、焦距、感光度、白平衡。In an embodiment, the first shooting parameter and the second shooting parameter may be related parameters of the camera at the time of shooting, including but not limited to aperture, shutter, exposure compensation, focal length, sensitivity, and white balance.
在本申请实施例中,在根据场景识别模型识别出第一预览图像的拍摄场景后,可以根据该拍摄场景与预设场景进行匹配;确定与所述拍摄场景匹配成功的预设场景,获取所述预设场景对应的第二拍摄参数,并根据所述第二拍摄参数替换所述第一拍摄参数。示例性的,可以根据该拍摄场景查询预设的场景库,确定是否与该拍摄场景相同的预设场景,若存在,则确定该拍摄场景为预设场景,否则,确定该拍摄场景不属于预设场景库。若拍摄场景为预设场景,则获取该预设场景对应的第二拍摄参数,可以确定第二拍摄参数与第一拍摄参数之间的区别参数,采用该区别参数替换第一拍摄参数中对应的参数,从而,可以根据第二拍摄参数对待拍摄对象进行拍摄,得到符合专业拍摄规则的图片,提升拍摄效果。示例性的,在比 较第二拍摄参数与第一拍摄参数后,若确定曝光补偿及快门为区别参数,则采用第二拍摄参数中的曝光补偿及快门的数值替换第一拍摄参数中对应的曝光补偿和快门。In the embodiment of the present application, after the shooting scene of the first preview image is identified according to the scene recognition model, the shooting scene may be matched with the preset scene according to the shooting scene; and the preset scene successfully matched with the shooting scene is determined, and the Determining a second shooting parameter corresponding to the preset scene, and replacing the first shooting parameter according to the second shooting parameter. For example, the preset scene library may be queried according to the shooting scene to determine whether the preset scene is the same as the shooting scene. If yes, the shooting scene is determined to be a preset scene. Otherwise, it is determined that the shooting scene does not belong to the preset scene. Set the scene library. If the shooting scene is a preset scene, the second shooting parameter corresponding to the preset scene is obtained, and the difference parameter between the second shooting parameter and the first shooting parameter may be determined, and the corresponding parameter is used to replace the corresponding one of the first shooting parameters. The parameters, in this way, can be photographed according to the second shooting parameter to obtain a picture that conforms to the professional shooting rules, thereby improving the shooting effect. Exemplarily, after comparing the second shooting parameter with the first shooting parameter, if it is determined that the exposure compensation and the shutter are different parameters, the exposure compensation and the value of the shutter in the second shooting parameter are used to replace the corresponding exposure in the first shooting parameter. Compensation and shutter.
本实施例的技术方案,通过获取待拍摄对象的第一预览图像;通过预先设置的场景识别模型识别该第一预览图像的拍摄场景;在该拍摄场景属于预设场景时,根据预设场景对应的第二拍摄参数调整摄像头的第一拍摄参数,可以有效地提升移动终端的拍摄效果。采用上述技术方案,基于场景识别模型进行拍摄场景识别,可以提升场景识别的准确度、扩充场景识别的种类,从而,根据拍摄场景自动调整摄像头的拍摄参数,提升拍摄效果。The technical solution of the present embodiment is to obtain a first preview image of the object to be photographed; to identify the shooting scene of the first preview image by using a preset scene recognition model; and when the shooting scene belongs to the preset scene, corresponding to the preset scene The second shooting parameter adjusts the first shooting parameter of the camera, which can effectively improve the shooting effect of the mobile terminal. By adopting the above technical solution, the scene recognition based on the scene recognition model can improve the accuracy of the scene recognition and expand the type of the scene recognition, thereby automatically adjusting the shooting parameters of the camera according to the shooting scene, thereby improving the shooting effect.
图2是本申请实施例提供的另一种拍摄参数的调整方法的流程图。该方法包括:FIG. 2 is a flowchart of another method for adjusting shooting parameters provided by an embodiment of the present application. The method includes:
步骤210、获取待拍摄对象的第一预览图像。Step 210: Acquire a first preview image of the object to be photographed.
其中,第一预览图像是由摄像头根据第一拍摄参数捕获的待拍摄对象的画面。获取第一预览图像的执行方法与上述示例的记载类似,此处不再赘述。The first preview image is a picture of the object to be photographed captured by the camera according to the first shooting parameter. The method for obtaining the first preview image is similar to the description of the above example, and details are not described herein again.
步骤220、通过预先设置的场景识别模型识别所述第一预览图像的拍摄场景。Step 220: Identify a shooting scene of the first preview image by using a preset scene recognition model.
其中,场景识别模型为根据图片样本集训练的深度学习模型。The scene recognition model is a deep learning model trained according to a picture sample set.
在一实施例中,场景识别模型是预先设置于移动终端内的,可以是向服务器发送获取请求,并由服务器获取该场景识别模型。其中,所述场景识别模型为由服务器根据图片样本集训练的深度学习模型,且所述图片样本集包括对目标对象进行位置标记的图片样本。In an embodiment, the scene recognition model is preset in the mobile terminal, and may be sending an acquisition request to the server, and acquiring the scene recognition model by the server. The scene recognition model is a deep learning model trained by the server according to the picture sample set, and the picture sample set includes a picture sample for performing location tagging on the target object.
场景识别操作与上述示例的记载类似,此处不再赘述。The scene recognition operation is similar to the description of the above example, and will not be described here.
步骤230、将所述拍摄场景与预设场景库中的预设场景进行匹配。Step 230: Match the shooting scene with a preset scene in a preset scene library.
步骤240、确定与所述拍摄场景匹配成功的预设场景,获取所述预设场景对应的第二拍摄参数,并根据所述第二拍摄参数替换所述第一拍摄参数。Step 240: Determine a preset scene that is successfully matched with the shooting scene, acquire a second shooting parameter corresponding to the preset scene, and replace the first shooting parameter according to the second shooting parameter.
参数调整的步骤于上述示例的记载类似,此处不再赘述。采用第二拍摄参数替换第一拍摄参数,并根据第二拍摄参数对拍摄对象进行拍摄,可以提高拍摄效果。The steps of parameter adjustment are similar to those in the above examples, and are not described herein again. The first shooting parameter is replaced by the second shooting parameter, and the shooting object is photographed according to the second shooting parameter, so that the shooting effect can be improved.
步骤250、获取参数修正操作。Step 250: Obtain a parameter correction operation.
在一实施例中,参数修正操作是用户输入的对拍摄参数的修正操作,包括但不限于调整光圈、快门、曝光补偿、焦距、感光度、白平衡的取值范围。在某些情况下,用户可能为追求艺术效果而采用与当前拍摄场景不同的拍摄参数进行拍摄,此时,用户会人为的修改拍摄参数。In an embodiment, the parameter correction operation is a correction operation of the shooting parameter input by the user, including but not limited to adjusting the aperture, the shutter, the exposure compensation, the focal length, the sensitivity, and the range of the white balance. In some cases, the user may take a different shooting parameter than the current shooting scene for the artistic effect. At this time, the user will artificially modify the shooting parameters.
示例性的,图3提供一种用户修改拍摄参数的流程图,如图3所示,可以在用户点击当前显示区域显示的预览图像310后,以对话框的形式弹出拍摄参数修改界面320,在拍摄参数修改界面320中展示光圈、快门、曝光补偿、焦距、感光度、白平衡等拍摄参数,获取用户输入的修正数值或滑块的位置等修改信息。Exemplarily, FIG. 3 provides a flowchart for modifying a shooting parameter by a user. As shown in FIG. 3, after the user clicks on the preview image 310 displayed in the current display area, the shooting parameter modification interface 320 may be popped up in the form of a dialog box. The shooting parameter modification interface 320 displays shooting parameters such as aperture, shutter, exposure compensation, focal length, sensitivity, white balance, etc., and obtains modification information such as a correction value input by the user or a position of the slider.
在本申请实施例中,系统检测到用户输入的拍摄参数的修改操作,包括检测到一个或多个拍摄参数对应的控件的点击操作,及在该控件内输入的修改数值。还可以是检测到一个或多个拍摄参数对应的滑块控件的滑动操作。In the embodiment of the present application, the system detects a modification operation of the shooting parameter input by the user, including detecting a click operation of the control corresponding to the one or more shooting parameters, and a modified value input in the control. It may also be a sliding operation of detecting a slider control corresponding to one or more shooting parameters.
在第二预览图像的显示界面中,系统获取用户输入的参数修正操作,包括修改哪个参数, 以及参数数值是多少。In the display interface of the second preview image, the system acquires a parameter correction operation input by the user, including which parameter is modified, and what the parameter value is.
步骤260、根据所述参数修正操作调整所述第二拍摄参数,得到第三拍摄参数,并采用所述第三拍摄参数执行拍摄操作。Step 260: Adjust the second shooting parameter according to the parameter correction operation to obtain a third shooting parameter, and perform a shooting operation by using the third shooting parameter.
在一实施例中,参数修正操作包括修正的参数以及参数数据。基于此,可以对应的修改第二拍摄参数中,参数修正操作对应的参数。如图3所示,如果参数修正操作为对应于快门的操作,且修正数据是将焦距由x 1mm修改为x 2mm,则对第二拍摄参数中的快门的取值范围进行调整得到第三拍摄参数。根据该修改信息修改拍摄参数,然后,获取关于预览按钮的操作信息,响应该操作信息显示预览界面,以供用户查看修改后的拍摄参数对应的拍摄图像的拍摄效果。 In an embodiment, the parameter correction operation includes the modified parameters as well as the parameter data. Based on this, the parameter corresponding to the parameter correction operation in the second shooting parameter can be modified correspondingly. As shown in FIG. 3, if the parameter correction operation is an operation corresponding to the shutter, and the correction data is to change the focal length from x 1 mm to x 2 mm, the range of the shutter value in the second shooting parameter is adjusted to obtain the first Three shooting parameters. The shooting parameter is modified according to the modification information, and then the operation information about the preview button is acquired, and the preview interface is displayed in response to the operation information, so that the user can view the shooting effect of the captured image corresponding to the modified shooting parameter.
步骤270、记录在设定时间区间内采用所述第三拍摄参数进行拍摄的次数。Step 270: Record the number of times of shooting using the third shooting parameter in the set time interval.
采用第三拍摄参数执行拍摄操作,并将采用该第三拍摄参数执行拍摄的次数加1。获取自首次采用第三拍摄参数进行拍摄起,设定时间区间内的采用第三拍摄参数进行拍摄的次数。其中,设定时间区间可以是系统默认时间,包括但不限于一周或一个月。即预先设定一个考察周期,若在该考察周期内用户在某一拍摄场景下往往采用第三拍摄参数进行拍照,则证明用户在该拍摄场景下不习惯采用预设的与该拍摄场景对应的拍摄参数,而是习惯于采用第三拍摄参数进行拍摄。The photographing operation is performed using the third photographing parameter, and the number of times the photographing is performed using the third photographing parameter is incremented by one. Obtain the number of times the third shooting parameter is used for shooting within the set time interval since the first shooting with the third shooting parameter. The set time interval may be a system default time, including but not limited to one week or one month. That is, a survey period is set in advance. If the user often takes a third photographing parameter to take a photograph in a certain shooting scene, it proves that the user is not accustomed to adopting a preset corresponding to the shooting scene in the shooting scene. Shooting parameters, but accustomed to shooting with the third shooting parameters.
步骤280、判断该次数是否超过设定次数阈值,若是,则执行步骤290,否则执行步骤2100。Step 280: Determine whether the number of times exceeds the set number threshold. If yes, execute step 290; otherwise, perform step 2100.
其中,设定次数阈值为系统默认设置的数值或用户根据自身需求自行设定的数值。The set number threshold is the default value set by the system or the value set by the user according to his own needs.
步骤290、将所述第三拍摄参数与所述预设场景关联存储于预设场景库。Step 290: Associate the third shooting parameter with the preset scene in a preset scene library.
可以理解的是,在预设场景库中存储有预设场景与拍摄参数的关联关系。在本实施例中,预设场景可以是参数修正操作的拍摄画面对应的拍摄场景。It can be understood that the association relationship between the preset scene and the shooting parameter is stored in the preset scene library. In this embodiment, the preset scene may be a shooting scene corresponding to the shooting screen of the parameter correction operation.
在本申请实施例中,将第三拍摄参数与预设场景关联存储于预设场景库可以是采用预设场景作为检索关键词,查询场景库,确定与该预设场景对应的第二拍摄参数,然后,采用第三拍摄参数替换第二拍摄参数,从而使场景库更符合用户的拍摄习惯,提供个性化的场景库。In the embodiment of the present application, the third shooting parameter is stored in the preset scene database in association with the preset scene, and the preset scene is used as the search keyword, the scene library is queried, and the second shooting parameter corresponding to the preset scene is determined. Then, the second shooting parameter is replaced by the third shooting parameter, so that the scene library is more in line with the user's shooting habits, and a personalized scene library is provided.
在一实施例中,将第三拍摄参数与预设场景关联存储于预设场景库还可以是建立第三拍摄参数与预设场景的关联关系,并在场景库中增加一条关于预设场景与第三拍摄参数的记录。此时,在场景库中存在同一预设场景对应至少两套拍摄参数的情况。例如,某一预设场景既与第二拍摄参数关联,又与第三拍摄参数关联。In an embodiment, storing the third shooting parameter in the preset scene library in association with the preset scene may also be establishing an association relationship between the third shooting parameter and the preset scene, and adding a preset scene and a scene in the scene library. Recording of the third shooting parameter. At this time, there are cases in the scene library that the same preset scene corresponds to at least two sets of shooting parameters. For example, a certain preset scene is associated with both the second shooting parameter and the third shooting parameter.
步骤2100、在显示区域显示预览图像。Step 2100: Display a preview image in the display area.
若在设定时间区间内采用第三拍摄参数进行拍摄的次数小于设定次数阈值,则在再次检测到启用了场景识别功能的移动终端进行拍摄时,通过场景识别模型识别出第一预览图像的拍摄场景。根据该拍摄场景对应的第二拍摄参数调整第一拍摄参数,在显示区域显示第二拍摄参数对应的第二预览图像。If the number of times of shooting using the third shooting parameter in the set time interval is less than the set number threshold, when the mobile terminal that has enabled the scene recognition function is detected again, the first preview image is recognized by the scene recognition model. Shoot the scene. The first shooting parameter is adjusted according to the second shooting parameter corresponding to the shooting scene, and the second preview image corresponding to the second shooting parameter is displayed in the display area.
在一实施例中,若在设定时间区间内采用第三拍摄参数进行拍摄的次数超过设定次数阈 值,则在再次检测到启用了场景识别功能的移动终端进行拍摄时,通过场景识别模型识别出第一预览图像的拍摄场景,且该拍摄场景为第三拍摄参数对应的场景。根据该拍摄场景对应的第三拍摄参数调整第一拍摄参数,在显示区域显示第三拍摄参数对应的新的预览图像。In an embodiment, if the number of times of shooting using the third shooting parameter exceeds the set number threshold in the set time interval, when the mobile terminal with the scene recognition function enabled is detected again, the scene recognition model is recognized by the scene recognition model. A shooting scene of the first preview image is displayed, and the shooting scene is a scene corresponding to the third shooting parameter. The first shooting parameter is adjusted according to the third shooting parameter corresponding to the shooting scene, and a new preview image corresponding to the third shooting parameter is displayed in the display area.
在一实施例中,若在设定时间区间内采用第三拍摄参数进行拍摄的次数超过设定次数阈值,则当再次检测到启用了场景识别功能的移动终端进行拍摄时,通过场景识别模型识别出第一预览图像的拍摄场景。获取该拍摄场景对应的第二拍摄参数和第三拍摄参数,分别根据第二拍摄参数和第三拍摄参数调整摄像头的拍摄参数。然后,摄像头分别根据第二拍摄参数和第三拍摄参数获取两帧预览图像,在显示屏的显示区域分别展示上述预览图像,以供用户选择满意的预览图像进行拍摄。在一实施例中,在显示区域的第一区域显示第二拍摄参数对应的预览图像,在显示屏的第二区域显示第三拍摄参数对应的预览图像,以实现同时显示不同拍摄参数对应的预览图像,便于用户比对两幅图像的差异,并选择满足拍摄要求的预览图像进行拍摄。In an embodiment, if the number of times of shooting using the third shooting parameter exceeds the set number threshold in the set time interval, when the mobile terminal with the scene recognition function enabled is detected again, the scene recognition model is recognized by the scene recognition model. The shooting scene of the first preview image. Obtaining a second shooting parameter and a third shooting parameter corresponding to the shooting scene, and adjusting shooting parameters of the camera according to the second shooting parameter and the third shooting parameter respectively. Then, the camera acquires two frame preview images according to the second shooting parameter and the third shooting parameter respectively, and displays the preview image in the display area of the display screen for the user to select a satisfactory preview image for shooting. In an embodiment, a preview image corresponding to the second shooting parameter is displayed in the first area of the display area, and a preview image corresponding to the third shooting parameter is displayed in the second area of the display screen, so as to simultaneously display a preview corresponding to different shooting parameters. The image is convenient for the user to compare the difference between the two images and select a preview image that satisfies the shooting requirements for shooting.
本实施例的技术方案,通过在根据所述预设场景对应的第二拍摄参数调整摄像头的第一拍摄参数之后,执行获取参数修正操作,根据所述参数修正操作调整所述第二拍摄参数,得到第三拍摄参数,记录在设定时间区间内采用所述第三拍摄参数进行拍摄的次数,在所述次数超过设定次数阈值的情况下,将所述第三拍摄参数与所述预设场景关联存储于预设场景库,实现根据用户的拍摄习惯智能的更新场景库,从而,使场景库内拍摄场景对应的拍摄参数更符合用户个人的拍摄习惯。The technical solution of the embodiment, after adjusting the first shooting parameter of the camera according to the second shooting parameter corresponding to the preset scene, performing an acquiring parameter correcting operation, and adjusting the second shooting parameter according to the parameter correcting operation, Obtaining a third shooting parameter, recording the number of times of shooting using the third shooting parameter in the set time interval, and if the number of times exceeds the set number of times threshold, the third shooting parameter and the preset The scene association is stored in the preset scene library, and the scene library is updated according to the user's shooting habits, so that the shooting parameters corresponding to the shooting scene in the scene library are more in line with the user's personal shooting habits.
图4为本申请实施例提供的又一种拍摄参数的调整方法的流程图。该方法适用于用户根据自己的拍摄习惯或为了拍摄出某种艺术效果自行设置摄像头的拍摄参数的情况。如图4所示,该方法包括:FIG. 4 is a flowchart of still another method for adjusting shooting parameters according to an embodiment of the present application. This method is suitable for the user to set the camera's shooting parameters according to their own shooting habits or to take some artistic effect. As shown in FIG. 4, the method includes:
步骤410、获取待拍摄对象的第一预览图像。Step 410: Acquire a first preview image of the object to be photographed.
其中,第一预览图像是由摄像头根据第一拍摄参数捕获的拍摄对象的画面,第一拍摄参数可以是用户根据自己的拍摄习惯自行设置的。可以理解的是,第一拍摄参数还可以是用户为拍摄得到具有某种艺术效果的照片而自行设定的摄像头的参数。例如,用户为了拍摄得到具有慢速快门效果的照片,人为的设定快门速度及光圈等参数,此时就不适宜根据拍摄场景自动调整拍摄参数。The first preview image is a screen of the photographic subject captured by the camera according to the first shooting parameter, and the first shooting parameter may be set by the user according to his own shooting habits. It can be understood that the first shooting parameter may also be a parameter of the camera set by the user for capturing a photo with certain artistic effect. For example, in order to capture a photo with a slow shutter effect, the user manually sets parameters such as shutter speed and aperture, and it is not appropriate to automatically adjust the shooting parameters according to the shooting scene.
步骤420、通过预先设置的场景识别模型识别所述第一预览图像的拍摄场景。Step 420: Identify a shooting scene of the first preview image by using a preset scene recognition model.
步骤430、将所述拍摄场景与预设场景库中的预设场景进行匹配。Step 430: Match the shooting scene with a preset scene in a preset scene library.
步骤440、确定与所述拍摄场景匹配成功的预设场景,获取所述预设场景对应的第二拍摄参数,并根据所述第二拍摄参数替换所述第一拍摄参数。Step 440: Determine a preset scene that is successfully matched with the shooting scene, acquire a second shooting parameter corresponding to the preset scene, and replace the first shooting parameter according to the second shooting parameter.
步骤450、获取摄像头根据第二拍摄参数捕获的待拍摄对象的第二预览图像。Step 450: Acquire a second preview image of the object to be captured captured by the camera according to the second shooting parameter.
在本申请实施例中,根据第二拍摄参数调整摄像头,再通过调整后的摄像头将拍摄对象的光学图像投射到感光芯片上,由感光芯片将光学图像信号转换为电信号,经过一系列设定的变换或处理后,得到第二预览图像,通过MIPI接口将第二预览图像发送到ISP进行处理。In the embodiment of the present application, the camera is adjusted according to the second shooting parameter, and then the optical image of the object is projected onto the photosensitive chip by the adjusted camera, and the optical image signal is converted into an electrical signal by the photosensitive chip, and after a series of settings. After the transformation or processing, a second preview image is obtained, and the second preview image is sent to the ISP for processing through the MIPI interface.
步骤460、控制所述第一预览图像在预设的第一区域进行显示,并将所述第二预览图像显示在预设的第二区域。Step 460: Control the first preview image to be displayed in a preset first area, and display the second preview image in a preset second area.
在一实施例中,第一区域的面积小于显示屏的显示区域的面积,第二区域的面积也小于显示屏的显示区域的面积,可以由第一区域和第二区域进行拼接后构成显示屏的显示区域。In an embodiment, the area of the first area is smaller than the area of the display area of the display screen, and the area of the second area is also smaller than the area of the display area of the display screen, which may be spliced by the first area and the second area to form a display screen. Display area.
示例性地,可以创建一个新的图层,作为第一图层。通过ISP获取第一预览图像,并保存一份第一预览图像的备份图像,随后,对第一预览图像进行图像缩小处理,得到第三预览图像。第三预览图像的尺寸与第一区域的尺寸相同。然后,通过图像处理器(Graphics Processing Unit,GPU)在该第一图层的第一区域绘制第三预览图像,实现采用一帧第三预览图像填充满该第一区域。在一实施例中,可以采用最邻近插值法、双线性内插值法或三次卷积法对第一预览图像进行图像缩小处理。将缩小处理后的第一预览图像绘制于第一图层的第一区域。另外,创建一个新的图层,作为第二图层。通过ISP获取第二预览图像,并保存一份第二预览图像的备份图像,随后对第二预览图像进行图像缩小处理,得到第四预览图像。第四预览图像的尺寸与第二区域的尺寸相同。然后,通过图像处理器GPU在该第二图层的第二区域绘制第四预览图像,实现采用第四预览图像填充满该第二区域。通过图像处理器GPU合成第一图层和第二图层得到待显示画面。按照设定的刷新率在移动终端的显示屏上显示该待显示画面。在一实施例中,该第二图层与该第一区域对应的第三区域为透明图层。从而,实现在显示屏的显示区域同时显示缩小处理后的第一预览图像及第二预览图像。图5是本申请实施例提供的一种图像显示界面示意图。如图5所示,第一图层510包括第一区域511,且第一区域511的面积小于第一图层510的面积,在第一区域511内绘制第一预览图像的缩小图像,即第三预览图像512。第二图层520包括第二区域521,且第二区域521的面积小于第二图层520的面积,在第二区域521内绘制第二预览图像的缩小图像,即第四预览图像522。在一实施例中,为了在合成后的待显示画面中同时显示第三预览图像512和第四预览图像522,第二图层520中与第一图层510的第一区域511对应的第三区域523为透明图层。从而,在合成第一图层510和第二图层520后,在显示区域中第一区域511显示有缩小后的第一预览图像,第二区域521显示有缩小后的第二预览图像。Illustratively, a new layer can be created as the first layer. The first preview image is acquired by the ISP, and a backup image of the first preview image is saved, and then the image is reduced by the image of the first preview image to obtain a third preview image. The size of the third preview image is the same as the size of the first area. Then, a third preview image is drawn on the first area of the first layer by a graphics processing unit (GPU), so that the first area is filled with a frame of the third preview image. In an embodiment, the first preview image may be subjected to image reduction processing using a nearest neighbor interpolation method, a bilinear interpolation method, or a cubic convolution method. The reduced preview first preview image is drawn on the first region of the first layer. Also, create a new layer as the second layer. Acquiring a second preview image through the ISP, and saving a backup image of the second preview image, and then performing image reduction processing on the second preview image to obtain a fourth preview image. The size of the fourth preview image is the same as the size of the second area. Then, the fourth preview image is drawn by the image processor GPU in the second region of the second layer, so that the second region is filled with the fourth preview image. The first layer and the second layer are synthesized by the image processor GPU to obtain a picture to be displayed. The to-be-displayed screen is displayed on the display screen of the mobile terminal according to the set refresh rate. In an embodiment, the third layer corresponding to the first area of the second layer is a transparent layer. Thereby, the first preview image and the second preview image after the reduction processing are simultaneously displayed in the display area of the display screen. FIG. 5 is a schematic diagram of an image display interface provided by an embodiment of the present application. As shown in FIG. 5, the first layer 510 includes a first area 511, and the area of the first area 511 is smaller than the area of the first layer 510, and the reduced image of the first preview image is drawn in the first area 511, ie, Three preview images 512. The second layer 520 includes a second area 521, and the area of the second area 521 is smaller than the area of the second layer 520, and the reduced image of the second preview image, that is, the fourth preview image 522 is drawn in the second area 521. In an embodiment, in order to simultaneously display the third preview image 512 and the fourth preview image 522 in the synthesized picture to be displayed, the third layer 520 corresponds to the first area 511 of the first layer 510. Area 523 is a transparent layer. Therefore, after the first layer 510 and the second layer 520 are synthesized, the first region 511 is displayed with the reduced first preview image, and the second region 521 is displayed with the reduced second preview image.
步骤470、获取针对预览图像的用户操作。Step 470: Acquire a user operation for the preview image.
在一实施例中,预览图像可以是第三预览图像或第四预览图像。该用户操作包括用户针对移动终端显示屏的触摸操作、用户针对设定物理按键的按压操作(例如,通过按下声音键+,选择第一区域的第三预览图像,以及按下声音键-选择第二区域的第四预览图像)、设定手势及语音指示等。其中,触摸操作包括作用于显示屏上的点击操作,包括但不限于通过单击显示屏的任意位置选择第一区域的第三预览图像,通过双击显示屏的任意位置选择第二区域的第四预览图像。触摸操作还可以是作用于显示屏上的触摸手势,触摸手势包括但不限于在显示屏上画Z表示选择第一区域的第三预览图像,在显示屏上画V表示选择第二区域的第四预览图像。设定手势包括空间手势,空间手势包括但不限于通过手机在空间画C表示选择第一区域的第室内预览图像,通过手机在空间画O表示选择第二区域的第四预览图像。In an embodiment, the preview image may be a third preview image or a fourth preview image. The user operation includes a user's touch operation for the mobile terminal display screen, a user's pressing operation for setting the physical button (eg, by pressing the sound key +, selecting the third preview image of the first area, and pressing the sound key - selecting A fourth preview image of the second area), a setting gesture, a voice indication, and the like. The touch operation includes a click operation on the display screen, including but not limited to selecting a third preview image of the first area by clicking an arbitrary position of the display screen, and selecting a fourth area of the second area by double-clicking any position of the display screen. Preview the image. The touch operation may also be a touch gesture acting on the display screen, and the touch gesture includes, but is not limited to, drawing a Z on the display screen to select a third preview image of the first area, and drawing a V on the display screen to indicate that the second area is selected. Four preview images. The setting gesture includes a spatial gesture including, but not limited to, an indoor preview image in which the first region is selected by the mobile phone in the space drawing C, and a fourth preview image in the second region is selected by the mobile phone in the space drawing O.
上述关于用户手势的记载仅为示例,并非限定。例如,触摸操作还可以是作用于第一区域内的点击操作,表示选择第三预览图像;以及,作用于第二区域内的点击操作,表示选择第四预览图像。又如,触摸操作还可以是作用于第一区域内的滑动操作(包括由第一区域内部向外部滑动的滑动操作),表示放弃第三预览图像。The above description of the user's gesture is merely an example and is not limited. For example, the touch operation may also be a click operation acting in the first area, indicating that the third preview image is selected; and a click operation acting on the second area, indicating that the fourth preview image is selected. As another example, the touch operation may also be a sliding operation (including a sliding operation that slides from the inside of the first area to the outside) in the first area, indicating that the third preview image is discarded.
步骤480、根据所述用户操作获取第一预览图像或第二预览图像,并在所述显示屏的显示区域显示所述第一预览图像或第二预览图像。Step 480: Acquire a first preview image or a second preview image according to the user operation, and display the first preview image or the second preview image in a display area of the display screen.
在一实施例中,此处的第一预览图像及第二预览图像是未进行图像缩小处理的拍摄画面,可以由ISP中获取,可以是获取第一预览图像的备份图像或获取第二预览图像的备份图像。In an embodiment, the first preview image and the second preview image are shot images that are not subjected to image reduction processing, and may be acquired by an ISP, and may be a backup image of the first preview image or a second preview image. Backup image.
在一实施例中,预先建立用户操作、预览图像及处理操作的关联关系,并将该关联关系存储于操作白名单中。例如,将用户操作、预览图像及处理操作以下述关联记录的方式存储于白名单中:在显示屏上画Z——第三预览图像——选中第一预览图像;在显示屏上画O——第四预览图像——选中第二预览图像;单击显示屏——第三预览图像——选中第一预览图像;双击显示屏——第四预览图像——选中第二预览图像;按下音量+键——第三预览图像——选中第一预览图像;按下音量-键——第四预览图像——选中第二预览图像;在第一区域内输入向右滑动第三预览图像——第三预览图像——放弃第一预览图像;在第二区域输入向右滑动第四预览图像——第四预览图像——放弃第二预览图像等等。上述关于用户操作、预览图像及处理操作的关联关系的记载仅为示例,并非限定,还可以采用键值对或映射的方式存储上述关联关系。In an embodiment, the association relationship between the user operation, the preview image, and the processing operation is established in advance, and the association relationship is stored in the operation whitelist. For example, the user operation, the preview image, and the processing operation are stored in the white list in the following association record: draw Z on the display screen - the third preview image - select the first preview image; draw O on the display screen - a fourth preview image - selecting the second preview image; clicking the display - the third preview image - selecting the first preview image; double clicking on the display - the fourth preview image - selecting the second preview image; pressing Volume + key - third preview image - select the first preview image; press volume - key - fourth preview image - select the second preview image; in the first area, enter the third preview image to the right - a third preview image - discarding the first preview image; sliding the fourth preview image to the right in the second region - the fourth preview image - discarding the second preview image and the like. The above description of the relationship between the user operation, the preview image, and the processing operation is merely an example, and is not limited thereto, and the association relationship may be stored in a key value pair or a mapping manner.
在检测到用户操作时,根据该用户操作的操作手势及操作位置确定用户操作的对象及处理操作。例如,若用户操作是作用于第一区域的点击操作,则操作的对象为第三预览图像,处理操作为选中第一预览图像。若用户操作是在显示屏上画O,则操作对象是第四预览图像,处理操作为选择第二预览图像等等。响应该用户操作,根据该处理操作获取拍摄图像,并将拍摄图像显示在显示区域。例如,响应于用户在显示屏上画O的用户操作,由ISP中获取第二预览图像的备份图像,并在显示区域显示该第二预览图像。When the user operation is detected, the object operated by the user and the processing operation are determined according to the operation gesture and the operation position of the user operation. For example, if the user operation is a click operation acting on the first area, the object of the operation is a third preview image, and the processing operation is to select the first preview image. If the user operation is to draw O on the display screen, the operation object is the fourth preview image, and the processing operation is to select the second preview image and the like. In response to the user operation, a captured image is acquired according to the processing operation, and the captured image is displayed on the display area. For example, in response to a user operation of the user drawing O on the display screen, a backup image of the second preview image is acquired by the ISP, and the second preview image is displayed in the display area.
步骤490、在获取到拍摄指示时,执行针对所述第一预览图像或第二预览图像的拍摄操作。Step 490: Perform a photographing operation for the first preview image or the second preview image when the photographing instruction is acquired.
可以理解的是,拍摄指示可以是用户按下拍摄按钮触发的操作指示,还可以是用户按下设定物体按键触发的操作指示,也可以是用户的设定手势触发的操作指示等。It can be understood that the shooting instruction may be an operation instruction triggered by the user pressing the shooting button, or may be an operation instruction triggered by the user pressing the setting object button, or may be an operation instruction triggered by the user's setting gesture.
在检测到拍摄指示的情况下,移动终端保存当前显示屏上显示的预览图像,实现对拍摄对象的拍摄操作,得到拍摄图片,并可以将拍摄图片存储于图片库或相册内。其中,当前显示的预览图像可能是第一预览图像,也可能是第二预览图像。In the case that the shooting instruction is detected, the mobile terminal saves the preview image displayed on the current display screen, realizes the shooting operation on the shooting object, obtains the captured picture, and can store the captured picture in the picture library or the album. The preview image currently displayed may be the first preview image or the second preview image.
本实施例的技术方案,通过分别获取与第一拍摄参数对应的第一预览图像及与第二拍摄参数对应的第二预览图像,控制在第一区域显示该第一预览图像,在第二区域显示该第二预览图像,实现在显示屏的显示区域同时显示第一预览图像及第二预览图像,以供用户选择符合自己拍摄习惯的预览图像,避免根据场景自动调整的拍摄参数不符合用户拍摄习惯的情况 发生,提高人机交互性能。In the technical solution of the embodiment, the first preview image corresponding to the first shooting parameter and the second preview image corresponding to the second shooting parameter are respectively acquired, and the first preview image is displayed in the first region, in the second region. Displaying the second preview image, the first preview image and the second preview image are simultaneously displayed in the display area of the display screen, so that the user selects a preview image that conforms to his own shooting habits, and the shooting parameters that are automatically adjusted according to the scene are not consistent with the user's shooting. Habits occur and improve human-computer interaction performance.
图6是本申请实施例提供的一种拍摄参数的调整装置的结构框图。该装置可以通过软件和/或硬件实现,可被集成于移动终端内,设置为执行本申请实施例提供的拍摄参数的调整方法。如图6所示,该装置包括:FIG. 6 is a structural block diagram of an apparatus for adjusting shooting parameters according to an embodiment of the present application. The device may be implemented by software and/or hardware, and may be integrated into the mobile terminal and configured to perform the adjustment method of the shooting parameters provided by the embodiment of the present application. As shown in Figure 6, the device includes:
图像获取模块610,设置为获取待拍摄对象的第一预览图像,其中,所述第一预览图像是由摄像头根据第一拍摄参数捕获的待拍摄对象的画面;The image obtaining module 610 is configured to acquire a first preview image of the object to be photographed, wherein the first preview image is a screen of the object to be photographed captured by the camera according to the first photographing parameter;
场景识别模块620,设置为通过预先设置的场景识别模型识别所述第一预览图像的拍摄场景,其中,所述场景识别模型为根据图片样本集训练的深度学习模型;The scene recognition module 620 is configured to identify a shooting scene of the first preview image by using a preset scene recognition model, wherein the scene recognition model is a deep learning model trained according to a picture sample set;
参数调整模块630,设置为在所述拍摄场景为预设场景的情况下,根据所述预设场景对应的第二拍摄参数调整摄像头的第一拍摄参数,以根据所述第二拍摄参数对所述待拍摄对象进行拍摄。The parameter adjustment module 630 is configured to adjust, according to the second shooting parameter corresponding to the preset scene, the first shooting parameter of the camera according to the second shooting parameter, in the case that the shooting scene is a preset scene. Tell the subject to shoot.
本实施例的技术方案提供一种拍摄参数的调整装置,基于场景识别模型进行拍摄场景识别,可以提升场景识别的准确度、扩充场景识别的种类,从而,根据拍摄场景自动调整摄像头的拍摄参数,提升拍摄效果。The technical solution of the embodiment provides an adjustment device for shooting parameters, and performs scene recognition based on the scene recognition model, which can improve the accuracy of scene recognition and expand the type of scene recognition, thereby automatically adjusting the shooting parameters of the camera according to the shooting scene. Improve the shooting effect.
在一实施例中,该装置还包括:In an embodiment, the apparatus further comprises:
模型获取模块,设置为获取服务器发送的场景识别模型,其中,所述场景识别模型为由服务器根据图片样本集训练的深度学习模型,且所述图片样本集包括对用于识别拍摄场景的目标对象进行位置标记的图片样本。a model obtaining module, configured to acquire a scene recognition model sent by the server, wherein the scene recognition model is a deep learning model trained by the server according to the image sample set, and the image sample set includes a target object for identifying a shooting scene A sample image of the location marker.
在一实施例中,参数调整模块630是设置为:In an embodiment, the parameter adjustment module 630 is configured to:
将所述拍摄场景与预设场景库中的预设场景进行匹配;Matching the shooting scene with a preset scene in a preset scene library;
确定与所述拍摄场景匹配成功的预设场景,获取所述预设场景对应的第二拍摄参数,并根据所述第二拍摄参数替换所述第一拍摄参数。Determining a preset scene that is successfully matched with the shooting scene, acquiring a second shooting parameter corresponding to the preset scene, and replacing the first shooting parameter according to the second shooting parameter.
在一实施例中,该装置还包括:In an embodiment, the apparatus further comprises:
场景库更新模块,设置为在根据所述预设场景对应的第二拍摄参数调整摄像头的第一拍摄参数之后,获取参数修正操作;根据所述参数修正操作调整所述第二拍摄参数,得到第三拍摄参数,并采用所述第三拍摄参数执行拍摄操作。The scene library update module is configured to: after adjusting the first shooting parameter of the camera according to the second shooting parameter corresponding to the preset scene, acquiring a parameter correcting operation; adjusting the second shooting parameter according to the parameter correcting operation, to obtain a Three shooting parameters are taken, and the shooting operation is performed using the third shooting parameters.
在一实施例中,所述场景库更新模块还设置为:记录在设定时间区间内采用所述第三拍摄参数进行拍摄的次数;在所述次数超过设定次数阈值的情况下,将所述第三拍摄参数与所述预设场景关联存储于预设场景库。In an embodiment, the scene library update module is further configured to: record a number of times of shooting using the third shooting parameter within a set time interval; and if the number of times exceeds a set number of times threshold, The third shooting parameter is stored in the preset scene library in association with the preset scene.
在一实施例中,该装置还包括:In an embodiment, the apparatus further comprises:
第一图像显示模块,设置为在根据所述第二拍摄参数替换所述第一拍摄参数之后,获取第二预览图像,其中,所述第二预览图像是由所述摄像头根据第二拍摄参数捕获的所述待拍摄对象的画面;控制所述第一预览图像在预设的第一区域进行显示,并将所述第二预览图像显示在预设的第二区域,其中,所述第一区域与第二区域构成显示屏的显示区域。a first image display module configured to acquire a second preview image after the first shooting parameter is replaced according to the second shooting parameter, wherein the second preview image is captured by the camera according to the second shooting parameter a screen of the object to be photographed; controlling the first preview image to be displayed in a preset first area, and displaying the second preview image in a preset second area, wherein the first area The display area of the display screen is formed with the second area.
在一实施例中,第一图像显示模块是设置为:In an embodiment, the first image display module is configured to:
创建第一图层;Create the first layer;
获取所述第一预览图像,并对所述第一预览图像进行图像缩小处理,得到第三预览图像;Obtaining the first preview image, and performing image reduction processing on the first preview image to obtain a third preview image;
在所述第一图层的第一区域绘制所述第三预览图像,其中,所述第一区域的面积小于所述第一图层的面积;Drawing the third preview image in a first area of the first layer, wherein an area of the first area is smaller than an area of the first layer;
创建第二图层;Create a second layer;
获取所述第二预览图像,并对所述第二预览图像进行图像缩小处理,得到第四预览图像;Obtaining the second preview image, and performing image reduction processing on the second preview image to obtain a fourth preview image;
在所述第二图层的第二区域绘制所述第四预览图像,其中,所述第二区域的面积小于所述第二图层的面积,且所述第二图层中与所述第一图层的第一区域对应的第三区域为透明图层;Drawing the fourth preview image in a second region of the second layer, wherein an area of the second region is smaller than an area of the second layer, and the second layer is in the second layer The third area corresponding to the first area of a layer is a transparent layer;
合成所述第一图层和第二图层得到待显示画面,并显示所述待显示画面。The first layer and the second layer are synthesized to obtain a picture to be displayed, and the picture to be displayed is displayed.
在一实施例中,该装置还包括:In an embodiment, the apparatus further comprises:
第二图像显示模块,设置为在显示所述待显示画面之后,获取针对所述第三预览图像或第四预览图像的用户操作;根据所述用户操作获取第一预览图像或第二预览图像,并在所述显示屏的显示区域显示所述第一预览图像或第二预览图像;a second image display module, configured to acquire a user operation for the third preview image or the fourth preview image after displaying the to-be-displayed image; acquiring the first preview image or the second preview image according to the user operation, And displaying the first preview image or the second preview image in a display area of the display screen;
图像拍摄模块,设置为在获取到拍摄指示的情况下,执行针对所述第一预览图像或第二预览图像的拍摄操作。The image capturing module is configured to perform a photographing operation for the first preview image or the second preview image in a case where a photographing instruction is acquired.
在一实施例中,所述第二图像显示模块还设置为:预先建立所述用户操作、所述第三预览图像和所述第四预览图像、以及处理操作的关联关系,并将所述关联关系存储于操作白名单中;其中,所述处理操作为对所述第一预览图像或所述第二预览图像的处理操作。In an embodiment, the second image display module is further configured to: pre-establish an association relationship between the user operation, the third preview image and the fourth preview image, and a processing operation, and associate the association The relationship is stored in an operation whitelist; wherein the processing operation is a processing operation on the first preview image or the second preview image.
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行上述任一实施例的拍摄参数的调整方法。Embodiments of the present application also provide a storage medium including computer executable instructions for performing an adjustment method of a shooting parameter of any of the above embodiments when executed by a computer processor.
存储介质——任何类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如光盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如动态随机存取存储器(Dynamic Random Access Memory,DRAM)、(Double Data Rate Random Access Memory,DDR RAM)、静态随机存取存储器(Static Random-Access Memory,SRAM)、扩展数据输出随机存取存储器(Extended Data Output Random Access Memory,EDO RAM),兰巴斯随机存取存储器(Rambus Random Access Memory,Rambus RAM)等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如计算机程序)。Storage media - any type of storage device or storage device. The term "storage medium" is intended to include: a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device; a computer system memory or a random access memory such as a dynamic random access memory; (Dynamic Random Access Memory, DRAM), (Double Data Rate Random Access Memory, DDR RAM), Static Random Access Memory (SRAM), Extended Data Output Random Access Memory (Extended Data Output Random Access Memory) , EDO RAM), Rambus Random Access Memory (Rambus RAM), etc.; non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory components Wait. The storage medium may also include other types of memory or a combination thereof. Additionally, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet. The second computer system can provide program instructions to the first computer for execution. The term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network). A storage medium may store program instructions (eg, a computer program) executable by one or more processors.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行 指令不限于如上所述的拍摄参数的调整操作,还可以执行本申请任意实施例所提供的拍摄参数的调整方法中的相关操作。Of course, the storage medium including the computer executable instructions provided by the embodiment of the present application is not limited to the adjustment operation of the shooting parameters as described above, and may also perform the shooting parameters provided by any embodiment of the present application. Related operations in the adjustment method.
本申请实施例提供了一种移动终端,该移动终端内具有操作系统,该移动终端中可集成本申请实施例提供的拍摄参数的调整装置。其中,移动终端可以为智能手机、平板电脑(Portable Device,PAD)、智能可穿戴设备等。图7是本申请实施例提供的一种移动终端的结构框图。如图7所示,该移动终端可以包括存储器710及处理器720。所述存储器710,设置为存储计算机程序、场景识别模型、预设场景库等;所述中央处理器720读取并执行所述存储器710中存储的计算机程序。所述处理器720在执行所述计算机程序时实现上述任一实施例所述的方法。An embodiment of the present application provides a mobile terminal, where the mobile terminal has an operating system, and the adjustment device of the shooting parameters provided by the embodiment of the present application can be integrated into the mobile terminal. The mobile terminal can be a smart phone, a portable device (PAD), a smart wearable device, or the like. FIG. 7 is a structural block diagram of a mobile terminal according to an embodiment of the present application. As shown in FIG. 7, the mobile terminal can include a memory 710 and a processor 720. The memory 710 is configured to store a computer program, a scene recognition model, a preset scene library, and the like; the central processing unit 720 reads and executes a computer program stored in the memory 710. The processor 720 implements the method of any of the above embodiments when executing the computer program.
上述示例中列举的存储器及处理器均为移动终端的部分元器件,所述移动终端还可以包括其它元器件。以智能手机为例,说明上述移动终端可能的结构。图8是本申请实施例提供的一种智能手机的结构框图。如图8所示,该智能手机可以包括:存储器80l、中央处理器(Central Processing Unit,CPU)802(又称处理器,以下简称CPU)、外设接口803、射频(Radio Frequency,RF)电路805、音频电路806、扬声器811、显示器812、摄像头813、图像处理器(Graphics Processing Unit,GPU)814、电源管理芯片808、输入/输出(Input/Output,I/O)子系统809、其他输入/控制设备810以及外部端口804,这些部件通过一个或多个通信总线或信号线807来通信。The memory and processor listed in the above examples are all components of the mobile terminal, and the mobile terminal may further include other components. Taking a smart phone as an example, the possible structure of the above mobile terminal will be described. FIG. 8 is a structural block diagram of a smart phone according to an embodiment of the present application. As shown in FIG. 8, the smart phone may include: a memory 80l, a central processing unit (CPU) 802 (also referred to as a processor, hereinafter referred to as a CPU), a peripheral interface 803, and a radio frequency (RF) circuit. 805, audio circuit 806, speaker 811, display 812, camera 813, graphics processing unit (GPU) 814, power management chip 808, input / output (I / O) subsystem 809, other inputs / Control device 810 and external port 804, these components communicate via one or more communication buses or signal lines 807.
图示智能手机800仅仅是移动终端的一个范例,并且智能手机800可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的每种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。The illustrated smartphone 800 is merely one example of a mobile terminal, and the smartphone 800 can have more or fewer components than those shown in the figures, two or more components can be combined, or can have different Component configuration. Each of the components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的集成有拍摄参数的调整装置的智能手机进行详细的描述。The smart phone integrated with the adjustment parameter of the shooting parameter provided in the embodiment will be described in detail below.
存储器801,所述存储器801可以被CPU802、外设接口803等访问,所述存储器801可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。在存储器811中存储计算机程序,还可以存储场景识别模型、预设场景库、操作白名单、第一预览图像的备份图像及第二预览图像的备份图像等。The memory 801 can be accessed by the CPU 802, the peripheral interface 803, etc., and the memory 801 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices. The computer program is stored in the memory 811, and the scene recognition model, the preset scene library, the operation white list, the backup image of the first preview image, the backup image of the second preview image, and the like may also be stored.
外设接口803,所述外设接口803可以将设备的输入和输出外设连接到CPU802和存储器801。 Peripheral interface 803, which can connect the input and output peripherals of the device to CPU 802 and memory 801.
I/O子系统809,所述I/O子系统809可以将设备上的输入输出外设,例如显示屏812和其他输入/控制设备810,连接到外设接口803。I/O子系统809可以包括显示控制器8091和用于控制其他输入/控制设备810的一个或多个输入控制器8092。其中,一个或多个输入控制器8092从其他输入/控制设备810接收电信号或者向其他输入/控制设备810发送电信号,其他输入/控制设备810可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。在一实施例中,输入控制器8092可以与以下任一个连接:键盘、红外端口、 通用串行总线(Universal Serial Bus,USB)接口以及诸如鼠标的指示设备。I/O subsystem 809, which can connect input and output peripherals on the device, such as display screen 812 and other input/control devices 810, to peripheral interface 803. The I/O subsystem 809 can include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810. Wherein, one or more input controllers 8092 receive electrical signals from other input/control devices 810 or transmit electrical signals to other input/control devices 810, and other input/control devices 810 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel. In an embodiment, the input controller 8092 can be connected to any of the following: a keyboard, an infrared port, a Universal Serial Bus (USB) interface, and a pointing device such as a mouse.
显示屏812,所述显示屏812是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A display screen 812 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user. The visual output may include graphics, text, icons, video, and the like.
摄像头813,所述摄像头813获取待拍摄对象的光学图像,并将光学图像转换为电信号,通过外设接口803输入至图像处理器814。另外,摄像头813通过外设接口803从CPU802获取拍摄参数,据此更新自身的拍摄参数。The camera 813 acquires an optical image of the object to be photographed, and converts the optical image into an electrical signal, which is input to the image processor 814 through the peripheral interface 803. In addition, the camera 813 acquires shooting parameters from the CPU 802 through the peripheral interface 803, and updates its own shooting parameters accordingly.
图像处理器814,所述图像处理器814设置为获取拍摄图像的电信号,根据所述电信号绘制拍摄图像,绘制好的拍摄图像通过I/O子系统809发送至显示器812进行显示。The image processor 814 is configured to acquire an electrical signal of the captured image, draw a captured image according to the electrical signal, and the drawn captured image is sent to the display 812 for display by the I/O subsystem 809.
I/O子系统809中的显示控制器8081从显示屏812接收电信号或者向显示屏812发送电信号。显示屏812检测显示屏上的接触,显示控制器8091将检测到的接触转换为与显示在显示屏812上的用户界面对象的交互,即实现人机交互,显示在显示屏812上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。在一实施例中,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由显示屏形成的触摸敏感表面的延伸。Display controller 8081 in I/O subsystem 809 receives an electrical signal from display 812 or an electrical signal to display 812. Display 812 detects contact on the display screen and display controller 8091 converts the detected contact into interaction with a user interface object displayed on display screen 812, i.e., enables human-computer interaction, a user interface displayed on display screen 812. The object can be an icon that runs the game, an icon that is networked to the corresponding network, and the like. In an embodiment, the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the display screen.
RF电路805,设置为建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。在一实施例中,RF电路805接收并发送RF信号,RF信号也称为电磁信号,RF电路805将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路805可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、编译码器(COder-DECoder,CODEC)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 805 is configured to establish communication between the mobile phone and the wireless network (ie, the network side) to implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. In one embodiment, RF circuit 805 receives and transmits an RF signal, also referred to as an electromagnetic signal, and RF circuit 805 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network And other devices to communicate. RF circuitry 805 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec CODER-DECoder (CODEC) chipset, Subscriber Identity Module (SIM), etc.
音频电路806,设置为从外设接口803接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器811。The audio circuit 806 is arranged to receive audio data from the peripheral interface 803, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 811.
扬声器811,设置为将手机通过RF电路805从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 811 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 805 to sound and play the sound to the user.
电源管理芯片808,设置为为CPU802、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 808 is configured to provide power and power management for the hardware connected to the CPU 802, the I/O subsystem, and the peripheral interface.
本申请实施例提供的移动终端,可以基于场景识别模型进行拍摄场景识别,并根据拍摄场景自动调整摄像头的拍摄参数,可以提升场景识别的准确度、扩充场景识别的种类,提升拍摄效果。The mobile terminal provided by the embodiment of the present invention can perform shooting scene recognition based on the scene recognition model, and automatically adjust the shooting parameters of the camera according to the shooting scene, thereby improving the accuracy of the scene recognition, expanding the type of the scene recognition, and improving the shooting effect.
上述实施例中提供的拍摄参数的调整装置、存储介质及移动终端可执行本申请任意实施例所提供的拍摄参数的调整方法,具备执行该方法相应的功能模块和效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的拍摄参数的调整方法。The adjusting device, the storage medium and the mobile terminal provided in the above embodiments can perform the adjustment method of the shooting parameters provided by any embodiment of the present application, and have the corresponding functional modules and effects for executing the method. For the technical details that are not described in detail in the above embodiments, reference may be made to the method for adjusting the shooting parameters provided by any embodiment of the present application.

Claims (20)

  1. 一种拍摄参数的调整方法,包括:A method for adjusting shooting parameters, including:
    获取待拍摄对象的第一预览图像,其中,所述第一预览图像是由摄像头根据第一拍摄参数捕获的所述待拍摄对象的画面;Obtaining a first preview image of the object to be photographed, wherein the first preview image is a screen of the object to be photographed captured by the camera according to the first photographing parameter;
    通过预先设置的场景识别模型识别所述第一预览图像的拍摄场景,其中,所述场景识别模型为根据图片样本集训练的深度学习模型;Identifying a shooting scene of the first preview image by a preset scene recognition model, wherein the scene recognition model is a deep learning model trained according to a picture sample set;
    在所述拍摄场景为预设场景的情况下,根据所述预设场景对应的第二拍摄参数调整所述摄像头的第一拍摄参数,以根据所述第二拍摄参数对所述待拍摄对象进行拍摄。Adjusting the first shooting parameter of the camera according to the second shooting parameter corresponding to the preset scene, in the case that the shooting scene is a preset scene, to perform the object to be photographed according to the second shooting parameter. Shooting.
  2. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    获取服务器发送的场景识别模型,其中,所述场景识别模型为由服务器根据图片样本集训练的深度学习模型,且所述图片样本集包括对用于识别拍摄场景的目标对象进行位置标记的图片样本。Acquiring a scene recognition model sent by the server, wherein the scene recognition model is a deep learning model trained by the server according to the picture sample set, and the picture sample set includes a picture sample for performing position marking on the target object for identifying the shooting scene .
  3. 根据权利要求1所述的方法,其中,在所述拍摄场景为预设场景的情况下,根据所述预设场景对应的第二拍摄参数调整所述摄像头的第一拍摄参数,包括:The method of claim 1, wherein, in the case that the shooting scene is a preset scene, adjusting the first shooting parameter of the camera according to the second shooting parameter corresponding to the preset scene comprises:
    将所述拍摄场景与预设场景库中的预设场景进行匹配;Matching the shooting scene with a preset scene in a preset scene library;
    确定与所述拍摄场景匹配成功的预设场景,获取所述预设场景对应的第二拍摄参数,并根据所述第二拍摄参数替换所述第一拍摄参数。Determining a preset scene that is successfully matched with the shooting scene, acquiring a second shooting parameter corresponding to the preset scene, and replacing the first shooting parameter according to the second shooting parameter.
  4. 根据权利要求1至3中任一项所述的方法,在根据所述预设场景对应的第二拍摄参数调整所述摄像头的第一拍摄参数之后,还包括:The method according to any one of claims 1 to 3, after adjusting the first shooting parameter of the camera according to the second shooting parameter corresponding to the preset scene, the method further includes:
    获取参数修正操作;Get the parameter correction operation;
    根据所述参数修正操作调整所述第二拍摄参数,得到第三拍摄参数,并采用所述第三拍摄参数执行拍摄操作。Adjusting the second shooting parameter according to the parameter correction operation to obtain a third shooting parameter, and performing a shooting operation by using the third shooting parameter.
  5. 根据权利要求4所述的方法,还包括:The method of claim 4 further comprising:
    记录在设定时间区间内采用所述第三拍摄参数进行拍摄的次数;Recording the number of times of shooting using the third shooting parameter within a set time interval;
    在所述次数超过设定次数阈值的情况下,将所述第三拍摄参数与所述预设场景关联存储于预设场景库。And the third shooting parameter is stored in the preset scene library in association with the preset scene when the number of times exceeds the set number of times threshold.
  6. 根据权利要求1至3中任一项所述的方法,在根据所述第二拍摄参数替换所述第一拍摄参数之后,还包括:The method according to any one of claims 1 to 3, after replacing the first shooting parameter according to the second shooting parameter, further comprising:
    获取第二预览图像,其中,所述第二预览图像是由所述摄像头根据第二拍摄参数捕获的所述待拍摄对象的画面;Acquiring a second preview image, wherein the second preview image is a picture of the object to be photographed captured by the camera according to the second shooting parameter;
    控制所述第一预览图像在预设的第一区域进行显示,并将所述第二预览图像显示在预设 的第二区域,其中,所述第一区域与第二区域构成显示屏的显示区域。Controlling the first preview image to be displayed in a preset first area, and displaying the second preview image in a preset second area, wherein the first area and the second area constitute a display of a display screen region.
  7. 根据权利要求6所述的方法,其中,控制所述第一预览图像在预设的第一区域进行显示,并将所述第二预览图像显示在预设的第二区域,包括:The method according to claim 6, wherein controlling the first preview image to be displayed in a preset first area and displaying the second preview image in a preset second area comprises:
    创建第一图层;Create the first layer;
    获取所述第一预览图像,并对所述第一预览图像进行图像缩小处理,得到第三预览图像;Obtaining the first preview image, and performing image reduction processing on the first preview image to obtain a third preview image;
    在所述第一图层的第一区域绘制所述第三预览图像,其中,所述第一区域的面积小于所述第一图层的面积;Drawing the third preview image in a first area of the first layer, wherein an area of the first area is smaller than an area of the first layer;
    创建第二图层;Create a second layer;
    获取所述第二预览图像,并对所述第二预览图像进行图像缩小处理,得到第四预览图像;Obtaining the second preview image, and performing image reduction processing on the second preview image to obtain a fourth preview image;
    在所述第二图层的第二区域绘制所述第四预览图像,其中,所述第二区域的面积小于所述第二图层的面积,且所述第二图层中与所述第一图层的第一区域对应的第三区域为透明图层;Drawing the fourth preview image in a second region of the second layer, wherein an area of the second region is smaller than an area of the second layer, and the second layer is in the second layer The third area corresponding to the first area of a layer is a transparent layer;
    合成所述第一图层和所述第二图层得到待显示画面,并显示所述待显示画面。The first layer and the second layer are synthesized to obtain a picture to be displayed, and the picture to be displayed is displayed.
  8. 根据权利要求7所述的方法,在显示所述待显示画面之后,还包括:The method of claim 7, after displaying the to-be-displayed screen, further comprising:
    获取针对所述第三预览图像或所述第四预览图像的用户操作;Obtaining a user operation for the third preview image or the fourth preview image;
    根据所述用户操作获取所述第一预览图像或所述第二预览图像,并在所述显示屏的显示区域显示所述第一预览图像或所述第二预览图像;Acquiring the first preview image or the second preview image according to the user operation, and displaying the first preview image or the second preview image in a display area of the display screen;
    在获取到拍摄指示的情况下,执行针对所述第一预览图像或所述第二预览图像的拍摄操作。In the case where the photographing instruction is acquired, a photographing operation for the first preview image or the second preview image is performed.
  9. 根据权利要求8所述的方法,还包括:The method of claim 8 further comprising:
    预先建立所述用户操作、所述第三预览图像和所述第四预览图像、以及处理操作的关联关系,并将所述关联关系存储于操作白名单中;其中,所述处理操作为对所述第一预览图像或所述第二预览图像的处理操作。Establishing an association relationship between the user operation, the third preview image and the fourth preview image, and a processing operation, and storing the association relationship in an operation whitelist; wherein the processing operation is A processing operation of the first preview image or the second preview image.
  10. 一种拍摄参数的调整装置,包括:An adjustment device for shooting parameters, comprising:
    图像获取模块,设置为获取待拍摄对象的第一预览图像,其中,所述第一预览图像是由摄像头根据第一拍摄参数捕获的所述待拍摄对象的画面;An image acquisition module, configured to acquire a first preview image of the object to be photographed, wherein the first preview image is a screen of the object to be photographed captured by the camera according to the first photographing parameter;
    场景识别模块,设置为通过预先设置的场景识别模型识别所述第一预览图像的拍摄场景,其中,所述场景识别模型为根据图片样本集训练的深度学习模型;a scene recognition module, configured to identify a shooting scene of the first preview image by a preset scene recognition model, wherein the scene recognition model is a deep learning model trained according to a picture sample set;
    参数调整模块,设置为在所述拍摄场景为预设场景的情况下,根据所述预设场景对应的第二拍摄参数调整所述摄像头的第一拍摄参数,以根据所述第二拍摄参数对所述待拍摄对象 进行拍摄。a parameter adjustment module, configured to adjust a first shooting parameter of the camera according to a second shooting parameter corresponding to the preset scene, in a case that the shooting scene is a preset scene, according to the second shooting parameter pair The subject to be photographed is photographed.
  11. 根据权利要求10所述的装置,还包括:The apparatus of claim 10 further comprising:
    模型获取模块,设置为获取服务器发送的场景识别模型,其中,所述场景识别模型为由服务器根据图片样本集训练的深度学习模型,且所述图片样本集包括对用于识别拍摄场景的目标对象进行位置标记的图片样本。a model obtaining module, configured to acquire a scene recognition model sent by the server, wherein the scene recognition model is a deep learning model trained by the server according to the image sample set, and the image sample set includes a target object for identifying a shooting scene A sample image of the location marker.
  12. 根据权利要求10所述的装置,其中,所述参数调整模块是设置为:The apparatus of claim 10 wherein said parameter adjustment module is configured to:
    将所述拍摄场景与预设场景库中的预设场景进行匹配;Matching the shooting scene with a preset scene in a preset scene library;
    确定与所述拍摄场景匹配成功的预设场景,获取所述预设场景对应的第二拍摄参数,并根据所述第二拍摄参数替换所述第一拍摄参数。Determining a preset scene that is successfully matched with the shooting scene, acquiring a second shooting parameter corresponding to the preset scene, and replacing the first shooting parameter according to the second shooting parameter.
  13. 根据权利要求10-12中任一项所述的装置,还包括:The apparatus of any of claims 10-12, further comprising:
    场景库更新模块,设置为获取参数修正操作;以及根据所述参数修正操作调整所述第二拍摄参数,得到第三拍摄参数,并采用所述第三拍摄参数执行拍摄操作。The scene library update module is configured to acquire a parameter correction operation; and adjust the second shooting parameter according to the parameter correction operation to obtain a third shooting parameter, and perform a shooting operation by using the third shooting parameter.
  14. 根据权利要求13所述的装置,其中,所述场景库更新模块还设置为:记录在设定时间区间内采用所述第三拍摄参数进行拍摄的次数;以及在所述次数超过设定次数阈值的情况下,将所述第三拍摄参数与所述预设场景关联存储于预设场景库。The apparatus according to claim 13, wherein the scene library updating module is further configured to: record a number of times of shooting with the third shooting parameter within a set time interval; and when the number of times exceeds a set number of times threshold The third shooting parameter is stored in the preset scene library in association with the preset scene.
  15. 根据权利要求10-12中任一项所述的装置,还包括:The apparatus of any of claims 10-12, further comprising:
    第一图像显示模块,设置为获取第二预览图像,其中,所述第二预览图像是由所述摄像头根据第二拍摄参数捕获的所述待拍摄对象的画面;以及a first image display module configured to acquire a second preview image, wherein the second preview image is a screen of the object to be photographed captured by the camera according to the second shooting parameter;
    控制所述第一预览图像在预设的第一区域进行显示,并将所述第二预览图像显示在预设的第二区域,其中,所述第一区域与第二区域构成显示屏的显示区域。Controlling the first preview image to be displayed in a preset first area, and displaying the second preview image in a preset second area, wherein the first area and the second area constitute a display of a display screen region.
  16. 根据权利要求15所述的装置,其中,所述第一图像显示模块是设置为:The apparatus of claim 15 wherein said first image display module is configured to:
    创建第一图层;Create the first layer;
    获取所述第一预览图像,并对所述第一预览图像进行图像缩小处理,得到第三预览图像;Obtaining the first preview image, and performing image reduction processing on the first preview image to obtain a third preview image;
    在所述第一图层的第一区域绘制所述第三预览图像,其中,所述第一区域的面积小于所述第一图层的面积;Drawing the third preview image in a first area of the first layer, wherein an area of the first area is smaller than an area of the first layer;
    创建第二图层;Create a second layer;
    获取所述第二预览图像,并对所述第二预览图像进行图像缩小处理,得到第四预览图像;Obtaining the second preview image, and performing image reduction processing on the second preview image to obtain a fourth preview image;
    在所述第二图层的第二区域绘制所述第四预览图像,其中,所述第二区域的面积小于所述第二图层的面积,且所述第二图层中与所述第一图层的第一区域对应的第三区域为透明图层;Drawing the fourth preview image in a second region of the second layer, wherein an area of the second region is smaller than an area of the second layer, and the second layer is in the second layer The third area corresponding to the first area of a layer is a transparent layer;
    合成所述第一图层和所述第二图层得到待显示画面,并显示所述待显示画面。The first layer and the second layer are synthesized to obtain a picture to be displayed, and the picture to be displayed is displayed.
  17. 根据权利要求16所述的装置,还包括:The apparatus of claim 16 further comprising:
    第二图像显示模块,设置为获取针对所述第三预览图像或所述第四预览图像的用户操作;以及根据所述用户操作获取所述第一预览图像或所述第二预览图像,并在所述显示屏的显示区域显示所述第一预览图像或所述第二预览图像;a second image display module configured to acquire a user operation for the third preview image or the fourth preview image; and acquire the first preview image or the second preview image according to the user operation, and The display area of the display screen displays the first preview image or the second preview image;
    图像拍摄模块,设置为在获取到拍摄指示的情况下,执行针对所述第一预览图像或第二预览图像的拍摄操作。The image capturing module is configured to perform a photographing operation for the first preview image or the second preview image in a case where a photographing instruction is acquired.
  18. 根据权利要求17所述的装置,其中,所述第二图像显示模块还设置为:预先建立所述用户操作、所述第三预览图像和所述第四预览图像、以及处理操作的关联关系,并将所述关联关系存储于操作白名单中;其中,所述处理操作为对所述第一预览图像或所述第二预览图像的处理操作。The apparatus according to claim 17, wherein the second image display module is further configured to: pre-establish an association relationship between the user operation, the third preview image and the fourth preview image, and a processing operation, And storing the association relationship in an operation whitelist; wherein the processing operation is a processing operation on the first preview image or the second preview image.
  19. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如权利要求1-9中任一项所述的拍摄参数的调整方法。A computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements a method of adjusting shooting parameters as claimed in any one of claims 1-9.
  20. 一种移动终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1-9中任一项所述的拍摄参数的调整方法。A mobile terminal comprising a memory, a processor, and a computer program stored on the memory and operable by the processor, the processor executing the computer program to perform the shooting according to any one of claims 1-9 The method of adjusting the parameters.
PCT/CN2018/116588 2017-12-06 2018-11-21 Method and device for adjusting photographing parameter, storage medium, and mobile terminal WO2019109801A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711275920.4 2017-12-06
CN201711275920.4A CN107820020A (en) 2017-12-06 2017-12-06 Method of adjustment, device, storage medium and the mobile terminal of acquisition parameters

Publications (1)

Publication Number Publication Date
WO2019109801A1 true WO2019109801A1 (en) 2019-06-13

Family

ID=61605713

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116588 WO2019109801A1 (en) 2017-12-06 2018-11-21 Method and device for adjusting photographing parameter, storage medium, and mobile terminal

Country Status (2)

Country Link
CN (1) CN107820020A (en)
WO (1) WO2019109801A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062307A (en) * 2019-12-12 2020-04-24 天地伟业技术有限公司 Scene recognition and classification method based on Tiny-Darknet
CN113496475A (en) * 2020-03-19 2021-10-12 杭州海康慧影科技有限公司 Imaging method and device in endoscope camera system and computer equipment
CN113572916A (en) * 2021-07-23 2021-10-29 深圳传音控股股份有限公司 Shooting method, terminal device and storage medium
CN113923361A (en) * 2021-10-19 2022-01-11 北京字节跳动网络技术有限公司 Data processing method, device, equipment and computer readable storage medium
CN113938457A (en) * 2021-09-30 2022-01-14 北京润信恒达科技有限公司 Method, system and equipment for applying remote camera to cloud mobile phone
CN114025079A (en) * 2021-09-29 2022-02-08 大连中科创达软件有限公司 Method, device and system for processing image quality optimization parameters
CN114520878A (en) * 2022-02-11 2022-05-20 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN115174138A (en) * 2022-05-25 2022-10-11 北京旷视科技有限公司 Camera attack detection method, system, device, storage medium and program product
CN116320716A (en) * 2023-05-25 2023-06-23 荣耀终端有限公司 Picture acquisition method, model training method and related devices

Families Citing this family (43)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820020A (en) * 2017-12-06 2018-03-20 广东欧珀移动通信有限公司 Method of adjustment, device, storage medium and the mobile terminal of acquisition parameters
CN108462833B (en) * 2018-03-26 2021-01-22 北京小米移动软件有限公司 Photographing method, photographing device and computer-readable storage medium
WO2019183833A1 (en) * 2018-03-28 2019-10-03 Sony Mobile Communications Inc. Method and apparatus for image formation, capturing apparatus and electronic device
CN108769511A (en) * 2018-05-07 2018-11-06 北京金山安全软件有限公司 Image shooting method and device, electronic equipment and storage medium
CN111279684A (en) * 2018-05-07 2020-06-12 合刃科技(武汉)有限公司 Shooting control method and electronic device
CN108810408A (en) * 2018-06-04 2018-11-13 北京图森未来科技有限公司 A kind of camera control method and device and system
CN108810413B (en) * 2018-06-15 2020-12-01 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN109068056B (en) * 2018-08-17 2021-03-30 Oppo广东移动通信有限公司 Electronic equipment, filter processing method of image shot by electronic equipment and storage medium
CN109089041A (en) * 2018-08-22 2018-12-25 Oppo广东移动通信有限公司 Recognition methods, device, electronic equipment and the storage medium of photographed scene
CN110881101A (en) * 2018-09-06 2020-03-13 奇酷互联网络科技(深圳)有限公司 Shooting method, mobile terminal and device with storage function
CN109068118B (en) * 2018-09-11 2020-11-27 北京旷视科技有限公司 Baseline distance adjusting method and device of double-camera module and double-camera module
CN111512341A (en) * 2018-09-17 2020-08-07 华为技术有限公司 Image processing method and device
CN109120854B (en) * 2018-10-09 2020-10-23 北京旷视科技有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN109218619A (en) * 2018-10-12 2019-01-15 北京旷视科技有限公司 Image acquiring method, device and system
CN109547701B (en) * 2019-01-04 2021-07-09 Oppo广东移动通信有限公司 Image shooting method and device, storage medium and electronic equipment
CN111586282B (en) * 2019-02-18 2021-08-10 北京小米移动软件有限公司 Shooting method, shooting device, terminal and readable storage medium
CN109862272A (en) * 2019-03-05 2019-06-07 联想(北京)有限公司 A kind of processing method and electronic equipment
CN109831628B (en) * 2019-03-14 2021-07-16 Oppo广东移动通信有限公司 Terminal photographing mode adjusting method and device, terminal and storage medium
CN109831629B (en) * 2019-03-14 2021-07-02 Oppo广东移动通信有限公司 Terminal photographing mode adjusting method and device, terminal and storage medium
CN110099212A (en) * 2019-04-25 2019-08-06 努比亚技术有限公司 A kind of photographic method, mobile terminal and computer readable storage medium
CN110191282B (en) * 2019-05-31 2021-12-17 努比亚技术有限公司 Shooting parameter regulation and control method and device and computer readable storage medium
CN110278370B (en) * 2019-06-21 2020-12-18 上海摩象网络科技有限公司 Method and device for automatically generating shooting control mechanism and electronic equipment
CN110430359B (en) * 2019-07-31 2021-07-09 北京迈格威科技有限公司 Shooting assistance method and device, computer equipment and storage medium
CN112399160B (en) * 2019-08-19 2023-04-25 Oppo广东移动通信有限公司 Color management method and device, terminal and storage medium
CN112584033B (en) * 2019-09-29 2022-08-05 浙江宇视科技有限公司 Image acquisition parameter adjusting method, device and equipment
CN111447354B (en) * 2019-10-23 2020-10-27 岳阳县辉通物联网科技有限公司 Intelligent adjustment type camera shooting platform
CN110929615B (en) * 2019-11-14 2022-10-18 RealMe重庆移动通信有限公司 Image processing method, image processing apparatus, storage medium, and terminal device
CN111275756B (en) * 2020-02-20 2023-06-06 珠海格力智能装备有限公司 Spool positioning method and device
CN111327829B (en) * 2020-03-09 2021-12-17 Oppo广东移动通信有限公司 Composition guiding method, composition guiding device, electronic equipment and storage medium
CN111383224B (en) * 2020-03-19 2024-04-16 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN111429377B (en) * 2020-03-31 2023-06-06 Oppo广东移动通信有限公司 Image processing method, terminal and storage medium
CN111654635A (en) * 2020-06-30 2020-09-11 维沃移动通信有限公司 Shooting parameter adjusting method and device and electronic equipment
CN112333392A (en) * 2020-11-03 2021-02-05 珠海格力电器股份有限公司 Picture processing method and device
CN112827172B (en) * 2020-12-31 2023-05-16 上海米哈游天命科技有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN113132625B (en) * 2021-03-11 2023-05-12 宇龙计算机通信科技(深圳)有限公司 Scene image acquisition method, storage medium and equipment
CN115633250A (en) * 2021-07-31 2023-01-20 荣耀终端有限公司 Image processing method and electronic equipment
CN113676734A (en) * 2021-08-05 2021-11-19 维沃移动通信(杭州)有限公司 Image compression method and image compression device
CN113824884B (en) * 2021-10-20 2023-08-08 深圳市睿联技术股份有限公司 Shooting method and device, shooting equipment and computer readable storage medium
CN114286010B (en) * 2021-12-30 2023-12-26 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and medium
CN114401369A (en) * 2022-01-25 2022-04-26 睹煜(上海)信息服务有限公司 Shoe image acquisition method, system and storage medium
CN115103107B (en) * 2022-06-01 2023-11-07 上海传英信息技术有限公司 Focusing control method, intelligent terminal and storage medium
CN114885156B (en) * 2022-07-13 2022-11-04 龙旗电子(惠州)有限公司 Identification method, device, equipment, storage medium and program product
CN115514892B (en) * 2022-09-20 2023-04-18 北京拙河科技有限公司 Camera precision hierarchical selection method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478639A (en) * 2008-01-04 2009-07-08 华晶科技股份有限公司 Scene mode automatic selection method
CN101600054A (en) * 2008-06-02 2009-12-09 卡西欧计算机株式会社 The control method of camera and camera
CN101621628A (en) * 2008-06-02 2010-01-06 卡西欧计算机株式会社 Photographic apparatus, setting method of photography conditions, and recording medium
CN102082899A (en) * 2009-11-27 2011-06-01 索尼公司 Image processing apparatus, image processing method, program, and recording medium
CN102215322A (en) * 2010-04-09 2011-10-12 索尼公司 Imaging control device and imaging control method
CN103581558A (en) * 2012-08-09 2014-02-12 三星电子株式会社 Image capturing apparatus and image capturing method
CN105302872A (en) * 2015-09-30 2016-02-03 努比亚技术有限公司 Image processing device and method
WO2016160221A1 (en) * 2015-03-27 2016-10-06 Intel Corporation Machine learning of real-time image capture parameters
CN106101547A (en) * 2016-07-06 2016-11-09 北京奇虎科技有限公司 The processing method of a kind of view data, device and mobile terminal
CN107820020A (en) * 2017-12-06 2018-03-20 广东欧珀移动通信有限公司 Method of adjustment, device, storage medium and the mobile terminal of acquisition parameters
CN108289169A (en) * 2018-01-09 2018-07-17 北京小米移动软件有限公司 Image pickup method, device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323456B (en) * 2014-12-16 2018-11-30 维沃移动通信有限公司 For the image preview method of filming apparatus, image capturing device
CN105872350A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Adjusting method and device for photographing parameter of camera
CN106851113A (en) * 2017-03-30 2017-06-13 努比亚技术有限公司 A kind of photographic method and mobile terminal based on dual camera
CN107395976B (en) * 2017-08-11 2019-11-19 维沃移动通信有限公司 A kind of acquisition parameters setting method and mobile terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478639A (en) * 2008-01-04 2009-07-08 华晶科技股份有限公司 Scene mode automatic selection method
CN101600054A (en) * 2008-06-02 2009-12-09 卡西欧计算机株式会社 The control method of camera and camera
CN101621628A (en) * 2008-06-02 2010-01-06 卡西欧计算机株式会社 Photographic apparatus, setting method of photography conditions, and recording medium
CN102082899A (en) * 2009-11-27 2011-06-01 索尼公司 Image processing apparatus, image processing method, program, and recording medium
CN102215322A (en) * 2010-04-09 2011-10-12 索尼公司 Imaging control device and imaging control method
CN103581558A (en) * 2012-08-09 2014-02-12 三星电子株式会社 Image capturing apparatus and image capturing method
WO2016160221A1 (en) * 2015-03-27 2016-10-06 Intel Corporation Machine learning of real-time image capture parameters
CN105302872A (en) * 2015-09-30 2016-02-03 努比亚技术有限公司 Image processing device and method
CN106101547A (en) * 2016-07-06 2016-11-09 北京奇虎科技有限公司 The processing method of a kind of view data, device and mobile terminal
CN107820020A (en) * 2017-12-06 2018-03-20 广东欧珀移动通信有限公司 Method of adjustment, device, storage medium and the mobile terminal of acquisition parameters
CN108289169A (en) * 2018-01-09 2018-07-17 北京小米移动软件有限公司 Image pickup method, device, electronic equipment and storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062307A (en) * 2019-12-12 2020-04-24 天地伟业技术有限公司 Scene recognition and classification method based on Tiny-Darknet
CN113496475A (en) * 2020-03-19 2021-10-12 杭州海康慧影科技有限公司 Imaging method and device in endoscope camera system and computer equipment
CN113496475B (en) * 2020-03-19 2024-04-09 杭州海康慧影科技有限公司 Imaging method and device in endoscope image pickup system and computer equipment
CN113572916A (en) * 2021-07-23 2021-10-29 深圳传音控股股份有限公司 Shooting method, terminal device and storage medium
CN113572916B (en) * 2021-07-23 2024-03-15 深圳传音控股股份有限公司 Shooting method, terminal equipment and storage medium
CN114025079A (en) * 2021-09-29 2022-02-08 大连中科创达软件有限公司 Method, device and system for processing image quality optimization parameters
CN114025079B (en) * 2021-09-29 2024-02-13 大连中科创达软件有限公司 Image quality optimization parameter processing method, device and system
CN113938457B (en) * 2021-09-30 2023-11-10 北京润信恒达科技有限公司 Method, system and equipment for cloud mobile phone to apply remote camera
CN113938457A (en) * 2021-09-30 2022-01-14 北京润信恒达科技有限公司 Method, system and equipment for applying remote camera to cloud mobile phone
CN113923361A (en) * 2021-10-19 2022-01-11 北京字节跳动网络技术有限公司 Data processing method, device, equipment and computer readable storage medium
CN114520878A (en) * 2022-02-11 2022-05-20 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN115174138A (en) * 2022-05-25 2022-10-11 北京旷视科技有限公司 Camera attack detection method, system, device, storage medium and program product
CN116320716B (en) * 2023-05-25 2023-10-20 荣耀终端有限公司 Picture acquisition method, model training method and related devices
CN116320716A (en) * 2023-05-25 2023-06-23 荣耀终端有限公司 Picture acquisition method, model training method and related devices

Also Published As

Publication number Publication date
CN107820020A (en) 2018-03-20

Similar Documents

Publication Publication Date Title
WO2019109801A1 (en) Method and device for adjusting photographing parameter, storage medium, and mobile terminal
CN109547701B (en) Image shooting method and device, storage medium and electronic equipment
EP3579544B1 (en) Electronic device for providing quality-customized image and method of controlling the same
WO2020103570A1 (en) Image color correction method, device, storage medium and mobile terminal
JP7058760B2 (en) Image processing methods and their devices, terminals and computer programs
WO2019120032A1 (en) Model construction method, photographing method, device, storage medium, and terminal
US9959484B2 (en) Method and apparatus for generating image filter
US20160291861A1 (en) Photographic apparatus, control method thereof, and non-transitory computer-readable recording medium
WO2016011747A1 (en) Skin color adjustment method and device
US9854161B2 (en) Photographing device and method of controlling the same
TW202029743A (en) Method, apparatus and electronic device for image processing and storage medium thereof
WO2018184260A1 (en) Correcting method and device for document image
US11961278B2 (en) Method and apparatus for detecting occluded image and medium
CN108776822B (en) Target area detection method, device, terminal and storage medium
US11416974B2 (en) Image processing method and electronic device supporting the same
US9948857B2 (en) Method and device for generating images
US11032529B2 (en) Selectively applying color to an image
US10009545B2 (en) Image processing apparatus and method of operating the same
WO2020114097A1 (en) Boundary box determining method and apparatus, electronic device, and storage medium
WO2020133409A1 (en) Photography method and photographic terminal
CN107992894B (en) Image recognition method, image recognition device and computer-readable storage medium
WO2021103919A1 (en) Composition recommendation method and electronic device
CN109218620B (en) Photographing method and device based on ambient brightness, storage medium and mobile terminal
US10902265B2 (en) Imaging effect based on object depth information
KR20210101571A (en) method for generating image and electronic device thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18885586

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18885586

Country of ref document: EP

Kind code of ref document: A1