CN111327833A - Auxiliary shooting method and device, electronic equipment and readable storage medium - Google Patents

Auxiliary shooting method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111327833A
CN111327833A CN202010246715.0A CN202010246715A CN111327833A CN 111327833 A CN111327833 A CN 111327833A CN 202010246715 A CN202010246715 A CN 202010246715A CN 111327833 A CN111327833 A CN 111327833A
Authority
CN
China
Prior art keywords
image
picture
selected image
matching
matched
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010246715.0A
Other languages
Chinese (zh)
Other versions
CN111327833B (en
Inventor
叶唐陟
郭颖莹
吴棨贤
姜浩
曲晓超
姚想
陈嘉俊
叶婕莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Meitu Technology Co Ltd
Original Assignee
Xiamen Meitu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Meitu Technology Co Ltd filed Critical Xiamen Meitu Technology Co Ltd
Priority to CN202010246715.0A priority Critical patent/CN111327833B/en
Publication of CN111327833A publication Critical patent/CN111327833A/en
Application granted granted Critical
Publication of CN111327833B publication Critical patent/CN111327833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/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/61Control of cameras or camera modules based on recognised objects
    • 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

Landscapes

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

Abstract

The embodiment of the application provides an auxiliary shooting method and device, electronic equipment and a readable storage medium, and relates to the technical field of information processing. The method comprises the steps of obtaining a selected image, determining a reference area and a reference image in the reference area from the selected image, and displaying to remind a photographer of aligning. And then responding to the matching guide request, and acquiring an image preview picture acquired by the image acquisition unit at the current viewing angle. And then determining a picture to be matched corresponding to the reference area from the image preview picture, and matching the picture to be matched with the reference image. And finally, when the picture to be matched is successfully matched with the reference image, sending a matching success prompt to prompt a photographer to carry out shooting operation to obtain an image with the same background as the selected image, solving the problem that the shot picture is not satisfactory to mind when the other person helps to shoot, and improving the shooting experience of the user.

Description

Auxiliary shooting method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to an auxiliary shooting method, an auxiliary shooting device, an electronic device, and a readable storage medium.
Background
Taking pictures using different electronic devices has become an important part of human activities, and at present, there are many optimizations in picture quality and function settings for the function of taking pictures in electronic devices, but there is still much room for improvement. In some cases, when a user plays at home and requests another person to take a picture, the user often needs to use the shooting skill of another person and cannot obtain the desired shooting effect.
Therefore, how to solve the problem that the photo taken while others help to take a photo is not satisfactory is a problem to be solved at present.
Disclosure of Invention
In view of the above, the present application provides an auxiliary shooting method, an auxiliary shooting device, an electronic device, and a readable storage medium to solve the above problems.
The embodiment of the application can be realized as follows:
in a first aspect, an embodiment of the present application provides an auxiliary shooting method, which is applied to an electronic device including an image acquisition unit, and the method includes:
acquiring a selected image, determining a reference area and a reference image in the reference area from the selected image, and displaying to remind a photographer to align;
responding to the matching guide request, and acquiring an image preview picture acquired by the image acquisition unit at the current viewing angle;
determining a picture to be matched corresponding to the reference area from the image preview picture, and matching the picture to be matched with the reference image;
and when the picture to be matched is successfully matched with the reference image, sending a matching success prompt to prompt a photographer to carry out shooting operation so as to obtain an image with the same background as the selected image.
In an alternative embodiment, the method further comprises:
when the matching between the picture to be matched and the reference image fails, the step of obtaining the image preview picture acquired by the image acquisition unit at the current view angle is repeatedly executed until the matching between the picture to be matched and the reference image is successful.
In an alternative embodiment, the step of determining a reference region from the selected image and a reference image in the reference region comprises:
according to a preset interval, carrying out region division on the selected image to obtain a plurality of first initial regions with preset side lengths or preset diameters;
carrying out corner detection on the selected image to obtain at least one corner in the selected image;
acquiring the number of corner points in each first initial region, and removing the first initial regions with the number of corner points smaller than a first preset threshold value to obtain a plurality of second initial regions;
judging whether the number of the obtained second initial regions is greater than or equal to a second preset threshold value or not;
if the obtained number of the second initial regions is greater than or equal to a second preset threshold value, sequencing all the second initial regions according to the number of corner points in each second initial region, obtaining the second initial regions with the preset number, and taking the obtained second initial regions with the preset number as target regions;
and calculating the distance between the target areas, selecting at least two target areas with the farthest distance as reference areas, and taking the images in the reference areas as reference images.
In an alternative embodiment, the method further comprises:
if the obtained number of the second initial regions is smaller than a second preset threshold, increasing the side length or the radius of the first initial region by a preset length, and repeatedly performing the step of performing region division on the selected image according to a preset interval distance to obtain a plurality of first initial regions with the side length or the diameter being a preset value until the number of the second initial regions is larger than or equal to the second preset threshold.
In an alternative embodiment, the method further comprises:
carrying out human body detection on the selected image to obtain a human body image in the selected image;
and removing a first initial region which is overlapped with the human body image in the plurality of first initial regions.
In an alternative embodiment, after the step of acquiring the selected image, the method further comprises:
if the reference area cannot be determined from the selected image, a prompt to re-enter the image is issued.
In an alternative embodiment, the electronic device further comprises a memory, and the step of acquiring the selected image comprises:
responding to a photographing request, and acquiring a selected image obtained by the image acquisition unit at the current view angle; or,
a selected image stored in the memory is acquired.
In a second aspect, an embodiment of the present application provides an auxiliary shooting apparatus, which is applied to an electronic device including an image capturing unit, and the apparatus includes:
the first acquisition module is used for acquiring a selected image, determining a reference area and a reference image in the reference area from the selected image, and displaying the reference area and the reference image to remind a photographer of aligning and matching;
the second acquisition module is used for responding to the matching guide request and acquiring an image preview picture acquired by the image acquisition unit at the current view angle;
the matching module is used for determining a picture to be matched corresponding to the reference area from the image preview picture and matching the picture to be matched with the reference image;
and the prompting module is used for sending a matching success prompt to prompt a photographer to carry out shooting operation when the picture to be matched is successfully matched with the reference image so as to obtain an image with the same background as the selected image.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor, a memory, and a bus, where the memory stores machine-readable instructions executable by the processor, and when the electronic device runs, the processor and the memory communicate with each other through the bus, and the processor executes the machine-readable instructions to perform the steps of the auxiliary shooting method according to any one of the foregoing embodiments.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, in which a computer program is stored, and the computer program, when executed, implements the auxiliary shooting method described in any one of the foregoing embodiments.
The embodiment of the application provides an auxiliary photographing method, an auxiliary photographing device and electronic equipment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of an auxiliary shooting method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of shooting by using an auxiliary shooting method according to an embodiment of the present application.
Fig. 4 is a second schematic diagram of photographing by using an auxiliary photographing method according to an embodiment of the present application.
Fig. 5 is a third schematic diagram of shooting by using an auxiliary shooting method according to an embodiment of the present application.
Fig. 6 is a fourth schematic diagram illustrating a photographing process using an auxiliary photographing method according to an embodiment of the present application.
Fig. 7 is one of schematic diagrams of a first initial region provided in an embodiment of the present application.
Fig. 8 is a second schematic diagram of the first initial region according to the embodiment of the present application.
Fig. 9 is a third schematic diagram of the first initial region according to the embodiment of the present application.
Fig. 10 is a functional block diagram of a photographing parameter adjusting apparatus according to an embodiment of the present application.
Icon: 100-an electronic device; 110-a memory; 120-a processor; 130-auxiliary camera; 131-a first acquisition module; 132-a second acquisition module; 133-a matching module; 134-prompt module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. are used for indicating the orientation or positional relationship based on the orientation or positional relationship shown in the drawings or the orientation or positional relationship which the present invention product is usually put into use, it is only for convenience of describing the present application and simplifying the description, but it is not intended to indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation and be operated, and thus, should not be construed as limiting the present application.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
As introduced in the background art, taking pictures using different electronic devices has become an important part of human activities, and at present, there are many optimizations in picture quality and function settings for the function of taking pictures in electronic devices, but there is still much room for improvement. Often, when the user plays at home and requests another person to take a picture, the user often needs to use the shooting skill of another person, and the shooting effect desired by the user cannot be obtained.
For example, please help others to take a photo, but because the shooting level of the photographer is limited or the viewing angle is different from the shooting habit of the photographer, the photo taken by others is often not desirable, and only can be accepted by others reluctantly or please take another photo at another angle, but the photo taken is still not desirable due to unclear description.
Therefore, how to solve the problem that the photo taken while others help to take a photo is not satisfactory is a technical problem to be solved at present.
In view of the above, embodiments of the present application provide an auxiliary photographing method, an auxiliary photographing apparatus, and an electronic device, in which the method aligns and matches an image preview screen with a reference area determined in a selected image, and reminds a photographer to perform photographing when matching is successful, so as to solve the above problem, and the above scheme is described in detail below.
Referring to fig. 1, fig. 1 is a block diagram of an electronic device 100 according to an embodiment of the present disclosure. The device may include a processor 120, a memory 110, an auxiliary photographing apparatus 130, and a bus, wherein the memory 110 stores machine-readable instructions executable by the processor 120, when the electronic device 100 operates, the processor 120 and the memory 110 communicate with each other through the bus, and the processor 120 executes the machine-readable instructions and performs the steps of the auxiliary photographing method.
The memory 110, the processor 120, and other components are electrically connected to each other directly or indirectly to enable signal transmission or interaction.
For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The auxiliary photographing device 130 includes at least one software function module that may be stored in the memory 110 in the form of software or firmware (firmware). The processor 120 is configured to execute an executable module stored in the memory 110, such as a software functional module or a computer program included in the auxiliary camera 130.
The Memory 110 may be, but is not limited to, a Random ACCess Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 120 may be an integrated circuit chip having signal processing capabilities. The processor 120 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and so on.
But may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In the embodiment of the present application, the memory 110 is used for storing a program, and the processor 120 is used for executing the program after receiving the execution instruction. The method defined by the process disclosed in any of the embodiments of the present application can be applied to the processor 120, or implemented by the processor 120.
In the embodiment of the present application, the electronic device 100 may be, but is not limited to, a smart phone, a personal computer, a tablet computer, or the like having a processing function.
It will be appreciated that the configuration shown in figure 1 is merely illustrative. Electronic device 100 may also have more or fewer components than shown in FIG. 1, or a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
As a possible implementation manner, an embodiment of the present application provides an auxiliary shooting method, which is applied to an electronic device including an image acquisition unit. Fig. 2 is a flowchart of an auxiliary shooting method according to an embodiment of the present application.
Step S1, acquiring the selected image, determining the reference area and the reference image in the reference area from the selected image, and displaying to remind the photographer to align.
And step S2, responding to the matching guide request, and acquiring an image preview picture acquired by the image acquisition unit at the current view angle.
Step S3, determining a picture to be matched corresponding to the reference region from the image preview picture, and matching the picture to be matched with the reference image.
And step S4, when the matching between the picture to be matched and the reference image is successful, sending a matching success prompt to prompt the photographer to carry out shooting operation, and obtaining an image with the same background as the selected image.
In one possible implementation scenario, the selected image may be a landscape image including buildings, as shown in FIG. 3.
Referring to fig. 4, after the electronic device obtains the selected image and determines the reference area and the reference image in the reference area from the selected image, the reference area and the reference image are displayed to remind the photographer of alignment. The circle in fig. 4 is a reference region, and the image in the circle is a reference image. Optionally, a preset prompt language may be further displayed, or a preset prompt sound may be played. For example, "please try to pair up the photos in the circle".
When the matching between the picture to be matched and the reference image is successful, a matching success prompt is sent out, as shown in fig. 5 and 6. Alternatively, the way of issuing the prompt of successful matching may be to change the color of the reference region, for example, when the matching is not successful, the color of the reference region is red, and when the matching is successful, the color of the reference region is changed from red to green. The prompt mode of sending out the successful matching can also be displaying a preset prompt word or playing a preset prompt tone. For example, "aligned, please take a picture".
Meanwhile, as an alternative embodiment, the selected image may be acquired by:
and responding to the photographing request, and acquiring the selected image obtained by the image acquisition unit at the current view angle.
For example, before asking others to help to take a picture, the user determines the view angle by himself/herself and clicks a photographing key in the electronic device, so that the electronic device obtains the selected image at the current view angle through the image capturing unit.
As another alternative, the selected image may also be acquired by:
the electronic device also includes a memory, the electronic device retrieving the selected image stored in the memory.
For example, the user may store a favorite image in the electronic device in advance, and before asking others to help to take a picture, the user may directly select a desired image from the electronic device, so that the electronic device may directly obtain the selected image stored in the memory.
According to the auxiliary shooting method provided by the embodiment of the application, the selected image is obtained, the reference area and the reference image in the reference area are determined from the selected image and displayed to remind a photographer of aligning. And then responding to the matching guide request, and acquiring an image preview picture acquired by the image acquisition unit at the current view angle. And determining a picture to be matched corresponding to the reference area from the image preview picture, and matching the picture to be matched with the reference image. When the matching between the picture to be matched and the reference image is successful, a matching success prompt is sent out to prompt a photographer to carry out shooting operation to obtain an image with the same background as the selected image, so that the shooting process is more intelligent and personalized, the obtained image is ensured to be in line with the expectation of the user, and the shooting experience of the user is improved.
It should be understood that in other embodiments, the order of some steps in the auxiliary shooting method of the present embodiment may be interchanged according to actual needs, or some steps may be omitted or deleted.
Further, in order to ensure that a good photographing effect can be obtained, if the reference region cannot be determined from the selected image, a prompt to input the image again is issued.
For example, sometimes the selected image is a blank image, an image of only the sky, an image of only the grass, or an image of only the stream of people, and at this time, the electronic device cannot determine the reference region from the selected image, and then a prompt for inputting the image again is given, so that a good photographing effect is obtained, and the user experience is improved.
Alternatively, in order to better improve the user experience, a specific function-opening switch for opening and closing the auxiliary photographing function may be provided in the electronic device in advance. For example, when the user needs to ask someone else to help to take a picture, the auxiliary shooting function can be turned on through the function switch, and when the user uses the electronic device to take a picture by himself without the help of someone else, the auxiliary shooting function can be turned off through the function switch to enter a common shooting mode. Therefore, before step S1, after the user turns on the function start switch, the electronic apparatus may also enter the assisted shooting mode in response to the mode switching request to use the assisted shooting function.
Optionally, when the matching between the picture to be matched and the reference image fails, the step of obtaining the image preview picture acquired by the image acquisition unit at the current viewing angle is repeatedly executed until the matching between the picture to be matched and the reference image is successful.
For example, the user may continuously change the viewing angle to align the to-be-matched picture in the image preview picture with the reference image, and the electronic device acquires the image preview picture acquired by the image acquisition unit at the current viewing angle in real time until the to-be-matched picture is successfully matched with the reference image.
For another example, the user may continuously change the viewing angle to align the to-be-matched picture in the image preview picture with the reference image, and the electronic device acquires the image preview picture acquired by the image acquisition unit at the current viewing angle at preset intervals until the to-be-matched picture is successfully matched with the reference image.
Optionally, as a possible implementation manner, the determining of the reference region from the selected image and the reference image in the reference region may be implemented by:
firstly, according to a preset interval, carrying out region division on a selected image to obtain a plurality of first initial regions with preset side lengths or preset diameters.
And then, carrying out corner detection on the selected image to obtain at least one corner in the selected image.
Then, the number of corner points in each first initial region is obtained, the first initial regions with the number of corner points smaller than a first preset threshold value are removed, and a plurality of second initial regions are obtained.
And secondly, judging whether the number of the obtained second initial regions is greater than or equal to a second preset threshold value.
If the number of the obtained second initial regions is greater than or equal to a second preset threshold value, sequencing all the second initial regions according to the number of corner points in each second initial region, obtaining the second initial regions with the preset number, and taking the obtained second initial regions with the preset number as target regions; and calculating the distance between the target areas, selecting at least two target areas with the farthest distance as reference areas, and taking the images in the reference areas as reference images.
If the number of the obtained second initial regions is smaller than a second preset threshold, increasing the side length or the radius of the first initial region by a preset length, and repeatedly performing the step of performing region division on the selected image according to a preset interval distance to obtain a plurality of first initial regions with the side length or the diameter being a preset value until the number of the second initial regions is larger than or equal to the second preset threshold.
The preset interval may be smaller than a preset value, equal to a preset value, or larger than a preset value. Alternatively, the preset value may be 1/3 for the selected image short edge length, or any suitable value.
The first initial region may be a rectangle with a preset side length, or a circle with a preset diameter. It will be appreciated that the first initial region may also be of any shape other than rectangular and circular.
As a possible implementation scenario, taking the first initial region as a circle, when the preset interval is greater than the preset value, the obtained multiple first initial regions are as shown in fig. 7, and each first initial region is spaced from the surrounding first initial regions by a certain distance, so as to reduce the time for traversing the image information in the selected image and improve the efficiency of obtaining the reference region from the selected image.
As another possible implementation scenario, taking the first initial region as a circle, when the preset interval is equal to the preset value, the obtained plurality of first initial regions are as shown in fig. 8, and all the first initial regions uniformly divide the selected image, so that on the premise of accurately traversing the image information in the selected image, the efficiency of obtaining the reference region from the selected image is improved.
As another possible implementation scenario, taking the first initial region as a circle, when the preset interval is smaller than the preset value, the obtained multiple first initial regions are as shown in fig. 9, and each first initial region is partially overlapped with the surrounding first initial regions, so as to accurately traverse the image information in the selected image, and improve the possibility of obtaining the reference region from the selected image.
The three implementation scenarios can be selected according to actual requirements, and are not limited herein.
Further, the corner detection method may be a Kitchen-Rosenfeld corner detection algorithm, a Harris corner detection algorithm, a KLT corner detection algorithm, a SUSAN corner detection algorithm, or other corner detection algorithms.
The angular points can feed back image characteristic information of the selected image, and the more angular points in the first initial area, the richer the image characteristic information in the first initial area. In order to ensure that the finally determined reference region and the reference image have reference significance, in the embodiment of the application, the number of corner points in each first initial region is also required to be obtained, and the first initial regions with the number of corner points smaller than a first preset threshold value are removed to obtain a plurality of second initial regions. The finally determined reference image and the reference area are prevented from being an area with less image characteristic information, such as a blue sky, a white cloud, a wall or a lawn, and the like, so that the matching efficiency is improved.
Wherein the first preset threshold value may be determined by the following formula:
Figure BDA0002434154490000121
where N1 is a first predetermined threshold, F is the number of total corner points in the selected image, siIs the area of the ith first initial region and S is the area of the selected image.
Therefore, according to the embodiment of the application, the selected image is subjected to region division, the corner detection is carried out on the selected image, and then the target region with rich image information is selected from the selected image as the reference region and the reference image according to the parameters such as the number of corners, the threshold value and the like, so that the matching efficiency and effect are improved.
As another possible implementation, the determining of the reference region from the selected image and the reference image in the reference region may be further implemented by:
firstly, according to a preset interval, carrying out region division on a selected image to obtain a plurality of first initial regions with preset side lengths or preset diameters.
And secondly, carrying out human body detection on the selected image, obtaining a human body image in the selected image, and removing a first initial region which is overlapped with the human body image in the plurality of first initial regions.
And then, carrying out corner detection on the selected image to obtain at least one corner in the selected image.
Then, the number of corner points in each first initial region is obtained, the first initial regions with the number of corner points smaller than a first preset threshold value are removed, and a plurality of second initial regions are obtained.
Then, whether the obtained number of the second initial regions is larger than or equal to a second preset threshold value is judged.
If the number of the obtained second initial regions is greater than or equal to a second preset threshold value, sequencing all the second initial regions according to the number of corner points in each second initial region, obtaining the second initial regions with the preset number, and taking the obtained second initial regions with the preset number as target regions; and calculating the distance between the target areas, selecting at least two target areas with the farthest distance as reference areas, and taking the images in the reference areas as reference images.
And if the obtained number of the second initial regions is smaller than a second preset threshold value, determining that the reference region cannot be determined from the selected image, and sending a prompt for inputting the image again.
It can be understood that if the reference image determined from the selected image moves, the probability of successful matching between the picture to be matched and the reference image is greatly reduced when someone else takes a picture. In order to determine the reference region from the selected image and prevent the reference image from being selected on a moving object, the embodiment of the application further performs human body detection on the selected image to obtain a human body image in the selected image, and removes the first initial region overlapped with the human body image, so as to improve the matching efficiency and success rate.
Meanwhile, when the obtained number of the second initial regions is smaller than the second preset threshold, the user may be further required to input the selected image again for matching again.
It is understood that the principle and the advantages of other unexplained steps are the same as those of the previous embodiment, and the explanation of the previous embodiment can be specifically referred to.
It should be understood that in other embodiments, the order of the steps of determining the reference region from the selected image and the reference image in the reference region may be interchanged according to actual needs, or some steps may be omitted or deleted.
Based on the same inventive concept, please refer to fig. 10 in combination, an auxiliary shooting apparatus 130 corresponding to the auxiliary shooting method is further provided in the embodiment of the present application, and is used for an electronic device including an image capturing unit, and the apparatus includes:
the first obtaining module 131 is configured to obtain a selected image, determine a reference area and a reference image in the reference area from the selected image, and display the reference area and the reference image to remind a photographer of alignment matching.
And a second obtaining module 132, configured to, in response to the matching guidance request, obtain an image preview picture acquired by the image acquisition unit at the current viewing angle.
The matching module 133 is configured to determine a to-be-matched picture corresponding to the reference region from the image preview picture, and match the to-be-matched picture with the reference image.
And the prompting module 134 is configured to send a matching success prompt to prompt a photographer to perform a shooting operation when the matching between the picture to be matched and the reference image is successful, so as to obtain an image with the same background as the selected image.
Because the principle of the device in the embodiment of the present application for solving the problem is similar to that of the auxiliary shooting method in the embodiment of the present application, the implementation principle of the device can be referred to the implementation principle of the method, and repeated details are not repeated.
The present embodiment also provides a readable storage medium, in which a computer program is stored, and the computer program is executed to implement the auxiliary shooting method.
In summary, the present application provides an auxiliary shooting method, an auxiliary shooting device, an electronic device, and a readable storage medium, in which a selected image is obtained, a reference area and a reference image in the reference area are determined from the selected image, and the reference area and the reference image are displayed to remind a photographer of alignment. And then responding to the matching guide request, and acquiring an image preview picture acquired by the image acquisition unit at the current view angle. And then determining a picture to be matched corresponding to the reference area from the image preview picture, and matching the picture to be matched with the reference image. And finally, when the picture to be matched is successfully matched with the reference image, sending a matching success prompt to prompt a photographer to carry out shooting operation to obtain an image with the same background as the selected image, solving the problem that the shot picture is not satisfactory to mind when others help to shoot, and improving the shooting experience of the user.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An auxiliary shooting method is applied to an electronic device comprising an image acquisition unit, and comprises the following steps:
acquiring a selected image, determining a reference area and a reference image in the reference area from the selected image, and displaying to remind a photographer to align;
responding to the matching guide request, and acquiring an image preview picture acquired by the image acquisition unit at the current viewing angle;
determining a picture to be matched corresponding to the reference area from the image preview picture, and matching the picture to be matched with the reference image;
and when the picture to be matched is successfully matched with the reference image, sending a matching success prompt to prompt a photographer to carry out shooting operation so as to obtain an image with the same background as the selected image.
2. The auxiliary photographing method according to claim 1, wherein the method further comprises:
when the matching between the picture to be matched and the reference image fails, the step of obtaining the image preview picture acquired by the image acquisition unit at the current view angle is repeatedly executed until the matching between the picture to be matched and the reference image is successful.
3. The auxiliary shooting method according to claim 1, wherein the step of determining a reference region and a reference image in the reference region from the selected image comprises:
according to a preset interval, carrying out region division on the selected image to obtain a plurality of first initial regions with preset side lengths or preset diameters;
carrying out corner detection on the selected image to obtain at least one corner in the selected image;
acquiring the number of corner points in each first initial region, and removing the first initial regions with the number of corner points smaller than a first preset threshold value to obtain a plurality of second initial regions;
judging whether the number of the obtained second initial regions is greater than or equal to a second preset threshold value or not;
if the obtained number of the second initial regions is greater than or equal to a second preset threshold value, sequencing all the second initial regions according to the number of corner points in each second initial region, obtaining the second initial regions with the preset number, and taking the obtained second initial regions with the preset number as target regions;
and calculating the distance between the target areas, selecting at least two target areas with the farthest distance as reference areas, and taking the images in the reference areas as reference images.
4. The auxiliary photographing method according to claim 3, wherein the method further comprises:
if the obtained number of the second initial regions is smaller than a second preset threshold, increasing the side length or the radius of the first initial region by a preset length, and repeatedly performing the step of performing region division on the selected image according to a preset interval distance to obtain a plurality of first initial regions with the side length or the diameter being a preset value until the number of the second initial regions is larger than or equal to the second preset threshold.
5. The auxiliary photographing method according to claim 3, wherein the method further comprises:
carrying out human body detection on the selected image to obtain a human body image in the selected image;
and removing a first initial region which is overlapped with the human body image in the plurality of first initial regions.
6. The assisted capture method of claim 1, wherein after the step of acquiring the selected image, the method further comprises:
if the reference area cannot be determined from the selected image, a prompt to re-enter the image is issued.
7. The auxiliary shooting method according to claim 1, wherein the electronic device further comprises a memory, and the step of acquiring the selected image comprises:
responding to a photographing request, and acquiring a selected image obtained by the image acquisition unit at the current view angle; or,
a selected image stored in the memory is acquired.
8. An auxiliary shooting device is applied to an electronic device comprising an image acquisition unit, and the auxiliary shooting device comprises:
the first acquisition module is used for acquiring a selected image, determining a reference area and a reference image in the reference area from the selected image, and displaying the reference area and the reference image to remind a photographer of aligning and matching;
the second acquisition module is used for responding to the matching guide request and acquiring an image preview picture acquired by the image acquisition unit at the current view angle;
the matching module is used for determining a picture to be matched corresponding to the reference area from the image preview picture and matching the picture to be matched with the reference image;
and the prompting module is used for sending a matching success prompt to prompt a photographer to carry out shooting operation when the picture to be matched is successfully matched with the reference image so as to obtain an image with the same background as the selected image.
9. An electronic device, comprising a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, when the electronic device is running, the processor and the memory communicate with each other via the bus, and the processor executes the machine-readable instructions to perform the steps of the auxiliary photographing method according to any one of claims 1 to 7.
10. A readable storage medium in which a computer program is stored, the computer program when executed implementing the auxiliary photographing method of any one of claims 1 to 7.
CN202010246715.0A 2020-03-31 2020-03-31 Auxiliary shooting method and device, electronic equipment and readable storage medium Active CN111327833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010246715.0A CN111327833B (en) 2020-03-31 2020-03-31 Auxiliary shooting method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010246715.0A CN111327833B (en) 2020-03-31 2020-03-31 Auxiliary shooting method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111327833A true CN111327833A (en) 2020-06-23
CN111327833B CN111327833B (en) 2021-06-01

Family

ID=71171725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010246715.0A Active CN111327833B (en) 2020-03-31 2020-03-31 Auxiliary shooting method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111327833B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395456A (en) * 2021-08-17 2021-09-14 南昌龙旗信息技术有限公司 Auxiliary shooting method and device, electronic equipment and program product
CN114245021A (en) * 2022-02-14 2022-03-25 北京火山引擎科技有限公司 Interactive shooting method, electronic device, storage medium and computer program product
CN116744124A (en) * 2023-08-16 2023-09-12 广州方图科技有限公司 Self-help shooting equipment background generation method and device, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100141781A1 (en) * 2008-12-05 2010-06-10 Tsung Yi Lu Image capturing device with automatic object position indication and method thereof
CN103999447A (en) * 2011-12-20 2014-08-20 国际商业机器公司 Pre-setting the foreground view of a photograph
CN104869299A (en) * 2014-02-26 2015-08-26 联想(北京)有限公司 Prompting method and device
CN105427333A (en) * 2015-12-22 2016-03-23 厦门美图之家科技有限公司 Real-time registration method of video sequence image, system and shooting terminal
CN105989625A (en) * 2015-02-04 2016-10-05 华为技术有限公司 Data processing method and apparatus
CN107835365A (en) * 2017-11-03 2018-03-23 上海爱优威软件开发有限公司 Auxiliary shooting method and system
CN108154159A (en) * 2017-12-25 2018-06-12 北京航空航天大学 A kind of method for tracking target with automatic recovery ability based on Multistage Detector
CN108805062A (en) * 2018-05-30 2018-11-13 深圳市鑫汇达机械设计有限公司 A kind of intelligent monitor system
CN108881544A (en) * 2018-06-29 2018-11-23 维沃移动通信有限公司 A kind of method taken pictures and mobile terminal
CN109040605A (en) * 2018-11-05 2018-12-18 北京达佳互联信息技术有限公司 Shoot bootstrap technique, device and mobile terminal and storage medium
CN110008833A (en) * 2019-02-27 2019-07-12 中国科学院半导体研究所 Target ship detection method based on remote sensing image
US20200084385A1 (en) * 2018-09-06 2020-03-12 Canon Kabushiki Kaisha Display control apparatus, imaging apparatus, and control method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100141781A1 (en) * 2008-12-05 2010-06-10 Tsung Yi Lu Image capturing device with automatic object position indication and method thereof
CN103999447A (en) * 2011-12-20 2014-08-20 国际商业机器公司 Pre-setting the foreground view of a photograph
CN104869299A (en) * 2014-02-26 2015-08-26 联想(北京)有限公司 Prompting method and device
CN105989625A (en) * 2015-02-04 2016-10-05 华为技术有限公司 Data processing method and apparatus
CN105427333A (en) * 2015-12-22 2016-03-23 厦门美图之家科技有限公司 Real-time registration method of video sequence image, system and shooting terminal
CN107835365A (en) * 2017-11-03 2018-03-23 上海爱优威软件开发有限公司 Auxiliary shooting method and system
CN108154159A (en) * 2017-12-25 2018-06-12 北京航空航天大学 A kind of method for tracking target with automatic recovery ability based on Multistage Detector
CN108805062A (en) * 2018-05-30 2018-11-13 深圳市鑫汇达机械设计有限公司 A kind of intelligent monitor system
CN108881544A (en) * 2018-06-29 2018-11-23 维沃移动通信有限公司 A kind of method taken pictures and mobile terminal
US20200084385A1 (en) * 2018-09-06 2020-03-12 Canon Kabushiki Kaisha Display control apparatus, imaging apparatus, and control method
CN109040605A (en) * 2018-11-05 2018-12-18 北京达佳互联信息技术有限公司 Shoot bootstrap technique, device and mobile terminal and storage medium
CN110008833A (en) * 2019-02-27 2019-07-12 中国科学院半导体研究所 Target ship detection method based on remote sensing image

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395456A (en) * 2021-08-17 2021-09-14 南昌龙旗信息技术有限公司 Auxiliary shooting method and device, electronic equipment and program product
CN113395456B (en) * 2021-08-17 2021-11-30 南昌龙旗信息技术有限公司 Auxiliary shooting method and device, electronic equipment and computer readable storage medium
CN114245021A (en) * 2022-02-14 2022-03-25 北京火山引擎科技有限公司 Interactive shooting method, electronic device, storage medium and computer program product
CN114245021B (en) * 2022-02-14 2023-08-08 北京火山引擎科技有限公司 Interactive shooting method, electronic equipment, storage medium and computer program product
CN116744124A (en) * 2023-08-16 2023-09-12 广州方图科技有限公司 Self-help shooting equipment background generation method and device, electronic equipment and storage medium
CN116744124B (en) * 2023-08-16 2023-11-10 广州方图科技有限公司 Shooting method and equipment of self-service shooting equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111327833B (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN111327833B (en) Auxiliary shooting method and device, electronic equipment and readable storage medium
CN110012209B (en) Panoramic image generation method and device, storage medium and electronic equipment
US10565763B2 (en) Method and camera device for processing image
CN109376592B (en) Living body detection method, living body detection device, and computer-readable storage medium
US9338311B2 (en) Image-related handling support system, information processing apparatus, and image-related handling support method
US11030733B2 (en) Method, electronic device and storage medium for processing image
CN112312016B (en) Shooting processing method and device, electronic equipment and readable storage medium
CN109621425B (en) Video generation method, device, equipment and storage medium
US11778263B2 (en) Live streaming video interaction method and apparatus, and computer device
CN108462833B (en) Photographing method, photographing device and computer-readable storage medium
CN107155060A (en) Image processing method and device
KR101906748B1 (en) Iris image acquisition method and apparatus, and iris recognition device
CN108632543B (en) Image display method, image display device, storage medium and electronic equipment
CN107424130B (en) Picture beautifying method and device
US20220201195A1 (en) Image acquisition method, device, apparatus and storage medium
CN110266926B (en) Image processing method, image processing device, mobile terminal and storage medium
US20110310122A1 (en) Remote instruction system, remote instruction method, and program product therefor
CN112351197B (en) Shooting parameter adjusting method and device, storage medium and electronic equipment
CN112714259B (en) State adjustment method and device for object to be shot
CN116363725A (en) Portrait tracking method and system for display device, display device and storage medium
CN110012208B (en) Photographing focusing method and device, storage medium and electronic equipment
CN115423692A (en) Image processing method, image processing device, electronic equipment and storage medium
CN109521899B (en) Method and device for determining inputtable area of fingerprint
CN110798614A (en) Photo shooting method, device, equipment and storage medium
CN111353929A (en) Image processing method and device and electronic equipment

Legal Events

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