CN112492201A - Photographing method and device and electronic equipment - Google Patents

Photographing method and device and electronic equipment Download PDF

Info

Publication number
CN112492201A
CN112492201A CN202011341207.7A CN202011341207A CN112492201A CN 112492201 A CN112492201 A CN 112492201A CN 202011341207 A CN202011341207 A CN 202011341207A CN 112492201 A CN112492201 A CN 112492201A
Authority
CN
China
Prior art keywords
composition
shooting
photographing
subject
template image
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
CN202011341207.7A
Other languages
Chinese (zh)
Other versions
CN112492201B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011341207.7A priority Critical patent/CN112492201B/en
Publication of CN112492201A publication Critical patent/CN112492201A/en
Application granted granted Critical
Publication of CN112492201B publication Critical patent/CN112492201B/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/62Control of parameters via user interfaces
    • 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

Landscapes

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

Abstract

The application discloses a photographing method, a photographing device and electronic equipment, wherein the photographing method comprises the following steps: under the condition that the electronic equipment is determined to enter a photographing composition guide mode, determining a first photographing main body in a photographing preview interface; acquiring a template image matched with a first shooting subject based on the geographic position of the electronic equipment, wherein the similarity between a second shooting subject and the first shooting subject in the template image is greater than a first preset threshold; and outputting composition indication according to the position deviation degree of the first shooting subject and the second shooting subject, wherein the composition indication is used for guiding a user to shoot an image with the composition similarity degree of the template image being larger than a second preset threshold value. By implementing the method, the user can be guided to compose the picture based on the template image which is the same as the main shooting body in the current shooting scene, the user is assisted to shoot the picture, the user can shoot the picture meeting the requirements only by carrying out simple operation according to the composition prompt, the WYSIWYG shooting effect is realized, and the shooting efficiency is high.

Description

