WO2021169686A1 - Photo capture control method and apparatus and computer readable storage medium - Google Patents

Photo capture control method and apparatus and computer readable storage medium Download PDF

Info

Publication number
WO2021169686A1
WO2021169686A1 PCT/CN2021/073024 CN2021073024W WO2021169686A1 WO 2021169686 A1 WO2021169686 A1 WO 2021169686A1 CN 2021073024 W CN2021073024 W CN 2021073024W WO 2021169686 A1 WO2021169686 A1 WO 2021169686A1
Authority
WO
WIPO (PCT)
Prior art keywords
shooting
interest
region
target
image
Prior art date
Application number
PCT/CN2021/073024
Other languages
French (fr)
Chinese (zh)
Inventor
李逸超
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021169686A1 publication Critical patent/WO2021169686A1/en

Links

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/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
    • 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/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Definitions

  • This application relates to the field of electronic technology, and in particular to a shooting control method, device, and computer-readable storage medium.
  • a region of interest (ROI, Region of Interest) is used as a reference area for setting parameters such as focus, exposure, and beauty of the terminal camera, which has a direct impact on the quality of the image captured by the terminal.
  • ROI Region of Interest
  • the user when the terminal takes pictures, the user usually manually selects the area of interest on the shooting preview screen.
  • some shooting scenes such as scenes such as oral shooting
  • the embodiments of the present application provide a shooting control method, device, and computer-readable storage medium, which can at least solve the problem that the accuracy of the region of interest cannot be obtained by manually selecting the region of interest on the shooting preview screen in the related art Guarantee, as well as the problem of the low quality of the captured images.
  • the first aspect of the embodiments of the present application provides a shooting control method, including:
  • the viewfinder area is photographed.
  • a second aspect of the embodiments of the present application provides a shooting control device, including:
  • An acquisition module for acquiring a shooting preview image corresponding to the viewfinder area
  • the comparison module is configured to perform feature comparison on the shooting preview image according to the reference feature of the region of interest to obtain the target region of interest in the shooting preview image;
  • a setting module configured to set target shooting parameters based on the target region of interest
  • the photographing module is used for photographing the viewfinder area in response to a photographing trigger instruction.
  • the third aspect of the embodiments of the present application provides an electronic device, including: a memory, a processor, and a bus; the bus is used to realize connection and communication between the memory and the processor; the processor is used to execute a computer program stored in the memory; and processing When the computer program is executed by the computer program, the steps in the shooting control method provided in the first aspect of the foregoing embodiments of the present application are implemented.
  • the fourth aspect of the embodiments of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, each step in the shooting control method provided in the first aspect of the foregoing embodiments of the present application is implemented. .
  • the shooting preview image corresponding to the viewing area is obtained; according to the reference feature of the region of interest, the feature comparison of the shooting preview image is obtained, Shoot the target region of interest in the preview image; set the target shooting parameters based on the target region of interest; and respond to the shooting trigger instruction to shoot the viewfinder area.
  • the region of interest is automatically matched in the shooting preview image according to the reference feature of the region of interest, which can be widely applied to various shooting scenes, effectively ensuring the accuracy of the determined region of interest, and improving the shooting The quality of the image.
  • FIG. 1 is a schematic diagram of the basic flow of the shooting control method provided by the first embodiment of this application;
  • FIG. 2 is a schematic flowchart of a method for determining a region of interest provided by the first embodiment of this application;
  • FIG. 3 is a schematic flowchart of an image feature extraction method provided by the first embodiment of this application.
  • FIG. 4 is a schematic flowchart of another method for determining a region of interest provided by the first embodiment of this application;
  • FIG. 5 is a detailed flowchart of the shooting control method provided by the second embodiment of this application.
  • FIG. 6 is a schematic diagram of program modules of a photographing control device provided by the third embodiment of this application.
  • FIG. 7 is a schematic diagram of program modules of another photographing control device provided by the third embodiment of this application.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by a fourth embodiment of this application.
  • Fig. 1 is a basic flowchart of the shooting control method provided in this embodiment.
  • the shooting control method includes the following steps:
  • Step 101 Acquire a shooting preview image corresponding to the viewfinder area.
  • the terminal After the camera application on the terminal is triggered, the terminal enters the shooting preview state, and performs an imaging preview of the scene in the viewfinder area of the camera.
  • the terminal in this embodiment is a terminal with a camera function, such as a mobile phone, a camera, and so on.
  • Step 102 Perform feature comparison on the shooting preview image according to the reference feature of the region of interest to obtain the target region of interest in the shooting preview image.
  • this embodiment performs feature comparison in the shot preview image based on preset reference features of the region of interest to automatically match the region of interest from the shot preview image, where the reference feature of the region of interest can use keywords or Image features to achieve.
  • the method before the feature comparison of the shooting preview image based on the reference feature of the region of interest, the method further includes: obtaining the shooting scene attributes based on the shooting preview image; When the conditions are automatically matched, the step of performing feature comparison on the captured preview image according to the reference feature of the region of interest is performed.
  • the solution of automatically matching the region of interest in this embodiment is optimally implemented or can meet the user's intention.
  • this embodiment is previewing the shooting Before the image automatically matches the region of interest, the current shooting scene is also judged, and the above actions are performed only when the current shooting scene meets certain conditions (for example, the oral wound shooting scene and other special shooting scenes), and vice versa.
  • Perform other region-of-interest determination solutions such as determining the region of interest based on a region-of-interest selection instruction input by the user. Therefore, according to the shooting scene, the automatic matching of the region of interest process of this embodiment is oriented and implemented, which is more adaptable to the scene and more reasonable.
  • Step 103 Set the target shooting parameters based on the target region of interest.
  • the region of interest is the region in the image that can most arouse the user's interest and can best express the content of the image.
  • the shooting parameters here may include focus parameters. , Exposure parameters, etc.
  • shooting mode selection controls can also be provided, such as long exposure, HDR, and multiple shooting modes for users to choose from, such as taking turns at focal lengths, to meet users' more diversified shooting needs.
  • Step 104 In response to the shooting trigger instruction, take a shot of the viewfinder area.
  • the camera is controlled to shoot the viewfinder area, and finally output the viewfinder Photos of the area.
  • Figure 2 is a schematic flow chart of a method for determining a region of interest provided by this embodiment.
  • the feature comparison of the captured preview image is performed according to the reference feature of the region of interest to obtain the captured image.
  • the target area of interest in the preview image specifically includes the following steps:
  • Step 201 Perform multi-scale block processing on the captured preview image to obtain multiple sub-image areas
  • Step 202 Use the image feature of the target region in the preset reference image as the reference feature of the region of interest, and compare the regional image features of the multiple sub-image regions respectively.
  • Step 203 Determine the sub-image area whose correlation degree is higher than the correlation degree threshold as the target area of interest in the shooting preview image.
  • the captured preview image may be split, and then image feature extraction is performed on the sub-image regions obtained by splitting, and then the extracted image features are compared based on the preset image features. And the sub-image area corresponding to the image feature passed by the comparison is taken as the area of interest in the shooting preview image.
  • the region of interest obtained from the shooting preview image is not limited to one, and in practical applications there may also be multiple regions at the same time.
  • Fig. 3 is a schematic flow chart of an image feature extraction method provided in this embodiment. Further, in some implementations of this embodiment, before acquiring the shooting preview image corresponding to the viewfinder area, the following steps are specifically included:
  • Step 301 Receive an external region selection instruction input for a locally stored reference image
  • Step 302 Select a target area on the reference image according to the area selection instruction
  • Step 303 Perform feature extraction on the target area to obtain image features.
  • the reference image and its image characteristics used for feature comparison of the captured preview image can be obtained from the background, or can be stored locally by the terminal user in advance according to the method provided in this embodiment. Specify a specific image as a reference image, and then manually select an image area in the reference image, and finally the terminal uses an image recognition algorithm to extract features of the area, determine the image features of the area, and provide a feature comparison reference for the captured preview image .
  • obtaining the target area of interest in the shooting preview image includes: performing multi-scale block processing on the shooting preview image to obtain multiple sub-image areas; performing image element recognition on each sub-image area to obtain image elements in each sub-image area Identification: The identification of each image element is compared with a preset keyword, and the sub-image area where the identification of the image element matches the keyword is determined as the target region of interest.
  • the method further includes: collecting externally input voice; extracting the keyword of the region of interest in the voice; and using the extracted keyword as the reference feature of the region of interest.
  • Figure 4 is a schematic flowchart of another image feature extraction method provided by this embodiment.
  • the feature comparison of the captured preview image is performed according to the reference feature of the region of interest to obtain the captured preview image
  • the target area of interest in specifically includes the following steps:
  • Step 401 Perform feature comparison on the shooting preview image according to the reference feature of the region of interest to obtain multiple candidate regions of interest in the shooting preview image;
  • Step 402 Obtain area attributes of multiple candidate regions of interest respectively.
  • Step 403 Determine the target region of interest from among the multiple candidate regions of interest based on the comparison result of the region attributes.
  • the region of interest when comparing the features of the captured preview image, there may be multiple image regions that match the reference features of the region of interest, and then the region of interest can be further uniquely determined from these multiple image regions.
  • the region attributes of a plurality of image regions that meet the reference characteristics of the region of interest such as region location information, region area size, etc.
  • these image regions are compared, and then the best image region in the comparison result is finally Determine the target area of interest to ensure the accuracy of the area of interest to the greatest extent possible.
  • setting the target shooting parameters based on the target regions of interest includes: respectively acquiring shooting parameter setting intentions associated with each target region of interest; The target shooting parameters corresponding to the related shooting parameter setting intentions are set respectively based on the regions of interest of each target.
  • the shooting parameter setting intention of each region of interest is correspondingly determined, and then the shooting parameters related to the shooting parameter setting intention are set based on the corresponding region of interest.
  • the method in response to the shooting trigger instruction, before shooting the viewfinder area, the method further includes: identifying target image elements in the target area of interest in the shooting preview image; calculating the shooting preview image and the interval The amount of change in the position of the target image element between shooting preview images of the preset number of frames; when the position change of the target image element is less than the preset position change threshold, the step of shooting the viewfinder area in response to the shooting trigger instruction is executed .
  • the shooting behavior of the camera is not triggered instantaneously, that is, the camera may still be in the shooting preview state for a period of time, and during the shooting preview process, It may be affected by objective factors such as the user's shaking of the terminal, etc.
  • the specific image elements (such as teeth, moon, etc.) in the region of interest previously determined in the preview image may be offset, and when the offset is large At this time, the image element may not be in the originally determined area of interest, and the image element in the area of interest is not the image element expected by the user, and the image quality of the final photo taken when the camera is triggered is not good.
  • the image elements of the region of interest are identified, and then the subsequent shooting preview images are compared with the image elements in the previous shooting preview images. Only when the position offset of is small, the viewfinder area is allowed to be photographed according to the shooting trigger instruction, so as to effectively ensure the quality of the photographed output.
  • the shooting adjustment parameter is calculated based on the position change; and the shooting adjustment prompt information is output according to the shooting adjustment parameter.
  • the deviation of the image element when the deviation of the specific image element in the region of interest determined in the preview image is large, in order to ensure the normal completion of this shooting, the deviation of the image element may be based on To calculate the shooting adjustment parameters, and output prompts to instruct the user to perform shooting adjustments, such as prompting the user to adjust the position of the terminal or adjust the user's own posture.
  • the prompt information output manner of this embodiment can be implemented in a manner of voice prompt, vibration prompt, or display prompt.
  • a photographed preview image corresponding to the viewfinder area is acquired; the photographed preview image is compared according to the reference features of the area of interest to obtain the target area of interest in the photographed preview image; based on the sense of object In the region of interest, the target shooting parameters are set; in response to the shooting trigger command, the viewfinder area is shot.
  • the region of interest is automatically matched in the shooting preview image according to the reference feature of the region of interest, which can be widely applied to various shooting scenes, effectively ensuring the accuracy of the determined region of interest, and improving the shooting The quality of the image.
  • the method in FIG. 5 is a detailed shooting control method provided by the second embodiment of this application, and the shooting control method includes:
  • Step 501 Obtain a shot preview image corresponding to the viewfinder area, and perform multi-scale block processing on the shot preview image to obtain multiple sub-image areas.
  • the terminal when the camera application on the terminal is triggered, the terminal enters the shooting preview state, and performs an imaging preview of the scene in the viewing area of the camera.
  • the photographed preview image is split, and the image feature comparison is performed in units of sub-image areas.
  • Step 502 Use the image features of the target area in the preset reference image to compare the regional image features of the multiple sub-image areas respectively.
  • Step 503 Determine the sub-image area whose correlation degree is higher than the correlation degree threshold as the target area of interest in the shooting preview image.
  • image feature extraction is performed on the sub-image regions obtained by splitting, and then the extracted image features are respectively compared based on the preset image features, and the sub-images corresponding to the passed image features are compared.
  • the area is taken as the area of interest in the shooting preview image.
  • Step 504 Set the target shooting parameters based on the target region of interest.
  • the area of interest needs to be used as a reference area for setting related shooting parameters, where the shooting parameters may include focus parameters, exposure parameters, and so on.
  • Step 505 Identify the target image elements in the target region of interest in the shooting preview image.
  • Step 506 Calculate the amount of change in the position of the target image element between the captured preview image and the captured preview image with an interval of a preset number of frames.
  • the shooting preview process it may be affected by objective factors such as the user shaking the terminal.
  • objective factors such as the user shaking the terminal.
  • the position of the region of interest in the shooting preview image is fixed, the specific region of interest previously determined in the shooting preview image Image elements (such as teeth, moon, etc.) may be offset.
  • Step 507 When the position change amount of the target image element is less than the preset position change threshold value, in response to the shooting trigger instruction, photograph the viewfinder area.
  • this embodiment compares the position of the image element in the subsequent shooting preview image with the image element in the previous shooting preview image, and only when the position offset of the image element is small, the viewfinder area is allowed to be photographed according to the shooting trigger instruction , So as to effectively ensure the quality of the photos taken and output.
  • the embodiment of the application discloses a shooting control method to obtain a shooting preview image corresponding to a viewing area; according to the reference feature of the region of interest, the feature comparison of the shooting preview image is performed to obtain the target region of interest in the shooting preview image; For the target area of interest, the target shooting parameters are set; in response to the shooting trigger instruction, the viewfinder area is shot.
  • the region of interest is automatically matched in the shooting preview image according to the reference feature of the region of interest, which can be widely applied to various shooting scenes, effectively ensuring the accuracy of the determined region of interest, and improving the shooting
  • the specific image element in the region of interest determined in the preview image has not been significantly moved, it is allowed to shoot the viewfinder area according to the shooting trigger instruction, thereby avoiding jitter In this case, the image quality caused by the trigger shooting is poor, which effectively guarantees the quality of the photos output.
  • FIG. 6 is a photographing control device provided by the third embodiment of this application.
  • the photographing control device can be used to implement the photographing control method in the foregoing embodiment.
  • the shooting control device mainly includes:
  • the acquiring module 601 is configured to acquire a shooting preview image corresponding to the viewfinder area
  • the comparison module 602 is configured to compare the features of the shot preview image according to the reference features of the region of interest to obtain the target region of interest in the shot preview image;
  • the setting module 603 is used to set the target shooting parameters based on the target region of interest
  • the photographing module 604 is configured to photograph the viewfinder area in response to a photographing trigger instruction.
  • the comparison module 602 is specifically configured to: perform multi-scale block processing on the captured preview image to obtain multiple sub-image regions; use the image feature of the target region in the preset reference image as the region of interest With reference to the feature, the regional image features of multiple sub-image areas are respectively compared; the sub-image area whose comparison correlation degree is higher than the correlation degree threshold is determined as the target area of interest in the shooting preview image.
  • FIG. 7 shows another shooting control device provided by this embodiment.
  • the shooting control device further includes: an extraction module 605, which is used to obtain information corresponding to the viewfinder area.
  • an extraction module 605 which is used to obtain information corresponding to the viewfinder area.
  • receive an external region selection instruction input for a locally stored reference image select a target region on the reference image according to the region selection instruction; perform feature extraction on the target region to obtain image features.
  • the comparison module 602 is specifically configured to: compare the features of the shot preview image according to the reference features of the region of interest to obtain multiple candidate regions of interest in the shot preview image; The area attributes of multiple candidate areas of interest; based on the comparison result of the area attributes, the target area of interest is determined from among the multiple candidate areas of interest.
  • the setting module 603 is specifically configured to: obtain the shooting parameter setting intentions associated with each target region of interest respectively; , To set the target shooting parameter corresponding to the related shooting parameter setting intention.
  • the shooting control device further includes: a calculation module 606, which is used to capture the target in the preview image before shooting the viewfinder in response to the shooting trigger instruction. Identify the target image element in the area; calculate the position change of the target image element between the shooting preview image and the shooting preview image with a preset number of frames.
  • the photographing module 604 executes the function of photographing the viewfinder area in response to the photographing trigger instruction.
  • the shooting control device further includes: a prompting module 607, configured to calculate the shooting preview image and the shooting preview image at an interval of a preset number of frames, the target image After the position change of the element, when the position change of the target image element is greater than or equal to the position change threshold, the shooting adjustment parameter is calculated based on the position change; and the shooting adjustment prompt information is output according to the shooting adjustment parameter.
  • a prompting module 607 configured to calculate the shooting preview image and the shooting preview image at an interval of a preset number of frames, the target image After the position change of the element, when the position change of the target image element is greater than or equal to the position change threshold, the shooting adjustment parameter is calculated based on the position change; and the shooting adjustment prompt information is output according to the shooting adjustment parameter.
  • a shooting preview image corresponding to the viewfinder area is acquired; based on the reference feature of the region of interest, the shooting preview image is compared with features to obtain the target region of interest in the shooting preview image; For the region of interest, set the target shooting parameters; respond to the shooting trigger command to shoot the viewfinder area.
  • the region of interest is automatically matched in the shooting preview image according to the reference feature of the region of interest, which can be widely applied to various shooting scenes, effectively ensuring the accuracy of the determined region of interest, and improving the shooting The quality of the image.
  • FIG. 8 is an electronic device provided by a fourth embodiment of this application.
  • the electronic device can be used to implement the shooting control method in the foregoing embodiment.
  • the electronic device mainly includes:
  • the memory 801, the processor 802, the bus 803, and a computer program stored on the memory 801 and capable of running on the processor 802, and the memory 801 and the processor 802 are connected through the bus 803.
  • the processor 802 executes the computer program, it implements the shooting control method in the foregoing embodiment.
  • the number of processors can be one or more.
  • the memory 801 may be a high-speed random access memory (RAM, Random Access Memory) memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory.
  • RAM Random Access Memory
  • non-volatile memory non-volatile memory
  • the memory 801 is used to store executable program codes, and the processor 802 is coupled with the memory 801.
  • the embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium may be provided in the electronic device in each of the above-mentioned embodiments, and the computer-readable storage medium may be the one shown in FIG. 8 above.
  • the memory in the embodiment is shown.
  • a computer program is stored on the computer-readable storage medium, and the program is executed by the processor to realize the shooting control method in the foregoing embodiment.
  • the computer storable medium may also be a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), RAM, a magnetic disk, or an optical disk and other various media that can store program codes.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of modules is only a logical function division, and there may be other divisions in actual implementation, for example, multiple modules or components can be combined or integrated. To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or modules, and may be in electrical, mechanical or other forms.
  • the modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional modules in the various embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
  • the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a readable storage.
  • the medium includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned readable storage medium includes: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

