WO2022028184A1 - Photography control method and apparatus, electronic device, and storage medium - Google Patents

Photography control method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2022028184A1
WO2022028184A1 PCT/CN2021/104515 CN2021104515W WO2022028184A1 WO 2022028184 A1 WO2022028184 A1 WO 2022028184A1 CN 2021104515 W CN2021104515 W CN 2021104515W WO 2022028184 A1 WO2022028184 A1 WO 2022028184A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
quality evaluation
image quality
evaluation result
shooting
Prior art date
Application number
PCT/CN2021/104515
Other languages
French (fr)
Chinese (zh)
Inventor
陈雪繁
Original Assignee
RealMe重庆移动通信有限公司
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 RealMe重庆移动通信有限公司 filed Critical RealMe重庆移动通信有限公司
Publication of WO2022028184A1 publication Critical patent/WO2022028184A1/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Definitions

  • the present application relates to image processing technology, and in particular, to a shooting control method, device, electronic device, and storage medium.
  • the electronic device When a user shoots with an electronic device with a shooting function, the electronic device displays grid lines on the image display interface, automatically adjusts shooting parameters by recognizing the shooting scene, or assists the user to complete shooting by means of gesture shooting.
  • the existing shooting control solution can only provide users with basic shooting suggestions, and still requires the user to manually operate the shooting button to shoot. Poor quality, affecting the shooting performance of electronic equipment.
  • the embodiments of the present application expect to provide a photographing control method, apparatus, electronic device, and storage medium.
  • a shooting control method comprising:
  • control the image acquisition unit When shooting the target shooting scene, control the image acquisition unit to collect at least one preview image of the target shooting scene;
  • a target shot image for the target shot scene is determined from the at least one frame of preview image.
  • a shooting control device comprising:
  • control unit configured to control the image acquisition unit to collect at least one preview image of the target shooting scene when shooting the target shooting scene
  • an evaluation unit configured to input the preview image into an image quality evaluation model constructed based on a deep learning algorithm to obtain an image quality evaluation result of the preview image
  • a determination unit configured to determine, from the at least one frame of preview image, a target shot image for the target shot scene based on an image quality evaluation result of the preview image.
  • an electronic device comprising: a processor and a memory configured to store a computer program executable on the processor, wherein the processor is configured to execute the aforementioned method when the computer program is executed. step.
  • a computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the aforementioned method.
  • Embodiments of the present application provide a shooting control method, device, electronic device, and storage medium.
  • the method includes: when shooting a target shooting scene, controlling an image acquisition unit to collect at least one frame of preview image of the target shooting scene;
  • the preview image is input into an image quality evaluation model constructed based on a deep learning algorithm, and an image quality evaluation result of the preview image is obtained; based on the image quality evaluation result of the preview image, it is determined from the at least one frame of preview image.
  • An image is captured for the target of the target capture scene.
  • FIG. 1 is a first schematic flowchart of a shooting control method in an embodiment of the present application
  • FIG. 2 is a first schematic diagram of a shooting preview interface in an embodiment of the present application
  • FIG. 3 is a second schematic diagram of a shooting preview interface in an embodiment of the present application.
  • FIG. 4 is a second schematic flowchart of the shooting control method in the embodiment of the present application.
  • FIG. 5 is a third schematic flowchart of the shooting control method in the embodiment of the present application.
  • FIG. 6 is a schematic diagram of the construction principle of the IQA model in the embodiment of the application.
  • FIG. 7 is a schematic diagram of the detection principle of the IQA model in the embodiment of the application.
  • FIG. 8 is a schematic diagram of a camera frame in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of the composition and structure of the photographing control device in the embodiment of the application.
  • FIG. 10 is a schematic diagram of a composition structure of an electronic device in an embodiment of the present application.
  • the embodiment of the present application provides a shooting control method, which can be applied to an electronic device with a shooting function. As shown in FIG. 1 , the method may specifically include:
  • Step 101 when shooting the target shooting scene, control the image acquisition unit to collect at least one frame of preview image of the target shooting scene;
  • a user uses an electronic device with a shooting function to shoot a target shooting scene, and when the user performs a shooting start operation on the electronic device to generate a start control command, the electronic device starts to collect a preview image in response to the start control command.
  • the startup control instruction may be a button instruction, a touch instruction, or a voice instruction.
  • the method for obtaining the control instruction may include: obtaining the key command collected by the key input unit; obtaining the touch control command collected by the touch control unit; and obtaining the voice command collected by the voice collecting unit.
  • the electronic devices may be smart phones, tablet computers, portable multimedia players, virtual reality devices, wearable devices, and the like.
  • Step 102 Input the preview image into an image quality evaluation model constructed based on a deep learning algorithm to obtain an image quality evaluation result of the preview image;
  • the method further includes: constructing an initial evaluation model based on a deep learning algorithm; acquiring a training sample set including at least one type of sample image; wherein each type of sample image corresponds to a shooting scene; using the training sample
  • the initial evaluation model is trained on the set, and the trained image quality evaluation model is obtained.
  • the initial evaluation model can use lightweight solutions for mobile terminals, such as: mobilenet-V3, faster-rcnn, yolov3, etc., and implement it based on open source libraries such as python and tensorflow lite.
  • the training sample set can be directly obtained by using the existing image database, and using a large number of resources in the existing image database to train the model, an image quality evaluation model with wider application scenarios can be obtained.
  • ImageNet database For example, ImageNet database, PASCAL VOC database, AFLW face database, LFW face database, etc.
  • the acquiring a training sample set including at least one type of sample image includes: acquiring at least one type of sample image that satisfies a preset sample condition; wherein the preset sample condition includes at least one of the following: a human being The quality of the face feature is higher than the first threshold, and the quality of the image is higher than the second threshold; and the training sample set is composed of at least one type of sample images.
  • the selection of the training sample set will also affect the accuracy of model training, for some shooting scenes that are often used by users or the shooting scenes that users are most concerned about, such as selfie scenes or portrait shooting scenes, high quality can be selected.
  • the trained image quality evaluation model will have higher quality evaluation standards for this type of shooting scene, and can filter out better images from the preview images. image.
  • the quality of facial features is used to characterize the performance of facial features. For example, according to a series of criteria such as face, closed eyes, smile, and light kiss, sample images with facial feature quality higher than the first threshold are selected.
  • the first threshold is one or more thresholds obtained after quantification according to the evaluation criteria of the quality of the facial features.
  • Image quality is used to characterize the overall quality of the image. For example, the image quality is evaluated according to image parameters such as image clarity, 3A status (white balance, exposure time, focal length), and a sample image whose image quality is higher than the second threshold is selected.
  • the threshold is one or more thresholds obtained after quantification according to the evaluation criteria of image quality.
  • the method further includes: controlling the display unit to display the image quality evaluation result of the preview image.
  • the image quality evaluation result can also be displayed in real time to remind the user of the quality of the current preview image, as a basis for the user to adjust the shooting posture or shooting parameters. Improve shooting efficiency.
  • Fig. 2 is the first schematic diagram of the shooting preview interface in the embodiment of the application.
  • the shooting mode and the Selfie preferred mode are the modes that automatically select the best image quality generated by the technical solution of the present application.
  • the default mode of the electronic device can be the ordinary Selfie mode, and the user can switch to the Selfie preferred mode by clicking the switch button.
  • the default mode There is also a preferred mode for selfies. In the selfie preferred mode, the user can generate a start control command by clicking the shooting button at the bottom of the display interface, start collecting the preview image, and use the image quality evaluation model to evaluate the quality of the preview image.
  • FIG. 3 is a second schematic diagram of the shooting preview interface in the embodiment of the present application.
  • evaluation processing of the preview image is started, and the preview interface can display a circle mark to indicate that evaluation is underway.
  • a telescopic progress bar is displayed on the right side of the preview interface to visually display whether the current preview image is close to the Selfie optimization threshold. If the threshold is exceeded, the user can click the shooting button again to complete the shooting, or automatically capture this frame. image and save.
  • Step 103 Based on the image quality evaluation result of the preview image, determine a target shot image for the target shot scene from the at least one frame of preview image.
  • the preview image corresponding to the optimal image quality evaluation result may be selected as the target shot image and saved.
  • the execution subject of steps 101 to 103 may be a processor of an electronic device, and the electronic device may be a smartphone, a wearable device (including a watch, a wristband, smart glasses, etc.), a tablet computer, a virtual reality device, and a vehicle-mounted device. Wait.
  • the electronic device may be a smartphone, a wearable device (including a watch, a wristband, smart glasses, etc.), a tablet computer, a virtual reality device, and a vehicle-mounted device. Wait.
  • the frame preview image avoids the problem of poor shooting effect caused by the user when the user controls the shooting independently, and improves the shooting effect of the electronic device.
  • the photographing control method provided by the embodiment of the present application is further exemplified, as shown in Figure 4, the method may specifically include:
  • Step 401 when a start-up control instruction is detected, control the image acquisition unit to acquire at least one frame of preview image of the target shooting scene;
  • the startup control instruction may be a button instruction, a touch instruction, or a voice instruction.
  • the method for obtaining the control instruction may include: obtaining the key command collected by the key input unit; obtaining the touch control command collected by the touch control unit; and obtaining the voice command collected by the voice collecting unit.
  • Step 402 Input the preview image into an image quality evaluation model constructed based on a deep learning algorithm to obtain an image quality evaluation result of the preview image;
  • the method further includes: constructing an initial evaluation model based on a deep learning algorithm; acquiring a training sample set including at least one type of sample image; wherein each type of sample image corresponds to a shooting scene; using the training sample
  • the initial evaluation model is trained on the set, and the trained image quality evaluation model is obtained.
  • the initial evaluation model can use lightweight solutions for mobile terminals, such as: mobilenet-V3, faster-rcnn, yolov3, etc., and implement it based on open source libraries such as python and tensorflow lite.
  • the training sample set can be directly obtained by using the existing image database, and using a large number of resources in the existing image database to train the model, an image quality evaluation model with wider application scenarios can be obtained.
  • ImageNet database For example, ImageNet database, PASCAL VOC database, AFLW face database, LFW face database, etc.
  • the acquiring a training sample set including at least one type of sample image includes: acquiring at least one type of sample image that satisfies a preset sample condition; wherein the preset sample condition includes at least one of the following: a human being The quality of the face feature is higher than the first threshold, and the quality of the image is higher than the second threshold; and the training sample set is composed of at least one type of sample images.
  • the selection of the training sample set will also affect the accuracy of model training, for some shooting scenes that are often used by users or the shooting scenes that users are most concerned about, such as selfie scenes or portrait shooting scenes, high quality can be selected.
  • the trained image quality evaluation model will have higher quality evaluation standards for this type of shooting scene, and can filter out better images from the preview images. image.
  • the quality of facial features is used to characterize the performance of facial features. For example, according to a series of criteria such as face, closed eyes, smile, and light kiss, sample images with facial feature quality higher than the first threshold are selected.
  • the first threshold is one or more thresholds obtained after quantification according to the evaluation criteria of the quality of the facial features.
  • Image quality is used to characterize the overall quality of the image. For example, sample images with image quality higher than the second threshold are selected according to image parameters such as image clarity, 3A status (white balance, exposure time, focal length), and the second threshold is based on the image quality. One or more thresholds obtained after quantification of quality evaluation criteria.
  • the acquiring a training sample set including at least one type of sample images includes: acquiring at least one type of sample images that meet preset sample conditions; performing data enhancement on the sample images to obtain more sample images; of sample images to establish the training sample set.
  • the sample images can be enhanced to obtain more training samples. Multiple images can be obtained on the basis of one image, and the number of samples can be enlarged, which can improve model training. efficient. Enhancement processing includes: random cropping, horizontal flipping, size scaling, hue adjustment, brightness adjustment, saturation adjustment and other preprocessing for a given sample image.
  • the output image quality evaluation result may also include the evaluation result of the facial feature quality and/or the evaluation result of the image quality.
  • the method further includes: controlling the display unit to display the image quality evaluation result of the preview image.
  • the image quality evaluation result can also be displayed in real time to remind the user of the quality of the current preview image, which can be used as a basis for the user to adjust the shooting posture or shooting parameters. , to improve shooting efficiency.
  • Step 403 Based on the image quality evaluation result of the preview image, select the optimal image quality evaluation result
  • the optimal image quality evaluation result is the evaluation result of the frame of preview image. That is to say, the collected preview images are evaluated in sequence, and when it is detected that the evaluation result of the preview image of the current frame meets the image preference condition, the preview image of the current frame is directly used as the target image.
  • the optimal image quality evaluation result is selected according to the corresponding at least two image quality evaluation results.
  • the optimal facial feature quality, or the optimal image quality, or the one with the best comprehensive image quality is selected as the optimal image quality.
  • Image quality evaluation results when the image quality evaluation result includes the evaluation result of the facial feature quality and/or the evaluation result of the image quality, the optimal facial feature quality, or the optimal image quality, or the one with the best comprehensive image quality is selected as the optimal image quality.
  • Step 404 Determine whether the optimal image quality evaluation result satisfies the image preference condition, if yes, go to Step 405; if not, go back to Step 406;
  • the image preference condition includes at least one image quality evaluation criterion, wherein different image quality evaluation criteria are used to evaluate different evaluation results; correspondingly, it is determined whether the optimal image quality evaluation result satisfies Image optimization conditions, including: judging whether at least one evaluation result in the optimal image quality evaluation results satisfies the corresponding image quality evaluation standard; when each evaluation result satisfies the corresponding image quality evaluation standard, determining the optimal image quality evaluation result The image preference condition is satisfied; when there are some evaluation results that do not satisfy the corresponding image quality evaluation standard, it is determined that the optimal image quality evaluation result does not satisfy the image preference condition. That is to say, according to at least one image quality evaluation standard specified in the image preference condition, it is judged whether the optimal image quality evaluation result satisfies all the evaluation standards. ; otherwise, reacquire the preview image.
  • one image quality evaluation criterion may be that the facial feature quality is higher than the first threshold
  • another image quality evaluation criterion may be that the image quality is higher than the second threshold
  • another image quality evaluation criterion may be the overall image quality. above the third threshold.
  • the comprehensive image quality is an evaluation result after comprehensively considering the facial feature quality and the image quality, for example, obtained by performing a weighted operation on the evaluation results of the facial feature quality and the image quality.
  • the image quality evaluation result may include at least one of the following: a face feature quality evaluation result, an image quality evaluation result, and an image comprehensive quality evaluation result.
  • the image quality evaluation result includes a comprehensive image quality score
  • the comprehensive image quality score is a quantified value of the comprehensive image quality.
  • the corresponding image quality evaluation standard can be that the comprehensive image quality score is greater than 95 points, and the preview image is considered to be a high-quality image if it is greater than 95 points, and the preview image is considered to be a high-quality image if it is less than or equal to 95 points.
  • the preview image is a low-quality image.
  • Step 405 Determine the preview image corresponding to the optimal image quality evaluation result as the target shot image
  • the method when the optimal image quality evaluation result satisfies the image preference condition, the method further includes: generating a photographing control instruction; in response to the photographing control instruction, controlling the display unit to display the target photographed image, and save all the photographed images. Take an image of the target.
  • Step 406 control the image acquisition unit to continue to acquire at least one frame of preview image of the target shooting scene, and return to step 402 .
  • the optimal preview image is selected for the user as the image obtained by this shooting operation by reasonably setting the image preference conditions.
  • the current preview image does not meet the image selection conditions, it means that the current shooting posture or shooting parameters are unreasonable, and the preview image needs to be collected again for judgment.
  • the method further includes: generating and outputting photographing prompt information to prompt the user to adjust the photographing information; wherein the photographing information includes at least one of the following: Items: the shooting parameters of the image acquisition unit, the shooting posture of the image acquisition unit, and the shooting object posture.
  • the shooting information that can be adjusted by the user may specifically include multiple types.
  • the shooting parameters include: shutter, aperture, sensitivity, whether to turn on the flash, etc.
  • the shooting posture of the image acquisition unit includes the shooting position, shooting height, and rotation angle of the camera. facial features.
  • the types of different shooting information that affect the image quality are also different.
  • the posture of the photographed object will affect the quality of facial features
  • the photographing parameters and photographing posture of the image acquisition unit will affect the overall quality of the image. Therefore, the shooting information that affects the evaluation result can be adjusted according to the influence relationship between the shooting information and the evaluation result.
  • the generating and outputting the shooting prompt information includes: the image optimization condition includes at least one image quality evaluation standard, and determining the target evaluation result that does not meet the image quality evaluation standard; Based on the influence relationship between the shooting information and the evaluation result, corresponding shooting prompt information is generated for the target evaluation result.
  • the prompt information may prompt the user to open his eyes; or the factor affecting the quality of the human face is that the face of the person is occluded. , prompts the user to adjust the character's position.
  • the prompt information can prompt the user to adjust the camera angle; or the factor affecting the image quality is the image brightness, the prompt information can prompt the user to adjust the camera angle.
  • the user turns on the flash.
  • the prompt information may also prompt a specific adjustment category.
  • the frame preview image avoids the problem of poor shooting effect caused by the user when the user controls the shooting independently, and improves the shooting effect of the electronic device.
  • the photographing control method provided by the embodiment of the present application is further exemplified.
  • the method may specifically include:
  • Step 501 the user clicks the shooting button to start shooting
  • the camera is turned on to enter the Selfie preferred mode, and the user clicks the shooting button to start shooting.
  • Step 502 control the camera to capture the preview image
  • the camera captures the preview image and displays the preview image to the user in real time.
  • Step 503 send the preview image into an image quality assessment (Image Quality Assessment, IQA) model to obtain an image quality score;
  • image quality Assessment Image Quality Assessment, IQA
  • the method further includes: acquiring at least one type of sample image that meets preset sample conditions; wherein, the preset sample conditions include at least one of the following: the quality of the facial features is higher than the first threshold, and the quality of the images is higher than the second threshold; use at least one type of sample images to form the training sample set; use the training sample set to perform model training to obtain an IQA model.
  • the preset sample conditions include at least one of the following: the quality of the facial features is higher than the first threshold, and the quality of the images is higher than the second threshold; use at least one type of sample images to form the training sample set; use the training sample set to perform model training to obtain an IQA model.
  • FIG. 6 is a schematic diagram of the construction principle of the IQA model in the embodiment of the application.
  • open-source libraries such as python and tensorflow lite are used, and lightweight networks such as mobilenet-V3 and Image Content Model (ICM) are used.
  • ICM Image Content Model
  • FIG. 7 is a schematic diagram of the detection principle of the IQA model in the embodiment of the application.
  • the camera APP collects the preview image frame, displays the preview image on the preview interface, sends the preview image to the processing unit, and the processing unit runs the IQA model, Perform image quality evaluation on the preview image, output the image quality evaluation result, and control the shooting function of the camera APP according to the image quality evaluation result.
  • the IQA model can also display the evaluation result next to the corresponding preview image in real time to remind the user of the quality of the current preview image, which can be used as a way for the user to adjust the shooting posture or shooting parameters. According to this, by increasing the human-computer interaction, the shooting efficiency is improved.
  • Step 504 Determine whether the image quality score is greater than the score threshold, if yes, go to Step 505; if not, go back to Step 502;
  • Step 505 generating a shooting control instruction
  • Step 506 In response to the photographing control instruction, control the display unit to display the target photographed image, and save the target photographed image.
  • the camera APP when the camera APP is in the Selfie preferred mode, the camera is controlled to collect the preview image and save the corresponding timestamp, and the IQA model scores the preview image, and the obtained facial feature scoring result is higher than the first threshold (for example, the first threshold value). 95 points, out of 100 points), issue a shooting control command, save the preview image of the frame corresponding to the timestamp, and complete a photo shoot.
  • the first threshold for example, the first threshold value
  • FIG. 8 is a schematic diagram of a camera frame in an embodiment of the application.
  • the camera frame includes a camera preprocessing process (Camera Process), a camera service process (Camera Sever), and a camera hardware abstraction layer (Camera Hardware Abstraction Layer, Camera HAL).
  • the camera preprocessing process includes camera APP and algorithm processing service unit (Algorithm Process Service, APS).
  • the camera APP specifically includes a picture processing subunit and a video recording processing subunit, as well as an APS adapter and an APS service unit that interact with the APS unit, and the camera APP can initialize the APS.
  • the APS unit includes a preprocessing unit.
  • the preprocessing unit includes an Image Quality Assessment (IQA) model and an Automatic scene detection (ASD) model.
  • the IQA model is used to evaluate the image quality of the preview image. As a result, a preview image with optimal image quality can be determined according to the evaluation results, and the ASD model is used to automatically identify the shooting scene and instruct to adjust the shooting parameters of the camera.
  • Camera Process sends a capture request (Capture Request) to Camera Sever, and receives Camera Sever's capture result (Capture Result), Camera Sever and Camera HAL interact through interface definition language, so that camera APP can work correctly with Camera hardware , so as to ensure that all the functions of the Camera can work properly.
  • the embodiment of the present application also provides a shooting control device, as shown in FIG. 9 , the device includes:
  • the control unit 901 is configured to control the image acquisition unit to collect at least one frame of preview image of the target shooting scene when shooting the target shooting scene;
  • the processing unit 902 is configured to input the preview image into an image quality evaluation model constructed based on a deep learning algorithm to obtain an image quality evaluation result of the preview image;
  • the determining unit 903 is configured to determine, based on the image quality evaluation result of the preview image, a target shot image for the target shot scene from the at least one frame of preview image.
  • control unit 901 is configured to control the image acquisition unit to acquire at least one frame of preview image of the target shooting scene when the start control instruction is detected;
  • the determining unit 903 is configured to select the optimal image quality evaluation result based on the image quality evaluation result of the preview image; determine whether the optimal image quality evaluation result satisfies the image preference condition; the optimal image quality evaluation When the result satisfies the image optimization condition, determine the preview image corresponding to the optimal image quality evaluation result as the target shot image;
  • the control unit 901 is configured to control the image acquisition unit to continue to collect at least one frame of preview image of the target shooting scene and input it into the image quality evaluation model when the optimal image quality evaluation result does not meet the image preference condition.
  • the image preference condition includes at least one image quality evaluation criterion, wherein different image quality evaluation criteria are used to evaluate different evaluation results; the determining unit 903 is configured to determine at least one of the optimal image quality evaluation results Whether an evaluation result satisfies the corresponding image quality evaluation standard; when each evaluation result satisfies the corresponding image quality evaluation standard, it is determined that the optimal image quality evaluation result satisfies the image optimization condition; when there are some evaluation results that do not meet the corresponding image quality evaluation standard When the image quality evaluation standard is used, it is determined that the optimal image quality evaluation result does not satisfy the image optimization condition.
  • the determining unit 903 is configured to generate a photographing control instruction when the optimal image quality evaluation result satisfies the image preference condition; in response to the photographing control instruction, control the display unit to display the target photographed image, and Save the target shot image.
  • the determining unit 903 is configured to generate and output photographing prompt information when the optimal image quality evaluation result does not satisfy the image preference condition, so as to prompt the user to adjust the photographing information; wherein the photographing information includes the following: At least one item: the shooting parameters of the image acquisition unit, the shooting posture of the image acquisition unit, and the shooting object posture.
  • control unit 901 is configured to control the image acquisition unit to acquire at least one frame of preview image of the target shooting scene when a start control instruction is detected;
  • the determining unit 903 is configured to select an optimal image quality evaluation result based on the image quality evaluation result of the preview image; and determine the preview image corresponding to the optimal image quality evaluation result as the target shot image.
  • the preview image corresponding to the optimal image quality evaluation result may be selected as the target shot image and saved.
  • the processing unit 902 is configured to, after obtaining the image quality evaluation result of the preview image, control the display unit to display the image quality evaluation result of the preview image.
  • the apparatus further includes: a construction unit (not shown in FIG. 8 ), configured to construct an initial evaluation model based on a deep learning algorithm; obtain a training sample set including at least one type of sample images; wherein each type of The sample image corresponds to a shooting scene; the initial evaluation model is trained by using the training sample set, and the trained image quality evaluation model is obtained.
  • a construction unit (not shown in FIG. 8 ), configured to construct an initial evaluation model based on a deep learning algorithm; obtain a training sample set including at least one type of sample images; wherein each type of The sample image corresponds to a shooting scene; the initial evaluation model is trained by using the training sample set, and the trained image quality evaluation model is obtained.
  • the construction unit is configured to obtain at least one type of sample image that satisfies a preset sample condition; wherein the preset sample condition includes at least one of the following: the facial feature quality is higher than a first threshold, the image quality higher than the second threshold; using at least one type of sample images to form the training sample set.
  • the embodiment of the present application also provides an electronic device.
  • the electronic device includes: a processor 1001 and a computer program configured to store a computer program that can be run on the processor. memory 1002;
  • the processor 1001 is configured to execute the method steps in the foregoing embodiments when running a computer program.
  • bus system 1003 various components in the electronic device are coupled together through a bus system 1003 .
  • bus system 1003 is used to implement the connection communication between these components.
  • the bus system 1003 also includes a power bus, a control bus, and a status signal bus.
  • the various buses are labeled as bus system 1003 in FIG. 9 .
  • the above-mentioned processor may be an application specific integrated circuit (ASIC, Application Specific Integrated Circuit), a digital signal processing device (DSPD, Digital Signal Processing Device), a programmable logic device (PLD, Programmable Logic Device), a field programmable At least one of a programmable gate array (Field-Programmable Gate Array, FPGA), a controller, a microcontroller, and a microprocessor.
  • ASIC Application Specific Integrated Circuit
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • controller a microcontroller
  • microprocessor programmable gate array
  • the above-mentioned memory can be a volatile memory (volatile memory), such as random access memory (RAM, Random-Access Memory); or a non-volatile memory (non-volatile memory), such as read-only memory (ROM, Read-Only Memory) Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid-state drive (SSD, Solid-State Drive); or a combination of the above types of memory, and provide instructions and data to the processor.
  • volatile memory such as random access memory (RAM, Random-Access Memory
  • non-volatile memory such as read-only memory (ROM, Read-Only Memory) Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid-state drive (SSD, Solid-State Drive
  • SSD Solid-State Drive
  • a frame preview image avoids the problem of poor shooting effect caused by the user when the user controls the shooting independently, and improves the shooting effect of the electronic device.
  • Embodiments of the present application further provide a computer-readable storage medium for storing a computer program.
  • the computer-readable storage medium can be applied to any electronic device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the processors in the various methods of the embodiments of the present application, in order to It is concise and will not be repeated here.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms. of.
  • the unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present invention may all be integrated into one processing module, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integration
  • the unit can be implemented either in the form of hardware or in the form of hardware plus software functional units.
  • the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute Including the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk and other various A medium on which program code can be stored.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk and other various A medium on which program code can be stored.
  • Embodiments of the present application provide a shooting control method, device, electronic device, and storage medium.
  • the method includes: when shooting a target shooting scene, controlling an image acquisition unit to collect at least one frame of preview image of the target shooting scene;
  • the preview image is input into an image quality evaluation model constructed based on a deep learning algorithm, and an image quality evaluation result of the preview image is obtained; based on the image quality evaluation result of the preview image, it is determined from the at least one frame of preview image.
  • An image is captured for the target of the target capture scene.

Abstract

Disclosed in the embodiments of the present application are a photography control method and apparatus, an electronic device, and a storage medium, the method comprising: when photographing a target photography scene, controlling an image acquisition unit to acquire at least one preview image frame of the target photography scene; inputting the preview image into an image quality evaluation model constructed on the basis of a deep learning algorithm to obtain an image quality evaluation result of the preview image; and, on the basis of the image quality evaluation result of the preview image, determining from the at least one preview image frame a target photography image of the target photography scene. Thus, it is only necessary to add to existing electronic devices an image quality evaluation model used for performing image quality evaluation on preview images acquired during the photography process and, on the basis of the image quality evaluation result, automatically selecting a preview image frame with the best image quality, thereby avoiding the problem of poor photography effects due to user causes when the user autonomously controls the photography, and improving the photography effect of the electronic device.

Description

一种拍摄控制方法、装置、电子设备及存储介质A shooting control method, device, electronic device and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请基于申请号为202010768972.0、申请日为2020年08月03日、发明创造名称为“一种拍摄控制方法、装置、电子设备及存储介质”的在先中国专利申请提出,并要求该在先中国专利申请的优先权,该在先中国专利申请的全部内容在此以全文引入的方式引入本申请作为参考。This application is based on the prior Chinese patent application with the application number of 202010768972.0, the filing date of August 3, 2020, and the invention-creation title of "a photographing control method, device, electronic device and storage medium", and requires the prior Chinese patent application. The priority of the Chinese patent application, the entire content of the earlier Chinese patent application is hereby incorporated by reference into this application in its entirety.
技术领域technical field
本申请涉及图像处理技术,尤其涉及一种拍摄控制方法、装置、电子设备及存储介质。The present application relates to image processing technology, and in particular, to a shooting control method, device, electronic device, and storage medium.
背景技术Background technique
用户在使用具备拍摄功能的电子设备进行拍摄时,电子设备通过在图像显示界面显示网格线,通过识别拍摄场景自动调整拍摄参数,或者通过手势拍摄等方式来辅助用户完成拍摄。但是现有拍摄控制方案只能向用户提供基本的拍摄建议,仍然需要用户手动操作拍摄按键进行拍摄,但在操作拍摄按键的过程中可能受到手抖或者拍摄对象移动的影响,导致拍摄到的图像质量不佳,影响电子设备的拍摄性能。When a user shoots with an electronic device with a shooting function, the electronic device displays grid lines on the image display interface, automatically adjusts shooting parameters by recognizing the shooting scene, or assists the user to complete shooting by means of gesture shooting. However, the existing shooting control solution can only provide users with basic shooting suggestions, and still requires the user to manually operate the shooting button to shoot. Poor quality, affecting the shooting performance of electronic equipment.
发明内容SUMMARY OF THE INVENTION
为解决上述技术问题,本申请实施例期望提供一种拍摄控制方法、装置、电子设备及存储介质。In order to solve the above technical problems, the embodiments of the present application expect to provide a photographing control method, apparatus, electronic device, and storage medium.
本申请的技术方案是这样实现的:The technical solution of the present application is realized as follows:
第一方面,提供了一种拍摄控制方法,所述方法包括:In a first aspect, a shooting control method is provided, the method comprising:
对目标拍摄场景进行拍摄时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;When shooting the target shooting scene, control the image acquisition unit to collect at least one preview image of the target shooting scene;
将所述预览图像输入到基于深度学习算法构建的图像质量评价模型中,得到所述预览图像的图像质量评价结果;Inputting the preview image into an image quality evaluation model constructed based on a deep learning algorithm to obtain an image quality evaluation result of the preview image;
基于所述预览图像的图像质量评价结果,从所述至少一帧预览图像中确定针对所述目标拍摄场景的目标拍摄图像。Based on the image quality evaluation result of the preview image, a target shot image for the target shot scene is determined from the at least one frame of preview image.
第二方面,提供了一种拍摄控制装置,所述装置包括:In a second aspect, a shooting control device is provided, the device comprising:
控制单元,配置为对目标拍摄场景进行拍摄时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;a control unit, configured to control the image acquisition unit to collect at least one preview image of the target shooting scene when shooting the target shooting scene;
评价单元,配置为将所述预览图像输入到基于深度学习算法构建的图像质量评价模型中,得到所述预览图像的图像质量评价结果;an evaluation unit, configured to input the preview image into an image quality evaluation model constructed based on a deep learning algorithm to obtain an image quality evaluation result of the preview image;
确定单元,配置为基于所述预览图像的图像质量评价结果,从所述至少一帧预览图像中确定针对所述目标拍摄场景的目标拍摄图像。A determination unit configured to determine, from the at least one frame of preview image, a target shot image for the target shot scene based on an image quality evaluation result of the preview image.
第三方面,提供了一种电子设备,包括:处理器和配置为存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器配置为运行所述计算机程序时,执行前述方法的步骤。In a third aspect, an electronic device is provided, comprising: a processor and a memory configured to store a computer program executable on the processor, wherein the processor is configured to execute the aforementioned method when the computer program is executed. step.
第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,其中,该计算机程序被处理器执行时实现前述方法的步骤。In a fourth aspect, there is provided a computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the aforementioned method.
本申请实施例提供了一种拍摄控制方法、装置、电子设备及存储介质,该方法包括:对目标拍摄场景进行拍摄时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;将所述预览图像输入到基于深度学习算法构建的图像质量评价模型中,得到所述预览图像的图像质量评价结果;基于所述预览图像的图像质量评价结果,从所述至少一帧预览图像中确定针对所述目标拍摄场景的目标拍摄图像。如此,只需在现有的电子设备中增加图像质量评价模型,用于在拍摄过程中对采集到的预览图像进行图像质量评价,根据图像质量评价结果自动选择图像质量最优的一帧预览图像,避免用户自主控制拍摄时由于用户原因导致的拍摄效果不佳的问题,提高电子设备的拍摄效果。Embodiments of the present application provide a shooting control method, device, electronic device, and storage medium. The method includes: when shooting a target shooting scene, controlling an image acquisition unit to collect at least one frame of preview image of the target shooting scene; The preview image is input into an image quality evaluation model constructed based on a deep learning algorithm, and an image quality evaluation result of the preview image is obtained; based on the image quality evaluation result of the preview image, it is determined from the at least one frame of preview image. An image is captured for the target of the target capture scene. In this way, it is only necessary to add an image quality evaluation model to the existing electronic equipment, which is used to evaluate the image quality of the collected preview images during the shooting process, and automatically select a preview image with the best image quality according to the image quality evaluation results. , to avoid the problem of poor shooting effect caused by the user when the user autonomously controls the shooting, and improve the shooting effect of the electronic device.
附图说明Description of drawings
图1为本申请实施例中拍摄控制方法的第一流程示意图;FIG. 1 is a first schematic flowchart of a shooting control method in an embodiment of the present application;
图2为本申请实施例中拍摄预览界面的第一示意图;2 is a first schematic diagram of a shooting preview interface in an embodiment of the present application;
图3为本申请实施例中拍摄预览界面的第二示意图;3 is a second schematic diagram of a shooting preview interface in an embodiment of the present application;
图4为本申请实施例中拍摄控制方法的第二流程示意图;FIG. 4 is a second schematic flowchart of the shooting control method in the embodiment of the present application;
图5为本申请实施例中拍摄控制方法的第三流程示意图;FIG. 5 is a third schematic flowchart of the shooting control method in the embodiment of the present application;
图6为本申请实施例中IQA模型构建原理示意图;6 is a schematic diagram of the construction principle of the IQA model in the embodiment of the application;
图7为本申请实施例中IQA模型的检测原理示意图;7 is a schematic diagram of the detection principle of the IQA model in the embodiment of the application;
图8为本申请实施例中相机框架示意图;8 is a schematic diagram of a camera frame in an embodiment of the present application;
图9为本申请实施例中拍摄控制装置的组成结构示意图;FIG. 9 is a schematic diagram of the composition and structure of the photographing control device in the embodiment of the application;
图10为本申请实施例中电子设备的组成结构示意图。FIG. 10 is a schematic diagram of a composition structure of an electronic device in an embodiment of the present application.
具体实施方式detailed description
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明实施例。In order to understand the features and technical contents of the embodiments of the present invention in more detail, the implementation of the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
本申请实施例提供了一种拍摄控制方法,可以应用于具备拍摄功能的电子设备,如图1所示,该方法具体可以包括:The embodiment of the present application provides a shooting control method, which can be applied to an electronic device with a shooting function. As shown in FIG. 1 , the method may specifically include:
步骤101:对目标拍摄场景进行拍摄时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;Step 101: when shooting the target shooting scene, control the image acquisition unit to collect at least one frame of preview image of the target shooting scene;
具体的,用户使用具备拍摄功能的电子设备对目标拍摄场景进行拍摄,当用户对电子设备执行启动拍摄操作生成启动控制指令,电子设备响应启动控制指令开始采集预览图像。Specifically, a user uses an electronic device with a shooting function to shoot a target shooting scene, and when the user performs a shooting start operation on the electronic device to generate a start control command, the electronic device starts to collect a preview image in response to the start control command.
实际应用中,启动控制指令可以为按键指令、触控指令、语音指令。具体的,获取控制指令的方法可以有:获取按键输入单元采集的按键指令;获取触控单元采集的触控指令;获取语音采集单元采集的语音指令。In practical applications, the startup control instruction may be a button instruction, a touch instruction, or a voice instruction. Specifically, the method for obtaining the control instruction may include: obtaining the key command collected by the key input unit; obtaining the touch control command collected by the touch control unit; and obtaining the voice command collected by the voice collecting unit.
实际应用中,电子设备可以为智能手机、平板电脑、便携式多媒体播放器、虚拟现实设备和可穿戴设备等。In practical applications, the electronic devices may be smart phones, tablet computers, portable multimedia players, virtual reality devices, wearable devices, and the like.
步骤102:将所述预览图像输入到基于深度学习算法构建的图像质量评价模型中,得到所述预览图像的图像质量评价结果;Step 102: Input the preview image into an image quality evaluation model constructed based on a deep learning algorithm to obtain an image quality evaluation result of the preview image;
在一些实施例中,该方法还包括:基于深度学习算法构建初始评价模 型;获取包含至少一类样本图像的训练样本集;其中,每一类样本图像对应一种拍摄场景;利用所述训练样本集训练所述初始评价模型,得到训练好的所述图像质量评价模型。In some embodiments, the method further includes: constructing an initial evaluation model based on a deep learning algorithm; acquiring a training sample set including at least one type of sample image; wherein each type of sample image corresponds to a shooting scene; using the training sample The initial evaluation model is trained on the set, and the trained image quality evaluation model is obtained.
这里,初始评价模型可以使用针对移动终端的轻量级解决方案,比如:mobilenet-V3、faster-rcnn、yolov3等,并基于python、tensorflow lite等开元库来实现。Here, the initial evaluation model can use lightweight solutions for mobile terminals, such as: mobilenet-V3, faster-rcnn, yolov3, etc., and implement it based on open source libraries such as python and tensorflow lite.
这里,训练样本集可以直接利用现有的图像数据库得到,利用现有图像数据库中大量资源训练模型,能够得到应用场景更广的图像质量评价模型。比如,ImageNet数据库、PASCAL VOC数据库、AFLW人脸数据库、LFW人脸数据库等。Here, the training sample set can be directly obtained by using the existing image database, and using a large number of resources in the existing image database to train the model, an image quality evaluation model with wider application scenarios can be obtained. For example, ImageNet database, PASCAL VOC database, AFLW face database, LFW face database, etc.
在一些实施例中,所述获取包含至少一类样本图像的训练样本集,包括:获取满足预设样本条件的至少一类样本图像;其中,所述预设样本条件包括以下至少一种:人脸特征质量高于第一阈值,图像质量高于第二阈值;利用至少一类样本图像组成所述训练样本集。In some embodiments, the acquiring a training sample set including at least one type of sample image includes: acquiring at least one type of sample image that satisfies a preset sample condition; wherein the preset sample condition includes at least one of the following: a human being The quality of the face feature is higher than the first threshold, and the quality of the image is higher than the second threshold; and the training sample set is composed of at least one type of sample images.
也就是说,由于训练样本集的选择也会影响模型训练的准确性,因此,对于一些用户经常使用的拍摄场景或者用户最关注的拍摄场景,比如,自拍场景或人像拍摄场景,可以选择高质量的样本图像,即利用高质量的样本图像作为参考进行模型训练,则训练好的图像质量评价模型会对这一类拍摄场景有着更高的质量评价标准,可以从预览图像中筛选出更优的图像。That is to say, since the selection of the training sample set will also affect the accuracy of model training, for some shooting scenes that are often used by users or the shooting scenes that users are most concerned about, such as selfie scenes or portrait shooting scenes, high quality can be selected. , that is, using high-quality sample images as a reference for model training, the trained image quality evaluation model will have higher quality evaluation standards for this type of shooting scene, and can filter out better images from the preview images. image.
实际应用中,人脸特征质量用于表征人脸五官的表现情况,比如,根据人脸、闭眼情况、微笑、轻吻等一系列标准选择人脸特征质量高于第一阈值的样本图像,第一阈值是根据人脸特征质量的评价标准量化后得到的一个或多个阈值。In practical applications, the quality of facial features is used to characterize the performance of facial features. For example, according to a series of criteria such as face, closed eyes, smile, and light kiss, sample images with facial feature quality higher than the first threshold are selected. The first threshold is one or more thresholds obtained after quantification according to the evaluation criteria of the quality of the facial features.
图像质量用于表征图像整体质量,比如,根据图像的清晰度、3A状态(白平衡、曝光时间、焦距)等图像参数进行图像质量评价,选择图像质量高于第二阈值的样本图像,第二阈值是根据图像质量的评价标准量化后得到的一个或多个阈值。Image quality is used to characterize the overall quality of the image. For example, the image quality is evaluated according to image parameters such as image clarity, 3A status (white balance, exposure time, focal length), and a sample image whose image quality is higher than the second threshold is selected. The threshold is one or more thresholds obtained after quantification according to the evaluation criteria of image quality.
在一些实施例中,该方法还包括:控制显示单元显示所述预览图像的图像质量评价结果。In some embodiments, the method further includes: controlling the display unit to display the image quality evaluation result of the preview image.
也就是说,评价完预览图像的图像质量之后,还可以实时显示图像质量评价结果,以提醒用户当前预览图像的质量高低,作为用户调整拍摄姿势或拍摄参数的一个依据,通过增加人机互动,提高拍摄效率。That is to say, after evaluating the image quality of the preview image, the image quality evaluation result can also be displayed in real time to remind the user of the quality of the current preview image, as a basis for the user to adjust the shooting posture or shooting parameters. Improve shooting efficiency.
图2为本申请实施例中拍摄预览界面的第一示意图,如图2所示,当用户开启摄像头进行自拍时,用户可以选择普通自拍模式或者自拍优选模式,普通自拍模式是用户自主控制的传统拍摄模式,自拍优选模式则是同本申请技术方案生成的自动选择最优图像质量的模式,电子设备的默认模式可以为普通自拍模式,通过用户可以通过点击切换按键切换到自拍优选模式,默认模式也可为自拍优选模式。在自拍优选模式下用户可以通过点击显示界面下方拍摄按钮生成启动控制指令,开始采集预览图像,并利用图像质量评价模型评价预览图像的质量。Fig. 2 is the first schematic diagram of the shooting preview interface in the embodiment of the application. As shown in Fig. 2, when the user turns on the camera to take a Selfie, the user can select a normal Selfie mode or a Selfie preferred mode. The shooting mode and the Selfie preferred mode are the modes that automatically select the best image quality generated by the technical solution of the present application. The default mode of the electronic device can be the ordinary Selfie mode, and the user can switch to the Selfie preferred mode by clicking the switch button. The default mode There is also a preferred mode for selfies. In the selfie preferred mode, the user can generate a start control command by clicking the shooting button at the bottom of the display interface, start collecting the preview image, and use the image quality evaluation model to evaluate the quality of the preview image.
图3为本申请实施例中拍摄预览界面的第二示意图,如图3所示,当用户点击拍摄按钮时,开始对预览图像进行评价处理,预览界面可以通过显示转圈标志表示正在评价中。图像质量评价结束后,在预览界面右侧以伸缩进度条的形式直观展示当前预览图像是否接近自拍优化门限值,若超过门限值用户可以再次点击拍摄按钮完成拍摄,或者自动抓拍这一帧图像并保存。FIG. 3 is a second schematic diagram of the shooting preview interface in the embodiment of the present application. As shown in FIG. 3 , when the user clicks the shooting button, evaluation processing of the preview image is started, and the preview interface can display a circle mark to indicate that evaluation is underway. After the image quality evaluation is completed, a telescopic progress bar is displayed on the right side of the preview interface to visually display whether the current preview image is close to the Selfie optimization threshold. If the threshold is exceeded, the user can click the shooting button again to complete the shooting, or automatically capture this frame. image and save.
步骤103:基于所述预览图像的图像质量评价结果,从所述至少一帧预览图像中确定针对所述目标拍摄场景的目标拍摄图像。Step 103: Based on the image quality evaluation result of the preview image, determine a target shot image for the target shot scene from the at least one frame of preview image.
具体的,可以选择最优图像质量评价结果对应的预览图像作为目标拍摄图像,并保存。Specifically, the preview image corresponding to the optimal image quality evaluation result may be selected as the target shot image and saved.
这里,步骤101至步骤103的执行主体可以为电子设备的处理器,该电子设备可以为智能手机、可穿戴设备(包括手表、手环、智能眼镜等)、平板电脑、虚拟现实设备、车载设备等。Here, the execution subject of steps 101 to 103 may be a processor of an electronic device, and the electronic device may be a smartphone, a wearable device (including a watch, a wristband, smart glasses, etc.), a tablet computer, a virtual reality device, and a vehicle-mounted device. Wait.
采用上述技术方案,只需在现有的电子设备中增加图像质量评价模型,用于在拍摄过程中对采集到的预览图像进行图像质量评价,根据图像质量评价结果自动选择图像质量最优的一帧预览图像,避免用户自主控制拍摄时由于用户原因导致的拍摄效果不佳的问题,提高电子设备的拍摄效果。By adopting the above technical solution, it is only necessary to add an image quality evaluation model to the existing electronic equipment, which is used to evaluate the image quality of the collected preview images during the shooting process, and automatically select the one with the best image quality according to the image quality evaluation results. The frame preview image avoids the problem of poor shooting effect caused by the user when the user controls the shooting independently, and improves the shooting effect of the electronic device.
在上述实施例的基础上,对本申请实施例提供拍摄控制方法进行进一 步的举例说明,如图4所示,该方法具体可以包括:On the basis of the above-mentioned embodiment, the photographing control method provided by the embodiment of the present application is further exemplified, as shown in Figure 4, the method may specifically include:
步骤401:检测到启动控制指令时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;Step 401 : when a start-up control instruction is detected, control the image acquisition unit to acquire at least one frame of preview image of the target shooting scene;
实际应用中,启动控制指令可以为按键指令、触控指令、语音指令。具体的,获取控制指令的方法可以有:获取按键输入单元采集的按键指令;获取触控单元采集的触控指令;获取语音采集单元采集的语音指令。In practical applications, the startup control instruction may be a button instruction, a touch instruction, or a voice instruction. Specifically, the method for obtaining the control instruction may include: obtaining the key command collected by the key input unit; obtaining the touch control command collected by the touch control unit; and obtaining the voice command collected by the voice collecting unit.
步骤402:将所述预览图像输入到基于深度学习算法构建的图像质量评价模型中,得到所述预览图像的图像质量评价结果;Step 402: Input the preview image into an image quality evaluation model constructed based on a deep learning algorithm to obtain an image quality evaluation result of the preview image;
在一些实施例中,该方法还包括:基于深度学习算法构建初始评价模型;获取包含至少一类样本图像的训练样本集;其中,每一类样本图像对应一种拍摄场景;利用所述训练样本集训练所述初始评价模型,得到训练好的所述图像质量评价模型。In some embodiments, the method further includes: constructing an initial evaluation model based on a deep learning algorithm; acquiring a training sample set including at least one type of sample image; wherein each type of sample image corresponds to a shooting scene; using the training sample The initial evaluation model is trained on the set, and the trained image quality evaluation model is obtained.
这里,初始评价模型可以使用针对移动终端的轻量级解决方案,比如:mobilenet-V3、faster-rcnn、yolov3等,并基于python、tensorflow lite等开元库来实现。Here, the initial evaluation model can use lightweight solutions for mobile terminals, such as: mobilenet-V3, faster-rcnn, yolov3, etc., and implement it based on open source libraries such as python and tensorflow lite.
这里,训练样本集可以直接利用现有的图像数据库得到,利用现有图像数据库中大量资源训练模型,能够得到应用场景更广的图像质量评价模型。比如,ImageNet数据库、PASCAL VOC数据库、AFLW人脸数据库、LFW人脸数据库等。Here, the training sample set can be directly obtained by using the existing image database, and using a large number of resources in the existing image database to train the model, an image quality evaluation model with wider application scenarios can be obtained. For example, ImageNet database, PASCAL VOC database, AFLW face database, LFW face database, etc.
在一些实施例中,所述获取包含至少一类样本图像的训练样本集,包括:获取满足预设样本条件的至少一类样本图像;其中,所述预设样本条件包括以下至少一种:人脸特征质量高于第一阈值,图像质量高于第二阈值;利用至少一类样本图像组成所述训练样本集。In some embodiments, the acquiring a training sample set including at least one type of sample image includes: acquiring at least one type of sample image that satisfies a preset sample condition; wherein the preset sample condition includes at least one of the following: a human being The quality of the face feature is higher than the first threshold, and the quality of the image is higher than the second threshold; and the training sample set is composed of at least one type of sample images.
也就是说,由于训练样本集的选择也会影响模型训练的准确性,因此,对于一些用户经常使用的拍摄场景或者用户最关注的拍摄场景,比如,自拍场景或人像拍摄场景,可以选择高质量的样本图像,即利用高质量的样本图像作为参考进行模型训练,则训练好的图像质量评价模型会对这一类拍摄场景有着更高的质量评价标准,可以从预览图像中筛选出更优的图像。That is to say, since the selection of the training sample set will also affect the accuracy of model training, for some shooting scenes that are often used by users or the shooting scenes that users are most concerned about, such as selfie scenes or portrait shooting scenes, high quality can be selected. , that is, using high-quality sample images as a reference for model training, the trained image quality evaluation model will have higher quality evaluation standards for this type of shooting scene, and can filter out better images from the preview images. image.
实际应用中,人脸特征质量用于表征人脸五官的表现情况,比如,根 据人脸、闭眼情况、微笑、轻吻等一系列标准选择人脸特征质量高于第一阈值的样本图像,第一阈值是根据人脸特征质量的评价标准量化后得到的一个或多个阈值。In practical applications, the quality of facial features is used to characterize the performance of facial features. For example, according to a series of criteria such as face, closed eyes, smile, and light kiss, sample images with facial feature quality higher than the first threshold are selected. The first threshold is one or more thresholds obtained after quantification according to the evaluation criteria of the quality of the facial features.
图像质量用于表征图像整体质量,比如,根据图像的清晰度、3A状态(白平衡、曝光时间、焦距)等图像参数来选择图像质量高于第二阈值的样本图像,第二阈值是根据图像质量的评价标准量化后得到的一个或多个阈值。Image quality is used to characterize the overall quality of the image. For example, sample images with image quality higher than the second threshold are selected according to image parameters such as image clarity, 3A status (white balance, exposure time, focal length), and the second threshold is based on the image quality. One or more thresholds obtained after quantification of quality evaluation criteria.
在一些实施例中,所述获取包含至少一类样本图像的训练样本集,包括:获取满足预设样本条件的至少一类样本图像;对样本图像进行数据增强得到更多样本图像;利用增强后的样本图像建立所述训练样本集。In some embodiments, the acquiring a training sample set including at least one type of sample images includes: acquiring at least one type of sample images that meet preset sample conditions; performing data enhancement on the sample images to obtain more sample images; of sample images to establish the training sample set.
这里,为了增加数据量,缓解网络过拟合,对样本图像进行增强处理,可以获得更多的训练样本,在一张图像的基础上可以得到多张图像,扩增样本数量,能够提高模型训练效率。增强处理包括:对给定样本图像进行随机裁剪、水平翻转、尺寸缩放、色调调整、亮度调整、饱和度调整等预处理。Here, in order to increase the amount of data and alleviate the network overfitting, the sample images can be enhanced to obtain more training samples. Multiple images can be obtained on the basis of one image, and the number of samples can be enlarged, which can improve model training. efficient. Enhancement processing includes: random cropping, horizontal flipping, size scaling, hue adjustment, brightness adjustment, saturation adjustment and other preprocessing for a given sample image.
进一步的,在利用训练好的图像质量评价模型评价预览图像质量时,输出的图像质量评价结果也可以包含人脸特征质量的评价结果和/或图像质量的评价结果。Further, when using the trained image quality evaluation model to evaluate the preview image quality, the output image quality evaluation result may also include the evaluation result of the facial feature quality and/or the evaluation result of the image quality.
在一些实施例中,该方法还包括:控制显示单元显示所述预览图像的图像质量评价结果。In some embodiments, the method further includes: controlling the display unit to display the image quality evaluation result of the preview image.
也就是说,评价完预览图像的图像质量之后,还可以实时显示图像质量评价结果,以提醒用户当前预览图像的质量高低,可以作为用户调整拍摄姿势或拍摄参数的一个依据,通过增加人机互动,提高拍摄效率。That is to say, after evaluating the image quality of the preview image, the image quality evaluation result can also be displayed in real time to remind the user of the quality of the current preview image, which can be used as a basis for the user to adjust the shooting posture or shooting parameters. , to improve shooting efficiency.
步骤403:基于所述预览图像的图像质量评价结果,选择最优图像质量评价结果;Step 403: Based on the image quality evaluation result of the preview image, select the optimal image quality evaluation result;
实际应用中,当至少一帧预览图像为一帧预览图像时,最优图像质量评价结果即为该帧预览图像的评价结果。也就是说,依次对采集的预览图像进行评价,当检测到当前帧预览图像的评价结果满足图像优选条件时,直接将当前帧预览图像作为目标拍摄图像。In practical applications, when at least one frame of preview image is a frame of preview image, the optimal image quality evaluation result is the evaluation result of the frame of preview image. That is to say, the collected preview images are evaluated in sequence, and when it is detected that the evaluation result of the preview image of the current frame meets the image preference condition, the preview image of the current frame is directly used as the target image.
当至少一帧预览图像包含至少两帧预览图像时,根据对应的至少两个图像质量评价结果选择最优图像质量评价结果。When at least one frame of preview images includes at least two frames of preview images, the optimal image quality evaluation result is selected according to the corresponding at least two image quality evaluation results.
示例性的,当图像质量评价结果包括人脸特征质量的评价结果和/或图像质量的评价结果,选择最优人脸特征质量,或者最优图像质量,或者图像综合质量最优的作为最优图像质量评价结果。Exemplarily, when the image quality evaluation result includes the evaluation result of the facial feature quality and/or the evaluation result of the image quality, the optimal facial feature quality, or the optimal image quality, or the one with the best comprehensive image quality is selected as the optimal image quality. Image quality evaluation results.
步骤404:判断最优图像质量评价结果是否满足图像优选条件,如果是,执行步骤405;如果否,返回步骤406;Step 404: Determine whether the optimal image quality evaluation result satisfies the image preference condition, if yes, go to Step 405; if not, go back to Step 406;
在一些实施例中,所述图像优选条件包括至少一项图像质量评价标准,其中,不同图像质量评价标准用于评价不同评价结果;相应的,所述判断所述最优图像质量评价结果是否满足图像优选条件,包括:判断最优图像质量评价结果中的至少一种评价结果是否满足对应的图像质量评价标准;当每种评价结果均满足对应的图像质量评价标准时,确定最优图像质量评价结果满足所述图像优选条件;当存在部分评价结果不满足对应的图像质量评价标准时,确定最优图像质量评价结果不满足所述图像优选条件。也就是说,根据图像优选条件中规定的至少一项图像质量评价标准,判断最优图像质量评价结果是否满足全部的评价标准,当全部满足时,预览图像可以作为本次拍摄得到的目标拍摄图像;否则,重新采集预览图像。In some embodiments, the image preference condition includes at least one image quality evaluation criterion, wherein different image quality evaluation criteria are used to evaluate different evaluation results; correspondingly, it is determined whether the optimal image quality evaluation result satisfies Image optimization conditions, including: judging whether at least one evaluation result in the optimal image quality evaluation results satisfies the corresponding image quality evaluation standard; when each evaluation result satisfies the corresponding image quality evaluation standard, determining the optimal image quality evaluation result The image preference condition is satisfied; when there are some evaluation results that do not satisfy the corresponding image quality evaluation standard, it is determined that the optimal image quality evaluation result does not satisfy the image preference condition. That is to say, according to at least one image quality evaluation standard specified in the image preference condition, it is judged whether the optimal image quality evaluation result satisfies all the evaluation standards. ; otherwise, reacquire the preview image.
示例性的,一种图像质量评价标准可以为人脸特征质量高于第一阈值,另一种图像质量评价标准可以为图像质量高于第二阈值,另一种图像质量评价标准可以为图像综合质量高于第三阈值。这里,图像综合质量为综合考虑了人脸特征质量和图像质量后的一种评价结果,比如对人脸特征质量和图像质量的评价结果进行加权运算得到的。相应的,图像质量评价结果可以包括以下至少一项:人脸特征质量评价结果、图像质量评价结果和图像综合质量评价结果。Exemplarily, one image quality evaluation criterion may be that the facial feature quality is higher than the first threshold, another image quality evaluation criterion may be that the image quality is higher than the second threshold, and another image quality evaluation criterion may be the overall image quality. above the third threshold. Here, the comprehensive image quality is an evaluation result after comprehensively considering the facial feature quality and the image quality, for example, obtained by performing a weighted operation on the evaluation results of the facial feature quality and the image quality. Correspondingly, the image quality evaluation result may include at least one of the following: a face feature quality evaluation result, an image quality evaluation result, and an image comprehensive quality evaluation result.
示例性的,图像质量评价结果包括图像综合质量评分,图像综合质量评分是图像综合质量的量化值。比如,图像综合质量评分是从0-100分,那么其对应的图像质量评价标准可以为图像综合质量评分大于95分,大于95分则认为预览图像为高质量图像,小于或等于95分则认为预览图像为低质量图像。Exemplarily, the image quality evaluation result includes a comprehensive image quality score, and the comprehensive image quality score is a quantified value of the comprehensive image quality. For example, if the comprehensive image quality score ranges from 0 to 100, the corresponding image quality evaluation standard can be that the comprehensive image quality score is greater than 95 points, and the preview image is considered to be a high-quality image if it is greater than 95 points, and the preview image is considered to be a high-quality image if it is less than or equal to 95 points. The preview image is a low-quality image.
步骤405:确定所述最优图像质量评价结果对应的预览图像为所述目标拍摄图像;Step 405: Determine the preview image corresponding to the optimal image quality evaluation result as the target shot image;
在一些实施例中,所述最优图像质量评价结果满足图像优选条件时,该方法还包括:生成拍摄控制指令;响应所述拍摄控制指令,控制显示单元显示所述目标拍摄图像,并保存所述目标拍摄图像。In some embodiments, when the optimal image quality evaluation result satisfies the image preference condition, the method further includes: generating a photographing control instruction; in response to the photographing control instruction, controlling the display unit to display the target photographed image, and save all the photographed images. Take an image of the target.
步骤406:控制图像采集单元继续采集所述目标拍摄场景的至少一帧预览图像,并返回步骤402。Step 406 : control the image acquisition unit to continue to acquire at least one frame of preview image of the target shooting scene, and return to step 402 .
也就是说,对于当前采集的预览图像,通过合理的设定图像优选条件,为用户选择最优的预览图像作为本次拍摄操作得到图像。当前预览图像不满足图像优选条件时,则说明当前的拍摄姿势或拍摄参数不合理,需要重新采集预览图像进行判断。That is to say, for the currently collected preview image, the optimal preview image is selected for the user as the image obtained by this shooting operation by reasonably setting the image preference conditions. When the current preview image does not meet the image selection conditions, it means that the current shooting posture or shooting parameters are unreasonable, and the preview image needs to be collected again for judgment.
在一些实施例中,所述最优图像质量评价结果不满足图像优选条件时,该方法还包括:生成拍摄提示信息并输出,以提示用户调整拍摄信息;其中,所述拍摄信息包括以下至少一项:图像采集单元的拍摄参数、图像采集单元的拍摄姿态、拍摄对象姿态。In some embodiments, when the optimal image quality evaluation result does not meet the image preference condition, the method further includes: generating and outputting photographing prompt information to prompt the user to adjust the photographing information; wherein the photographing information includes at least one of the following: Items: the shooting parameters of the image acquisition unit, the shooting posture of the image acquisition unit, and the shooting object posture.
也就是说,用户可调整的拍摄信息具体可以包括多种。比如,拍摄参数包括:快门、光圈、感光度、是否开闪光灯等,图像采集单元的拍摄姿态包括相机的拍摄位置、拍摄高度、旋转角度,拍摄对象姿态可以包括:人物或动物的整体姿态、面部五官姿态。That is to say, the shooting information that can be adjusted by the user may specifically include multiple types. For example, the shooting parameters include: shutter, aperture, sensitivity, whether to turn on the flash, etc. The shooting posture of the image acquisition unit includes the shooting position, shooting height, and rotation angle of the camera. facial features.
实际应用中,不同拍摄信息影响图像质量的类型也不同。比如,拍摄对象姿态会影响人脸特征质量,图像采集单元的拍摄参数和拍摄姿态会影响图像整体质量。因此,可以根据拍摄信息与评价结果的影响关系,调整影响评价结果的拍摄信息。In practical applications, the types of different shooting information that affect the image quality are also different. For example, the posture of the photographed object will affect the quality of facial features, and the photographing parameters and photographing posture of the image acquisition unit will affect the overall quality of the image. Therefore, the shooting information that affects the evaluation result can be adjusted according to the influence relationship between the shooting information and the evaluation result.
具体的,当最优图像质量评价结果不满足图像优选条件,所述生成拍摄提示信息并输出包括:图像优选条件包括至少一项图像质量评价标准,确定不满足图像质量评价标准的目标评价结果;基于拍摄信息与评价结果的影响关系,针对目标评价结果生成对应的拍摄提示信息。Specifically, when the optimal image quality evaluation result does not meet the image optimization condition, the generating and outputting the shooting prompt information includes: the image optimization condition includes at least one image quality evaluation standard, and determining the target evaluation result that does not meet the image quality evaluation standard; Based on the influence relationship between the shooting information and the evaluation result, corresponding shooting prompt information is generated for the target evaluation result.
示例性的,当人脸质量低于第一阈值时,确定影响人脸质量的因素为拍摄对象处于闭眼状态,则提示信息可以提示用户睁眼;或者影响人脸质 量的因素人物面部被遮挡,提示用户调整人物位置。Exemplarily, when the quality of the human face is lower than the first threshold, it is determined that the factor affecting the quality of the human face is that the subject is in a state of closed eyes, and the prompt information may prompt the user to open his eyes; or the factor affecting the quality of the human face is that the face of the person is occluded. , prompts the user to adjust the character's position.
当图像质量低于第二阈值时,确定影响图像质量的因素为相机姿态偏离水平姿态范围,则提示信息可以提示用户调整相机角度;或者确定影响图像质量的因素为图像亮度,则提示信息可以提示用户开启闪光灯。When the image quality is lower than the second threshold, it is determined that the factor affecting the image quality is that the camera attitude deviates from the horizontal attitude range, and the prompt information can prompt the user to adjust the camera angle; or the factor affecting the image quality is the image brightness, the prompt information can prompt the user to adjust the camera angle. The user turns on the flash.
通过增加这种用户交互方式,能够及时提醒用户对不合理的拍摄信息。实际应用中,提示信息还可以提示具体的调整类别。By adding such a user interaction mode, the user can be reminded of unreasonable shooting information in time. In practical applications, the prompt information may also prompt a specific adjustment category.
采用上述技术方案,只需在现有的电子设备中增加图像质量评价模型,用于在拍摄过程中对采集到的预览图像进行图像质量评价,根据图像质量评价结果自动选择图像质量最优的一帧预览图像,避免用户自主控制拍摄时由于用户原因导致的拍摄效果不佳的问题,提高电子设备的拍摄效果。By adopting the above technical solution, it is only necessary to add an image quality evaluation model to the existing electronic equipment, which is used to evaluate the image quality of the collected preview image during the shooting process, and automatically select the one with the best image quality according to the image quality evaluation result. The frame preview image avoids the problem of poor shooting effect caused by the user when the user controls the shooting independently, and improves the shooting effect of the electronic device.
在上述实施例的基础上,对本申请实施例提供拍摄控制方法进行进一步的举例说明,如图5所示,该方法具体可以包括:On the basis of the above-mentioned embodiment, the photographing control method provided by the embodiment of the present application is further exemplified. As shown in FIG. 5 , the method may specifically include:
步骤501:用户点击拍摄按钮以启动拍摄;Step 501: the user clicks the shooting button to start shooting;
具体的,打开相机进入自拍优选模式,用户点击拍摄按钮启动拍摄。Specifically, the camera is turned on to enter the Selfie preferred mode, and the user clicks the shooting button to start shooting.
步骤502:控制摄像头采集预览图像;Step 502: control the camera to capture the preview image;
具体的,摄像头采集预览图像,并且将预览图像实时显示给用户。Specifically, the camera captures the preview image and displays the preview image to the user in real time.
步骤503:将预览图像送入图像质量评价(Image Quality Assessment,IQA)模型,得到图像质量评分;Step 503: send the preview image into an image quality assessment (Image Quality Assessment, IQA) model to obtain an image quality score;
实际应用中,该方法还包括:获取满足预设样本条件的至少一类样本图像;其中,所述预设样本条件包括以下至少一种:人脸特征质量高于第一阈值,图像质量高于第二阈值;利用至少一类样本图像组成所述训练样本集;利用训练样本集进行模型训练,得到IQA模型。In practical applications, the method further includes: acquiring at least one type of sample image that meets preset sample conditions; wherein, the preset sample conditions include at least one of the following: the quality of the facial features is higher than the first threshold, and the quality of the images is higher than the second threshold; use at least one type of sample images to form the training sample set; use the training sample set to perform model training to obtain an IQA model.
图6为本申请实施例中IQA模型构建原理示意图,如图6所示,利用python、tensorflow lite等开元库,以及mobilenet-V3和图像内容模型(Image Content Model,ICM)这样的轻量级网络进行模型构建,并利用预先获取的高质量训练样本集对模型进行训练,得到训练好的IQA模型。FIG. 6 is a schematic diagram of the construction principle of the IQA model in the embodiment of the application. As shown in FIG. 6 , open-source libraries such as python and tensorflow lite are used, and lightweight networks such as mobilenet-V3 and Image Content Model (ICM) are used. Build the model, and use the pre-acquired high-quality training sample set to train the model to obtain a trained IQA model.
图7为本申请实施例中IQA模型的检测原理示意图,如图7所示,相机APP采集预览图像帧,在预览界面上显示预览图像,将预览图像发送到处理单元,处理单元运行IQA模型,对预览图像进行图像质量评价,输出 图像质量评价结果,根据图像质量评价结果去对相机APP的拍摄功能进行控制。FIG. 7 is a schematic diagram of the detection principle of the IQA model in the embodiment of the application. As shown in FIG. 7 , the camera APP collects the preview image frame, displays the preview image on the preview interface, sends the preview image to the processing unit, and the processing unit runs the IQA model, Perform image quality evaluation on the preview image, output the image quality evaluation result, and control the shooting function of the camera APP according to the image quality evaluation result.
实际应用中,IQA模型在得到预览图像的评价结果后,还可以将评价结果实时显示在对应预览图像的旁边,以提醒用户当前预览图像的质量高低,可以作为用户调整拍摄姿势或拍摄参数的一个依据,通过增加人机互动,提高拍摄效率。In practical applications, after obtaining the evaluation result of the preview image, the IQA model can also display the evaluation result next to the corresponding preview image in real time to remind the user of the quality of the current preview image, which can be used as a way for the user to adjust the shooting posture or shooting parameters. According to this, by increasing the human-computer interaction, the shooting efficiency is improved.
步骤504:判断图像质量评分是否大于评分阈值,如果是,执行步骤505;如果否,返回步骤502;Step 504: Determine whether the image quality score is greater than the score threshold, if yes, go to Step 505; if not, go back to Step 502;
步骤505:生成拍摄控制指令;Step 505: generating a shooting control instruction;
步骤506:响应拍摄控制指令,控制显示单元显示目标拍摄图像,并保存目标拍摄图像。Step 506: In response to the photographing control instruction, control the display unit to display the target photographed image, and save the target photographed image.
示例性的,相机APP处于自拍优选模式时,控制摄像头采集预览图像并保存对应的时间戳,IQA模型对预览图像进行评分,得到的人脸特征评分结果高于第一阈值(比如,第一阈值为95分,满分为100分)时下发拍摄控制指令,保存对应时间戳的那一帧预览图像,完成一次拍照。Exemplarily, when the camera APP is in the Selfie preferred mode, the camera is controlled to collect the preview image and save the corresponding timestamp, and the IQA model scores the preview image, and the obtained facial feature scoring result is higher than the first threshold (for example, the first threshold value). 95 points, out of 100 points), issue a shooting control command, save the preview image of the frame corresponding to the timestamp, and complete a photo shoot.
图8为本申请实施例中相机框架示意图,如图8所示,相机框架中包括相机预处理进程(Camera Process)、相机服务进程(Camera Sever)和相机硬件抽象层(Camera Hardware Abstraction Layer,Camera HAL)。相机预处理进程包括相机APP和算法处理服务单元(Algorithm Process Service,APS)。其中,相机APP具体包括图片处理子单元和录像处理子单元,以及与APS单元交互的APS适配器和APS服务单元,相机APP可以对APS进行初始化。APS单元包括预处理单元,预处理单元包括图像质量评价(Image Quality Assessment,IQA)模型和自动场景检测(Automatic scene detection,ASD)模型,IQA模型则是用于对预览图像进行图像质量评价得到评价结果,根据评价结果可以确定最优图像质量的预览图像,ASD模型用于自动识别拍摄场景,指示调整摄像头的拍摄参数。Camera Process向Camera Sever发送捕捉请求(Capture Request),并接收Camera Sever的捕捉结果(Capture Result),Camera Sever与Camera HAL之间通过接口定义语言进行交互,实现相机APP能够与Camera硬件正确的协调工作,从而使保证Camera的所 有功能能够正常进行工作。FIG. 8 is a schematic diagram of a camera frame in an embodiment of the application. As shown in FIG. 8 , the camera frame includes a camera preprocessing process (Camera Process), a camera service process (Camera Sever), and a camera hardware abstraction layer (Camera Hardware Abstraction Layer, Camera HAL). The camera preprocessing process includes camera APP and algorithm processing service unit (Algorithm Process Service, APS). The camera APP specifically includes a picture processing subunit and a video recording processing subunit, as well as an APS adapter and an APS service unit that interact with the APS unit, and the camera APP can initialize the APS. The APS unit includes a preprocessing unit. The preprocessing unit includes an Image Quality Assessment (IQA) model and an Automatic scene detection (ASD) model. The IQA model is used to evaluate the image quality of the preview image. As a result, a preview image with optimal image quality can be determined according to the evaluation results, and the ASD model is used to automatically identify the shooting scene and instruct to adjust the shooting parameters of the camera. Camera Process sends a capture request (Capture Request) to Camera Sever, and receives Camera Sever's capture result (Capture Result), Camera Sever and Camera HAL interact through interface definition language, so that camera APP can work correctly with Camera hardware , so as to ensure that all the functions of the Camera can work properly.
本申请实施例中还提供了一种拍摄控制装置,如图9所示,该装置包括:The embodiment of the present application also provides a shooting control device, as shown in FIG. 9 , the device includes:
控制单元901,配置为对目标拍摄场景进行拍摄时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;The control unit 901 is configured to control the image acquisition unit to collect at least one frame of preview image of the target shooting scene when shooting the target shooting scene;
处理单元902,配置为将所述预览图像输入到基于深度学习算法构建的图像质量评价模型中,得到所述预览图像的图像质量评价结果;The processing unit 902 is configured to input the preview image into an image quality evaluation model constructed based on a deep learning algorithm to obtain an image quality evaluation result of the preview image;
确定单元903,配置为基于所述预览图像的图像质量评价结果,从所述至少一帧预览图像中确定针对所述目标拍摄场景的目标拍摄图像。The determining unit 903 is configured to determine, based on the image quality evaluation result of the preview image, a target shot image for the target shot scene from the at least one frame of preview image.
在一些实施例中,控制单元901,配置为检测到启动控制指令时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;In some embodiments, the control unit 901 is configured to control the image acquisition unit to acquire at least one frame of preview image of the target shooting scene when the start control instruction is detected;
相应的,确定单元903,配置为基于所述预览图像的图像质量评价结果,选择最优图像质量评价结果;判断所述最优图像质量评价结果是否满足图像优选条件;所述最优图像质量评价结果满足图像优选条件时,确定所述最优图像质量评价结果对应的预览图像为所述目标拍摄图像;Correspondingly, the determining unit 903 is configured to select the optimal image quality evaluation result based on the image quality evaluation result of the preview image; determine whether the optimal image quality evaluation result satisfies the image preference condition; the optimal image quality evaluation When the result satisfies the image optimization condition, determine the preview image corresponding to the optimal image quality evaluation result as the target shot image;
控制单元901,配置为所述最优图像质量评价结果不满足图像优选条件时,控制图像采集单元继续采集所述目标拍摄场景的至少一帧预览图像,并输入到所述图像质量评价模型中。The control unit 901 is configured to control the image acquisition unit to continue to collect at least one frame of preview image of the target shooting scene and input it into the image quality evaluation model when the optimal image quality evaluation result does not meet the image preference condition.
在一些实施例中,所述图像优选条件包括至少一项图像质量评价标准,其中,不同图像质量评价标准用于评价不同评价结果;确定单元903,配置为判断最优图像质量评价结果中的至少一种评价结果是否满足对应的图像质量评价标准;当每种评价结果均满足对应的图像质量评价标准时,确定最优图像质量评价结果满足所述图像优选条件;当存在部分评价结果不满足对应的图像质量评价标准时,确定最优图像质量评价结果不满足所述图像优选条件。In some embodiments, the image preference condition includes at least one image quality evaluation criterion, wherein different image quality evaluation criteria are used to evaluate different evaluation results; the determining unit 903 is configured to determine at least one of the optimal image quality evaluation results Whether an evaluation result satisfies the corresponding image quality evaluation standard; when each evaluation result satisfies the corresponding image quality evaluation standard, it is determined that the optimal image quality evaluation result satisfies the image optimization condition; when there are some evaluation results that do not meet the corresponding image quality evaluation standard When the image quality evaluation standard is used, it is determined that the optimal image quality evaluation result does not satisfy the image optimization condition.
在一些实施例中,确定单元903,配置为在所述最优图像质量评价结果满足图像优选条件时,生成拍摄控制指令;响应所述拍摄控制指令,控制显示单元显示所述目标拍摄图像,并保存所述目标拍摄图像。In some embodiments, the determining unit 903 is configured to generate a photographing control instruction when the optimal image quality evaluation result satisfies the image preference condition; in response to the photographing control instruction, control the display unit to display the target photographed image, and Save the target shot image.
在一些实施例中,确定单元903,配置为在所述最优图像质量评价结果不满足图像优选条件时,生成拍摄提示信息并输出,以提示用户调整拍摄信息;其中,所述拍摄信息包括以下至少一项:图像采集单元的拍摄参数、图像采集单元的拍摄姿态、拍摄对象姿态。In some embodiments, the determining unit 903 is configured to generate and output photographing prompt information when the optimal image quality evaluation result does not satisfy the image preference condition, so as to prompt the user to adjust the photographing information; wherein the photographing information includes the following: At least one item: the shooting parameters of the image acquisition unit, the shooting posture of the image acquisition unit, and the shooting object posture.
在一些实施例中,所述控制单元901,配置为检测到启动控制指令时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;In some embodiments, the control unit 901 is configured to control the image acquisition unit to acquire at least one frame of preview image of the target shooting scene when a start control instruction is detected;
所述确定单元903,配置为基于所述预览图像的图像质量评价结果,选择最优图像质量评价结果;确定所述最优图像质量评价结果对应的预览图像为所述目标拍摄图像。The determining unit 903 is configured to select an optimal image quality evaluation result based on the image quality evaluation result of the preview image; and determine the preview image corresponding to the optimal image quality evaluation result as the target shot image.
具体的,可以选择最优图像质量评价结果对应的预览图像作为目标拍摄图像,并保存。Specifically, the preview image corresponding to the optimal image quality evaluation result may be selected as the target shot image and saved.
在一些实施例中,处理单元902,配置为在所述得到所述预览图像的图像质量评价结果之后,控制显示单元显示所述预览图像的图像质量评价结果。In some embodiments, the processing unit 902 is configured to, after obtaining the image quality evaluation result of the preview image, control the display unit to display the image quality evaluation result of the preview image.
在一些实施例中,该装置还包括:构建单元(图8中未示出),配置为基于深度学习算法构建初始评价模型;获取包含至少一类样本图像的训练样本集;其中,每一类样本图像对应一种拍摄场景;利用所述训练样本集训练所述初始评价模型,得到训练好的所述图像质量评价模型。In some embodiments, the apparatus further includes: a construction unit (not shown in FIG. 8 ), configured to construct an initial evaluation model based on a deep learning algorithm; obtain a training sample set including at least one type of sample images; wherein each type of The sample image corresponds to a shooting scene; the initial evaluation model is trained by using the training sample set, and the trained image quality evaluation model is obtained.
在一些实施例中,构建单元,配置为获取满足预设样本条件的至少一类样本图像;其中,所述预设样本条件包括以下至少一种:人脸特征质量高于第一阈值,图像质量高于第二阈值;利用至少一类样本图像组成所述训练样本集。In some embodiments, the construction unit is configured to obtain at least one type of sample image that satisfies a preset sample condition; wherein the preset sample condition includes at least one of the following: the facial feature quality is higher than a first threshold, the image quality higher than the second threshold; using at least one type of sample images to form the training sample set.
基于上述拍摄控制装置中各单元的硬件实现,本申请实施例还提供了电子设备,如图10所示,该电子设备包括:处理器1001和配置为存储能够在处理器上运行的计算机程序的存储器1002;Based on the hardware implementation of each unit in the above-mentioned photographing control device, the embodiment of the present application also provides an electronic device. As shown in FIG. 10 , the electronic device includes: a processor 1001 and a computer program configured to store a computer program that can be run on the processor. memory 1002;
其中,处理器1001配置为运行计算机程序时,执行前述实施例中的方法步骤。Wherein, the processor 1001 is configured to execute the method steps in the foregoing embodiments when running a computer program.
当然,实际应用时,如图9所示,该电子设备中的各个组件通过总线系统1003耦合在一起。可理解,总线系统1003用于实现这些组件之间的 连接通信。总线系统1003除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图9中将各种总线都标为总线系统1003。Of course, in practical application, as shown in FIG. 9 , various components in the electronic device are coupled together through a bus system 1003 . It will be appreciated that the bus system 1003 is used to implement the connection communication between these components. In addition to the data bus, the bus system 1003 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the various buses are labeled as bus system 1003 in FIG. 9 .
在实际应用中,上述处理器可以为特定用途集成电路(ASIC,Application Specific Integrated Circuit)、数字信号处理装置(DSPD,Digital Signal Processing Device)、可编程逻辑装置(PLD,Programmable Logic Device)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、控制器、微控制器、微处理器中的至少一种。可以理解地,对于不同的设备,用于实现上述处理器功能的电子器件还可以为其它,本申请实施例不作具体限定。In practical applications, the above-mentioned processor may be an application specific integrated circuit (ASIC, Application Specific Integrated Circuit), a digital signal processing device (DSPD, Digital Signal Processing Device), a programmable logic device (PLD, Programmable Logic Device), a field programmable At least one of a programmable gate array (Field-Programmable Gate Array, FPGA), a controller, a microcontroller, and a microprocessor. It can be understood that, for different devices, the electronic device used to implement the above processor function may also be other, which is not specifically limited in the embodiment of the present application.
上述存储器可以是易失性存储器(volatile memory),例如随机存取存储器(RAM,Random-Access Memory);或者非易失性存储器(non-volatile memory),例如只读存储器(ROM,Read-Only Memory),快闪存储器(flash memory),硬盘(HDD,Hard Disk Drive)或固态硬盘(SSD,Solid-State Drive);或者上述种类的存储器的组合,并向处理器提供指令和数据。The above-mentioned memory can be a volatile memory (volatile memory), such as random access memory (RAM, Random-Access Memory); or a non-volatile memory (non-volatile memory), such as read-only memory (ROM, Read-Only Memory) Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid-state drive (SSD, Solid-State Drive); or a combination of the above types of memory, and provide instructions and data to the processor.
采用上述技电子设备,只需在现有的电子设备中增加图像质量评价模型,用于在拍摄过程中对采集到的预览图像进行图像质量评价,根据图像质量评价结果自动选择图像质量最优的一帧预览图像,避免用户自主控制拍摄时由于用户原因导致的拍摄效果不佳的问题,提高电子设备的拍摄效果。Using the above technical electronic equipment, it is only necessary to add an image quality evaluation model to the existing electronic equipment, which is used to evaluate the image quality of the collected preview images during the shooting process, and automatically select the best image quality according to the image quality evaluation results. A frame preview image avoids the problem of poor shooting effect caused by the user when the user controls the shooting independently, and improves the shooting effect of the electronic device.
本申请实施例还提供了一种计算机可读存储介质,用于存储计算机程序。Embodiments of the present application further provide a computer-readable storage medium for storing a computer program.
可选的,该计算机可读存储介质可应用于本申请实施例中的任意一种电子设备中,并且该计算机程序使得计算机执行本申请实施例的各个方法中由处理器实现的相应流程,为了简洁,在此不再赘述。Optionally, the computer-readable storage medium can be applied to any electronic device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the processors in the various methods of the embodiments of the present application, in order to It is concise and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有 另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional unit in each embodiment of the present invention may all be integrated into one processing module, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integration The unit can be implemented either in the form of hardware or in the form of hardware plus software functional units. Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by program instructions related to hardware, the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute Including the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk and other various A medium on which program code can be stored.
本申请所提供的几个方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined under the condition of no conflict to obtain new method embodiments.
本申请所提供的几个产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in the several product embodiments provided in this application can be combined arbitrarily without conflict to obtain a new product embodiment.
本申请所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in several method or device embodiments provided in this application can be combined arbitrarily without conflict to obtain new method embodiments or device embodiments.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
工业实用性Industrial Applicability
本申请实施例提供了一种拍摄控制方法、装置、电子设备及存储介质,该方法包括:对目标拍摄场景进行拍摄时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;将所述预览图像输入到基于深度学习算法构建的图像质量评价模型中,得到所述预览图像的图像质量评价结果;基于所述预览图像的图像质量评价结果,从所述至少一帧预览图像中确定针对所述目标拍摄场景的目标拍摄图像。如此,只需在现有的电子设备中增加图像质量评价模型,用于在拍摄过程中对采集到的预览图像进行图像质量评价,根据图像质量评价结果自动选择图像质量最优的一帧预览图像,避免用户自主控制拍摄时由于用户原因导致的拍摄效果不佳的问题,提高电子设备的拍摄效果。Embodiments of the present application provide a shooting control method, device, electronic device, and storage medium. The method includes: when shooting a target shooting scene, controlling an image acquisition unit to collect at least one frame of preview image of the target shooting scene; The preview image is input into an image quality evaluation model constructed based on a deep learning algorithm, and an image quality evaluation result of the preview image is obtained; based on the image quality evaluation result of the preview image, it is determined from the at least one frame of preview image. An image is captured for the target of the target capture scene. In this way, it is only necessary to add an image quality evaluation model to the existing electronic equipment, which is used to evaluate the image quality of the collected preview images during the shooting process, and automatically select a preview image with the best image quality according to the image quality evaluation results. , to avoid the problem of poor shooting effect caused by the user when the user autonomously controls the shooting, and improve the shooting effect of the electronic device.

Claims (20)

  1. 一种拍摄控制方法,其中,所述方法包括:A shooting control method, wherein the method comprises:
    对目标拍摄场景进行拍摄时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;When shooting the target shooting scene, control the image acquisition unit to collect at least one preview image of the target shooting scene;
    将所述预览图像输入到基于深度学习算法构建的图像质量评价模型中,得到所述预览图像的图像质量评价结果;Inputting the preview image into an image quality evaluation model constructed based on a deep learning algorithm to obtain an image quality evaluation result of the preview image;
    基于所述预览图像的图像质量评价结果,从所述至少一帧预览图像中确定针对所述目标拍摄场景的目标拍摄图像。Based on the image quality evaluation result of the preview image, a target shot image for the target shot scene is determined from the at least one frame of preview image.
  2. 根据权利要求1所述的方法,其中,所述控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像,包括:The method according to claim 1, wherein the controlling the image acquisition unit to acquire at least one frame of preview image of the target shooting scene comprises:
    检测到启动控制指令时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;When the start control instruction is detected, the image acquisition unit is controlled to acquire at least one frame of preview image of the target shooting scene;
    所述基于所述预览图像的图像质量评价结果,从所述至少一帧预览图像中确定针对所述目标拍摄场景的目标拍摄图像,包括:The determining, based on the image quality evaluation result of the preview image, a target shot image for the target shot scene from the at least one frame of preview image includes:
    基于所述预览图像的图像质量评价结果,选择最优图像质量评价结果;Based on the image quality evaluation result of the preview image, select the optimal image quality evaluation result;
    判断所述最优图像质量评价结果是否满足图像优选条件;Determine whether the optimal image quality evaluation result satisfies the image optimization condition;
    所述最优图像质量评价结果满足所述图像优选条件时,确定所述最优图像质量评价结果对应的预览图像为所述目标拍摄图像;When the optimal image quality evaluation result satisfies the image preference condition, determine that the preview image corresponding to the optimal image quality evaluation result is the target shot image;
    所述最优图像质量评价结果不满足所述图像优选条件时,控制所述图像采集单元继续采集所述目标拍摄场景的至少一帧预览图像,并输入到所述图像质量评价模型中。When the optimal image quality evaluation result does not meet the image preference condition, the image acquisition unit is controlled to continue to collect at least one frame of preview image of the target shooting scene, and input it into the image quality evaluation model.
  3. 根据权利要求2所述的方法,其中,所述图像优选条件包括至少一项图像质量评价标准,其中,不同图像质量评价标准用于评价不同评价结果;The method according to claim 2, wherein the image preference condition includes at least one image quality evaluation criterion, wherein different image quality evaluation criteria are used to evaluate different evaluation results;
    所述判断所述最优图像质量评价结果是否满足图像优选条件,包括:The judging whether the optimal image quality evaluation result satisfies the image preference condition includes:
    判断所述最优图像质量评价结果中的至少一种评价结果是否满足对应的图像质量评价标准;Judging whether at least one of the optimal image quality evaluation results satisfies the corresponding image quality evaluation standard;
    当每种评价结果均满足对应的图像质量评价标准时,确定所述最优图 像质量评价结果满足所述图像优选条件;When each evaluation result satisfies the corresponding image quality evaluation standard, it is determined that the optimal image quality evaluation result satisfies the image optimization condition;
    当存在部分评价结果不满足对应的图像质量评价标准时,确定所述最优图像质量评价结果不满足所述图像优选条件。When there are some evaluation results that do not meet the corresponding image quality evaluation criteria, it is determined that the optimal image quality evaluation result does not meet the image preference condition.
  4. 根据权利要求2所述的方法,其中,所述最优图像质量评价结果满足所述图像优选条件时,所述方法还包括:The method according to claim 2, wherein when the optimal image quality evaluation result satisfies the image preference condition, the method further comprises:
    生成拍摄控制指令;Generate shooting control instructions;
    响应所述拍摄控制指令,控制显示单元显示所述目标拍摄图像,并保存所述目标拍摄图像。In response to the photographing control instruction, the display unit is controlled to display the target photographed image and save the target photographed image.
  5. 根据权利要求2所述的方法,其中,所述最优图像质量评价结果不满足所述图像优选条件时,所述方法还包括:The method according to claim 2, wherein when the optimal image quality evaluation result does not satisfy the image preference condition, the method further comprises:
    生成拍摄提示信息并输出,以提示用户调整拍摄信息;其中,所述拍摄信息包括以下至少一项:图像采集单元的拍摄参数、图像采集单元的拍摄姿态、拍摄对象姿态。Shooting prompt information is generated and output to prompt the user to adjust the shooting information; wherein the shooting information includes at least one of the following: shooting parameters of the image acquisition unit, shooting posture of the image acquisition unit, and shooting object posture.
  6. 根据权利要求1所述的方法,其中,所述控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像,包括:The method according to claim 1, wherein the controlling the image acquisition unit to acquire at least one frame of preview image of the target shooting scene comprises:
    检测到启动控制指令时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;When the start control instruction is detected, the image acquisition unit is controlled to acquire at least one frame of preview image of the target shooting scene;
    所述基于所述预览图像的图像质量评价结果,从所述至少一帧预览图像中确定针对所述目标拍摄场景的目标拍摄图像,包括:The determining, based on the image quality evaluation result of the preview image, a target shot image for the target shot scene from the at least one frame of preview image includes:
    基于所述预览图像的图像质量评价结果,选择最优图像质量评价结果;Based on the image quality evaluation result of the preview image, select the optimal image quality evaluation result;
    确定所述最优图像质量评价结果对应的预览图像为所述目标拍摄图像。It is determined that the preview image corresponding to the optimal image quality evaluation result is the target shot image.
  7. 根据权利要求1所述的方法,其中,所述得到所述预览图像的图像质量评价结果之后,所述方法还包括:The method according to claim 1, wherein after obtaining the image quality evaluation result of the preview image, the method further comprises:
    控制显示单元显示所述预览图像的图像质量评价结果。The display unit is controlled to display the image quality evaluation result of the preview image.
  8. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    基于深度学习算法构建初始评价模型;Build an initial evaluation model based on a deep learning algorithm;
    获取包含至少一类样本图像的训练样本集;其中,每一类样本图像对应一种拍摄场景;Obtain a training sample set containing at least one type of sample image; wherein each type of sample image corresponds to one shooting scene;
    利用所述训练样本集训练所述初始评价模型,得到训练好的所述图像质量评价模型。The initial evaluation model is trained by using the training sample set to obtain the trained image quality evaluation model.
  9. 根据权利要求8所述的方法,其中,所述获取包含至少一类样本图像的训练样本集,包括:The method according to claim 8, wherein the acquiring a training sample set comprising at least one type of sample images comprises:
    获取满足预设样本条件的至少一类样本图像;其中,所述预设样本条件包括以下至少一种:人脸特征质量高于第一阈值,图像质量高于第二阈值;Acquiring at least one type of sample image that satisfies a preset sample condition; wherein the preset sample condition includes at least one of the following: the facial feature quality is higher than a first threshold, and the image quality is higher than a second threshold;
    利用至少一类样本图像组成所述训练样本集。The training sample set is composed of at least one type of sample images.
  10. 一种拍摄控制装置,其中,所述装置包括:A shooting control device, wherein the device comprises:
    控制单元,配置为对目标拍摄场景进行拍摄时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;a control unit, configured to control the image acquisition unit to collect at least one preview image of the target shooting scene when shooting the target shooting scene;
    处理单元,配置为将所述预览图像输入到基于深度学习算法构建的图像质量评价模型中,得到所述预览图像的图像质量评价结果;a processing unit, configured to input the preview image into an image quality evaluation model constructed based on a deep learning algorithm to obtain an image quality evaluation result of the preview image;
    确定单元,配置为基于所述预览图像的图像质量评价结果,从所述至少一帧预览图像中确定针对所述目标拍摄场景的目标拍摄图像。A determination unit configured to determine, from the at least one frame of preview image, a target shot image for the target shot scene based on an image quality evaluation result of the preview image.
  11. 根据权利要求10所述的装置,其中,所述控制单元,配置为检测到启动控制指令时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;The device according to claim 10, wherein the control unit is configured to control the image acquisition unit to acquire at least one frame of preview image of the target shooting scene when a start control instruction is detected;
    所述确定单元,配置为基于所述预览图像的图像质量评价结果,选择最优图像质量评价结果;判断所述最优图像质量评价结果是否满足图像优选条件;所述最优图像质量评价结果满足所述图像优选条件时,确定所述最优图像质量评价结果对应的预览图像为所述目标拍摄图像;The determining unit is configured to select an optimal image quality evaluation result based on the image quality evaluation result of the preview image; determine whether the optimal image quality evaluation result satisfies the image preference condition; the optimal image quality evaluation result satisfies In the case of the image optimization condition, determining that the preview image corresponding to the optimal image quality evaluation result is the target shot image;
    所述控制单元,配置为所述最优图像质量评价结果不满足所述图像优选条件时,控制所述图像采集单元继续采集所述目标拍摄场景的至少一帧预览图像,并输入到所述图像质量评价模型中。The control unit is configured to control the image acquisition unit to continue to collect at least one frame of preview image of the target shooting scene when the optimal image quality evaluation result does not meet the image preference condition, and input it into the image in the quality assessment model.
  12. 根据权利要求11所述的装置,其中,所述图像优选条件包括至少一项图像质量评价标准,其中,不同图像质量评价标准用于评价不同评价结果;The apparatus according to claim 11, wherein the image preference condition includes at least one image quality evaluation criterion, wherein different image quality evaluation criteria are used to evaluate different evaluation results;
    所述确定单元,配置为判断所述最优图像质量评价结果中的至少一种 评价结果是否满足对应的图像质量评价标准;当每种评价结果均满足对应的图像质量评价标准时,确定所述最优图像质量评价结果满足所述图像优选条件;当存在部分评价结果不满足对应的图像质量评价标准时,确定所述最优图像质量评价结果不满足所述图像优选条件。The determining unit is configured to determine whether at least one evaluation result in the optimal image quality evaluation results satisfies the corresponding image quality evaluation standard; when each evaluation result satisfies the corresponding image quality evaluation standard, determine the optimal image quality evaluation result. The optimal image quality evaluation result satisfies the image preference condition; when there are some evaluation results that do not satisfy the corresponding image quality evaluation standard, it is determined that the optimal image quality evaluation result does not satisfy the image preference condition.
  13. 根据权利要求11所述的装置,其中,确定单元,配置为在所述最优图像质量评价结果满足所述图像优选条件时,生成拍摄控制指令;The apparatus according to claim 11, wherein the determining unit is configured to generate a shooting control instruction when the optimal image quality evaluation result satisfies the image optimization condition;
    响应所述拍摄控制指令,控制显示单元显示所述目标拍摄图像,并保存所述目标拍摄图像。In response to the photographing control instruction, the display unit is controlled to display the target photographed image and save the target photographed image.
  14. 根据权利要求11所述的装置,其中,所述确定单元,配置为在所述最优图像质量评价结果不满足所述图像优选条件时,生成拍摄提示信息并输出,以提示用户调整拍摄信息;其中,所述拍摄信息包括以下至少一项:图像采集单元的拍摄参数、图像采集单元的拍摄姿态、拍摄对象姿态。The apparatus according to claim 11, wherein the determining unit is configured to generate and output photographing prompt information to prompt the user to adjust the photographing information when the optimal image quality evaluation result does not satisfy the image preference condition; Wherein, the shooting information includes at least one of the following: shooting parameters of the image acquisition unit, shooting posture of the image acquisition unit, and shooting object posture.
  15. 根据权利要求10所述的装置,其中,所述控制单元,配置为检测到启动控制指令时,控制图像采集单元采集所述目标拍摄场景的至少一帧预览图像;The device according to claim 10, wherein the control unit is configured to control the image acquisition unit to acquire at least one frame of preview image of the target shooting scene when a start control instruction is detected;
    所述确定单元,配置为基于所述预览图像的图像质量评价结果,选择最优图像质量评价结果;确定所述最优图像质量评价结果对应的预览图像为所述目标拍摄图像。The determining unit is configured to select an optimal image quality evaluation result based on the image quality evaluation result of the preview image; and determine the preview image corresponding to the optimal image quality evaluation result as the target shot image.
  16. 根据权利要求10所述的装置,其中,处理单元,配置为在所述得到所述预览图像的图像质量评价结果之后,控制显示单元显示所述预览图像的图像质量评价结果。The apparatus according to claim 10, wherein the processing unit is configured to, after obtaining the image quality evaluation result of the preview image, control the display unit to display the image quality evaluation result of the preview image.
  17. 根据权利要求10所述的装置,其中,所述装置还包括:The apparatus of claim 10, wherein the apparatus further comprises:
    构建单元,配置为基于深度学习算法构建初始评价模型;获取包含至少一类样本图像的训练样本集;其中,每一类样本图像对应一种拍摄场景;利用所述训练样本集训练所述初始评价模型,得到训练好的所述图像质量评价模型。a construction unit, configured to construct an initial evaluation model based on a deep learning algorithm; obtain a training sample set including at least one type of sample image; wherein, each type of sample image corresponds to a shooting scene; use the training sample set to train the initial evaluation model to obtain the trained image quality evaluation model.
  18. 根据权利要求17所述的装置,其中,所述构建单元,配置为获取满足预设样本条件的至少一类样本图像;其中,所述预设样本条件包括以下至少一种:人脸特征质量高于第一阈值,图像质量高于第二阈值;利用 至少一类样本图像组成所述训练样本集。The apparatus according to claim 17, wherein the construction unit is configured to obtain at least one type of sample image that satisfies a preset sample condition; wherein the preset sample condition includes at least one of the following: high-quality facial features At the first threshold, the image quality is higher than the second threshold; and at least one type of sample image is used to form the training sample set.
  19. 一种电子设备,所述电子设备包括:处理器和配置为存储能够在处理器上运行的计算机程序的存储器,An electronic device comprising: a processor and a memory configured to store a computer program executable on the processor,
    其中,所述处理器配置为运行所述计算机程序时,执行权利要求1至9任一项所述方法的步骤。Wherein, the processor is configured to execute the steps of the method of any one of claims 1 to 9 when running the computer program.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其中,该计算机程序被处理器执行时实现权利要求1至9任一项所述的方法的步骤。A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 9.
PCT/CN2021/104515 2020-08-03 2021-07-05 Photography control method and apparatus, electronic device, and storage medium WO2022028184A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010768972.0A CN112019739A (en) 2020-08-03 2020-08-03 Shooting control method and device, electronic equipment and storage medium
CN202010768972.0 2020-08-03

Publications (1)

Publication Number Publication Date
WO2022028184A1 true WO2022028184A1 (en) 2022-02-10

Family

ID=73499263

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/104515 WO2022028184A1 (en) 2020-08-03 2021-07-05 Photography control method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN112019739A (en)
WO (1) WO2022028184A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116347212A (en) * 2022-08-05 2023-06-27 荣耀终端有限公司 Automatic photographing method and electronic equipment

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019739A (en) * 2020-08-03 2020-12-01 RealMe重庆移动通信有限公司 Shooting control method and device, electronic equipment and storage medium
CN113095157A (en) * 2021-03-23 2021-07-09 深圳市创乐慧科技有限公司 Image shooting method and device based on artificial intelligence and related products
CN113179371B (en) * 2021-04-21 2023-04-07 新疆爱华盈通信息技术有限公司 Shooting method, device and snapshot system
CN114640798B (en) * 2022-05-09 2022-10-04 荣耀终端有限公司 Image processing method, electronic device, and computer storage medium
CN115984720B (en) * 2022-12-19 2024-04-12 山东和同信息科技股份有限公司 Heat supply pipe network management system based on big data technology
CN116320716B (en) * 2023-05-25 2023-10-20 荣耀终端有限公司 Picture acquisition method, model training method and related devices
CN116916151B (en) * 2023-09-12 2023-12-08 荣耀终端有限公司 Shooting method, electronic device and storage medium
CN117097989B (en) * 2023-10-18 2024-01-02 北京道仪数慧科技有限公司 Image optimization processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174185A (en) * 2016-12-07 2018-06-15 中兴通讯股份有限公司 A kind of photographic method, device and terminal
US20190129962A1 (en) * 2017-11-01 2019-05-02 Adobe Systems Incorporated Ranking images based on image effects
CN110839129A (en) * 2018-08-17 2020-02-25 Oppo广东移动通信有限公司 Image processing method and device and mobile terminal
CN111182212A (en) * 2019-12-31 2020-05-19 Oppo广东移动通信有限公司 Image processing method, image processing apparatus, storage medium, and electronic device
CN112019739A (en) * 2020-08-03 2020-12-01 RealMe重庆移动通信有限公司 Shooting control method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618640B (en) * 2014-12-30 2018-05-01 广东欧珀移动通信有限公司 A kind of photographic method and device
CN105635614A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Recording and photographing method, device and terminal electronic equipment
CN106331504B (en) * 2016-09-30 2020-03-17 北京小米移动软件有限公司 Shooting method and device
CN107832675A (en) * 2017-10-16 2018-03-23 广东欧珀移动通信有限公司 Processing method of taking pictures and Related product
CN108234870B (en) * 2017-12-27 2019-10-11 Oppo广东移动通信有限公司 Image processing method, device, terminal and storage medium
CN108449543A (en) * 2018-03-14 2018-08-24 广东欧珀移动通信有限公司 Image synthetic method, device, computer storage media and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174185A (en) * 2016-12-07 2018-06-15 中兴通讯股份有限公司 A kind of photographic method, device and terminal
US20190129962A1 (en) * 2017-11-01 2019-05-02 Adobe Systems Incorporated Ranking images based on image effects
CN110839129A (en) * 2018-08-17 2020-02-25 Oppo广东移动通信有限公司 Image processing method and device and mobile terminal
CN111182212A (en) * 2019-12-31 2020-05-19 Oppo广东移动通信有限公司 Image processing method, image processing apparatus, storage medium, and electronic device
CN112019739A (en) * 2020-08-03 2020-12-01 RealMe重庆移动通信有限公司 Shooting control method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116347212A (en) * 2022-08-05 2023-06-27 荣耀终端有限公司 Automatic photographing method and electronic equipment
CN116347212B (en) * 2022-08-05 2024-03-08 荣耀终端有限公司 Automatic photographing method and electronic equipment

Also Published As

Publication number Publication date
CN112019739A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
WO2022028184A1 (en) Photography control method and apparatus, electronic device, and storage medium
JP5136669B2 (en) Image processing apparatus, image processing method, and program
WO2017096857A1 (en) Method and device for adjusting photographing parameter of camera
US20210306559A1 (en) Photographing methods and devices
WO2020076356A1 (en) Systems and methods for providing feedback for artificial intelligence-based image capture devices
WO2019134502A1 (en) Photographing method and device, storage medium, and electronic apparatus
WO2021169686A1 (en) Photo capture control method and apparatus and computer readable storage medium
JP6899002B2 (en) Image processing methods, devices, computer-readable storage media and electronic devices
CN104754196B (en) Electronic device and method
CN105827942A (en) Rapid photographing method and electronic device
WO2019214574A1 (en) Image capturing method and apparatus, and electronic terminal
WO2019213818A1 (en) Photographing control method, and electronic device
KR101930460B1 (en) Photographing apparatusand method for controlling thereof
WO2015180684A1 (en) Mobile terminal-based shooting simulation teaching method and system, and storage medium
JP2008219449A (en) Imaging device and control method thereof
CN108600610A (en) Shoot householder method and device
CN111771372A (en) Method and device for determining camera shooting parameters
JP2005045600A (en) Image photographing apparatus and program
CN109089045A (en) A kind of image capture method and equipment and its terminal based on multiple photographic devices
US10769416B2 (en) Image processing method, electronic device and storage medium
JP5370555B2 (en) Imaging apparatus, imaging method, and program
CN108259767B (en) Image processing method, image processing device, storage medium and electronic equipment
JP2015198300A (en) Information processor, imaging apparatus, and image management system
CN107155000B (en) Photographing behavior analysis method and device and mobile terminal
JP2014017665A (en) Display control unit, control method for display control unit, program, and recording medium

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: 21854570

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: 21854570

Country of ref document: EP

Kind code of ref document: A1