Photographing method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a photographing method and device and electronic equipment.
Background
In recent years, with the popularization of intelligent operating systems and the rapid upgrade of hardware configurations, the photographing function of electronic devices is increasing, and more users use the photographing function of electronic devices to record life and record surrounding scenery. In the prior art, when a user uses electronic equipment to photograph a picture composition, the operation is complex, and the photographing efficiency is low.
Disclosure of Invention
The embodiment of the application aims to provide a photographing method, a photographing device and electronic equipment, and the technical problems that in the prior art, when the electronic equipment is used for photographing composition, the operation is complex and the photographing efficiency is low are solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a photographing method, where the method includes:
under the condition that the electronic equipment is determined to enter a photographing composition guide mode, determining a first photographing main body in a photographing preview interface;
acquiring a template image matched with the first shooting subject based on the geographic position of the electronic equipment, wherein the similarity between a second shooting subject and the first shooting subject in the template image is greater than a first preset threshold;
outputting composition indication according to the position offset degree of the first shooting subject and the second shooting subject, wherein the composition indication is used for guiding a user to shoot an image with the composition similarity degree larger than a second preset threshold value with the template image
In a second aspect, an embodiment of the present application provides a photographing apparatus, including:
the first determining module is used for determining a first shooting subject in a shooting preview interface under the condition of determining to enter a shooting composition guiding mode of the electronic equipment;
the acquisition module is used for acquiring a template image matched with the first shooting subject based on the geographic position of the electronic equipment, wherein the similarity between a second shooting subject and the first shooting subject in the template image is greater than a first preset threshold;
and the output module is used for outputting composition instructions according to the position deviation degree of the first shooting subject and the second shooting subject, wherein the composition instructions are used for guiding a user to shoot an image with the composition similarity of the template image being greater than a second preset threshold.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the photographing method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the photographing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the photographing method according to the first aspect.
In the embodiment of the application, under the condition that a photographing composition guidance mode of electronic equipment is determined to enter, a first photographing main body in a photographing preview interface is determined; acquiring a template image matched with a first shooting subject based on the geographic position of the electronic equipment, wherein the similarity between a second shooting subject and the first shooting subject in the template image is greater than a first preset threshold; and outputting composition indication according to the position deviation degree of the first shooting subject and the second shooting subject, wherein the composition indication is used for guiding a user to shoot an image with the composition similarity degree of the template image being larger than a second preset threshold value. Compared with the prior art, in the embodiment of the application, the user can be guided to compose the picture based on the template image which is the same as the main shooting body in the current shooting scene, the user is assisted to shoot the picture, the user can shoot the image meeting the requirements only by carrying out simple operation according to the composition prompt, the visible and acquired shooting effect is realized, and the shooting efficiency is high.
Drawings
Fig. 1 is a flowchart of a photographing method provided in an embodiment of the present application;
fig. 2 is a first exemplary diagram of a photographing method provided in an embodiment of the present application;
fig. 3 is a second exemplary diagram of a photographing method according to an embodiment of the present application;
fig. 4 is a third exemplary diagram of a photographing method provided in an embodiment of the present application;
fig. 5 is a fourth exemplary diagram of a photographing method provided in an embodiment of the present application;
fig. 6 is a fifth exemplary diagram of a photographing method provided in an embodiment of the present application;
fig. 7 is a block diagram of a photographing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 9 is a hardware structure diagram of an electronic device implementing various embodiments of the present application.
Detailed Description
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, but not all, embodiments of the present 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.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The embodiment of the application provides a photographing method and device and electronic equipment.
The photographing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
It should be noted that the photographing method provided in the embodiment of the present application is applicable to an electronic device, and in practical application, the electronic device may include: the mobile terminal includes a smart phone, a tablet computer, a personal digital assistant, and the like, which is not limited in the embodiment of the present application.
Fig. 1 is a flowchart of a photographing method provided in an embodiment of the present application, and as shown in fig. 1, the method may include the following steps: step 101, step 102 and step 103, wherein,
in step 101, in a case where it is determined that the photographing composition guidance mode of the electronic apparatus is entered, a first photographing subject in a photographing preview interface is determined.
In the embodiment of the present application, the photographing composition guidance mode is: the template image which is the same as the main shooting body in the current shooting scene is used for guiding the user to compose the picture and assisting the user in the shooting mode. Since the photo composition guidance mode is mainly realized based on AR (Augmented Reality) technology, in practical applications, the photo composition guidance mode may be referred to as an "AR mode".
In an embodiment provided by the present application, the photographing composition guidance mode may be manually turned on by a user, and in this case, before the step 101, the following steps may be added:
a second input from the user is received, and in response to the second input, it is determined to enter the photo composition guidance mode.
In the embodiment of the present application, the second input may be a click input, a long-press input, or a slide input.
In one example, as shown in fig. 2, a control "AR mode" for a user to manually start the photo composition guidance mode may be added to the photo preview interface, and the user starts the photo composition guidance mode by operating the control "AR mode".
In another embodiment provided by the present application, the photographing composition guidance mode may be automatically turned on by the electronic device, and in this case, before the step 101, the following steps may be added:
and detecting whether a preset object is contained in the photographing preview interface, and determining to enter a photographing composition guidance mode under the condition that the preset object is contained.
In this embodiment of the present application, the preset object may include: landmark buildings, landscapes, etc.
In the embodiment of the present application, whether the preview image taking interface includes the preset object may be detected by any target detection algorithm in the prior art, which is not limited in the embodiment of the present application.
In one example, as shown in fig. 3, when it is detected that taishan mountain is included in the photo preview interface, the entry into the photo composition guidance mode is automatically triggered, and the user is prompted to "recognize that your current scene is taishan mountain, and it is recommended to start AR mode assisted shooting".
In another embodiment provided by the present application, the electronic device may automatically determine the first photographic subject in the photo preview interface, and at this time, the step 101 may specifically include the following steps:
and determining a first shooting subject in the shooting preview interface according to the geographic position of the electronic equipment.
In the embodiment of the application, which scenes are contained in the periphery of the geographic position can be determined according to the geographic position of the electronic equipment, the object recognition is carried out on the photographing preview interface, which objects are contained in the photographing preview interface is determined, and the first photographing main body is determined according to the scenes contained in the periphery of the geographic position and the objects contained in the photographing preview interface.
In another embodiment provided by the present application, the user may select the shooting subject, in this case, the step 101 may specifically include the following steps:
and receiving a first input of a user on the photographing preview interface, and determining a photographing object corresponding to the first input as a first photographing subject in response to the first input.
In the embodiment of the present application, the first input may be a click input, a long-press input, a slide input, or a text input.
In one example, when the first input is a click input, the user may select a first photographic subject by clicking on the photo preview interface, and determine a clicked object as the first photographic subject. When the first output is a text input, the user may select the first photographic subject by manually entering a specific name of the first photographic subject on the photo preview interface.
In step 102, a template image matched with a first shooting subject is obtained based on the geographic position of the electronic device, wherein the similarity between a second shooting subject and the first shooting subject in the template image is greater than a first preset threshold.
In the embodiment of the present application, the second photographic subject is the same as or similar to the first photographic subject. The similarity between the angle of the second photographic subject and the angle of the first photographic subject may be greater than a fourth preset threshold, that is, the photographic angles of the two are the same or close to each other.
In the embodiment of the application, in order to ensure the diversification of the shooting effect, a preset image library containing a large number of template images can be constructed in advance, and the large number of template images correspond to a large number of shooting positions and shooting angles.
In the embodiment of the present application, the following steps may be added before the step 101: receiving a third input of the user on the geographic position of the electronic equipment, and responding to the third input to display a plurality of images corresponding to the geographic position; and receiving a fourth input of a target image in the plurality of images, and responding to the fourth input, saving the target image, wherein the target image comprises the template image.
In this case, the template images in the preset image library may be derived from the AR map, specifically, the template images enter the AR map, various images shot corresponding to geographic positions can be seen by clicking each geographic position, and then the images are stored and collected to create the preset image library, and when the user comes to the shooting site in person, the images are shot according to the various images stored and collected. Therefore, the shooting effect of each place can be known in advance, and a more satisfactory shooting effect can be obtained more conveniently when the user travels or punches cards in special places.
In the embodiment of the application, template images which are the same as the first shooting main body can be found from a preset image library based on the geographic position of the electronic equipment, and when the number of the found template images is 1, the found template images are directly determined to be the template images matched with the first shooting main body; when there are a plurality of template images found, 1 template image determined to match the first photographic subject may be selected at random from among them, or 1 template image determined to match the first photographic subject may be selected by the user as shown in fig. 4.
In step 103, a composition instruction for instructing a user to capture an image having a composition similarity greater than a second preset threshold with respect to the template image is output according to the degree of positional deviation of the first photographic subject from the second photographic subject.
In the embodiment of the present application, the following steps may be added before the step 103: and projecting the template image to a photographing preview interface for displaying, wherein the transparency of the template image is lower than that of the photographing preview interface.
In the embodiment of the application, the template image AR can be projected onto the photographing preview interface, so that a user can visually see the image offset degree of the first photographing main body and the second photographing main body, and composition guidance is further performed.
In an embodiment provided by the present application, the step 103 may specifically include the following steps (not shown in the figure): step 1031, step 1032, and step 1033, wherein,
in step 1031, it is determined whether the degree of positional deviation of the first photographic subject from the second photographic subject is greater than a third preset threshold.
In the embodiment of the application, whether the shooting position and the shooting angle of the electronic equipment need to be adjusted or not can be judged according to the image coordinates of the first shooting subject and the second shooting subject, and if the position deviation degree of the first shooting subject and the second shooting subject is determined to be larger than a third preset threshold value according to the image coordinates of the first shooting subject and the second shooting subject, namely the image deviation of the first shooting subject and the second shooting subject is larger, the shooting position of the electronic equipment needs to be adjusted is determined; and if the position deviation degree of the first shooting subject and the second shooting subject is determined to be not more than a third preset threshold according to the image coordinates of the first shooting subject and the second shooting subject, namely the image deviation of the first shooting subject and the second shooting subject is smaller, determining that only the shooting angle of the electronic equipment needs to be adjusted, and the shooting position of the electronic equipment does not need to be adjusted.
In step 1032, when the degree of the position deviation between the first photographing subject and the second photographing subject is greater than a third preset threshold, outputting a first composition indication, wherein the first composition indication is used for guiding the user to move the electronic device to a photographing position corresponding to the template image.
In the embodiment of the application, under the condition that the position deviation degree of the first shooting subject and the second shooting subject is greater than the third preset threshold, the image deviation of the first shooting subject and the second shooting subject is large, and the shooting position of the electronic device is determined to be required to be adjusted. When the shooting position of the electronic equipment is adjusted, the guiding mode is determined according to the distance between the shooting position of the electronic equipment and the shooting position of the template image.
In one example, if the shooting position of the electronic device is within 100 meters from the shooting position of the template image, position guidance is performed, for example, as shown in fig. 5. And if the shooting position of the electronic equipment deviates more than 100 meters from the shooting position of the template image, inquiring whether the user agrees to enter map navigation, if the user agrees to enter the map navigation, opening the map navigation, and switching to a shooting mode after the navigation is finished.
In the embodiment of the application, after the shooting position of the electronic device is corrected, certain guiding correction can be performed on the shooting angle, and the shooting subject is kept in the shooting preview interface at the moment.
In step 1033, when the degree of the position deviation between the first shooting subject and the second shooting subject is not greater than the third preset threshold, a second composition prompt is output, where the second composition prompt is used to guide the user to adjust the shooting angle of the electronic device to the shooting angle corresponding to the template image.
In the embodiment of the application, under the condition that the degree of the position deviation between the first shooting subject and the second shooting subject is not greater than the third preset threshold, the image deviation between the first shooting subject and the second shooting subject is small, and it is determined that the shooting angle of the electronic device is only required to be adjusted. In one example, as shown in fig. 6, the photographing angle may be adjusted by guiding the user to move the electronic device.
In the embodiment of the present application, the following steps may be further added after the step 103: and under the condition that the electronic equipment is determined to execute the processing action corresponding to the composition instruction, outputting a composition success prompt and executing a photographing processing action.
In this embodiment of the application, the prompt for success of composition mapping may include: prompt tones and visual prompts. In one example, after the user completes the photographing position and angle movement according to the guide, there are prompt tone and picture prompt, and an image photographing is automatically completed synchronously.
As can be seen from the above embodiment, in this embodiment, in the case that it is determined that the photographing composition guidance mode of the electronic device is entered, a first photographic subject in the photographing preview interface is determined; acquiring a template image matched with a first shooting subject based on the geographic position of the electronic equipment, wherein the similarity between a second shooting subject and the first shooting subject in the template image is greater than a first preset threshold; and outputting composition indication according to the position deviation degree of the first shooting subject and the second shooting subject, wherein the composition indication is used for guiding a user to shoot an image with the composition similarity degree of the template image being larger than a second preset threshold value. Compared with the prior art, in the embodiment of the application, the user can be guided to compose the picture based on the template image which is the same as the main shooting body in the current shooting scene, the user is assisted to shoot the picture, the user can shoot the image meeting the requirements only by carrying out simple operation according to the composition prompt, the visible and acquired shooting effect is realized, and the shooting efficiency is high.
It should be noted that, in the photographing method provided in the embodiment of the present application, the execution main body may be a photographing device, or a control module in the photographing device for executing the loading photographing method. The embodiment of the present application takes the example where the photographing apparatus executes the loading photographing method, and the photographing apparatus provided in the embodiment of the present application is described.
Fig. 7 is a block diagram of a photographing apparatus according to an embodiment of the present application, and as shown in fig. 7, a photographing apparatus 700 may include: a first determining module 701, an obtaining module 702 and an outputting module 703, wherein,
the first determining module 701 is used for determining a first shooting subject in a shooting preview interface under the condition that the shooting composition guiding mode of the electronic equipment is determined to be entered;
an obtaining module 702, configured to obtain, based on a geographic location of the electronic device, a template image matched with the first shooting subject, where a similarity between a second shooting subject and the first shooting subject in the template image is greater than a first preset threshold;
an output module 703, configured to output a composition instruction according to a position deviation degree between the first shooting subject and the second shooting subject, where the composition instruction is used to instruct a user to shoot an image whose composition similarity with the template image is greater than a second preset threshold.
As can be seen from the above embodiment, in this embodiment, in the case that it is determined that the photographing composition guidance mode of the electronic device is entered, a first photographic subject in the photographing preview interface is determined; acquiring a template image matched with a first shooting subject based on the geographic position of the electronic equipment, wherein the similarity between a second shooting subject and the first shooting subject in the template image is greater than a first preset threshold; and outputting composition indication according to the position deviation degree of the first shooting subject and the second shooting subject, wherein the composition indication is used for guiding a user to shoot an image with the composition similarity degree of the template image being larger than a second preset threshold value. Compared with the prior art, in the embodiment of the application, the user can be guided to compose the picture based on the template image which is the same as the main shooting body in the current shooting scene, the user is assisted to shoot the picture, the user can shoot the image meeting the requirements only by carrying out simple operation according to the composition prompt, the visible and acquired shooting effect is realized, and the shooting efficiency is high.
Optionally, as an embodiment, the photographing apparatus 700 may further include:
and the projection module is used for projecting the template image to the photographing preview interface for displaying, wherein the transparency of the template image is lower than that of the photographing preview interface.
Optionally, as an embodiment, the output module 703 may include:
a first determining submodule configured to determine whether a degree of positional deviation between the first photographic subject and the second photographic subject is greater than a third preset threshold;
the first output sub-module is used for outputting a first composition instruction under the condition that the determination result of the first determination sub-module is yes, wherein the first composition instruction is used for guiding a user to move the electronic equipment to a shooting position corresponding to the template image;
and the second output sub-module is used for outputting a second composition prompt under the condition that the determination result of the first determination sub-module is negative, wherein the second composition prompt is used for guiding a user to adjust the photographing angle to the photographing angle corresponding to the template image.
Optionally, as an embodiment, a similarity between the angle of the second photographic subject and the angle of the first photographic subject is greater than a fourth preset threshold.
Optionally, as an embodiment, the first determining module 701 may include:
the second determining submodule is used for determining a first shooting subject in the shooting preview interface based on the geographic position of the electronic equipment;
or, the third determining submodule is configured to receive a first input of a user on a photographing preview interface, and determine, in response to the first input, a photographic object corresponding to the first input as a first photographic subject.
Optionally, as an embodiment, the photographing apparatus 700 may further include:
the second determination module is used for receiving a second input of the user and determining to enter the photographing composition guide mode in response to the second input;
or, the third determining module is configured to detect whether the preview image taking interface includes a preset object, and determine to enter the picture composition guidance mode when the preset object is included.
Optionally, as an embodiment, the photographing apparatus 700 may further include:
and the photographing module is used for outputting a composition success prompt and executing a photographing processing action under the condition that the electronic equipment is determined to finish the processing action corresponding to the composition instruction.
Optionally, as an embodiment, the photographing apparatus 700 may further include:
the first receiving module is used for receiving a third input of the user to the geographic position;
a display module, configured to display, in response to the third input, a plurality of images corresponding to the geographic location;
a second receiving module, configured to receive a fourth input of a target image in the multiple images;
a saving module, configured to save the target image in response to the fourth input, where the target image includes the template image.
The photographing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The photographing device provided by the embodiment of the application can realize each process realized by the method embodiment, and is not repeated here to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 800 is further provided in this embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction stored in the memory 802 and executable on the processor 801, where the program or the instruction is executed by the processor 801 to implement each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 910 is configured to determine a first shooting subject in a shooting preview interface in a case that it is determined that a shooting composition guidance mode of the electronic device is entered; acquiring a template image matched with the first shooting subject based on the geographic position of the electronic equipment, wherein the similarity between a second shooting subject and the first shooting subject in the template image is greater than a first preset threshold; and outputting composition indication according to the position deviation degree of the first shooting subject and the second shooting subject, wherein the composition indication is used for guiding a user to shoot an image with the composition similarity of the template image being larger than a second preset threshold.
Therefore, in the embodiment of the application, the user can be instructed how to compose the picture based on the template image which is the same as the main shooting body in the current shooting scene, the user is assisted in shooting the picture, the user can shoot the image meeting the requirement only by carrying out simple operation according to the composition prompt, the WYSIWYG shooting effect is realized, and the shooting efficiency is high.
Optionally, as an embodiment, the display unit 906 is configured to project the template image onto the photo preview interface for display, where a transparency of the template image is lower than a transparency of the photo preview interface.
Optionally, as an embodiment, the processor 910 is further configured to determine whether a degree of a position deviation between the first shooting subject and the second shooting subject is greater than a third preset threshold;
outputting a first composition instruction under the condition that the composition is larger than a third preset threshold, wherein the first composition instruction is used for guiding a user to move the electronic equipment to a shooting position corresponding to the template image;
and outputting a second composition prompt under the condition that the second composition prompt is not larger than a third preset threshold, wherein the second composition prompt is used for guiding a user to adjust the photographing angle of the electronic equipment to the photographing angle corresponding to the template image.
Optionally, as an embodiment, a similarity between the angle of the second photographic subject and the angle of the first photographic subject is greater than a fourth preset threshold.
Optionally, as an embodiment, the processor 910 is further configured to determine, based on the geographic location of the electronic device, a first photographic subject in the photo preview interface;
or, the user input unit 907 is used for receiving a first input of the user on the photo preview interface; the processor 910 is further configured to determine, in response to the first input, a photographic subject corresponding to the first input as a first photographic subject.
Optionally, as an embodiment, the user input unit 907 is further configured to receive a second input from the user; a processor 910, further configured to determine to enter a photo composition guidance mode in response to the second input;
or, the processor 910 is further configured to detect whether a preset object is included in the photo preview interface, and determine to enter the photo composition guidance mode if the preset object is included.
Optionally, as an embodiment, the processor 910 is further configured to, when it is determined that the electronic device has performed the processing action corresponding to the composition instruction, output a composition success prompt, and perform a photographing processing action.
Optionally, as an embodiment, the user input unit 907 is further configured to receive a third input of the geographic location by the user;
a display unit 906, further configured to display, in response to the third input, a plurality of images corresponding to the geographic location;
a user input unit 907 further configured to receive a fourth input on a target image in the plurality of images;
processor 910, further configured to save the target image in response to the fourth input, wherein the target image comprises the template image.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics Processing Unit 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 909 can be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of taking a picture, the method comprising:
under the condition that the electronic equipment is determined to enter a photographing composition guide mode, determining a first photographing main body in a photographing preview interface;
acquiring a template image matched with the first shooting subject based on the geographic position of the electronic equipment, wherein the similarity between a second shooting subject and the first shooting subject in the template image is greater than a first preset threshold;
and outputting composition indication according to the position deviation degree of the first shooting subject and the second shooting subject, wherein the composition indication is used for guiding a user to shoot an image with the composition similarity of the template image being larger than a second preset threshold.
2. The method according to claim 1, wherein before outputting a composition instruction according to a degree of positional displacement of the first photographic subject from the second photographic subject, further comprising:
and projecting the template image to the photographing preview interface for displaying, wherein the transparency of the template image is lower than that of the photographing preview interface.
3. The method according to claim 1, wherein the outputting a composition instruction according to a degree of positional displacement of the first photographic subject from the second photographic subject includes:
determining whether the degree of positional deviation between the first photographic subject and the second photographic subject is greater than a third preset threshold;
outputting a first composition instruction under the condition that the composition is larger than a third preset threshold, wherein the first composition instruction is used for guiding a user to move the electronic equipment to a shooting position corresponding to the template image;
and outputting a second composition prompt under the condition that the second composition prompt is not larger than a third preset threshold, wherein the second composition prompt is used for guiding a user to adjust the photographing angle of the electronic equipment to the photographing angle corresponding to the template image.
4. The method according to claim 1, wherein the similarity between the angle of the second photographic subject and the angle of the first photographic subject is greater than a fourth preset threshold.
5. The method of claim 1, wherein determining the first photographic subject in the photo preview interface comprises:
determining a first shooting subject in a shooting preview interface based on the geographic position of the electronic equipment;
or receiving a first input of a user on a photographing preview interface, and determining a photographing object corresponding to the first input as a first photographing subject in response to the first input.
6. The method of claim 1, wherein before determining the first subject in the photo preview interface, further comprising:
receiving a second input of the user, and determining to enter a photographing composition guidance mode in response to the second input;
or detecting whether the preset object is contained in the photographing preview interface, and determining to enter a photographing composition guidance mode under the condition that the preset object is contained.
7. The method of claim 1, wherein after outputting the composition indication, further comprising:
and under the condition that the electronic equipment is determined to finish the processing action corresponding to the composition instruction, outputting a composition success prompt and executing a photographing processing action.
8. The method of claim 1, wherein before determining the first subject in the photo preview interface, further comprising:
receiving a third input of the geographic location by the user;
displaying a plurality of images corresponding to the geographic location in response to the third input;
receiving a fourth input to a target image of the plurality of images;
in response to the fourth input, saving the target image, wherein the target image includes the template image.
9. A photographing apparatus, characterized in that the apparatus comprises:
the first determining module is used for determining a first shooting subject in a shooting preview interface under the condition of determining to enter a shooting composition guiding mode of the electronic equipment;
the acquisition module is used for acquiring a template image matched with the first shooting subject based on the geographic position of the electronic equipment, wherein the similarity between a second shooting subject and the first shooting subject in the template image is greater than a first preset threshold;
and the output module is used for outputting composition instructions according to the position deviation degree of the first shooting subject and the second shooting subject, wherein the composition instructions are used for guiding a user to shoot an image with the composition similarity of the template image being greater than a second preset threshold.
10. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the photographing method according to any one of claims 1 to 8.
CN202011341207.7A 2020-11-25 2020-11-25 Photographing method and device and electronic equipment Active CN112492201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011341207.7A CN112492201B (en) 2020-11-25 2020-11-25 Photographing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011341207.7A CN112492201B (en) 2020-11-25 2020-11-25 Photographing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112492201A true CN112492201A (en) 2021-03-12
CN112492201B CN112492201B (en) 2022-10-14