Abstract

Provided in the present application are a photo capture control method and apparatus, and a computer readable storage medium. The photo capture control method comprises: acquiring a photo capture preview image corresponding to a view finding area; performing feature comparison on the photo capture preview image according to a region of interest reference feature, so as to obtain a target region of interest in the photo capture preview image; configuring a target photo capture parameter on the basis of the target region of interest; and photo capturing the view finding area in response to a photo capture trigger instruction. By implementing the solution of the present application, a region of interest is automatically matched in a photo capture preview image according to a region of interest reference feature, which may be widely applied to various photo capture scenarios, thus effectively ensuring the accuracy of a determined region of interest, and improving the quality of a photo captured image.

Description

一种拍摄控制方法、装置及计算机可读存储介质Shooting control method, device and computer readable storage medium 技术领域Technical field
本申请涉及电子技术领域,尤其涉及一种拍摄控制方法、装置及计算机可读存储介质。This application relates to the field of electronic technology, and in particular to a shooting control method, device, and computer-readable storage medium.
背景技术Background technique
随着终端技术的不断发展,用户的工作和生活中经常使用终端进行拍照,且用户对终端所拍摄的图像的质量要求也越来越高。With the continuous development of terminal technology, users often use the terminal to take pictures in their work and life, and users have higher and higher requirements for the quality of images taken by the terminal.
在实际应用中,感兴趣区域(ROI,Region of Interest)作为终端相机进行对焦、曝光、美颜等参数设置的基准区域,对于终端所拍摄的图像的质量有着直接影响。目前,终端在进行拍照时,通常是由用户手动在拍摄预览画面上选取感兴趣区域,然而对于部分拍摄场景(例如口腔拍摄等场景),由于用户不方面观看预览画面,或难以进行感兴趣区域的手动选取操作,导致感兴趣区域的准确性不能得到保证,以及所拍摄的图像的质量较低。In practical applications, a region of interest (ROI, Region of Interest) is used as a reference area for setting parameters such as focus, exposure, and beauty of the terminal camera, which has a direct impact on the quality of the image captured by the terminal. At present, when the terminal takes pictures, the user usually manually selects the area of interest on the shooting preview screen. However, for some shooting scenes (such as scenes such as oral shooting), it is difficult to view the area of interest because the user does not watch the preview screen. Because of the manual selection operation, the accuracy of the region of interest cannot be guaranteed, and the quality of the captured images is low.
技术问题technical problem
本申请实施例提供了一种拍摄控制方法、装置及计算机可读存储介质,至少能够解决相关技术中通过手动方式在拍摄预览画面上选取感兴趣区域,所导致的感兴趣区域的准确性不能得到保证,以及所拍摄的图像的质量较低的问题。The embodiments of the present application provide a shooting control method, device, and computer-readable storage medium, which can at least solve the problem that the accuracy of the region of interest cannot be obtained by manually selecting the region of interest on the shooting preview screen in the related art Guarantee, as well as the problem of the low quality of the captured images.
技术解决方案Technical solutions
本申请实施例第一方面提供了一种拍摄控制方法,包括:The first aspect of the embodiments of the present application provides a shooting control method, including:
获取对应于取景区域的拍摄预览图像;Acquiring a shooting preview image corresponding to the viewfinder area;
根据感兴趣区域参考特征,对所述拍摄预览图像进行特征比对,得到所述拍摄预览图像中的目标感兴趣区域;Performing feature comparison on the shooting preview image according to the reference feature of the region of interest to obtain the target region of interest in the shooting preview image;
基于所述目标感兴趣区域,对目标拍摄参数进行设置;Setting the target shooting parameters based on the target region of interest;
响应于拍摄触发指令,对所述取景区域进行拍摄。In response to a shooting trigger instruction, the viewfinder area is photographed.
本申请实施例第二方面提供了一种拍摄控制装置,包括:A second aspect of the embodiments of the present application provides a shooting control device, including:
获取模块,用于获取对应于取景区域的拍摄预览图像;An acquisition module for acquiring a shooting preview image corresponding to the viewfinder area;
比对模块,用于根据感兴趣区域参考特征,对所述拍摄预览图像进行特征比对,得到所述拍摄预览图像中的目标感兴趣区域;The comparison module is configured to perform feature comparison on the shooting preview image according to the reference feature of the region of interest to obtain the target region of interest in the shooting preview image;
设置模块,用于基于所述目标感兴趣区域,对目标拍摄参数进行设置;A setting module, configured to set target shooting parameters based on the target region of interest;
拍摄模块,用于响应于拍摄触发指令,对所述取景区域进行拍摄。The photographing module is used for photographing the viewfinder area in response to a photographing trigger instruction.
本申请实施例第三方面提供了一种电子装置,包括:存储器、处理器及总线;总线用于实现存储器、处理器之间的连接通信;处理器用于执行存储在存储器上的计算机程序;处理器执行计算机程序时,实现上述本申请实施例第一方面提供的拍摄控制方法中的各步骤。The third aspect of the embodiments of the present application provides an electronic device, including: a memory, a processor, and a bus; the bus is used to realize connection and communication between the memory and the processor; the processor is used to execute a computer program stored in the memory; and processing When the computer program is executed by the computer program, the steps in the shooting control method provided in the first aspect of the foregoing embodiments of the present application are implemented.
本申请实施例第四方面提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时,实现上述本申请实施例第一方面提供的拍摄控制方法中的各步骤。The fourth aspect of the embodiments of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each step in the shooting control method provided in the first aspect of the foregoing embodiments of the present application is implemented. .
有益效果Beneficial effect
由上可见,根据本申请方案所提供的拍摄控制方法、装置及计算机可读存储介质,获取对应于取景区域的拍摄预览图像;根据感兴趣区域参考特征,对拍摄预览图像进行特征比对,得到拍摄预览图像中的目标感兴趣区域;基于目标感兴趣区域,对目标拍摄参数进行设置;响应于拍摄触发指令,对取景区域进行拍摄。通过本申请方案的实施,根据感兴趣区域参考特征在拍摄预览图像中自动匹配感兴趣区域,可广泛适用于各种拍摄场景,有效保证了所确定的感兴趣区域的准确性,提升了所拍摄的图像的质量。It can be seen from the above that, according to the shooting control method, device and computer-readable storage medium provided by the solution of the present application, the shooting preview image corresponding to the viewing area is obtained; according to the reference feature of the region of interest, the feature comparison of the shooting preview image is obtained, Shoot the target region of interest in the preview image; set the target shooting parameters based on the target region of interest; and respond to the shooting trigger instruction to shoot the viewfinder area. Through the implementation of the solution of this application, the region of interest is automatically matched in the shooting preview image according to the reference feature of the region of interest, which can be widely applied to various shooting scenes, effectively ensuring the accuracy of the determined region of interest, and improving the shooting The quality of the image.
附图说明Description of the drawings
图1为本申请第一实施例提供的拍摄控制方法的基本流程示意图;FIG. 1 is a schematic diagram of the basic flow of the shooting control method provided by the first embodiment of this application;
图2为本申请第一实施例提供的一种感兴趣区域确定方法的流程示意图;2 is a schematic flowchart of a method for determining a region of interest provided by the first embodiment of this application;
图3为本申请第一实施例提供的一种图像特征提取方法的流程示意图;3 is a schematic flowchart of an image feature extraction method provided by the first embodiment of this application;
图4为本申请第一实施例提供的另一种感兴趣区域确定方法的流程示意图;4 is a schematic flowchart of another method for determining a region of interest provided by the first embodiment of this application;
图5为本申请第二实施例提供的拍摄控制方法的细化流程示意图;FIG. 5 is a detailed flowchart of the shooting control method provided by the second embodiment of this application;
图6为本申请第三实施例提供的一种拍摄控制装置的程序模块示意图;6 is a schematic diagram of program modules of a photographing control device provided by the third embodiment of this application;
图7为本申请第三实施例提供的另一种拍摄控制装置的程序模块示意图;7 is a schematic diagram of program modules of another photographing control device provided by the third embodiment of this application;
图8为本申请第四实施例提供的电子装置的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device provided by a fourth embodiment of this application.
本发明的实施方式Embodiments of the present invention
为使得本申请的发明目的、特征、优点能够更加的明显和易懂,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而非全部实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, features, and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the description The embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of this application.
为了解决相关技术中通过手动方式在拍摄预览画面上选取感兴趣区域,所导致的感兴趣区域的准确性不能得到保证,以及所拍摄的图像的质量较低的缺陷,本申请第一实施例提供了一种拍摄控制方法。如图1为本实施例提供的拍摄控制方法的基本流程图,该拍摄控制方法包括以下的步骤:In order to solve the defects that the accuracy of the region of interest cannot be guaranteed by manually selecting the region of interest on the shooting preview screen in the related art, and the quality of the captured image is low, the first embodiment of the present application provides A shooting control method. Fig. 1 is a basic flowchart of the shooting control method provided in this embodiment. The shooting control method includes the following steps:
步骤101、获取对应于取景区域的拍摄预览图像。Step 101: Acquire a shooting preview image corresponding to the viewfinder area.
具体的,在实际应用中,当触发终端上的相机应用之后,终端进入拍摄预览状态,对摄像头取景区域内的景物进行成像预览。应当说明的是,本实施例的终端为具有拍照功能的终端,例如手机、照相机等。Specifically, in actual applications, after the camera application on the terminal is triggered, the terminal enters the shooting preview state, and performs an imaging preview of the scene in the viewfinder area of the camera. It should be noted that the terminal in this embodiment is a terminal with a camera function, such as a mobile phone, a camera, and so on.
步骤102、根据感兴趣区域参考特征,对拍摄预览图像进行特征比对,得到拍摄预览图像中的目标感兴趣区域。Step 102: Perform feature comparison on the shooting preview image according to the reference feature of the region of interest to obtain the target region of interest in the shooting preview image.
具体的,本实施例基于预设的感兴趣区域参考特征在拍摄预览图像中进行特征比对,来自动从拍摄预览图像中匹配出感兴趣区域,其中,感兴趣区域参考特征可采用关键字或图像特征来实现。Specifically, this embodiment performs feature comparison in the shot preview image based on preset reference features of the region of interest to automatically match the region of interest from the shot preview image, where the reference feature of the region of interest can use keywords or Image features to achieve.
在本实施例的一些实施方式中,根据感兴趣区域参考特征,对拍摄预览图像进行特征比对之前,还包括:基于拍摄预览图像获取拍摄场景属性;在拍摄场景属性满足预设的感兴趣区域自动匹配条件时,执行根据感兴趣区域参考特征,对拍摄预览图像进行特征比对的步骤。In some implementations of this embodiment, before the feature comparison of the shooting preview image based on the reference feature of the region of interest, the method further includes: obtaining the shooting scene attributes based on the shooting preview image; When the conditions are automatically matched, the step of performing feature comparison on the captured preview image according to the reference feature of the region of interest is performed.
具体的,在实际应用中,并非在所有拍摄场景下,本实施例的自动匹配感兴趣区域的方案均为最优实现或均能符合用户的使用意图,基于此,本实施例在对拍摄预览图像自动进行感兴趣区域的匹配之前,还对当前拍摄场景进行判断,仅在当前拍摄场景满足特定条件(例如是口腔伤口拍摄场景等特殊拍摄场景)时,才执行上述动作,而反之,则可以执行其它感兴趣区域确定方案,例如根据用户输入的感兴趣区域选取指令,来对感兴趣区域进行确定。由此,根据拍摄场景来定向实施本实施例的自动匹配感兴趣区域流程,与场景的适应性较强,合理性更高。Specifically, in practical applications, not in all shooting scenarios, the solution of automatically matching the region of interest in this embodiment is optimally implemented or can meet the user's intention. Based on this, this embodiment is previewing the shooting Before the image automatically matches the region of interest, the current shooting scene is also judged, and the above actions are performed only when the current shooting scene meets certain conditions (for example, the oral wound shooting scene and other special shooting scenes), and vice versa. Perform other region-of-interest determination solutions, such as determining the region of interest based on a region-of-interest selection instruction input by the user. Therefore, according to the shooting scene, the automatic matching of the region of interest process of this embodiment is oriented and implemented, which is more adaptable to the scene and more reasonable.
步骤103、基于目标感兴趣区域,对目标拍摄参数进行设置。Step 103: Set the target shooting parameters based on the target region of interest.
具体的,感兴趣区域为图像中最能引起用户兴趣,最能表现图像内容的区域,在触发拍照之前,需要将感兴趣区域作为设置相关拍摄参数的基准区域,这里的拍摄参数可以包括对焦参数、曝光参数等。本实施例通过准确确定感兴趣区域,能够有效避免出现失焦、曝光不准的问题,提升特殊拍摄场景下的对焦、曝光质量。Specifically, the region of interest is the region in the image that can most arouse the user's interest and can best express the content of the image. Before triggering the shooting, the region of interest needs to be used as a reference region for setting related shooting parameters. The shooting parameters here may include focus parameters. , Exposure parameters, etc. In this embodiment, by accurately determining the region of interest, the problems of out-of-focus and inaccurate exposure can be effectively avoided, and the focus and exposure quality in a special shooting scene can be improved.
应当说明的是,在实际应用中,在以感兴趣区域为基准区域进行相关参数设定之后,由于不同场景下的成像特征不同,还可以提供拍摄模式选择控件,提供例如长曝光、HDR、多焦段轮流拍照等多种拍摄模式供用户选择,以满足用户更为多样化的拍摄需求。It should be noted that in practical applications, after setting the relevant parameters with the region of interest as the reference region, due to the different imaging characteristics in different scenes, shooting mode selection controls can also be provided, such as long exposure, HDR, and multiple There are multiple shooting modes for users to choose from, such as taking turns at focal lengths, to meet users' more diversified shooting needs.
步骤104、响应于拍摄触发指令,对取景区域进行拍摄。Step 104: In response to the shooting trigger instruction, take a shot of the viewfinder area.
具体的,本实施例在基于自动匹配的感兴趣区域并基于此完成相关拍摄参数设置之后,在接收到外部输入的或自动生成的拍摄触发指令时,控制摄像头对取景区域进行拍摄,最终输出取景区域的照片。Specifically, in this embodiment, based on the automatically matched region of interest and completion of related shooting parameter settings based on this, when an externally input or automatically generated shooting trigger instruction is received, the camera is controlled to shoot the viewfinder area, and finally output the viewfinder Photos of the area.
如图2所示为本实施例提供的一种感兴趣区域确定方法的流程示意图,在本实施例的一些实施方式中,根据感兴趣区域参考特征,对拍摄预览图像进行特征比对,得到拍摄预览图像中的目标感兴趣区域具体包括以下步骤:Figure 2 is a schematic flow chart of a method for determining a region of interest provided by this embodiment. In some implementations of this embodiment, the feature comparison of the captured preview image is performed according to the reference feature of the region of interest to obtain the captured image. The target area of interest in the preview image specifically includes the following steps:
步骤201、对拍摄预览图像进行多尺度分块处理,得到多个子图像区域;Step 201: Perform multi-scale block processing on the captured preview image to obtain multiple sub-image areas;
步骤202、将预设参考图像中的目标区域的图像特征作为感兴趣区域参考特征,分别对多个子图像区域的区域图像特征进行比对;Step 202: Use the image feature of the target region in the preset reference image as the reference feature of the region of interest, and compare the regional image features of the multiple sub-image regions respectively.
步骤203、将比对相关度高于相关度阈值的子图像区域,确定为拍摄预览图像中的目标感兴趣区域。Step 203: Determine the sub-image area whose correlation degree is higher than the correlation degree threshold as the target area of interest in the shooting preview image.
具体的,在本实施例中,可以将拍摄预览图像进行拆分,然后对拆分得到的子图像区域分别进行图像特征提取,再基于预设图像特征对所提取的图像特征分别进行比对,并将比对通过的图像特征所对应的子图像区域作为拍摄预览图像中的感兴趣区域。应当理解的是,在实际应用中,从拍摄预览图像中所得到的感兴趣区域并不仅限于一个,在实际应用中也可以同时存在多个。Specifically, in this embodiment, the captured preview image may be split, and then image feature extraction is performed on the sub-image regions obtained by splitting, and then the extracted image features are compared based on the preset image features. And the sub-image area corresponding to the image feature passed by the comparison is taken as the area of interest in the shooting preview image. It should be understood that, in practical applications, the region of interest obtained from the shooting preview image is not limited to one, and in practical applications there may also be multiple regions at the same time.
如图3如本实施例提供的一种图像特征提取方法的流程示意图,进一步地,在本实施例的一些实施方式中,在获取对应于取景区域的拍摄预览图像之前,还具体包括以下步骤:Fig. 3 is a schematic flow chart of an image feature extraction method provided in this embodiment. Further, in some implementations of this embodiment, before acquiring the shooting preview image corresponding to the viewfinder area, the following steps are specifically included:
步骤301、接收外部针对本地存储的参考图像输入的区域选取指令;Step 301: Receive an external region selection instruction input for a locally stored reference image;
步骤302、根据区域选取指令在参考图像上选取目标区域;Step 302: Select a target area on the reference image according to the area selection instruction;
步骤303、对目标区域进行特征提取,得到图像特征。Step 303: Perform feature extraction on the target area to obtain image features.
具体的,在实际应用中,用于对拍摄预览图像进行特征比对的参考图像及其图像特征可以从后台获取,也可以按照本实施例中所提供的方式,由终端用户预先在本地存储中指定特定图像作为参考图像,然后手动选取参考图像中的某个图像区域,最后由终端采用图像识别算法对该区域进行特征提取,确定该区域的图像特征,以向拍摄预览图像提供特征比对参考。Specifically, in practical applications, the reference image and its image characteristics used for feature comparison of the captured preview image can be obtained from the background, or can be stored locally by the terminal user in advance according to the method provided in this embodiment. Specify a specific image as a reference image, and then manually select an image area in the reference image, and finally the terminal uses an image recognition algorithm to extract features of the area, determine the image features of the area, and provide a feature comparison reference for the captured preview image .
应当说明的是,在本实施例的一些实施方式中,在感兴趣区域参考特征为关键字时,例如“牙齿”、“月亮”时,根据感兴趣区域参考特征,对拍摄预览图像进行特征比对,得到拍摄预览图像中的目标感兴趣区域包括:对拍摄预览图像进行多尺度分块处理,得到多个子图像区域;对各子图像区域进行图像元素识别,得到各子图像区域内的图像元素标识;将各图像元素标识与预设的关键字进行比对,并将图像元素标识符合关键字的子图像区域确定为目标感兴趣区域。It should be noted that in some implementations of this embodiment, when the reference feature of the region of interest is a keyword, such as "teeth" and "moon", the feature comparison is performed on the captured preview image according to the reference feature of the region of interest. Yes, obtaining the target area of interest in the shooting preview image includes: performing multi-scale block processing on the shooting preview image to obtain multiple sub-image areas; performing image element recognition on each sub-image area to obtain image elements in each sub-image area Identification: The identification of each image element is compared with a preset keyword, and the sub-image area where the identification of the image element matches the keyword is determined as the target region of interest.
进一步地,获取对应于取景区域的拍摄预览图像之前,还包括:采集外部输入的语音;提取语音中的感兴趣区域关键字;将所提取的关键字作为感兴趣区域参考特征。Further, before acquiring the shooting preview image corresponding to the viewfinder area, the method further includes: collecting externally input voice; extracting the keyword of the region of interest in the voice; and using the extracted keyword as the reference feature of the region of interest.
如图4为本实施例提供的另一种图像特征提取方法的流程示意图,在本实施例的一些实施方式中,根据感兴趣区域参考特征,对拍摄预览图像进行特征比对,得到拍摄预览图像中的目标感兴趣区域具体包括以下步骤:Figure 4 is a schematic flowchart of another image feature extraction method provided by this embodiment. In some implementations of this embodiment, the feature comparison of the captured preview image is performed according to the reference feature of the region of interest to obtain the captured preview image The target area of interest in specifically includes the following steps:
步骤401、根据感兴趣区域参考特征,对拍摄预览图像进行特征比对,得到拍摄预览图像中的多个备选感兴趣区域;Step 401: Perform feature comparison on the shooting preview image according to the reference feature of the region of interest to obtain multiple candidate regions of interest in the shooting preview image;
步骤402、分别获取多个备选感兴趣区域的区域属性;Step 402: Obtain area attributes of multiple candidate regions of interest respectively.
步骤403、基于区域属性的比较结果,从多个备选感兴趣区域之中确定目标感兴趣区域。Step 403: Determine the target region of interest from among the multiple candidate regions of interest based on the comparison result of the region attributes.
具体的,在实际应用中,在对拍摄预览图像进行特征比对时,可能存在多个图像区域符合感兴趣区域参考特征,那么则可从这多个图像区域中进一步对感兴趣区域进行唯一确定。在本实施例中,根据多个符合感兴趣区域参考特征的图像区域的区域属性,例如区域位置信息、区域面积大小等,对这些图像区域进行比较,然后将比较结果中最优的图像区域最终确定为目标感兴趣区域,以在尽可能大得程度上保证感兴趣区域的准确性。Specifically, in actual applications, when comparing the features of the captured preview image, there may be multiple image regions that match the reference features of the region of interest, and then the region of interest can be further uniquely determined from these multiple image regions. . In this embodiment, according to the region attributes of a plurality of image regions that meet the reference characteristics of the region of interest, such as region location information, region area size, etc., these image regions are compared, and then the best image region in the comparison result is finally Determine the target area of interest to ensure the accuracy of the area of interest to the greatest extent possible.
在本实施例的一些实施方式中,在目标感兴趣区域有多个时,基于目标感兴趣区域,对目标拍摄参数进行设置包括:分别获取与各目标感兴趣区域相关联的拍摄参数设置意图;分别基于各目标感兴趣区域,对相关联的拍摄参数设置意图对应的目标拍摄参数进行设置。In some implementations of this embodiment, when there are multiple target regions of interest, setting the target shooting parameters based on the target regions of interest includes: respectively acquiring shooting parameter setting intentions associated with each target region of interest; The target shooting parameters corresponding to the related shooting parameter setting intentions are set respectively based on the regions of interest of each target.
具体的,在实际应用中,可能存在拍摄预览图像中具有多个感兴趣区域的情况,并且随着需要设置的拍摄参数类型的不同,可能需要针对不同感兴趣区域对应设置相应类型的拍摄参数,以对更复杂的拍摄需求进行满足。在本实施例中,针对各感兴趣区域对应确定其拍摄参数设置意图,然后基于对应的感兴趣区域,对关联于拍摄参数设置意图的拍摄参数进行设置。Specifically, in practical applications, there may be multiple regions of interest in the shooting preview image, and with different types of shooting parameters that need to be set, it may be necessary to set corresponding types of shooting parameters for different regions of interest. To meet more complex shooting needs. In this embodiment, the shooting parameter setting intention of each region of interest is correspondingly determined, and then the shooting parameters related to the shooting parameter setting intention are set based on the corresponding region of interest.
在本实施例的一些实施方式中,响应于拍摄触发指令,对取景区域进行拍摄之前,还包括:对拍摄预览图像中,目标感兴趣区域内的目标图像元素进行识别;计算拍摄预览图像与间隔预设帧数的拍摄预览图像之间,目标图像元素的位置变化量;在目标图像元素的位置变化量小于预设位置变化量阈值时,执行响应于拍摄触发指令,对取景区域进行拍摄的步骤。In some implementations of this embodiment, in response to the shooting trigger instruction, before shooting the viewfinder area, the method further includes: identifying target image elements in the target area of interest in the shooting preview image; calculating the shooting preview image and the interval The amount of change in the position of the target image element between shooting preview images of the preset number of frames; when the position change of the target image element is less than the preset position change threshold, the step of shooting the viewfinder area in response to the shooting trigger instruction is executed .
具体的,在实际应用中,在确定拍摄预览图像中的感兴趣区域之后,并非瞬时触发相机的拍摄行为,也即相机可能还会在一段时间内处于拍摄预览状态,而在拍摄预览过程中,可能受客观因素的影响例如用户抖动终端等,先前在拍摄预览图像中所确定的感兴趣区域中的特定图像元素(例如牙齿、月亮等)则可能会产生偏移,而当偏移量较大时,可能会使得该图像元素不在原先所确定的感兴趣区域,而使得感兴趣区域中的图像元素并非用户期望的图像元素,进而在触发相机拍摄时最终所拍摄的照片的图像质量不佳。Specifically, in practical applications, after determining the region of interest in the shooting preview image, the shooting behavior of the camera is not triggered instantaneously, that is, the camera may still be in the shooting preview state for a period of time, and during the shooting preview process, It may be affected by objective factors such as the user's shaking of the terminal, etc. The specific image elements (such as teeth, moon, etc.) in the region of interest previously determined in the preview image may be offset, and when the offset is large At this time, the image element may not be in the originally determined area of interest, and the image element in the area of interest is not the image element expected by the user, and the image quality of the final photo taken when the camera is triggered is not good.
基于此,本实施例在确定感兴趣区域之后,将感兴趣区域的图像元素进行识别,然后将后续的拍摄预览图像与此前的拍摄预览图像中的该图像元素进行位置比对,在该图像元素的位置偏移较小时,才允许根据拍摄触发指令对取景区域进行拍摄,从而有效保证拍摄输出的照片的质量。Based on this, in this embodiment, after determining the region of interest, the image elements of the region of interest are identified, and then the subsequent shooting preview images are compared with the image elements in the previous shooting preview images. Only when the position offset of is small, the viewfinder area is allowed to be photographed according to the shooting trigger instruction, so as to effectively ensure the quality of the photographed output.
进一步地,在本实施例的一些实施方式中,计算拍摄预览图像与间隔预设帧数的拍摄预览图像之间,目标图像元素的位置变化量之后,还包括:在目标图像元素的位置变化量大于或等于位置变化量阈值时,则基于位置变化量计算拍摄调节参数;根据拍摄调节参数输出拍摄调节提示信息。Further, in some implementations of this embodiment, after calculating the amount of change in the position of the target image element between the captured preview image and the captured preview image with an interval of a preset number of frames, it further includes: the amount of change in the position of the target image element When it is greater than or equal to the position change threshold, the shooting adjustment parameter is calculated based on the position change; and the shooting adjustment prompt information is output according to the shooting adjustment parameter.
具体的,本实施例当先前在拍摄预览图像中所确定的感兴趣区域中的特定图像元素所产生的偏移较大时,为了保证本次拍摄的正常完成,可以基于图像元素的偏移量来计算出拍摄调节参数,并向外输出提示,以指示用户进行拍摄调节,例如提示用户调节终端位置或调节用户自身的姿势等。应当理解的是,本实施例的提示信息输出方式可以采用语音提示、震动提示或显示提示的方式实现。Specifically, in this embodiment, when the deviation of the specific image element in the region of interest determined in the preview image is large, in order to ensure the normal completion of this shooting, the deviation of the image element may be based on To calculate the shooting adjustment parameters, and output prompts to instruct the user to perform shooting adjustments, such as prompting the user to adjust the position of the terminal or adjust the user's own posture. It should be understood that the prompt information output manner of this embodiment can be implemented in a manner of voice prompt, vibration prompt, or display prompt.
基于上述本申请实施例的技术方案,获取对应于取景区域的拍摄预览图像;根据感兴趣区域参考特征,对拍摄预览图像进行特征比对,得到拍摄预览图像中的目标感兴趣区域;基于目标感兴趣区域,对目标拍摄参数进行设置;响应于拍摄触发指令,对取景区域进行拍摄。通过本申请方案的实施,根据感兴趣区域参考特征在拍摄预览图像中自动匹配感兴趣区域,可广泛适用于各种拍摄场景,有效保证了所确定的感兴趣区域的准确性,提升了所拍摄的图像的质量。Based on the technical solutions of the above embodiments of the present application, a photographed preview image corresponding to the viewfinder area is acquired; the photographed preview image is compared according to the reference features of the area of interest to obtain the target area of interest in the photographed preview image; based on the sense of object In the region of interest, the target shooting parameters are set; in response to the shooting trigger command, the viewfinder area is shot. Through the implementation of the solution of this application, the region of interest is automatically matched in the shooting preview image according to the reference feature of the region of interest, which can be widely applied to various shooting scenes, effectively ensuring the accuracy of the determined region of interest, and improving the shooting The quality of the image.
图5中的方法为本申请第二实施例提供的一种细化的拍摄控制方法,该拍摄控制方法包括:The method in FIG. 5 is a detailed shooting control method provided by the second embodiment of this application, and the shooting control method includes:
步骤501、获取对应于取景区域的拍摄预览图像,并对拍摄预览图像进行多尺度分块处理,得到多个子图像区域。Step 501: Obtain a shot preview image corresponding to the viewfinder area, and perform multi-scale block processing on the shot preview image to obtain multiple sub-image areas.
在实际应用中,当触发终端上的相机应用之后,终端进入拍摄预览状态,对摄像头取景区域内的景物进行成像预览。本实施例对拍摄预览图像进行拆分,以子图像区域为单位进行图像特征比对。In practical applications, when the camera application on the terminal is triggered, the terminal enters the shooting preview state, and performs an imaging preview of the scene in the viewing area of the camera. In this embodiment, the photographed preview image is split, and the image feature comparison is performed in units of sub-image areas.
步骤502、采用预设参考图像中的目标区域的图像特征,分别对多个子图像区域的区域图像特征进行比对。Step 502: Use the image features of the target area in the preset reference image to compare the regional image features of the multiple sub-image areas respectively.
步骤503、将比对相关度高于相关度阈值的子图像区域,确定为拍摄预览图像中的目标感兴趣区域。Step 503: Determine the sub-image area whose correlation degree is higher than the correlation degree threshold as the target area of interest in the shooting preview image.
在本实施例中,对拆分得到的子图像区域分别进行图像特征提取,再基于预设图像特征对所提取的图像特征分别进行比对,并将比对通过的图像特征所对应的子图像区域作为拍摄预览图像中的感兴趣区域。In this embodiment, image feature extraction is performed on the sub-image regions obtained by splitting, and then the extracted image features are respectively compared based on the preset image features, and the sub-images corresponding to the passed image features are compared. The area is taken as the area of interest in the shooting preview image.
步骤504、基于目标感兴趣区域,对目标拍摄参数进行设置。Step 504: Set the target shooting parameters based on the target region of interest.
本实施例在触发拍照之前,需要将感兴趣区域作为设置相关拍摄参数的基准区域,这里的拍摄参数可以包括对焦参数、曝光参数等。In this embodiment, before triggering to take a picture, the area of interest needs to be used as a reference area for setting related shooting parameters, where the shooting parameters may include focus parameters, exposure parameters, and so on.
步骤505、对拍摄预览图像中,目标感兴趣区域内的目标图像元素进行识别。Step 505: Identify the target image elements in the target region of interest in the shooting preview image.
步骤506、计算拍摄预览图像与间隔预设帧数的拍摄预览图像之间,目标图像元素的位置变化量。Step 506: Calculate the amount of change in the position of the target image element between the captured preview image and the captured preview image with an interval of a preset number of frames.
具体的,在拍摄预览过程中,可能受客观因素的影响例如用户抖动终端等,尽管感兴趣区域在拍摄预览图像中的位置固定,但是先前在拍摄预览图像中所确定的感兴趣区域中的特定图像元素(例如牙齿、月亮等)则可能会产生偏移。Specifically, during the shooting preview process, it may be affected by objective factors such as the user shaking the terminal. Although the position of the region of interest in the shooting preview image is fixed, the specific region of interest previously determined in the shooting preview image Image elements (such as teeth, moon, etc.) may be offset.
步骤507、在目标图像元素的位置变化量小于预设位置变化量阈值时,响应于拍摄触发指令,对取景区域进行拍摄。Step 507: When the position change amount of the target image element is less than the preset position change threshold value, in response to the shooting trigger instruction, photograph the viewfinder area.
具体的,本实施例将后续的拍摄预览图像与此前的拍摄预览图像中的该图像元素进行位置比对,在该图像元素的位置偏移较小时,才允许根据拍摄触发指令对取景区域进行拍摄,从而有效保证拍摄输出的照片的质量。Specifically, this embodiment compares the position of the image element in the subsequent shooting preview image with the image element in the previous shooting preview image, and only when the position offset of the image element is small, the viewfinder area is allowed to be photographed according to the shooting trigger instruction , So as to effectively ensure the quality of the photos taken and output.
应当理解的是,本实施例中各步骤的序号的大小并不意味着步骤执行顺序的先后,各步骤的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成唯一限定。It should be understood that the size of the sequence number of each step in this embodiment does not mean the order of execution of the steps. The execution order of each step should be determined by its function and internal logic, and should not constitute the implementation process of the embodiment of this application. The only limit.
本申请实施例公开了一种拍摄控制方法,获取对应于取景区域的拍摄预览图像;根据感兴趣区域参考特征,对拍摄预览图像进行特征比对,得到拍摄预览图像中的目标感兴趣区域;基于目标感兴趣区域,对目标拍摄参数进行设置;响应于拍摄触发指令,对取景区域进行拍摄。通过本申请方案的实施,根据感兴趣区域参考特征在拍摄预览图像中自动匹配感兴趣区域,可广泛适用于各种拍摄场景,有效保证了所确定的感兴趣区域的准确性,提升了所拍摄的图像的质量;另外,本实施例当此前在拍摄预览图像中所确定的感兴趣区域中的特定图像元素未发生明显位置移动时,允许根据拍摄触发指令对取景区域进行拍摄,从而避免在抖动情况下触发拍摄所导致的画质较差,有效保证拍摄输出的照片的质量。The embodiment of the application discloses a shooting control method to obtain a shooting preview image corresponding to a viewing area; according to the reference feature of the region of interest, the feature comparison of the shooting preview image is performed to obtain the target region of interest in the shooting preview image; For the target area of interest, the target shooting parameters are set; in response to the shooting trigger instruction, the viewfinder area is shot. Through the implementation of the solution of this application, the region of interest is automatically matched in the shooting preview image according to the reference feature of the region of interest, which can be widely applied to various shooting scenes, effectively ensuring the accuracy of the determined region of interest, and improving the shooting In addition, in this embodiment, when the specific image element in the region of interest determined in the preview image has not been significantly moved, it is allowed to shoot the viewfinder area according to the shooting trigger instruction, thereby avoiding jitter In this case, the image quality caused by the trigger shooting is poor, which effectively guarantees the quality of the photos output.
图6为本申请第三实施例提供的一种拍摄控制装置。该拍摄控制装置可用于实现前述实施例中的拍摄控制方法。如图6所示,该拍摄控制装置主要包括:FIG. 6 is a photographing control device provided by the third embodiment of this application. The photographing control device can be used to implement the photographing control method in the foregoing embodiment. As shown in Figure 6, the shooting control device mainly includes:
获取模块601,用于获取对应于取景区域的拍摄预览图像;The acquiring module 601 is configured to acquire a shooting preview image corresponding to the viewfinder area;
比对模块602,用于根据感兴趣区域参考特征,对拍摄预览图像进行特征比对,得到拍摄预览图像中的目标感兴趣区域;The comparison module 602 is configured to compare the features of the shot preview image according to the reference features of the region of interest to obtain the target region of interest in the shot preview image;
设置模块603,用于基于目标感兴趣区域,对目标拍摄参数进行设置;The setting module 603 is used to set the target shooting parameters based on the target region of interest;
拍摄模块604,用于响应于拍摄触发指令,对取景区域进行拍摄。The photographing module 604 is configured to photograph the viewfinder area in response to a photographing trigger instruction.
在本实施例一些实施方式中,比对模块602具体用于:对拍摄预览图像进行多尺度分块处理,得到多个子图像区域;将预设参考图像中的目标区域的图像特征作为感兴趣区域参考特征,分别对多个子图像区域的区域图像特征进行比对;将比对相关度高于相关度阈值的子图像区域,确定为拍摄预览图像中的目标感兴趣区域。In some implementations of this embodiment, the comparison module 602 is specifically configured to: perform multi-scale block processing on the captured preview image to obtain multiple sub-image regions; use the image feature of the target region in the preset reference image as the region of interest With reference to the feature, the regional image features of multiple sub-image areas are respectively compared; the sub-image area whose comparison correlation degree is higher than the correlation degree threshold is determined as the target area of interest in the shooting preview image.
如图7所示为本实施例提供的另一种拍摄控制装置,进一步地,在本实施例另一些实施方式中,拍摄控制装置还包括:提取模块605,用于在获取对应于取景区域的拍摄预览图像之前,接收外部针对本地存储的参考图像输入的区域选取指令;根据区域选取指令在参考图像上选取目标区域;对目标区域进行特征提取,得到图像特征。FIG. 7 shows another shooting control device provided by this embodiment. Further, in some other implementations of this embodiment, the shooting control device further includes: an extraction module 605, which is used to obtain information corresponding to the viewfinder area. Before shooting the preview image, receive an external region selection instruction input for a locally stored reference image; select a target region on the reference image according to the region selection instruction; perform feature extraction on the target region to obtain image features.
在本实施例另一些实施方式中,比对模块602具体用于:根据感兴趣区域参考特征,对拍摄预览图像进行特征比对,得到拍摄预览图像中的多个备选感兴趣区域;分别获取多个备选感兴趣区域的区域属性;基于区域属性的比较结果,从多个备选感兴趣区域之中确定目标感兴趣区域。In some other implementations of this embodiment, the comparison module 602 is specifically configured to: compare the features of the shot preview image according to the reference features of the region of interest to obtain multiple candidate regions of interest in the shot preview image; The area attributes of multiple candidate areas of interest; based on the comparison result of the area attributes, the target area of interest is determined from among the multiple candidate areas of interest.
在本实施例另一些实施方式中,在目标感兴趣区域有多个时,设置模块603具体用于:分别获取与各目标感兴趣区域相关联的拍摄参数设置意图;分别基于各目标感兴趣区域,对相关联的拍摄参数设置意图对应的目标拍摄参数进行设置。In other implementations of this embodiment, when there are multiple target regions of interest, the setting module 603 is specifically configured to: obtain the shooting parameter setting intentions associated with each target region of interest respectively; , To set the target shooting parameter corresponding to the related shooting parameter setting intention.
请继续参阅图7,在本实施例一些实施方式中,拍摄控制装置还包括:计算模块606,用于在响应于拍摄触发指令,对取景区域进行拍摄之前,对拍摄预览图像中,目标感兴趣区域内的目标图像元素进行识别;计算拍摄预览图像与间隔预设帧数的拍摄预览图像之间,目标图像元素的位置变化量。相对应的,在目标图像元素的位置变化量小于预设位置变化量阈值时,拍摄模块604执行响应于拍摄触发指令,对取景区域进行拍摄的功能。Please continue to refer to FIG. 7. In some implementations of this embodiment, the shooting control device further includes: a calculation module 606, which is used to capture the target in the preview image before shooting the viewfinder in response to the shooting trigger instruction. Identify the target image element in the area; calculate the position change of the target image element between the shooting preview image and the shooting preview image with a preset number of frames. Correspondingly, when the position change of the target image element is less than the preset position change threshold, the photographing module 604 executes the function of photographing the viewfinder area in response to the photographing trigger instruction.
请再次参阅图7,进一步地,在本实施例一些实施方式中,拍摄控制装置还包括:提示模块607,用于在计算拍摄预览图像与间隔预设帧数的拍摄预览图像之间,目标图像元素的位置变化量之后,在目标图像元素的位置变化量大于或等于位置变化量阈值时,则基于位置变化量计算拍摄调节参数;根据拍摄调节参数输出拍摄调节提示信息。Please refer to FIG. 7 again. Further, in some implementations of this embodiment, the shooting control device further includes: a prompting module 607, configured to calculate the shooting preview image and the shooting preview image at an interval of a preset number of frames, the target image After the position change of the element, when the position change of the target image element is greater than or equal to the position change threshold, the shooting adjustment parameter is calculated based on the position change; and the shooting adjustment prompt information is output according to the shooting adjustment parameter.
应当说明的是,第一、二实施例中的拍摄控制方法均可基于本实施例提供的拍摄控制装置实现,所属领域的普通技术人员可以清楚的了解到,为描述的方便和简洁,本实施例中所描述的拍摄控制装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It should be noted that the shooting control methods in the first and second embodiments can be implemented based on the shooting control device provided in this embodiment, and those of ordinary skill in the art can clearly understand that for the convenience and conciseness of the description, this embodiment For the specific working process of the photographing control device described in the example, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
根据本实施例所提供的拍摄控制装置,获取对应于取景区域的拍摄预览图像;根据感兴趣区域参考特征,对拍摄预览图像进行特征比对,得到拍摄预览图像中的目标感兴趣区域;基于目标感兴趣区域,对目标拍摄参数进行设置;响应于拍摄触发指令,对取景区域进行拍摄。通过本申请方案的实施,根据感兴趣区域参考特征在拍摄预览图像中自动匹配感兴趣区域,可广泛适用于各种拍摄场景,有效保证了所确定的感兴趣区域的准确性,提升了所拍摄的图像的质量。According to the shooting control device provided in this embodiment, a shooting preview image corresponding to the viewfinder area is acquired; based on the reference feature of the region of interest, the shooting preview image is compared with features to obtain the target region of interest in the shooting preview image; For the region of interest, set the target shooting parameters; respond to the shooting trigger command to shoot the viewfinder area. Through the implementation of the solution of this application, the region of interest is automatically matched in the shooting preview image according to the reference feature of the region of interest, which can be widely applied to various shooting scenes, effectively ensuring the accuracy of the determined region of interest, and improving the shooting The quality of the image.
请参阅图8,图8为本申请第四实施例提供的一种电子装置。该电子装置可用于实现前述实施例中的拍摄控制方法。如图8所示,该电子装置主要包括:Please refer to FIG. 8. FIG. 8 is an electronic device provided by a fourth embodiment of this application. The electronic device can be used to implement the shooting control method in the foregoing embodiment. As shown in Figure 8, the electronic device mainly includes:
存储器801、处理器802、总线803及存储在存储器801上并可在处理器802上运行的计算机程序,存储器801和处理器802通过总线803连接。处理器802执行该计算机程序时,实现前述实施例中的拍摄控制方法。其中,处理器的数量可以是一个或多个。The memory 801, the processor 802, the bus 803, and a computer program stored on the memory 801 and capable of running on the processor 802, and the memory 801 and the processor 802 are connected through the bus 803. When the processor 802 executes the computer program, it implements the shooting control method in the foregoing embodiment. Among them, the number of processors can be one or more.
存储器801可以是高速随机存取记忆体(RAM,Random Access Memory)存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。存储器801用于存储可执行程序代码,处理器802与存储器801耦合。The memory 801 may be a high-speed random access memory (RAM, Random Access Memory) memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory. The memory 801 is used to store executable program codes, and the processor 802 is coupled with the memory 801.
进一步的,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质可以是设置于上述各实施例中的电子装置中,该计算机可读存储介质可以是前述图8所示实施例中的存储器。Further, the embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium may be provided in the electronic device in each of the above-mentioned embodiments, and the computer-readable storage medium may be the one shown in FIG. 8 above. The memory in the embodiment is shown.
该计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现前述实施例中的拍摄控制方法。进一步的,该计算机可存储介质还可以是U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A computer program is stored on the computer-readable storage medium, and the program is executed by the processor to realize the shooting control method in the foregoing embodiment. Further, the computer storable medium may also be a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), RAM, a magnetic disk, or an optical disk and other various media that can store program codes.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules is only a logical function division, and there may be other divisions in actual implementation, for example, multiple modules or components can be combined or integrated. To another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or modules, and may be in electrical, mechanical or other forms.
作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, the functional modules in the various embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个可读存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的可读存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a readable storage. The medium includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned readable storage medium includes: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本申请所必须的。It should be noted that for the foregoing method embodiments, for simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, some steps can be performed in other order or at the same time. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the involved actions and modules are not necessarily all required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For a part that is not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
以上为对本申请所提供的拍摄控制方法、装置及计算机可读存储介质的描述,对于本领域的技术人员,依据本申请实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。The above is a description of the shooting control method, device, and computer-readable storage medium provided by the present application. For those skilled in the art, according to the ideas of the embodiments of the present application, there will be changes in the specific implementation and the scope of application. In summary, the content of this manual should not be construed as a limitation on this application.

