CN112702527A - Image shooting method and device and electronic equipment - Google Patents

Image shooting method and device and electronic equipment Download PDF

Info

Publication number
CN112702527A
CN112702527A CN202011581738.3A CN202011581738A CN112702527A CN 112702527 A CN112702527 A CN 112702527A CN 202011581738 A CN202011581738 A CN 202011581738A CN 112702527 A CN112702527 A CN 112702527A
Authority
CN
China
Prior art keywords
image
user
input
electronic device
electronic equipment
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.)
Pending
Application number
CN202011581738.3A
Other languages
Chinese (zh)
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 Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011581738.3A priority Critical patent/CN112702527A/en
Publication of CN112702527A publication Critical patent/CN112702527A/en
Pending legal-status Critical Current

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

Landscapes

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

Abstract

The application discloses an image shooting method and device and electronic equipment, and belongs to the technical field of communication. The problem that the display direction of the shot image is inconsistent with the expected direction of the user can be solved. The method comprises the following steps: receiving a first input of a user; and responding to the first input, controlling a rear camera of the electronic equipment to shoot the target object to obtain a first image. Wherein the imaging direction of the first image coincides with the face direction of the user.

Description

Image shooting method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an image shooting method and device and electronic equipment.
Background
Generally, when a user uses an electronic device to shoot, a camera of the electronic device may adjust a direction in which the camera captures an image, which may also be referred to as a viewing direction, according to a shooting angle, so that the electronic device may display the image in the viewing direction, i.e., the display direction of the image is the viewing direction.
However, in the above manner, the display direction of the image captured by the electronic apparatus may be caused to be inconsistent with the direction desired by the user. For example, after the user triggers the electronic device to shoot a gourmet at an angle close to the horizontal direction so that the electronic device obtains one image of the gourmet, when the electronic device displays the one image, the display direction of the one image may not coincide with the direction of the gourmet actually seen by the user, for example, turned over by 180 degrees or 90 degrees, thereby causing the display direction of the shot image to not coincide with the desired direction of the user.
Disclosure of Invention
The embodiment of the application aims to provide an image shooting method, an image shooting device and electronic equipment, which can solve the problem that the display direction of a shot image is inconsistent with the expected direction of a user.
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 an image capturing method, including: receiving a first input of a user; and responding to the first input, controlling a rear camera of the electronic equipment to shoot the target object to obtain a first image. Wherein the imaging direction of the first image coincides with the face direction of the user.
In a second aspect, an embodiment of the present application provides an image capturing apparatus, including: the device comprises a receiving module and a control module. The receiving module is used for receiving a first input of a user. And the control module is used for responding to the first input received by the receiving module, controlling a rear camera of the electronic equipment to shoot a target object and obtaining a first image. Wherein the imaging direction of the first image is consistent with the face direction of the user.
In a third aspect, embodiments of the present application provide 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 method in the above-mentioned object aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method in the above-mentioned object aspect.
In a fifth aspect, embodiments of the present application provide 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 method in the above-mentioned object aspect.
In the embodiment of the application, a first input of a user can be received; and responding to the first input, controlling a rear camera of the electronic equipment to shoot the target object to obtain a first image. Wherein the imaging direction of the first image coincides with the face direction of the user. According to the scheme, the user can trigger the rear camera of the electronic equipment to shoot the target object through input to obtain the first image with the imaging direction consistent with the face direction of the user, so that the display direction of the first image is consistent with the direction of the target object actually seen by the target user, and the problem that the shot image is turned over by 180 degrees or 90 degrees is solved, namely the display direction of the shot image is consistent with the expected direction of the user.
Drawings
Fig. 1 is a schematic diagram of an image capturing method according to an embodiment of the present disclosure;
fig. 2 is a schematic view of an image capturing interface provided in an embodiment of the present application;
fig. 3 is a second schematic view of an image capturing interface according to an embodiment of the present disclosure;
fig. 4 is a second schematic diagram of an image capturing method according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of an image display method according to an embodiment of the present disclosure;
fig. 6 is a second schematic diagram of an image display method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an image capturing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an image capturing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a hardware schematic diagram of an electronic device according to an embodiment 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 "target," "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 is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. 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.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," should not be construed as advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise specified, "a plurality" means two or more, for example, a plurality of cameras means two or more cameras, and the like.
Some terms/nouns referred to in the embodiments of the present application are explained below.
A gyroscope: also known as a three-axis gyroscope. The gyroscope is mainly used for carrying out position measurement work in three directions of an X axis, a Y axis and a Z axis. When the gyroscope works, a series of data such as movement, deflection and the like of the electronic equipment can be measured at the same time, then the data are transmitted to a processor of the electronic equipment by the sensor to be processed, and finally the data are fed back to the electronic equipment through an application program, so that the purpose that an image displayed on a screen of the electronic equipment rotates along with the electronic equipment is achieved.
The face recognition technology comprises the following steps: the face recognition technology is a biometric technology for performing identification based on facial feature information of a person. In the embodiment of the application, the face recognition technology is used for recognizing the face image collected by the camera, and further recognizing the face feature distribution information in the image to obtain the face direction.
The embodiment of the application provides an image shooting method, an image shooting device and electronic equipment, which can receive a first input of a user; and responding to the first input, controlling a rear camera of the electronic equipment to shoot the target object to obtain a first image. Wherein the imaging direction of the first image coincides with the face direction of the user. According to the scheme, the user can trigger the rear camera of the electronic equipment to shoot the target object through input to obtain the first image with the imaging direction consistent with the face direction of the user, so that the display direction of the first image is consistent with the direction of the target object actually seen by the target user, and the problem that the shot image is turned over by 180 degrees or 90 degrees is solved, namely the display direction of the shot image is consistent with the expected direction of the user.
The image capturing method, the image capturing apparatus, and the electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present application provides an image capturing method, which includes the following S101 and S102.
S101, the image shooting device receives a first input of a user.
Optionally, the first input may be a touch input, a gesture input, or a voice input of the user. For example, the touch input is a click input of a target control by a user, and the target control is a control for touch shooting. Of course, the first input may also be a physical key input or other inputs with a function of triggering shooting, which is determined according to actual situations, and this is not limited in this embodiment of the present application.
S102, the image shooting device responds to the first input and controls a rear camera of the electronic equipment to shoot a target object to obtain a first image.
Wherein the imaging direction of the first image coincides with the face direction of the user.
Optionally, in this embodiment of the application, since the electronic device may be provided with M rear cameras, where M is a positive integer, the rear camera used for shooting the target object may be a camera of the M rear cameras, and thus the number of the rear cameras used for shooting the target object may be one or more, which may be determined specifically according to an actual situation, and this is not limited in this embodiment of the application.
For example, when the number of the rear cameras for shooting the target object is one, the rear cameras may be a main camera or a wide-angle camera, and the like, that is, the first image is an image captured by the main camera or the wide-angle camera; when the number of the rear cameras for photographing the target object is two, the rear cameras may include a main camera and a wide-angle camera, that is, the first image is an image collected by the main camera and the wide-angle camera.
Optionally, in the embodiment of the present application, the target object may be any living body and non-living body. For example, the target object may be a person, a plant, an automobile, a food or a document, and so on. In addition, the first image may be a shot photograph or video, and the first image includes an image of the target object.
Optionally, the "imaging direction of the first image" refers to: the electronic device outputs the direction of the first image after shooting the target object. In addition, in the embodiment of the present application, the face direction of the user is an imaging direction of the user in an image captured by a front camera of the electronic device. Reference may be made to the following description of the embodiments, which are not repeated herein.
Illustratively, when the electronic device is vertically placed, the imaging direction of the first image is a direction from the bottom to the top of the electronic device; when the electronic device is placed horizontally, the imaging direction of the first image is from the lower side edge to the upper side edge of the electronic device.
Optionally, in this embodiment of the application, the fact that the imaging direction of the first image is consistent with the direction of the face of the user specifically means: the imaging direction of the first image is kept parallel to the face direction of the user, or the imaging direction of the first image is consistent with the face direction of the user within a reasonable angle error range. The angle error range may be between zero degrees and a predetermined angle.
It should be noted that, for different placement directions of the electronic device relative to the user, due to the change of the placement direction of the electronic device, a shooting angle of the rear camera of the electronic device for shooting the target object also changes accordingly, so that the camera may adjust a direction of acquiring an image of the target object, that is, an image acquisition direction of the first image is different, and further, an imaging direction of the target object in the first image is also different.
It can be understood that, because the imaging direction of the first image is consistent with the face direction of the user, the first image output by the electronic device is consistent with the target object in the real view angle of the user, and therefore, no matter how the placement posture of the electronic device changes, the image direction of the target object acquired by the rear camera of the electronic device can be adjusted in real time, so as to ensure that the first image obtained by shooting is consistent with the target object actually seen by the user.
For example, the image capturing device is a mobile phone, and the rear camera is a main camera. Assuming that the user holds the phone sideways and wants to take a meal on the table, the user can click the take button on the phone. After the mobile phone receives the click input (i.e. the first input), the mobile phone can respond to the click input and control the rear main camera to obtain a food photo, wherein the imaging direction of the food photo is consistent with the face direction of the user, so that the food photo is in line with the expectation of the user.
Optionally, after S102, the image capturing method provided in the embodiment of the present application may further include: the image shooting device controls the electronic equipment to save the first image.
The embodiment of the application provides an image shooting method, because a user can trigger a rear camera of an electronic device to shoot a target object through input to obtain a first image with an imaging direction consistent with the face direction of the user, the display direction of the first image is consistent with the direction of the target object actually seen by the target user, and therefore the problem that the shot image is turned over by 180 degrees or 90 degrees is solved, namely the display direction of the shot image is consistent with the expected direction of the user.
Alternatively, the above S102 may be implemented by the following S102A, S102B, and S102C.
S102A, the image shooting device responds to the first input, and a second image is collected through a front camera of the electronic equipment.
Wherein the second image is an image including a face of the user.
Optionally, in this embodiment of the application, the electronic device may be provided with N front-facing cameras, where N is a positive integer. The front-facing camera used for collecting the second image is a camera of the N front-facing cameras, that is, the number of the front-facing cameras may be one or more. Further, in the case where the number of the front cameras is plural, the kind of each of the plural front cameras may be different.
Optionally, in this embodiment of the application, the second image may be a preview image of the user acquired by the front-facing camera, a picture obtained by the user taken by the front-facing camera, or a video image of the user acquired by the front-facing camera. For example, the second image is a self-photograph of the user.
Alternatively, the above S102A may be implemented by the following S102a1 and S102a 2. Accordingly, S102a2 can be specifically realized by S102A3 described below.
S102a1, the image capture device obtains a horizontal attitude angle in response to the first input.
Wherein, the horizontal attitude angle is an included angle between the rear camera and a horizontal plane.
It should be noted that, when a user triggers the rear camera of the electronic device to shoot, the horizontal attitude angle of the state of the electronic device, that is, the included angle between the plane where the rear camera of the electronic device is located and the horizontal plane, may be detected by a three-axis gyroscope configured in the electronic device.
Optionally, in the foregoing embodiment, the horizontal attitude angle is detected when the user triggers the rear camera of the electronic device to shoot the target object, and the image shooting method provided in the embodiment of the present application may further provide another implementation: in the case where a camera application of the electronic device is run and the rear camera is in a shooting state, a horizontal attitude angle of the state in which the electronic device is located is periodically detected.
S102A2, the image shooting device collects a second image through the front camera under the condition that the horizontal attitude angle is smaller than the preset angle.
Optionally, the preset angle may be factory set for the electronic device or user-defined set for the user. The method can be determined according to actual conditions, and is not limited in the embodiment of the application. For example, the preset angle is 10 degrees.
It should be noted that, in the embodiment of the present application, if it is detected that the horizontal attitude angle of the rear camera of the electronic device is relatively large, the gyroscope in the electronic device may trigger the electronic device to automatically adjust the image acquisition direction of the target object by the rear camera, so as to ensure that the image output by the electronic device is consistent with the direction in which the user actually sees the target object, that is, the image of the target object is acquired by the rear camera, so that the problem that the image is easily misaligned by 90 degrees or 180 degrees from the desired direction of the user is not likely to occur; if the horizontal attitude angle of the rear camera of the electronic equipment is detected to be close to horizontal (namely the horizontal attitude angle is small), the rear camera is used for collecting the image of the target object, the problem that the image is deviated from the expected direction of a user by 90 degrees or 180 degrees is easy to occur, at the moment, the front camera of the electronic equipment can be started, and a second image is collected through the front camera.
It can be understood that, since the horizontal attitude angle can be obtained, it can be determined whether the front camera of the electronic device needs to be operated to acquire the second image of the target user by judging whether the horizontal attitude angle is smaller than the preset angle, so that the second image is acquired by the front camera of the electronic device whether the horizontal attitude angle is smaller than the preset angle. Therefore, the running resources of the electronic equipment can be effectively utilized, unnecessary resource waste is saved, and the working efficiency is improved.
S102B, the image shooting device determines the target placing posture according to the face direction of the user.
And the face direction is the imaging direction of the user in the second image. The target placement posture is a placement posture of the electronic device relative to the user.
It should be noted that, because the electronic device is placed in different directions relative to the user, the imaging directions of the user in the second image, which are acquired by the front camera of the electronic device, are also different, so that the imaging directions of the target user in the second image are also different, that is, the face directions are different. It is to be understood that, in the case of determining the face direction of the target user, the target placement posture may be determined in accordance with the face direction.
Specifically, if the imaging direction of the user in the second image is a direction from the bottom to the top of the electronic device, that is, the face direction of the user is a direction from the bottom to the top of the electronic device, the electronic device is vertically placed relative to the user; if the imaging direction of the user in the second image is a direction from the lower side to the upper side of the electronic device, that is, the face direction of the user is a direction from the lower side to the upper side of the electronic device, the electronic device is placed transversely with respect to the user.
Optionally, after the above S102A and before S102B, the image capturing method provided in the embodiment of the present application may further include S102D described below.
S102D, the image shooting device identifies the facial feature distribution information of the user in the second image to obtain the face direction.
And the face direction is the imaging direction of the user in the second image.
Optionally, the facial feature distribution information includes feature distribution information of the eyes, nose, mouth, and the like of the target user. Specifically, the face image in the second image may be subjected to image recognition by a face recognition technique, and then the face direction of the user is obtained from the distribution information of the recognized eyes, nose, and mouth.
It can be understood that, because the front-facing camera can collect the second image of the user in real time, the image shooting device can identify the facial feature distribution information of the user in the second image, and obtain the facial direction according to the facial feature distribution information, and further judge the placing posture of the electronic equipment relative to the user according to the facial direction. The method provides basis for determining the target placement posture of the electronic equipment.
S102C, the image shooting device controls a rear camera of the electronic equipment to shoot the target object according to the target placement direction, and a first image which is consistent with the imaging direction of the user in the second image is obtained.
Optionally, the target placement direction is associated with a target placement posture of the electronic device. Specifically, the target placement direction may include an up-down relationship in which the electronic device is in a landscape placement posture or a portrait placement posture with respect to the target user, and the electronic device is in the placement posture. For example, as shown in fig. 2 (a), the cellular phone is vertically placed with respect to the user in the a-B direction, i.e., from bottom to top (i.e., from bottom to top).
Illustratively, the image capturing device is a mobile phone, and the horizontal attitude angle is 10 degrees. As shown in fig. 2 (a), if a user wants to shoot a scene in which a child has a firecracker at an angle close to the horizontal direction using a mobile phone, the user can click on a control 01 displayed on the mobile phone. After the mobile phone receives a click input (i.e., a first input) of a user, in response to the click input, the mobile phone may acquire that an included angle between a rear camera of the mobile phone and a horizontal plane is 8 degrees, that is, a horizontal attitude angle is 8 degrees. Then, since the horizontal attitude angle is smaller than the preset angle, the mobile phone can operate the front camera, and capture the preview image 02 (i.e., the second image) of the user through the front camera. Next, the cell phone can recognize distribution information of the eyes, nose, and mouth of the face of the user included in the preview image 02, resulting in the face direction of the user from a to B as shown in (a) in fig. 2. Then, the mobile phone can determine that the mobile phone is vertically placed relative to the user according to the imaging direction of the user in the preview image 02 from a to B, and the mobile phone is placed from the bottom frame to the top frame in the vertical direction according to the direction from a to B. Finally, as shown in fig. 2 (B), a rear camera with a vertically placed mobile phone shoots a scene in which a child shoots a firecracker according to a direction from a to B, and an image 03 (i.e., a first image) is obtained, wherein an image acquisition direction of the image 03 is consistent with an imaging direction of a target object on a retina of the user.
Illustratively, the image capturing device is a mobile phone, and the horizontal attitude angle is 10 degrees. As shown in fig. 3 (a), if the user wants to shoot a scene in which a child has a firecracker at an angle close to the horizontal direction using a mobile phone, the user can click on a control 01 displayed on the mobile phone. After the mobile phone receives a click input (i.e., a first input) of a user, in response to the click input, the mobile phone may acquire that an included angle between a rear camera of the mobile phone and a horizontal plane is 5 degrees, that is, a horizontal attitude angle is 5 degrees. Then, since the horizontal attitude angle is smaller than the preset angle, the mobile phone can operate the front camera, and capture the preview image 04 (i.e., the second image) of the user through the front camera. Next, the mobile phone can recognize distribution information of the eyes, nose, and mouth of the face of the user included in the preview image 04, resulting in the face direction of the user from a to B as shown in (a) in fig. 3. Then, the mobile phone can determine that the mobile phone is placed horizontally relative to the user according to the imaging direction of the user in the preview image 03 from a to B, and the mobile phone is placed in the vertical direction from the bottom side frame to the top side frame along the direction from a to B. Finally, as shown in fig. 3 (B), the rear camera of the mobile phone placed transversely shoots the scene (i.e., the target object) of the firecracker set by the child in the direction from a to B, and an image 05 (i.e., a first image) is obtained, i.e., the image capturing direction of the image 05 is consistent with the direction in which the target object is imaged on the retina of the user.
It can be understood that the photographing direction of the rear camera to the target object is adjusted, so that the composition of the target object is consistent with the placing direction of the electronic equipment relative to the user, and the up-down relation between the imaging direction and the placing direction of the electronic equipment is consistent, and the effect that the image output by the electronic equipment is consistent with the real object seen by the user is further achieved.
According to the image shooting method provided by the embodiment of the application, one image of a user can be collected through the front camera of the electronic equipment, and the target placing direction of the electronic equipment is determined according to the face direction of the user in the image, so that the target placing direction can be determined by the image shooting device according to the image collected by the front camera in real time, the image collecting direction of the rear camera of the electronic equipment to the target object is continuously adjusted according to the target placing direction, and the obtained imaging direction of the target object is ensured to be in accordance with the expectation of the user.
Optionally, after the user triggers the electronic device to shoot the target object to obtain the first image, the user may view the first image through the electronic device according to an actual requirement. For example, referring to fig. 1, as shown in fig. 4, after S102, the image capturing method provided in the embodiment of the present application may further include S103 and S104 described below.
And S103, receiving a second input by the image shooting device.
The second input is an input for triggering display of the first image.
Optionally, the second input is a touch input, a gesture input, or a voice input of the user. For example, the touch input is a user click input on a thumbnail of the first image. Of course, the second input may also be other possible inputs, which are determined according to practical situations, and this is not limited in this embodiment of the application.
And S104, the image shooting device responds to the second input and displays the first image according to the face direction.
Optionally, in the embodiment of the present application, one possible case is: the face direction is determined when the first image is shot in a triggering mode, and the first image is displayed according to the face direction and is irrelevant to the placement posture of the electronic equipment; another possible scenario is: the face direction is determined in real time when the first image is triggered to be displayed, and the face direction is determined when the electronic device is in the current placement posture, namely, the first image is displayed according to the face direction and is related to the placement posture of the electronic device. The method can be determined according to actual conditions, and is not limited in the embodiment of the application.
Illustratively, the image capturing device is taken as a mobile phone. As shown in fig. 5 (a), the mobile phone displays an album including thumbnail 1 (i.e., a thumbnail of the first image), thumbnail 2, thumbnail 3, and thumbnail 4. If the user wants to view the first image, the user may click on thumbnail 1. After the cell phone receives the click input, in response to the click input, as shown in fig. 5 (B), the cell phone vertically displays the image 06 (i.e., the first image) in the direction of lower a to upper B. I.e. the display orientation of the image 06 coincides with the orientation actually seen by the user.
Illustratively, the image capturing device is taken as a mobile phone. As shown in fig. 6 (a), the mobile phone displays an album including thumbnail 1, thumbnail 2 (i.e., thumbnail of first image), thumbnail 3, and thumbnail 4. If the user wants to view the first image, the user can click on thumbnail 2. After the cell phone receives the click input, in response to the click input, as shown in fig. 6 (B), the cell phone displays the image 07 (i.e., the first image) laterally in the direction of lower a to upper B. I.e. the display orientation of the image 07 coincides with the orientation actually seen by the user.
According to the image shooting method provided by the embodiment of the application, the user can trigger the display of the first image according to the imaging direction of the target object on the retina of the target user according to actual needs, so that the first image is consistent with the actual viewing direction of the user, and the user can quickly view the image meeting the requirements.
It should be noted that, in the image capturing method provided in the embodiment of the present application, the executing subject may be an image capturing apparatus (for example, the image capturing apparatus is an electronic device or a control module in the electronic device), or a control module in the image capturing apparatus for executing the image capturing method. The image capturing apparatus provided in the embodiment of the present application is described with an example in which an image capturing apparatus executes an image capturing method.
As shown in fig. 7, the embodiment of the present application provides an image capturing apparatus 200, which may include a receiving module 201 and a control module 202. The receiving module 201 may be configured to receive a first input of a user. The control module 202 may be configured to control a rear camera of the electronic device to capture a target object in response to the first input received by the receiving module 201, so as to obtain a first image. Wherein the imaging direction of the first image coincides with the face direction of the user.
Optionally, in conjunction with fig. 7, as shown in fig. 8, the image capturing apparatus may further include an acquisition module 203 and a determination module 204. The acquiring module 203 may be configured to acquire a second image through a front camera of the electronic device, where the second image is an image including a face of the user. The determining module 204 may be configured to determine a target placement posture according to a face direction of the user, where the face direction is an imaging direction of the user in the second image, and the target placement posture is a placement posture of the electronic device relative to the user. The control module 202 is specifically configured to control a rear camera of the electronic device to shoot a target object according to a target placement direction, so as to obtain a first image that is consistent with an imaging direction of a user in the second image.
Optionally, the image capturing apparatus may further include the recognition module 205. The recognition module 205 may be configured to recognize the facial feature distribution information of the user in the second image to obtain the facial direction before the determination module 204 determines the target placement posture according to the facial direction of the user.
Optionally, the image capturing apparatus may further include an acquisition module 206. The obtaining module 206 may be configured to obtain a horizontal attitude angle, where the horizontal attitude angle is an included angle between a plane where the rear camera is located and a horizontal plane. The collecting module 203 may be specifically configured to collect the second image through the front camera under the condition that the horizontal attitude angle obtained by the obtaining module 206 is smaller than the preset angle.
Optionally, the image capturing apparatus may further include a display module 207. The receiving module 201 may be further configured to receive a second input, where the second input is an input triggering the display of the first image. The display module 207 may be configured to display the first image in the face direction in response to the second input received by the receiving module 201.
The embodiment of the application provides an image shooting device, because a user can trigger a rear camera of electronic equipment to shoot a target object through input, and a first image with an imaging direction consistent with the face direction of the user is obtained, the display direction of the first image is consistent with the direction of the target object actually seen by the target user, so that the problem that the shot image is turned over by 180 degrees or 90 degrees is avoided, namely the display direction of the shot image is consistent with the expected direction of the user.
The image capturing 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 image capturing apparatus in the embodiment of the present application may be an apparatus 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 image capturing apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 6, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 9, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and executable on the processor 301, where the program or the instruction is executed by the processor 301 to implement each process of the above-mentioned embodiment of the image capturing method, 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 devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 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 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 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 user input unit 407 may be configured to receive a first input from a user. The processor 410 may be configured to control a rear camera of the electronic device to capture a target object in response to the first input received by the user input unit 407, so as to obtain a first image. Wherein the imaging direction of the first image coincides with the face direction of the user.
Optionally, the processor 410 is further configured to control a front camera of the electronic device to acquire a second image, where the second image is an image including a face of the user; and determining a target placing posture according to the face direction of the user, wherein the face direction is the imaging direction of the user in the second image, and the target placing posture is the placing posture of the electronic equipment relative to the user. The control module 202 is specifically configured to control a rear camera of the electronic device to shoot a target object according to a target placement direction, so as to obtain a first image that is consistent with an imaging direction of a user in the second image.
Optionally, the processor 410 is further configured to identify facial feature distribution information of the user in the second image, and obtain the facial direction.
Optionally, the processor 410 is further configured to obtain a horizontal attitude angle, where the horizontal attitude angle is an included angle between a plane where the rear camera is located and a horizontal plane; and under the condition that the horizontal attitude angle is smaller than the preset angle, a second image is acquired by controlling the front camera.
Optionally, the user input unit 407 may be further configured to receive a second input, where the second input is an input triggering the display of the first image. A display unit 406 may be used to display the first image in a face direction in response to the second input received by the user input unit 407.
The embodiment of the application provides an electronic device, because a user can trigger a rear camera of the electronic device to shoot a target object through input, and obtain a first image with an imaging direction consistent with a face direction of the user, a display direction of the first image is consistent with a direction of the target object actually seen by the target user, so that the problem that the shot image is turned over by 180 degrees or 90 degrees is avoided, namely, the display direction of the shot image is consistent with an expected direction of the user.
It should be understood that, in the embodiment of the present application, the input unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the graphics processor 4041 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 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 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. The memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 410 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
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 above-mentioned image capturing 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 in the above embodiment. Readable storage media, including computer-readable storage media such as a computer-read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and so forth.
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 execute a program or an instruction to implement each process of the embodiment of the image capturing method, and the same technical effect can be achieved.
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 in 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. An image capturing method, characterized in that the method comprises:
receiving a first input of a user;
responding to the first input, controlling a rear camera of the electronic equipment to shoot a target object to obtain a first image;
wherein an imaging direction of the first image coincides with a face direction of a user.
2. The method of claim 1, wherein before the controlling electronic device takes the target object with the rear camera in the target placement direction and obtains the first image, the method further comprises:
acquiring a second image through a front camera of the electronic equipment, wherein the second image is an image comprising a face of a user;
determining a target placing posture according to the face direction of the user, wherein the face direction is the imaging direction of the user in the second image, and the target placing posture is the placing posture of the electronic equipment relative to the user;
the control electronic equipment's rear camera shoots target object, obtains first image, includes:
and controlling a rear camera of the electronic equipment to shoot a target object according to the target placement direction to obtain a first image consistent with the imaging direction of the user in the second image.
3. The method of claim 2, wherein prior to determining a target placement pose based on the facial orientation of the user, the method further comprises:
and identifying the facial feature distribution information of the user in the second image to obtain the facial direction.
4. The method of claim 2, wherein before the acquiring the second image with the front-facing camera of the electronic device, the method further comprises:
acquiring a horizontal attitude angle, wherein the horizontal attitude angle is an included angle between a plane where the rear camera is located and a horizontal plane;
through the leading camera of electronic equipment, gather the second image, include:
and acquiring the second image through the front camera under the condition that the horizontal attitude angle is smaller than a preset angle.
5. The method according to claim 1, wherein after the rear camera of the control electronic device captures a target object and a first image is obtained, the method further comprises:
receiving a second input, wherein the second input is an input for triggering the display of the first image;
in response to the second input, displaying the first image in the face direction.
6. An image shooting device is characterized by comprising a receiving module and a control module;
the receiving module is used for receiving a first input of a user;
the control module is used for responding to the first input received by the receiving module and controlling a rear camera of the electronic equipment to shoot a target object to obtain a first image;
wherein an imaging direction of the first image coincides with a face direction of a user.
7. The apparatus of claim 6, wherein the image capture device further comprises an acquisition module and a determination module;
the acquisition module is used for acquiring a second image through a front camera of the electronic equipment, wherein the second image is an image comprising a face of a user;
the determining module is configured to determine the target placement posture according to the face direction of the user, where the face direction is an imaging direction of the user in the second image, and the target placement posture is a placement posture of the electronic device relative to the user;
the control module is specifically used for controlling a rear camera of the electronic device to shoot a target object according to a target placing direction, and obtaining a first image consistent with an imaging direction of a user in the second image.
8. The apparatus of claim 7, wherein the image capture device further comprises an identification module;
the identification module is used for identifying the facial feature distribution information of the user in the second image to obtain the facial direction before the determination module determines the target placement posture according to the facial direction of the user.
9. 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 image capturing method as claimed in any one of claims 1 to 5.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the image capturing method as claimed in any one of claims 1 to 5.
CN202011581738.3A 2020-12-28 2020-12-28 Image shooting method and device and electronic equipment Pending CN112702527A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011581738.3A CN112702527A (en) 2020-12-28 2020-12-28 Image shooting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011581738.3A CN112702527A (en) 2020-12-28 2020-12-28 Image shooting method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112702527A true CN112702527A (en) 2021-04-23