Family

ID=74934476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011341207.7A Active CN112492201B (en) 2020-11-25 2020-11-25 Photographing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112492201B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873145A (en) * 2021-09-02 2021-12-31 北京城市网邻信息技术有限公司 Vehicle source information acquisition method and device, electronic equipment and readable medium
CN113890990A (en) * 2021-09-02 2022-01-04 北京城市网邻信息技术有限公司 Prompting method and device in information acquisition process, electronic equipment and readable medium
CN114979495A (en) * 2022-06-28 2022-08-30 北京字跳网络技术有限公司 Method, apparatus, device and storage medium for content shooting

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791204A (en) * 2017-02-27 2017-05-31 努比亚技术有限公司 Mobile terminal and its image pickup method
US20170237898A1 (en) * 2016-02-17 2017-08-17 Electronics And Telecommunications Research Institute Method and system for reproducing situation using mobile device having image shooting function
CN109257541A (en) * 2018-11-20 2019-01-22 厦门盈趣科技股份有限公司 Householder method of photographing and device
CN111327828A (en) * 2020-03-06 2020-06-23 Oppo广东移动通信有限公司 Photographing method and device, electronic equipment and storage medium
CN111355889A (en) * 2020-03-12 2020-06-30 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170237898A1 (en) * 2016-02-17 2017-08-17 Electronics And Telecommunications Research Institute Method and system for reproducing situation using mobile device having image shooting function
CN106791204A (en) * 2017-02-27 2017-05-31 努比亚技术有限公司 Mobile terminal and its image pickup method
CN109257541A (en) * 2018-11-20 2019-01-22 厦门盈趣科技股份有限公司 Householder method of photographing and device
CN111327828A (en) * 2020-03-06 2020-06-23 Oppo广东移动通信有限公司 Photographing method and device, electronic equipment and storage medium
CN111355889A (en) * 2020-03-12 2020-06-30 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873145A (en) * 2021-09-02 2021-12-31 北京城市网邻信息技术有限公司 Vehicle source information acquisition method and device, electronic equipment and readable medium
CN113890990A (en) * 2021-09-02 2022-01-04 北京城市网邻信息技术有限公司 Prompting method and device in information acquisition process, electronic equipment and readable medium
CN114979495A (en) * 2022-06-28 2022-08-30 北京字跳网络技术有限公司 Method, apparatus, device and storage medium for content shooting
CN114979495B (en) * 2022-06-28 2024-04-12 北京字跳网络技术有限公司 Method, apparatus, device and storage medium for content shooting