Claims (10)

  1. 一种拍摄控制方法,其特征在于,包括:A shooting control method, characterized in that it comprises:
    获取对应于取景区域的拍摄预览图像;Acquiring a shooting preview image corresponding to the viewfinder area;
    根据感兴趣区域参考特征,对所述拍摄预览图像进行特征比对,得到所述拍摄预览图像中的目标感兴趣区域;Performing feature comparison on the shooting preview image according to the reference feature of the region of interest to obtain the target region of interest in the shooting preview image;
    基于所述目标感兴趣区域,对目标拍摄参数进行设置;Setting the target shooting parameters based on the target region of interest;
    响应于拍摄触发指令,对所述取景区域进行拍摄。In response to a shooting trigger instruction, the viewfinder area is photographed.
  2. 根据权利要求1所述的拍摄控制方法,其特征在于,所述根据感兴趣区域参考特征,对所述拍摄预览图像进行特征比对,得到所述拍摄预览图像中的目标感兴趣区域包括:The shooting control method according to claim 1, wherein the feature comparison of the shooting preview image according to the reference feature of the region of interest to obtain the target region of interest in the shooting preview image comprises:
    对所述拍摄预览图像进行多尺度分块处理,得到多个子图像区域;Performing multi-scale block processing on the shooting preview image to obtain multiple sub-image areas;
    将预设参考图像中的目标区域的图像特征作为感兴趣区域参考特征,分别对所述多个子图像区域的区域图像特征进行比对;Taking the image feature of the target region in the preset reference image as the reference feature of the region of interest, and comparing the regional image features of the multiple sub-image regions respectively;
    将比对相关度高于相关度阈值的子图像区域,确定为所述拍摄预览图像中的目标感兴趣区域。The sub-image area with the comparison correlation degree higher than the correlation degree threshold is determined as the target area of interest in the shooting preview image.
  3. 根据权利要求2所述的拍摄控制方法,其特征在于,所述获取对应于取景区域的拍摄预览图像之前,还包括:The shooting control method according to claim 2, wherein before the obtaining the shooting preview image corresponding to the viewfinder area, the method further comprises:
    接收外部针对本地存储的所述参考图像输入的区域选取指令;Receiving an external region selection instruction input for the locally stored reference image;
    根据所述区域选取指令在所述参考图像上选取所述目标区域;Selecting the target area on the reference image according to the area selection instruction;
    对所述目标区域进行特征提取,得到所述图像特征。Perform feature extraction on the target area to obtain the image feature.
  4. 根据权利要求1所述的拍摄控制方法,其特征在于,所述根据感兴趣区域参考特征,对所述拍摄预览图像进行特征比对,得到所述拍摄预览图像中的目标感兴趣区域包括:The shooting control method according to claim 1, wherein the feature comparison of the shooting preview image according to the reference feature of the region of interest to obtain the target region of interest in the shooting preview image comprises:
    根据感兴趣区域参考特征,对所述拍摄预览图像进行特征比对,得到所述拍摄预览图像中的多个备选感兴趣区域;Performing feature comparison on the shooting preview image according to the reference features of the region of interest to obtain multiple candidate regions of interest in the shooting preview image;
    分别获取所述多个备选感兴趣区域的区域属性;Respectively acquiring the area attributes of the multiple candidate regions of interest;
    基于所述区域属性的比较结果,从所述多个备选感兴趣区域之中确定目标感兴趣区域。Based on the comparison result of the region attributes, a target region of interest is determined from among the plurality of candidate regions of interest.
  5. 根据权利要求1所述的拍摄控制方法,其特征在于,在所述目标感兴趣区域有多个时,所述基于所述目标感兴趣区域,对目标拍摄参数进行设置包括:The shooting control method according to claim 1, wherein when there are multiple target regions of interest, the setting of target shooting parameters based on the target regions of interest comprises:
    分别获取与各所述目标感兴趣区域相关联的拍摄参数设置意图;Respectively acquiring shooting parameter setting intentions associated with each of the target regions of interest;
    分别基于各所述目标感兴趣区域,对所述相关联的拍摄参数设置意图对应的目标拍摄参数进行设置。The target shooting parameters corresponding to the associated shooting parameter setting intentions are set respectively based on each of the target regions of interest.
  6. 根据权利要求1至5中任意一项所述的拍摄控制方法,其特征在于,所述响应于拍摄触发指令,对所述取景区域进行拍摄之前,还包括:The shooting control method according to any one of claims 1 to 5, characterized in that, before shooting the viewfinder area in response to a shooting trigger instruction, the method further comprises:
    对所述拍摄预览图像中,所述目标感兴趣区域内的目标图像元素进行识别;Identifying target image elements in the target region of interest in the shooting preview image;
    计算所述拍摄预览图像与间隔预设帧数的拍摄预览图像之间,所述目标图像元素的位置变化量;Calculating the amount of change in the position of the target image element between the shooting preview image and the shooting preview image with an interval of a preset number of frames;
    在所述目标图像元素的位置变化量小于预设位置变化量阈值时,执行所述响应于拍摄触发指令,对所述取景区域进行拍摄的步骤。When the position change amount of the target image element is less than a preset position change amount threshold, the step of photographing the viewfinder area in response to a photographing trigger instruction is executed.
  7. 根据权利要求6所述的拍摄控制方法,其特征在于,所述计算所述拍摄预览图像与间隔预设帧数的拍摄预览图像之间,所述目标图像元素的位置变化量之后,还包括:The shooting control method according to claim 6, wherein after calculating the position change amount of the target image element between the shooting preview image and the shooting preview image with a preset number of frames interval, the method further comprises:
    在所述目标图像元素的位置变化量大于或等于所述位置变化量阈值时,则基于所述位置变化量计算拍摄调节参数;When the position change amount of the target image element is greater than or equal to the position change amount threshold, calculating shooting adjustment parameters based on the position change amount;
    根据所述拍摄调节参数输出拍摄调节提示信息。Output shooting adjustment prompt information according to the shooting adjustment parameter.
  8. 一种拍摄控制装置,其特征在于,包括:A photographing control device, characterized in that it comprises:
    获取模块,用于获取对应于取景区域的拍摄预览图像;An acquisition module for acquiring a shooting preview image corresponding to the viewfinder area;
    比对模块,用于根据感兴趣区域参考特征,对所述拍摄预览图像进行特征比对,得到所述拍摄预览图像中的目标感兴趣区域;The comparison module is configured to perform feature comparison on the shooting preview image according to the reference feature of the region of interest to obtain the target region of interest in the shooting preview image;
    设置模块,用于基于所述目标感兴趣区域,对目标拍摄参数进行设置;A setting module, configured to set target shooting parameters based on the target region of interest;
    拍摄模块,用于响应于拍摄触发指令,对所述取景区域进行拍摄。The photographing module is used for photographing the viewfinder area in response to a photographing trigger instruction.
  9. 一种电子装置,其特征在于,包括:存储器、处理器及总线;An electronic device, characterized by comprising: a memory, a processor, and a bus;
    所述总线用于实现所述存储器、处理器之间的连接通信;The bus is used to implement connection and communication between the memory and the processor;
    所述处理器用于执行存储在所述存储器上的计算机程序;The processor is configured to execute a computer program stored on the memory;
    所述处理器执行所述计算机程序时,实现权利要求1至7中任意一项所述方法中的步骤。When the processor executes the computer program, the steps in the method described in any one of claims 1 to 7 are implemented.
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现权利要求1至7中的任意一项所述方法中的步骤。A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps in the method of any one of claims 1 to 7 when the computer program is executed by a processor.
PCT/CN2021/073024 2020-02-26 2021-01-21 Photo capture control method and apparatus and computer readable storage medium WO2021169686A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010119619.X 2020-02-26
CN202010119619.XA CN111263072A (en) 2020-02-26 2020-02-26 Shooting control method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2021169686A1 true WO2021169686A1 (en) 2021-09-02