Family

ID=75512979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011581738.3A Pending CN112702527A (en) 2020-12-28 2020-12-28 Image shooting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112702527A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118879A (en) * 2022-06-23 2022-09-27 维沃移动通信有限公司 Image shooting and displaying method and device, electronic equipment and readable storage medium
CN115883956A (en) * 2021-09-24 2023-03-31 上海擎感智能科技有限公司 Shooting control method, shooting device, interactive object manufacturing device and vehicle

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2562582A2 (en) * 2010-04-21 2013-02-27 Kim, Seong-do Monoscopic 3d image photographing device and 3d camera
CN104122983A (en) * 2013-04-27 2014-10-29 ***通信集团公司 Adjusting method and device for screen displaying direction
US20150042821A1 (en) * 2013-08-06 2015-02-12 Hon Hai Precision Industry Co., Ltd. Handheld device and method for controlling orientation of display of handheld device
CN104991723A (en) * 2015-07-08 2015-10-21 上海斐讯数据通信技术有限公司 Transverse and vertical screen switching system and method
CN107483709A (en) * 2016-09-29 2017-12-15 维沃移动通信有限公司 A kind of horizontal/vertical screen switching method and mobile terminal
CN108540718A (en) * 2018-04-08 2018-09-14 Oppo广东移动通信有限公司 Image pickup method, device, mobile terminal and storage medium
CN110119684A (en) * 2019-04-11 2019-08-13 华为技术有限公司 Image-recognizing method and electronic equipment
JP2019213205A (en) * 2019-07-22 2019-12-12 パイオニア株式会社 Imaging apparatus, control method, program, and storage medium
CN111050071A (en) * 2019-12-23 2020-04-21 维沃移动通信有限公司 Photographing method and electronic equipment
CN111225138A (en) * 2019-10-14 2020-06-02 宇龙计算机通信科技(深圳)有限公司 Camera control method and device, storage medium and terminal
CN111669462A (en) * 2020-05-30 2020-09-15 华为技术有限公司 Method and related device for displaying image

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2562582A2 (en) * 2010-04-21 2013-02-27 Kim, Seong-do Monoscopic 3d image photographing device and 3d camera
CN104122983A (en) * 2013-04-27 2014-10-29 ***通信集团公司 Adjusting method and device for screen displaying direction
US20150042821A1 (en) * 2013-08-06 2015-02-12 Hon Hai Precision Industry Co., Ltd. Handheld device and method for controlling orientation of display of handheld device
CN104991723A (en) * 2015-07-08 2015-10-21 上海斐讯数据通信技术有限公司 Transverse and vertical screen switching system and method
CN107483709A (en) * 2016-09-29 2017-12-15 维沃移动通信有限公司 A kind of horizontal/vertical screen switching method and mobile terminal
CN108540718A (en) * 2018-04-08 2018-09-14 Oppo广东移动通信有限公司 Image pickup method, device, mobile terminal and storage medium
CN110119684A (en) * 2019-04-11 2019-08-13 华为技术有限公司 Image-recognizing method and electronic equipment
JP2019213205A (en) * 2019-07-22 2019-12-12 パイオニア株式会社 Imaging apparatus, control method, program, and storage medium
CN111225138A (en) * 2019-10-14 2020-06-02 宇龙计算机通信科技(深圳)有限公司 Camera control method and device, storage medium and terminal
CN111050071A (en) * 2019-12-23 2020-04-21 维沃移动通信有限公司 Photographing method and electronic equipment
CN111669462A (en) * 2020-05-30 2020-09-15 华为技术有限公司 Method and related device for displaying image

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115883956A (en) * 2021-09-24 2023-03-31 上海擎感智能科技有限公司 Shooting control method, shooting device, interactive object manufacturing device and vehicle
CN115118879A (en) * 2022-06-23 2022-09-27 维沃移动通信有限公司 Image shooting and displaying method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110012209B (en) Panoramic image generation method and device, storage medium and electronic equipment
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
EP3640732B1 (en) Method and terminal for acquire panoramic image
CN111787223B (en) Video shooting method and device and electronic equipment
CN112153301B (en) Shooting method and electronic equipment
CN107749046B (en) Image processing method and mobile terminal
CN112637500B (en) Image processing method and device
CN113794834B (en) Image processing method and device and electronic equipment
CN113329172B (en) Shooting method and device and electronic equipment
CN112492201B (en) Photographing method and device and electronic equipment
CN112702527A (en) Image shooting method and device and electronic equipment
CN112333382B (en) Shooting method and device and electronic equipment
CN112911147A (en) Display control method, display control device and electronic equipment
CN112532885A (en) Anti-shake method and device and electronic equipment
CN112788244B (en) Shooting method, shooting device and electronic equipment
CN105872194A (en) Image acquisition method and device for terminal
CN112511743B (en) Video shooting method and device
CN112954212B (en) Video generation method, device and equipment
CN113709368A (en) Image display method, device and equipment
CN113891002B (en) Shooting method and device
CN113794833B (en) Shooting method and device and electronic equipment
CN112153291B (en) Photographing method and electronic equipment
CN114466140A (en) Image shooting method and device
CN112165584A (en) Video recording method, video recording device, electronic equipment and readable storage medium
CN112399092A (en) Shooting 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210423