Also Published As

Publication number Publication date
CN112492201B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN112492201B (en) Photographing method and device and electronic equipment
CN113132618B (en) Auxiliary photographing method and device, terminal equipment and storage medium
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN112954210B (en) Photographing method and device, electronic equipment and medium
CN112738402B (en) Shooting method, shooting device, electronic equipment and medium
CN113194253A (en) Shooting method and device for removing image reflection and electronic equipment
CN113794834A (en) Image processing method and device and electronic equipment
WO2022111458A1 (en) Image capture method and apparatus, electronic device, and storage medium
CN112788244B (en) Shooting method, shooting device and electronic equipment
CN112887615B (en) Shooting method and device
CN112449110B (en) Image processing method and device and electronic equipment
CN114025092A (en) Shooting control display method and device, electronic equipment and medium
CN112822394A (en) Display control method and device, electronic equipment and readable storage medium
CN112511737A (en) Image processing method and device, electronic equipment and readable storage medium
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN112367487B (en) Video recording method and electronic equipment
CN112532904B (en) Video processing method and device and electronic equipment
CN114245017A (en) Shooting method and device and electronic equipment
CN114266305A (en) Object identification method and device, electronic equipment and storage medium
CN113873165A (en) Photographing method and device and electronic equipment
CN114125226A (en) Image shooting method and device, electronic equipment and readable storage medium
CN113747076A (en) Shooting method and device and electronic equipment
CN112165584A (en) Video recording method, video recording device, electronic equipment and readable storage medium
CN113489901B (en) Shooting method and device thereof
CN112887621B (en) Control method and electronic device

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