Family

ID=70954626

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/073024 WO2021169686A1 (en) 2020-02-26 2021-01-21 Photo capture control method and apparatus and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN111263072A (en)
WO (1) WO2021169686A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125266A (en) * 2021-10-20 2022-03-01 武汉旷视金智科技有限公司 Rotation detection method, device, apparatus, medium, and program product for image pickup device
CN115499580A (en) * 2022-08-15 2022-12-20 珠海视熙科技有限公司 Intelligent view finding method and device with multi-mode fusion and camera equipment

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111263072A (en) * 2020-02-26 2020-06-09 Oppo广东移动通信有限公司 Shooting control method and device and computer readable storage medium
CN112215219B (en) * 2020-09-14 2023-11-24 阿波罗智联(北京)科技有限公司 Method, device and medium for acquiring region of interest for road side shooting equipment
CN115225756A (en) * 2021-03-29 2022-10-21 华为技术有限公司 Method for determining target object, shooting method and device
CN115442511A (en) * 2021-06-04 2022-12-06 Oppo广东移动通信有限公司 Photo shooting method and device, terminal and storage medium
CN115514887A (en) * 2022-09-07 2022-12-23 影石创新科技股份有限公司 Control method and device for video acquisition, computer equipment and storage medium
CN117615244B (en) * 2024-01-22 2024-04-02 四川群源科技有限公司 Driving method and device of image pickup equipment and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011016322A1 (en) * 2009-08-04 2011-02-10 オリンパス株式会社 Imaging device, editing device, and imaging system
CN105704389A (en) * 2016-04-12 2016-06-22 上海斐讯数据通信技术有限公司 Intelligent photo taking method and device
CN106791476A (en) * 2017-01-25 2017-05-31 北京图森未来科技有限公司 A kind of image-pickup method and device
CN107302658A (en) * 2017-06-16 2017-10-27 广东欧珀移动通信有限公司 Realize face clearly focusing method, device and computer equipment
CN108024065A (en) * 2017-12-28 2018-05-11 努比亚技术有限公司 A kind of method of terminal taking, terminal and computer-readable recording medium
CN109510946A (en) * 2017-09-15 2019-03-22 展讯通信(上海)有限公司 HDR scene detection method and system
CN109729272A (en) * 2019-01-04 2019-05-07 平安科技(深圳)有限公司 A kind of filming control method, terminal device and computer readable storage medium
US20190342491A1 (en) * 2018-05-02 2019-11-07 Qualcomm Incorporated Subject priority based image capture
CN110572574A (en) * 2014-04-03 2019-12-13 高通股份有限公司 System and method for multi-focus imaging
CN111263072A (en) * 2020-02-26 2020-06-09 Oppo广东移动通信有限公司 Shooting control method and device and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100538498C (en) * 2003-07-15 2009-09-09 欧姆龙株式会社 Object determination device and camera head
US8913176B2 (en) * 2008-09-05 2014-12-16 Lg Electronics Inc. Mobile terminal and method of performing multi-focusing and photographing image including plurality of objects using the same
CN103118231A (en) * 2013-03-07 2013-05-22 刘烈军 Image data processing method and related device
CN107343141A (en) * 2017-06-16 2017-11-10 广东欧珀移动通信有限公司 Focusing method, device and computer equipment
CN110166691A (en) * 2019-05-31 2019-08-23 维沃移动通信(杭州)有限公司 A kind of image pickup method and terminal device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011016322A1 (en) * 2009-08-04 2011-02-10 オリンパス株式会社 Imaging device, editing device, and imaging system
CN110572574A (en) * 2014-04-03 2019-12-13 高通股份有限公司 System and method for multi-focus imaging
CN105704389A (en) * 2016-04-12 2016-06-22 上海斐讯数据通信技术有限公司 Intelligent photo taking method and device
CN106791476A (en) * 2017-01-25 2017-05-31 北京图森未来科技有限公司 A kind of image-pickup method and device
CN107302658A (en) * 2017-06-16 2017-10-27 广东欧珀移动通信有限公司 Realize face clearly focusing method, device and computer equipment
CN109510946A (en) * 2017-09-15 2019-03-22 展讯通信(上海)有限公司 HDR scene detection method and system
CN108024065A (en) * 2017-12-28 2018-05-11 努比亚技术有限公司 A kind of method of terminal taking, terminal and computer-readable recording medium
US20190342491A1 (en) * 2018-05-02 2019-11-07 Qualcomm Incorporated Subject priority based image capture
CN109729272A (en) * 2019-01-04 2019-05-07 平安科技(深圳)有限公司 A kind of filming control method, terminal device and computer readable storage medium
CN111263072A (en) * 2020-02-26 2020-06-09 Oppo广东移动通信有限公司 Shooting control method and device and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125266A (en) * 2021-10-20 2022-03-01 武汉旷视金智科技有限公司 Rotation detection method, device, apparatus, medium, and program product for image pickup device
CN114125266B (en) * 2021-10-20 2024-04-09 武汉旷视金智科技有限公司 Rotation detection method, rotation detection device, rotation detection apparatus, rotation detection device, rotation detection medium, and rotation detection program product
CN115499580A (en) * 2022-08-15 2022-12-20 珠海视熙科技有限公司 Intelligent view finding method and device with multi-mode fusion and camera equipment
CN115499580B (en) * 2022-08-15 2023-09-19 珠海视熙科技有限公司 Multi-mode fusion intelligent view finding method and device and image pickup equipment

Also Published As

Publication number Publication date
CN111263072A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
WO2021169686A1 (en) Photo capture control method and apparatus and computer readable storage medium
WO2018201809A1 (en) Double cameras-based image processing device and method
WO2019237992A1 (en) Photographing method and device, terminal and computer readable storage medium
EP1839435B1 (en) Digital image acquisition system with portrait mode
WO2022028184A1 (en) Photography control method and apparatus, electronic device, and storage medium
US7791668B2 (en) Digital camera
WO2017008353A1 (en) Capturing method and user terminal
WO2020038110A1 (en) Panoramic photographing method and apparatus, terminal and computer-readable storage medium
WO2017096866A1 (en) Method and apparatus for generating high dynamic range image
WO2017096857A1 (en) Method and device for adjusting photographing parameter of camera
WO2019214574A1 (en) Image capturing method and apparatus, and electronic terminal
CN107743191B (en) Terminal, anti-shake photographing method thereof and storage device
US8411159B2 (en) Method of detecting specific object region and digital camera
JP6861342B2 (en) A system including an imaging device and an imaging device and a server
JP6899002B2 (en) Image processing methods, devices, computer-readable storage media and electronic devices
CN111491102A (en) Detection method and system for photographing scene, mobile terminal and storage medium
TWI543615B (en) Image processing method and electronic apparatus using the same
US9055212B2 (en) Imaging system, image processing method, and image processing program recording medium using framing information to capture image actually intended by user
WO2020124577A1 (en) Method and device for determining photographing parameter for camera
CN108600610A (en) Shoot householder method and device
CN106791451B (en) Photographing method of intelligent terminal
WO2019084756A1 (en) Image processing method and device, and aerial vehicle
CN113824883A (en) Information processing method and electronic equipment
CN112887610A (en) Shooting method, shooting device, electronic equipment and storage medium
CN110581950B (en) Camera, system and method for selecting camera settings

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

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

Country of ref document: EP

Kind code of ref document: A1