CN105282441B - Photographing method and device - Google Patents

Photographing method and device Download PDF

Info

Publication number
CN105282441B
CN105282441B CN201510634557.5A CN201510634557A CN105282441B CN 105282441 B CN105282441 B CN 105282441B CN 201510634557 A CN201510634557 A CN 201510634557A CN 105282441 B CN105282441 B CN 105282441B
Authority
CN
China
Prior art keywords
target
photographing
photographing interface
interface
display area
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.)
Active
Application number
CN201510634557.5A
Other languages
Chinese (zh)
Other versions
CN105282441A (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.)
Xiaomi Inc
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Xiaomi Inc
Beijing Xiaomi Mobile Software 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 Xiaomi Inc, Beijing Xiaomi Mobile Software Co Ltd filed Critical Xiaomi Inc
Priority to CN201510634557.5A priority Critical patent/CN105282441B/en
Publication of CN105282441A publication Critical patent/CN105282441A/en
Application granted granted Critical
Publication of CN105282441B publication Critical patent/CN105282441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The disclosure relates to a photographing method and device, and belongs to the field of electronic technology application. The method comprises the following steps: acquiring the gesture of a photographing interface of the terminal, wherein the gesture comprises a horizontal screen display gesture or a vertical screen display gesture; determining a region adjusting signal according to the posture of the photographing interface, wherein the region adjusting signal comprises: the area adjusting signal is used for indicating to change the posture of the photographing interface; according to the area adjusting signal, cutting a display area of the photographing interface according to the target width-height ratio to obtain a target display area, wherein the display area of the photographing interface is an area for displaying framing content; and when a shooting instruction is received, executing a shooting operation to obtain the image displayed in the target display area. The flexibility when terminal shooing has been improved to this disclosure. The present disclosure is directed to display of a photographic interface.

Description

Photographing method and device
Technical Field
The present disclosure relates to the field of electronic technology application, and in particular, to a photographing method and apparatus.
Background
The camera is one of basic applications in the mobile phone, and the mobile phone camera is convenient and quick to take pictures and has good imaging quality.
In the related art, when a user takes a picture through a mobile phone camera, the aspect ratio of the picture taking interface of the mobile phone in the vertical screen state is usually 3:4 or 9:16, the aspect ratio of the picture taking interface in the horizontal screen state is usually 4:3 or 16:9, and the user can obtain the picture taking interfaces with different aspect ratios by rotating the mobile phone, so as to obtain the pictures with different ratios.
Disclosure of Invention
In order to solve the problems in the related art, the present disclosure provides a photographing method and apparatus. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a photographing method, including:
acquiring the gesture of a photographing interface of the terminal, wherein the gesture comprises a horizontal screen display gesture or a vertical screen display gesture;
determining a region adjusting signal according to the posture of the photographing interface, wherein the region adjusting signal comprises: the target aspect ratio, the area adjustment signal is used for indicating and changing the posture of the photographing interface;
according to the area adjusting signal, cutting the display area of the photographing interface according to the target width-height ratio to obtain a target display area, wherein the display area of the photographing interface is an area for displaying framing content;
and when a shooting instruction is received, executing a shooting operation to obtain the image displayed in the target display area.
Optionally, determining a region adjustment signal according to the posture of the photographing interface includes:
receiving an adjustment trigger signal at the photographing interface, wherein the adjustment trigger signal is generated by triggering a trigger button arranged on the photographing interface by a user;
determining a posture opposite to the posture of the photographing interface according to the posture of the photographing interface;
acquiring a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
the region adjustment signal is generated based on the target aspect ratio.
Optionally, determining a region adjustment signal according to the posture of the photographing interface includes:
receiving an identification trigger signal for identifying an image displayed in a display area of the photographing interface;
identifying the shooting subject in the displayed image according to the identification trigger signal;
determining the display scale of the shooting subject in the display area;
when the display proportion does not meet the preset proportion condition, determining a posture opposite to the posture of the photographing interface according to the posture of the photographing interface;
acquiring a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
the region adjustment signal is generated based on the target aspect ratio.
Optionally, the obtaining of the target aspect ratio corresponding to the gesture opposite to the gesture of the photographing interface includes:
displaying an aspect ratio option corresponding to a gesture opposite to the gesture of the photographing interface on the photographing interface;
receiving a selection instruction for selecting the target aspect ratio from the aspect ratio options;
the target aspect ratio is determined based on the selection instruction.
Optionally, the method further includes:
acquiring a target photographing image with the same aspect ratio as the photographing interface at the photographing interface;
displaying the target photographing image on the photographing interface;
the target display area displays the target photographing image and the image of the corresponding position of the display area, and other areas of the photographing interface except the target display area hide the image of the corresponding position of the target photographing image and the other areas, or the image of the corresponding position of the target photographing image and the other areas is displayed in a semi-transparent mode.
Optionally, the method further includes:
receiving a visual angle adjusting signal in the photographing interface;
and according to the visual angle adjusting signal, keeping the position of the target display area on the photographing interface unchanged, and adjusting the relative position of the target photographing image and the target display area.
Optionally, the method further includes:
receiving a display area adjusting signal in the photographing interface;
and according to the display area adjusting signal, keeping the position of the target photographing image on the photographing interface unchanged, and adjusting the relative position of the target display area and the target photographing image.
According to a second aspect of the embodiments of the present disclosure, there is provided a photographing apparatus including:
the terminal comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring the gesture of a photographing interface of the terminal, and the gesture comprises a horizontal screen display gesture or a vertical screen display gesture;
a determination module configured to determine a zone adjustment signal according to the posture of the photographing interface, the zone adjustment signal including: the target aspect ratio, the area adjustment signal is used for indicating and changing the posture of the photographing interface;
the cutting module is configured to cut the display area of the photographing interface according to the target width-height ratio according to the area adjusting signal to obtain a target display area, and the display area of the photographing interface is an area for displaying framing content;
and the shooting module is configured to execute a shooting operation to obtain the image displayed in the target display area when a shooting instruction is received.
Optionally, the determining module includes:
the first receiving submodule is configured to receive an adjustment trigger signal at the photographing interface, and the adjustment trigger signal is generated by triggering a trigger button arranged on the photographing interface by a user;
the first determining submodule is configured to determine a posture opposite to the posture of the photographing interface according to the posture of the photographing interface;
the first obtaining submodule is configured to obtain a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
a first generation submodule configured to generate the region adjustment signal according to the target aspect ratio.
Optionally, the determining module further includes:
the second receiving submodule is configured to receive an identification trigger signal for indicating that an image displayed in a display area of the photographing interface is identified;
an identification sub-module configured to identify a photographic subject in the displayed image according to the identification trigger signal;
a second determination sub-module configured to determine a display scale of the photographic subject in the display area;
the third determining submodule is configured to determine a posture opposite to the posture of the photographing interface according to the posture of the photographing interface when the display scale does not meet a preset scale condition;
the second acquisition submodule is configured to acquire a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
a second generation submodule configured to generate the region adjustment signal according to the target aspect ratio.
Optionally, the first obtaining sub-module is configured to:
displaying an aspect ratio option corresponding to a gesture opposite to the gesture of the photographing interface on the photographing interface;
receiving a selection instruction for selecting the target aspect ratio from the aspect ratio options;
the target aspect ratio is determined based on the selection instruction.
Optionally, the second obtaining sub-module is configured to:
displaying an aspect ratio option corresponding to a gesture opposite to the gesture of the photographing interface on the photographing interface;
receiving a selection instruction for selecting the target aspect ratio from the aspect ratio options;
the target aspect ratio is determined based on the selection instruction.
Optionally, the apparatus further comprises:
the second acquisition module is configured to acquire a target photographing image with the same aspect ratio as the photographing interface at the photographing interface;
the display module is configured to display the target photographing image on the photographing interface;
the target display area displays the target photographing image and the image of the corresponding position of the display area, and other areas of the photographing interface except the target display area hide the image of the corresponding position of the target photographing image and the other areas, or the image of the corresponding position of the target photographing image and the other areas is displayed in a semi-transparent mode.
Optionally, the apparatus further comprises:
a first receiving module configured to receive a viewing angle adjustment signal in the photographing interface;
and the first adjusting module is configured to keep the position of the target display area on the photographing interface unchanged according to the visual angle adjusting signal and adjust the relative position of the target photographing image and the target display area.
Optionally, the apparatus further comprises:
the second receiving module is configured to receive a display area adjusting signal in the photographing interface;
and the second adjusting module is configured to keep the position of the target photographing image on the photographing interface unchanged according to the display area adjusting signal and adjust the relative position of the target display area and the target photographing image.
According to a third aspect of the embodiments of the present disclosure, there is provided a photographing apparatus including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring the gesture of a photographing interface of the terminal, wherein the gesture comprises a horizontal screen display gesture or a vertical screen display gesture;
determining a region adjusting signal according to the posture of the photographing interface, wherein the region adjusting signal comprises: the area adjusting signal is used for indicating to change the posture of the photographing interface;
according to the area adjusting signal, cutting a display area of the photographing interface according to the target width-height ratio to obtain a target display area, wherein the display area of the photographing interface is an area for displaying framing content;
and when a shooting instruction is received, executing a shooting operation to obtain the image displayed in the target display area.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the photographing method and device provided by the embodiment of the disclosure, the terminal can determine the area adjusting signal according to the posture of the photographing interface, and the area adjusting signal comprises: the terminal can also cut the display area of the photographing interface according to the area adjusting signal and the target width-height ratio to obtain a target display area, when the terminal receives a photographing instruction, photographing operation can be executed, and an image displayed in the target display area is obtained, so that a user can obtain photos with different width-height ratios without rotating the terminal, and the flexibility of the terminal in photographing is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure, the drawings that are needed to be used in the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a schematic view showing a photographing interface according to the related art;
FIG. 2 is a flow chart illustrating a method of taking a picture according to an exemplary embodiment;
FIG. 3-1 is a flow diagram illustrating another method of taking a picture in accordance with an exemplary embodiment;
3-2 is a schematic diagram illustrating a camera interface according to an exemplary embodiment;
3-3 are flowcharts illustrating a method of determining a zone adjustment signal according to an exemplary embodiment;
3-4 are flowcharts illustrating a method for obtaining a target aspect ratio corresponding to a pose opposite to a pose of a camera interface, according to one exemplary embodiment;
3-5 are diagrams illustrating a photographing interface displaying an aspect ratio option according to an exemplary embodiment;
FIGS. 3-6 are flow diagrams illustrating another method of determining a zone adjustment signal in accordance with an exemplary embodiment;
3-7 are schematic diagrams illustrating a target display area according to an exemplary embodiment;
3-8 are schematic diagrams illustrating an adjusted target display area according to an exemplary embodiment;
3-9 are schematic diagrams illustrating another target display area adjustment according to an exemplary embodiment;
3-10 are schematic diagrams illustrating a picture taken according to an exemplary embodiment;
FIG. 4-1 is a block diagram illustrating a photographing apparatus according to an exemplary embodiment;
FIG. 4-2 is a block diagram illustrating another photographing apparatus according to an exemplary embodiment;
4-3 are block diagrams illustrating a determination module according to an exemplary embodiment;
4-4 are block diagrams illustrating another determination module according to an exemplary embodiment;
fig. 5 is a block diagram illustrating yet another photographing apparatus according to an exemplary embodiment.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more clear, the present disclosure will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments, which can be derived by one of ordinary skill in the art from the embodiments disclosed herein without making any creative effort, shall fall within the scope of protection of the present disclosure.
Fig. 1 is a schematic diagram illustrating a photographing interface according to the related art. As shown in fig. 1, in the vertical screen state of the mobile phone, the aspect ratio of the photographing interface 00 is usually 3:4 or 9:16, and when the user presses the photographing button 01, the currently displayed image of the photographing interface 00 can be obtained.
However, in order to obtain photos with different proportions, a user needs to rotate the mobile phone to adjust the photographing viewing angle, and the flexibility of the mobile phone in photographing is low.
FIG. 2 is a flow chart illustrating a method of taking a picture, as shown in FIG. 1, according to an exemplary embodiment, the method comprising:
in step 201, a gesture of a photographing interface of the terminal is obtained, where the gesture includes a landscape display gesture or a portrait display gesture.
In step 202, according to the posture of the photographing interface, a region adjusting signal is determined, where the region adjusting signal includes: the area adjusting signal is used for indicating the change of the posture of the photographing interface.
In step 203, according to the area adjustment signal, the display area of the photographing interface is clipped according to the target aspect ratio to obtain a target display area, where the display area of the photographing interface is an area for displaying the framing content.
In step 204, when a shooting instruction is received, a shooting operation is performed to obtain an image displayed in the target display area.
To sum up, in the photographing method provided by the embodiment of the present disclosure, the terminal may determine the area adjustment signal according to the posture of the photographing interface, where the area adjustment signal includes: the terminal can also cut the display area of the photographing interface according to the area adjusting signal and the target width-height ratio to obtain a target display area, when the terminal receives a photographing instruction, photographing operation can be executed, and an image displayed in the target display area is obtained, so that a user can obtain photos with different width-height ratios without rotating the terminal, and the flexibility of the terminal in photographing is improved.
Optionally, determining a region adjustment signal according to the posture of the photographing interface includes:
receiving an adjustment trigger signal at the photographing interface, wherein the adjustment trigger signal is generated by triggering a trigger button arranged on the photographing interface by a user;
determining a posture opposite to the posture of the photographing interface according to the posture of the photographing interface;
acquiring a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
the region adjustment signal is generated based on the target aspect ratio.
Optionally, determining a region adjustment signal according to the posture of the photographing interface includes:
receiving an identification trigger signal for identifying an image displayed in a display area of the photographing interface;
identifying the shooting subject in the displayed image according to the identification trigger signal;
determining the display scale of the shooting subject in the display area;
when the display proportion does not meet the preset proportion condition, determining a posture opposite to the posture of the photographing interface according to the posture of the photographing interface;
acquiring a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
the region adjustment signal is generated based on the target aspect ratio.
Optionally, obtaining the aspect ratio of the target corresponding to the posture opposite to the posture of the photographing interface includes:
displaying an aspect ratio option corresponding to a gesture opposite to the gesture of the photographing interface on the photographing interface;
receiving a selection instruction for selecting the target aspect ratio from the aspect ratio options;
the target aspect ratio is determined based on the selection instruction.
Optionally, the method further includes:
acquiring a target photographing image with the same aspect ratio as the photographing interface at the photographing interface;
displaying the target photographing image on the photographing interface;
the target display area displays the target photographing image and the image of the corresponding position of the display area, and other areas of the photographing interface except the target display area hide the image of the corresponding position of the target photographing image and the other areas, or the image of the corresponding position of the target photographing image and the other areas is displayed in a semi-transparent mode.
Optionally, the method further includes:
receiving a visual angle adjusting signal in the photographing interface;
and according to the visual angle adjusting signal, keeping the position of the target display area on the photographing interface unchanged, and adjusting the relative position of the target photographing image and the target display area.
Optionally, the method further includes:
receiving a display area adjusting signal in the photographing interface;
and according to the display area adjusting signal, keeping the position of the target photographing image on the photographing interface unchanged, and adjusting the relative position of the target display area and the target photographing image.
To sum up, in the photographing method provided by the embodiment of the present disclosure, the terminal may determine the area adjustment signal according to the posture of the photographing interface, where the area adjustment signal includes: the terminal can also cut the display area of the photographing interface according to the area adjusting signal and the target width-height ratio to obtain a target display area, when the terminal receives a photographing instruction, photographing operation can be executed, and an image displayed in the target display area is obtained, so that a user can obtain photos with different width-height ratios without rotating the terminal, and the flexibility of the terminal in photographing is improved.
FIG. 3-1 is a flow chart illustrating another method of taking a photograph, as shown in FIG. 3-1, according to an exemplary embodiment, the method comprising:
in step 301, the gesture of the photographing interface of the terminal is obtained.
The gesture includes a landscape display gesture or a portrait display gesture. The vertical screen display posture is a posture when the ratio of the width to the height of the photographing interface display area is smaller than 1, the horizontal screen display posture is a posture when the ratio of the width to the height of the photographing interface display area is larger than 1, and the display area of the photographing interface is an area for displaying framing content. For example, fig. 3-2 is a schematic diagram of a photographing interface according to an exemplary embodiment, as shown in fig. 3-2, assuming that an aspect ratio of a display area 30 of a terminal photographing interface is 3:4, since a ratio of the aspect ratio is 0.75 and the ratio is less than 1, a gesture of the photographing interface acquired by the terminal may be: and displaying the posture by the vertical screen.
In step 302, according to the posture of the photographing interface, a region adjusting signal is determined, where the region adjusting signal includes: target aspect ratio.
The area adjustment signal is used for indicating the change of the posture of the photographing interface. After the terminal acquires the posture of the current photographing interface, the posture of the photographing interface can be changed according to the determined area adjusting signal, namely, if the current posture of the photographing interface is the vertical screen display posture, after the terminal receives the area adjusting signal, the posture of the photographing interface can be changed into the horizontal screen display posture according to the area adjusting signal; if the current posture of the photographing interface is the horizontal screen display posture, after the terminal receives the area adjusting signal, the posture of the photographing interface can be changed into the vertical screen display posture according to the area adjusting signal. And after the photographing interface changes the posture, the aspect ratio of the display area of the photographing interface is the target aspect ratio. In the embodiment of the present disclosure, the terminal may determine the area adjustment signal in two ways:
fig. 3-3 is a flowchart illustrating a method for determining a zone adjustment signal according to an exemplary embodiment, and as shown in fig. 3-3, in a first implementation, the method for determining a zone adjustment signal may include:
in step 3021a, an adjustment trigger signal is received at the photo interface, where the adjustment trigger signal is generated by a user triggering a trigger button disposed on the photo interface.
In the embodiment of the disclosure, a trigger button may be disposed in a photographing interface of the terminal, and after a user clicks the trigger button through a click gesture, the terminal may generate an adjustment trigger signal according to the click gesture of the user. For example, as shown in fig. 3-2, assuming that the photographing interface is provided with a trigger button 32, when the user clicks the trigger button 32 through a single-click gesture, the terminal may receive an adjustment trigger signal in the photographing interface.
It should be noted that, in practical applications, the adjustment trigger signal may also be generated through a voice operation or a flick operation of a user, and the embodiment of the present disclosure is not limited.
In step 3022a, a gesture opposite to the gesture of the camera interface is determined based on the gesture of the camera interface.
After the terminal receives the adjustment trigger signal at the photographing interface, if the posture of the photographing interface acquired by the terminal is a vertical screen display posture, the terminal can determine that the posture opposite to the posture of the photographing interface is a horizontal screen display posture; if the gesture of the photographing interface acquired by the terminal is a horizontal screen display gesture, the terminal can determine that the gesture opposite to the gesture of the photographing interface is a vertical screen display gesture. For example, assuming that the photographing interface of the terminal is as shown in fig. 3-2, and the gesture of the photographing interface is a vertical screen display gesture, the gesture determined by the terminal opposite to the gesture of the photographing interface may be: the landscape displays the pose.
In step 3023a, a target aspect ratio corresponding to a pose opposite to the pose of the camera interface is obtained.
In the embodiment of the present disclosure, after the terminal determines the gesture opposite to the gesture of the photographing interface, the terminal may further determine the target aspect ratio corresponding to the opposite gesture. Fig. 3-4 are flowcharts illustrating a method for obtaining a target aspect ratio corresponding to a pose opposite to a pose of a camera interface, as shown in fig. 3-4, according to an exemplary embodiment, the method comprising:
in step 3023a1, an aspect ratio option corresponding to a gesture opposite to the gesture of the camera interface is displayed on the camera interface.
In the embodiment of the present disclosure, for each gesture of the photographing interface, a plurality of aspect ratios corresponding to the gesture may be preset in the terminal, and after the terminal receives the adjustment trigger signal, an aspect ratio option may be displayed in the photographing interface, where the aspect ratio option includes a plurality of aspect ratios corresponding to gestures opposite to the gesture of the photographing interface. For example, fig. 3 to 5 are schematic diagrams of photographing interface display aspect ratio options shown according to an exemplary embodiment, where, assuming that a gesture of a current photographing interface acquired by a terminal is a vertical screen display gesture, the terminal determines that a gesture opposite to the gesture is a landscape screen display gesture, and an aspect ratio corresponding to a landscape screen display gesture preset in the terminal includes 4:3 and 16:9, after the terminal receives an adjustment trigger signal, the terminal may display an aspect ratio option 321 in the interface shown in fig. 3 to 5, where the aspect ratio option 321 includes an aspect ratio corresponding to the landscape screen display gesture: 4:3 and 16: 9.
In step 3023a2, a selection instruction is received for selecting the target aspect ratio from the aspect ratio options.
The selection instruction can be triggered by gesture operation of a user or voice operation. For example, assuming that the user clicks an aspect ratio of 4:3 in the aspect ratio option 321 through a single-click gesture in the interface shown in fig. 3-5, the terminal may receive a selection instruction triggered by the single-click gesture operation, and may determine the aspect ratio of 4:3 indicated by the selection instruction as the target aspect ratio.
In step 3023a3, the target aspect ratio is determined according to the selection instruction.
The terminal may determine the aspect ratio indicated by the selection instruction as the target aspect ratio, which may be 4:3, for example.
It should be noted that, for each gesture of the photographing interface, a target aspect ratio corresponding to the gesture may also be preset in the terminal, and then, after the terminal receives the adjustment trigger signal on the photographing interface and determines the gesture opposite to the gesture of the photographing interface, the target aspect ratio of the opposite gesture may be directly determined. For example, assuming that the aspect ratio of the target preset in the terminal is 4:3 for the landscape display posture, after the terminal receives the adjustment trigger signal in the photographing interface of the portrait display posture, the posture opposite to the portrait display posture can be directly determined: the aspect ratio of the target corresponding to the horizontal screen display posture is 4: 3.
In step 3024a, the zone adjustment signal is generated based on the target aspect ratio.
After the terminal acquires the target aspect ratio corresponding to the gesture opposite to the gesture of the photographing interface, a region adjusting signal can be generated, wherein the region adjusting signal comprises the target aspect ratio indicated by the selection instruction. For example, assuming that the target aspect ratio obtained by the terminal is 4:3, the area adjustment signal generated by the terminal may include the target aspect ratio: 4:3.
Fig. 3-6 are flowcharts illustrating another method for determining a local adjustment signal according to an exemplary embodiment, and in a second implementation manner, as shown in fig. 3-6, the method for determining a local adjustment signal may include:
in step 3021b, a recognition trigger is received that indicates recognition of an image displayed in the display area of the photo interface.
In the embodiment of the present disclosure, the identification trigger signal may be generated through a preset trigger operation of a user, where the preset trigger operation may be a gesture trigger operation or a voice trigger operation. For example, as shown in fig. 3-2, assuming that the photographing interface is provided with an identification trigger button 31, the trigger operation may be a gesture trigger operation, that is, when the user clicks the identification trigger button 31 through a single-click gesture, the terminal may receive an identification trigger signal indicating that an image displayed in the display area 30 is identified.
In step 3022b, the subject in the displayed image is identified based on the identification trigger signal.
After receiving the identification trigger signal, the terminal can automatically identify the shooting subject in the image displayed in the display area. For example, in the photographing interface shown in fig. 3-2, when the terminal receives the recognition trigger signal, it can automatically recognize that the subject in the image displayed in the display area 30 is the house 300.
In step 3023b, the display scale of the photographic subject in the display area is determined.
After the terminal identifies the photographic subject in the image, the display scale of the photographic subject in the display area can be determined according to the width and the height of the photographic subject and the current width and the height of the display area. As an example, as shown in fig. 3-2, assume that a subject in an image recognized by a terminal is a house 300, and that the subject is acquired to have a width of 3 centimeters (cm) and a height of: 2cm and the display area is currently 6cm wide and 8cm high. The terminal may determine that the display scale of the photographic subject in the display area is: the width ratio is 1/2 and the height ratio is 1/4.
In step 3024b, when the display scale does not satisfy the preset scale condition, determining a posture opposite to the posture of the photographing interface according to the posture of the photographing interface.
In the embodiment of the disclosure, a proportion condition may be preset in the terminal, and when the terminal determines that the display proportion of the shooting subject in the display area does not satisfy the preset proportion condition, the terminal may determine a posture opposite to the posture of the shooting interface according to the posture of the shooting interface. For example, assume that the preset proportion condition in the terminal is: in the display scale of the shooting subject in the display area, the ratio of the width scale to the height scale is in a ratio range [0.5,1.5], namely the ratio of the width scale to the height scale is more than or equal to 0.5 and less than or equal to 1.5; the preset target aspect ratio in the terminal may be: 4:3, assuming that in the photographing interface shown in fig. 3-2, the terminal determines that the width ratio of the photographic subject displayed in the display area 30 is 1/2, the height ratio is 1/4, and the ratio of the width ratio to the height ratio is 2, since the ratio 2 is not within the ratio range [0.5,1.5], the terminal may determine that the display ratio of the photographic subject does not satisfy the preset ratio condition, and the terminal may: displaying the posture by a vertical screen, and determining the posture opposite to the posture of the photographing interface as follows: the landscape displays the pose.
In step 3025b, a target aspect ratio corresponding to a pose opposite to the pose of the camera interface is obtained.
After the terminal determines the gesture opposite to the gesture of the photographing interface, the target aspect ratio corresponding to the opposite gesture may be further determined, and the process of the terminal obtaining the target aspect ratio corresponding to the opposite gesture may refer to steps 3023a1 to 3023a3, which is not described herein again in this embodiment of the disclosure.
In step 3026b, the zone adjustment signal is generated based on the target aspect ratio.
After the terminal acquires the target aspect ratio corresponding to the gesture opposite to the gesture of the photographing interface, a region adjusting signal can be generated, wherein the region adjusting signal comprises the target aspect ratio indicated by the selection instruction. For example, assuming that the target aspect ratio obtained by the terminal is 4:3, the area adjustment signal generated by the terminal may include the target aspect ratio: 4:3.
In summary, after the terminal receives the identification trigger signal, the shooting subject of the display area can be identified, and the area adjustment signal can be generated when the display scale of the shooting subject does not satisfy the preset condition, so that the terminal can automatically adjust the aspect ratio of the display area of the shooting interface according to the area adjustment signal, thereby improving the flexibility of the terminal in shooting.
It should be noted that, in practical application, when the display posture of the photographing interface is the vertical screen display posture, after the display posture of the photographing interface is changed into the horizontal screen display posture, the display area of the horizontal screen display posture has better display effect on the photographed image, and the photographing interface of the terminal is more convenient for the user to hold when the vertical screen display posture is adopted, therefore, the terminal can be set to receive the area adjustment signal only when the posture of the photographing interface is the vertical screen display posture, when the terminal detects that the current photographing interface is the horizontal screen display posture, the reception of the recognition trigger signal and the adjustment trigger signal may be prohibited, for example, when the terminal detects that the current posture of the photographing interface is the landscape display posture, the display colors and brightness of the identification trigger button 31 and the trigger button 32 may be adjusted in the interface shown in fig. 3-2 to prompt the user that the identification trigger button 31 and the trigger button 32 are not currently activated.
In step 303, according to the area adjustment signal, the display area of the photographing interface is cut according to the target aspect ratio to obtain a target display area.
The display area of the photographing interface is an area for displaying the framing content. And if the area adjusting signal received by the terminal comprises the target width-to-height ratio, the terminal can cut the display area in the photographing interface according to the target width-to-height ratio to obtain a target display area, wherein the posture of the cut target display area is opposite to that of the display area before cutting. The terminal may further preset a display position of the clipped target display area on the photographing interface, for example, the target display area may be displayed in a middle portion of the photographing interface, or may be displayed in a position above the middle of the photographing interface. For example, assuming that the target aspect ratio included in the area adjustment signal received by the terminal is 4:3, the terminal may crop the display area of the display interface shown in fig. 3-5 according to the area adjustment signal, so that the aspect ratio of the target display area obtained after the cropping is 4:3, the posture of the target display area after the cropping is a landscape display posture, fig. 3-7 are schematic diagrams of a target display area according to an exemplary embodiment, as shown in fig. 3-7, the aspect ratio of the target display area 33 is 4:3, and the target display area 33 is displayed in the middle of the photographing interface.
In step 304, a photographic image of the same target aspect ratio as the photographic interface is acquired at the photographic interface.
In the embodiment of the disclosure, after the terminal adjusts the aspect ratio of the display region, since the aspect ratio of the target display region is different from the aspect ratio of the photographing interface, in order to facilitate the user to adjust the image displayed by the target display region, the terminal may acquire the target photographing image with the same aspect ratio as the photographing interface on the photographing interface. For example, assuming that the aspect ratio of the terminal photographing interface in the portrait screen display posture is 3:4 and the aspect ratio of the target display area 33 is 4:3, the terminal may obtain the target photographed image 320 with the aspect ratio of 3:4 in the photographing interface shown in fig. 3-7.
In step 305, the target photographed image is displayed on the photographing interface.
The target display area displays the target photographing image and the image of the corresponding position of the display area, and other areas of the photographing interface except the target display area hide the image of the corresponding position of the target photographing image and the other areas, or the image of the corresponding position of the target photographing image and the other areas is displayed in a semi-transparent mode. When the other region hides the image of the target photographed image and the image of the corresponding position of the other region, the other region may display a preset image, and the preset image may be a black image or an image of other color or pattern. For example, as shown in fig. 3 to 7, the terminal may display the image of the position of the target photographed image 320 corresponding to the target display area 33 in the target display area 33, the other areas of the photographing interface except for the target display area 33 are 34 and 35, and in fig. 3 to 7, the image of the target photographed image 320 in the position corresponding to the other areas 34 and 35 is displayed semi-transparently.
It should be noted that, in practical applications, after the terminal adjusts the aspect ratio of the display region to the target aspect ratio according to the region adjustment signal, a target photographed image with the same aspect ratio as that of the photographing interface may be acquired on the photographing interface, and the target photographed image is rotationally zoomed to the same aspect ratio as that of the target display region to obtain a zoomed image, and then the terminal may display the zoomed image on the target display region, and display a preset image in a region of the photographing interface other than the display region, where the preset image may be a black image or a white image. For example, assuming that the aspect ratio of the target display area 33 is 4:3 in the interfaces shown in fig. 3 to 7, the terminal may select the zoom image for zooming the target photographed image 320 to a zoom image having an aspect ratio of 4:3, display the zoom image in the target display area 33, and display a black image in the other areas 34 and 35 of the photographing interface except for the target display area 33.
In this embodiment of the present disclosure, after the terminal adjusts the aspect ratio of the display area, if the user is not satisfied with the image displayed in the target display area, the image displayed in the target display area may be continuously adjusted, and the adjustment of the image displayed in the target display area may be implemented in two ways:
in one aspect, as shown in fig. 3-1, the method for adjusting the image displayed in the display area of the target may include:
in step 306a, a viewing angle adjustment signal is received in the camera interface.
In the embodiment of the present disclosure, the view angle adjusting signal may be triggered by a sliding gesture of the user. For example, assuming that the lower half of the house is not completely displayed in the image currently displayed in the target display area 33 as shown in fig. 3 to 7, the user may slide upwards (as indicated by arrow a) in the photographing interface through a slide gesture, and the terminal may receive a visual angle adjustment signal triggered by the slide gesture, where the visual angle adjustment signal may be: and sliding upwards.
In step 307a, the position of the target display area on the photographing interface is kept unchanged according to the viewing angle adjustment signal, and the relative position of the target photographed image and the target display area is adjusted.
After receiving the visual angle adjusting signal, the terminal can adjust the relative position of the target photographing image displayed in the photographing interface and the target display area, and further adjust the image displayed in the target display area. For example, assume that the view angle adjustment signal received by the terminal is: and if the terminal slides upwards, the terminal may keep the position of the target display area 33 unchanged and move the target photographed image 320 upwards, fig. 3 to 8 are schematic diagrams illustrating an adjusted target display area according to an exemplary embodiment, and as shown in fig. 3 to 8, after the terminal moves the position of the target photographed image 320 upwards, the relative position of the target photographed image 320 and the target display area 33 is adjusted, and thus the image displayed in the target display area 33 is adjusted, and at this time, the image of the house is completely displayed in the target display area 33.
On the other hand, as shown in fig. 3-1, the method for adjusting the image displayed in the target display area may further include:
in step 306b, a display area adjustment signal is received in the photo interface.
In the embodiment of the present disclosure, the region adjustment signal may be triggered by a sliding gesture of the user. For example, assuming that the user slides down in the photographing interface shown in fig. 3-7 by a slide gesture (as indicated by an arrow b), the terminal may receive a region adjustment signal triggered by the slide gesture, where the region adjustment signal may be: sliding downward.
In step 307b, the position of the target photographed image on the photographing interface is kept unchanged according to the display region adjustment signal, and the relative position between the target display region and the target photographed image is adjusted.
After receiving the area adjustment signal, the terminal can adjust the relative position between the target display area and the target photographed image in the photographing interface, and further adjust the image displayed in the target display area. For example, it is assumed that the zone adjustment signal received by the terminal is: and sliding downwards, the terminal may keep the position of the target photographed image 320 in the photographing interface unchanged and move the target display area 33 downwards, fig. 3-9 are schematic diagrams illustrating another target display area adjusted according to an exemplary embodiment, as shown in fig. 3-9, after the terminal moves the display position of the target display area 33 downwards, the area of the semi-transparent area 34 in the upper half part of the photographing interface becomes larger, the area of the semi-transparent area 35 in the lower half part of the photographing interface becomes smaller, and the relative position of the target display area 33 and the target image 320 is adjusted, at this time, the image of the house is completely displayed in the target display area 33.
In step 308, when a shooting instruction is received, a shooting operation is performed to obtain an image displayed in the target display area.
The shooting instruction can be triggered by gesture operation of a user or voice operation. For example, the interfaces shown in fig. 3 to 8 and fig. 3 to 9 further include a shooting button 330, and when the user clicks the shooting button 330 by a single-click gesture, the terminal may receive a shooting instruction and perform a shooting operation to obtain the image displayed in the target display area 33. Fig. 3-10 are schematic diagrams illustrating a captured picture according to an exemplary embodiment, and as shown in fig. 3-10, after the terminal captures the image displayed in the target display area 33, the captured image 331 may be displayed in the terminal display interface.
It should be noted that the order of the steps of the photographing method provided in the embodiment of the present disclosure may be appropriately adjusted, and the steps may also be increased or decreased according to the situation, for example, steps 304 to 307 may be deleted according to the situation, and step 308 may be executed before any step of steps 301 to 307. Any method that can be easily conceived by those skilled in the art within the technical scope of the present disclosure is covered by the protection scope of the present disclosure, and thus, the detailed description thereof is omitted.
To sum up, according to the photographing method provided by the embodiment of the present disclosure, after the terminal acquires the region adjustment signal indicating to adjust the display region of the photographing interface, it may be detected whether the photographing interface is the vertical screen photographing interface, and when the photographing interface is the vertical screen photographing interface, the aspect ratio of the display region is adjusted to the target aspect ratio according to the region adjustment signal, so that the user may acquire photos with different aspect ratios without rotating the terminal, thereby improving flexibility of the terminal in photographing.
Fig. 4-1 is a block diagram illustrating a photographing apparatus according to an exemplary embodiment, as shown in fig. 4-1, the photographing apparatus including:
the first obtaining module 401 is configured to obtain a gesture of a photographing interface of the terminal, where the gesture includes a landscape display gesture or a portrait display gesture.
A determining module 402 configured to determine a zone adjustment signal according to the posture of the photographing interface, the zone adjustment signal including: the area adjusting signal is used for indicating the change of the posture of the photographing interface.
The cropping module 403 is configured to crop the display area of the photographing interface according to the target aspect ratio according to the area adjustment signal, so as to obtain a target display area, where the display area of the photographing interface is an area for displaying framing content.
And a shooting module 404 configured to perform a shooting operation to obtain the image displayed in the target display area when receiving the shooting instruction.
To sum up, the terminal of the photographing device provided by the embodiment of the present disclosure can determine the area adjustment signal according to the gesture of the photographing interface, and the area adjustment signal includes: the terminal can also cut the display area of the photographing interface according to the area adjusting signal and the target width-height ratio to obtain a target display area, when the terminal receives a photographing instruction, photographing operation can be executed, and an image displayed in the target display area is obtained, so that a user can obtain photos with different width-height ratios without rotating the terminal, and the flexibility of the terminal in photographing is improved.
Fig. 4-2 is a block diagram illustrating another photographing apparatus according to an exemplary embodiment, as shown in fig. 4-2, the photographing apparatus including:
the first obtaining module 401 is configured to obtain a gesture of a photographing interface of the terminal, where the gesture includes a landscape display gesture or a portrait display gesture.
A determining module 402 configured to determine a zone adjustment signal according to the posture of the photographing interface, the zone adjustment signal including: the area adjusting signal is used for indicating the change of the posture of the photographing interface.
The cropping module 403 is configured to crop the display area of the photographing interface according to the target aspect ratio according to the area adjustment signal, so as to obtain a target display area, where the display area of the photographing interface is an area for displaying framing content.
And a shooting module 404 configured to perform a shooting operation to obtain the image displayed in the target display area when receiving the shooting instruction.
A second obtaining module 405 configured to obtain the target photographic image with the same aspect ratio as the photographic interface at the photographic interface.
A display module 406 configured to display the target photographic image on the photographic interface.
The target display area displays the target photographing image and the image of the corresponding position of the display area, and other areas of the photographing interface except the target display area hide the image of the corresponding position of the target photographing image and the other areas, or the image of the corresponding position of the target photographing image and the other areas is displayed in a semi-transparent mode.
The first receiving module 407 is configured to receive a viewing angle adjusting signal in the photographing interface.
The first adjusting module 408 is configured to keep the position of the target display area on the photographing interface unchanged according to the viewing angle adjusting signal, and adjust the relative position of the target photographed image and the target display area.
A second receiving module 409 configured to receive the display area adjustment signal in the photographing interface.
The second adjusting module 410 is configured to keep the position of the target photographed image on the photographing interface unchanged according to the display area adjusting signal, and adjust the relative position of the target display area and the target photographed image.
Fig. 4-3 is a block diagram illustrating a determination module according to an exemplary embodiment, such as the determination module 402 shown in fig. 4-3, including:
the first receiving sub-module 4021 is configured to receive an adjustment trigger signal at the photographing interface, where the adjustment trigger signal is generated by a user triggering a trigger button disposed on the photographing interface.
The first determining sub-module 4022 is configured to determine a posture opposite to the posture of the photographing interface according to the posture of the photographing interface.
The first obtaining sub-module 4023 is configured to obtain a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface.
A first generating sub-module 4024 configured to generate the area adjustment signal according to the target aspect ratio.
Fig. 4-4 are block diagrams illustrating another determination module according to an exemplary embodiment, such as the determination module 402 shown in fig. 4-4, further comprising:
the second receiving sub-module 4025 is configured to receive a recognition trigger signal indicating recognition of an image displayed in the display area of the photographing interface.
A recognition sub-module 4026 configured to recognize the photographic subject in the displayed image according to the recognition trigger signal.
A second determining sub-module 4027 configured to determine a display scale of the photographic subject in the display area.
The third determining sub-module 4028 is configured to determine a posture opposite to the posture of the photographing interface according to the posture of the photographing interface when the display scale does not satisfy a preset scale condition.
The second obtaining sub-module 4029 is configured to obtain a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface.
A second generating sub-module 4020 configured to generate the area adjustment signal according to the target aspect ratio.
Optionally, the first obtaining sub-module 4023 is configured to:
displaying an aspect ratio option corresponding to a gesture opposite to the gesture of the photographing interface on the photographing interface;
receiving a selection instruction for selecting the target aspect ratio from the aspect ratio options;
the target aspect ratio is determined based on the selection instruction.
Optionally, the second obtaining sub-module 4029 is configured to:
displaying an aspect ratio option corresponding to a gesture opposite to the gesture of the photographing interface on the photographing interface;
receiving a selection instruction for selecting the target aspect ratio from the aspect ratio options;
the target aspect ratio is determined based on the selection instruction.
To sum up, according to the photographing device provided by the embodiment of the present disclosure, after the terminal acquires the area adjustment signal indicating to adjust the display area of the photographing interface, it may be detected whether the photographing interface is the vertical screen photographing interface, and when the photographing interface is the vertical screen photographing interface, the aspect ratio of the display area is adjusted to the target aspect ratio according to the area adjustment signal, so that the user may acquire photos with different aspect ratios without rotating the terminal, thereby improving the flexibility of the terminal in photographing.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating yet another photographing apparatus 500 according to an exemplary embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an apparatus 500, enable the apparatus 500 to perform a method of taking a picture, the method comprising:
acquiring the gesture of a photographing interface of the terminal, wherein the gesture comprises a horizontal screen display gesture or a vertical screen display gesture;
determining a region adjusting signal according to the posture of the photographing interface, wherein the region adjusting signal comprises: the target aspect ratio, the area adjustment signal is used for indicating and changing the posture of the photographing interface;
according to the area adjusting signal, cutting the display area of the photographing interface according to the target width-height ratio to obtain a target display area, wherein the display area of the photographing interface is an area for displaying framing content;
and when a shooting instruction is received, executing a shooting operation to obtain the image displayed in the target display area.
Optionally, determining a region adjustment signal according to the posture of the photographing interface includes:
receiving an adjustment trigger signal at the photographing interface, wherein the adjustment trigger signal is generated by triggering a trigger button arranged on the photographing interface by a user;
determining a posture opposite to the posture of the photographing interface according to the posture of the photographing interface;
acquiring a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
the region adjustment signal is generated based on the target aspect ratio.
Optionally, determining a region adjustment signal according to the posture of the photographing interface includes:
receiving an identification trigger signal for identifying an image displayed in a display area of the photographing interface;
identifying the shooting subject in the displayed image according to the identification trigger signal;
determining the display scale of the shooting subject in the display area;
when the display proportion does not meet the preset proportion condition, determining a posture opposite to the posture of the photographing interface according to the posture of the photographing interface;
acquiring a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
the region adjustment signal is generated based on the target aspect ratio.
Optionally, the obtaining of the target aspect ratio corresponding to the gesture opposite to the gesture of the photographing interface includes:
displaying an aspect ratio option corresponding to a gesture opposite to the gesture of the photographing interface on the photographing interface;
receiving a selection instruction for selecting the target aspect ratio from the aspect ratio options;
the target aspect ratio is determined based on the selection instruction.
Optionally, the method further includes:
acquiring a target photographing image with the same aspect ratio as the photographing interface at the photographing interface;
displaying the target photographing image on the photographing interface;
the target display area displays the target photographing image and the image of the corresponding position of the display area, and other areas of the photographing interface except the target display area hide the image of the corresponding position of the target photographing image and the other areas, or the image of the corresponding position of the target photographing image and the other areas is displayed in a semi-transparent mode.
Optionally, the method further includes:
receiving a visual angle adjusting signal in the photographing interface;
and according to the visual angle adjusting signal, keeping the position of the target display area on the photographing interface unchanged, and adjusting the relative position of the target photographing image and the target display area.
Optionally, the method further includes:
receiving a display area adjusting signal in the photographing interface;
and according to the display area adjusting signal, keeping the position of the target photographing image on the photographing interface unchanged, and adjusting the relative position of the target display area and the target photographing image.
To sum up, the terminal of the photographing device provided by the embodiment of the present disclosure can determine the area adjustment signal according to the gesture of the photographing interface, and the area adjustment signal includes: the terminal can also cut the display area of the photographing interface according to the area adjusting signal and the target width-height ratio to obtain a target display area, when the terminal receives a photographing instruction, photographing operation can be executed, and an image displayed in the target display area is obtained, so that a user can obtain photos with different width-height ratios without rotating the terminal, and the flexibility of the terminal in photographing is improved.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A method of taking a picture, the method comprising:
acquiring the gesture of a photographing interface of the terminal, wherein the gesture comprises a horizontal screen display gesture or a vertical screen display gesture;
determining a region adjusting signal according to the posture of the photographing interface, wherein the region adjusting signal comprises: the area adjusting signal is used for indicating to change the posture of the photographing interface;
according to the region adjusting signal, cutting a display region of the photographing interface according to the target width-height ratio to obtain a target display region, wherein the display region of the photographing interface is a region for displaying framing content, and the posture of the target display region is opposite to that of the display region of the photographing interface before cutting;
acquiring a target photographing image with the same aspect ratio as the photographing interface at the photographing interface;
displaying the target photographing image on the photographing interface, wherein the target display area displays the target photographing image and an image at a position corresponding to the target display area, and other areas of the photographing interface except the target display area hide the image at the position corresponding to the target photographing image and the other areas, or the image at the position corresponding to the target photographing image and the other areas is displayed in a semi-transparent manner; and when a shooting instruction is received, executing a shooting operation to obtain the image displayed in the target display area.
2. The method of claim 1, wherein determining a zone adjustment signal based on the pose of the camera interface comprises:
receiving an adjustment trigger signal at the photographing interface, wherein the adjustment trigger signal is generated by a user on a trigger button arranged on the photographing interface;
determining a posture opposite to the posture of the photographing interface according to the posture of the photographing interface;
acquiring a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
and generating the area adjusting signal according to the target aspect ratio.
3. The method of claim 1, wherein determining a zone adjustment signal based on the pose of the camera interface comprises:
receiving an identification trigger signal for identifying an image displayed in a display area of the photographing interface;
identifying a shooting subject in the displayed image according to the identification trigger signal;
determining the display scale of the shooting subject in the display area;
when the display proportion does not meet a preset proportion condition, determining a posture opposite to the posture of the photographing interface according to the posture of the photographing interface;
acquiring a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
and generating the area adjusting signal according to the target aspect ratio.
4. The method of claim 2 or 3, wherein the obtaining of the target aspect ratio corresponding to a posture opposite to the posture of the photographing interface comprises:
displaying an aspect ratio option corresponding to a gesture opposite to the gesture of the photographing interface on the photographing interface;
receiving a selection instruction for selecting the target aspect ratio from the aspect ratio options;
determining the target aspect ratio according to the selection instruction.
5. The method of claim 1, further comprising:
receiving a visual angle adjusting signal in the photographing interface;
and according to the visual angle adjusting signal, keeping the position of the target display area on the photographing interface unchanged, and adjusting the relative position of the target photographing image and the target display area.
6. The method of claim 1, further comprising:
receiving a display area adjusting signal in the photographing interface;
and according to the display area adjusting signal, keeping the position of the target photographing image on the photographing interface unchanged, and adjusting the relative position of the target display area and the target photographing image.
7. A photographing apparatus, characterized in that the apparatus comprises:
the terminal comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is configured to acquire the gesture of a photographing interface of the terminal, and the gesture comprises a horizontal screen display gesture or a vertical screen display gesture;
a determination module configured to determine a zone adjustment signal according to the posture of the photographing interface, wherein the zone adjustment signal includes: the area adjusting signal is used for indicating to change the posture of the photographing interface;
the cutting module is configured to cut a display area of the photographing interface according to the target width-to-height ratio according to the area adjusting signal to obtain a target display area, and the display area of the photographing interface is an area for displaying framing content;
the second acquisition module is configured to acquire a target photographing image with the same aspect ratio as the photographing interface at the photographing interface;
the display module is configured to display the target photographing image on the photographing interface, wherein the target display area displays an image of the target photographing image at a position corresponding to the target display area, and other areas of the photographing interface except the target display area hide images of the target photographing image at positions corresponding to the other areas, or the target photographing image is displayed in a semi-transparent manner at positions corresponding to the other areas;
and the shooting module is configured to execute a shooting operation to obtain the image displayed in the target display area when a shooting instruction is received.
8. The apparatus of claim 7, wherein the determining module comprises:
the first receiving submodule is configured to receive an adjustment trigger signal at the photographing interface, wherein the adjustment trigger signal is generated by a user on a trigger button arranged at the photographing interface;
the first determining sub-module is configured to determine a posture opposite to the posture of the photographing interface according to the posture of the photographing interface;
the first obtaining sub-module is configured to obtain a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
a first generation submodule configured to generate the region adjustment signal according to the target aspect ratio.
9. The apparatus of claim 7, wherein the determining module further comprises:
the second receiving submodule is configured to receive an identification trigger signal for indicating that an image displayed in a display area of the photographing interface is identified;
an identification sub-module configured to identify a photographic subject in the displayed image according to the identification trigger signal;
a second determination sub-module configured to determine a display scale of the photographic subject in the display area;
the third determining submodule is configured to determine a posture opposite to the posture of the photographing interface according to the posture of the photographing interface when the display scale does not meet a preset scale condition;
the second obtaining submodule is configured to obtain a target aspect ratio corresponding to a posture opposite to the posture of the photographing interface;
a second generation submodule configured to generate the region adjustment signal according to the target aspect ratio.
10. The apparatus of claim 8, wherein the first acquisition submodule is configured to:
displaying an aspect ratio option corresponding to a gesture opposite to the gesture of the photographing interface on the photographing interface;
receiving a selection instruction for selecting the target aspect ratio from the aspect ratio options;
determining the target aspect ratio according to the selection instruction.
11. The apparatus of claim 9, wherein the second acquisition submodule is configured to:
displaying an aspect ratio option corresponding to a gesture opposite to the gesture of the photographing interface on the photographing interface;
receiving a selection instruction for selecting the target aspect ratio from the aspect ratio options;
determining the target aspect ratio according to the selection instruction.
12. The apparatus of claim 7, further comprising:
a first receiving module configured to receive a viewing angle adjustment signal in the photographing interface;
and the first adjusting module is configured to keep the position of the target display area on the photographing interface unchanged according to the visual angle adjusting signal and adjust the relative position of the target photographing image and the target display area.
13. The apparatus of claim 9, further comprising:
a second receiving module configured to receive a display area adjustment signal in the photographing interface;
and the second adjusting module is configured to keep the position of the target photographing image in the photographing interface unchanged according to the display area adjusting signal and adjust the relative position of the target display area and the target photographing image.
14. A photographing apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring the gesture of a photographing interface of the terminal, wherein the gesture comprises a horizontal screen display gesture or a vertical screen display gesture;
determining a region adjusting signal according to the posture of the photographing interface, wherein the region adjusting signal comprises: the area adjusting signal is used for indicating to change the posture of the photographing interface;
according to the region adjusting signal, cutting a display region of the photographing interface according to the target width-height ratio to obtain a target display region, wherein the display region of the photographing interface is a region for displaying framing content, and the posture of the target display region is opposite to that of the display region of the photographing interface before cutting;
acquiring a target photographing image with the same aspect ratio as the photographing interface at the photographing interface;
displaying the target photographing image on the photographing interface, wherein the target display area displays the target photographing image and an image at a position corresponding to the target display area, and other areas of the photographing interface except the target display area hide the image at the position corresponding to the target photographing image and the other areas, or the image at the position corresponding to the target photographing image and the other areas is displayed in a semi-transparent manner;
and when a shooting instruction is received, executing a shooting operation to obtain the image displayed in the target display area.
CN201510634557.5A 2015-09-29 2015-09-29 Photographing method and device Active CN105282441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510634557.5A CN105282441B (en) 2015-09-29 2015-09-29 Photographing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510634557.5A CN105282441B (en) 2015-09-29 2015-09-29 Photographing method and device

Publications (2)

Publication Number Publication Date
CN105282441A CN105282441A (en) 2016-01-27
CN105282441B true CN105282441B (en) 2020-10-27

Family

ID=55150676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510634557.5A Active CN105282441B (en) 2015-09-29 2015-09-29 Photographing method and device

Country Status (1)

Country Link
CN (1) CN105282441B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331488A (en) * 2016-08-25 2017-01-11 天脉聚源(北京)传媒科技有限公司 Interface adjusting method and device
CN106973228B (en) * 2017-03-31 2020-02-21 联想(北京)有限公司 Shooting method and electronic equipment
CN108696691A (en) * 2017-04-05 2018-10-23 中兴通讯股份有限公司 Video capture method and device
WO2019041163A1 (en) * 2017-08-30 2019-03-07 深圳传音通讯有限公司 Method and system for realising both automatic watermarking and square photography
CN110913161B (en) * 2018-09-17 2023-06-23 成都鼎桥通信技术有限公司 Method and device for recording banner video through vertical screen
CN111953919B (en) * 2019-05-17 2022-11-04 成都鼎桥通信技术有限公司 Video recording method and device of handheld terminal in video single call
CN111277752B (en) * 2020-01-22 2021-08-31 Oppo广东移动通信有限公司 Prompting method and device, storage medium and electronic equipment
CN111464740B (en) * 2020-04-07 2021-06-15 Oppo广东移动通信有限公司 Image shooting method and device, storage medium and electronic equipment
CN113542581A (en) 2020-04-22 2021-10-22 华为技术有限公司 View finding method of multi-channel video, graphical user interface and electronic equipment
CN112135057B (en) * 2020-09-28 2021-09-21 北海天下为星科技有限公司 Video image processing method and system
CN115442509B (en) * 2021-06-01 2023-10-13 荣耀终端有限公司 Shooting method, user interface and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006395A (en) * 2009-09-02 2011-04-06 华晶科技股份有限公司 Intelligent digital image regulating method
CN104243787A (en) * 2013-06-06 2014-12-24 华为技术有限公司 Photographing method and equipment, and photo management method
CN104243832A (en) * 2014-09-30 2014-12-24 北京金山安全软件有限公司 Method and device for shooting through mobile terminal and mobile terminal
CN104378545A (en) * 2013-08-16 2015-02-25 中兴通讯股份有限公司 Photographing processing method and system
CN104469119A (en) * 2013-09-12 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100690741B1 (en) * 2004-11-25 2007-03-09 엘지전자 주식회사 Method for photographing image in the portable terminal having camera function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006395A (en) * 2009-09-02 2011-04-06 华晶科技股份有限公司 Intelligent digital image regulating method
CN104243787A (en) * 2013-06-06 2014-12-24 华为技术有限公司 Photographing method and equipment, and photo management method
CN104378545A (en) * 2013-08-16 2015-02-25 中兴通讯股份有限公司 Photographing processing method and system
CN104469119A (en) * 2013-09-12 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN104243832A (en) * 2014-09-30 2014-12-24 北京金山安全软件有限公司 Method and device for shooting through mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN105282441A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
CN105282441B (en) Photographing method and device
CN108419016B (en) Shooting method and device and terminal
US9674395B2 (en) Methods and apparatuses for generating photograph
CN105159640B (en) Display interface rotating method and device and mobile terminal
EP3032821B1 (en) Method and device for shooting a picture
US9661223B2 (en) Method and device for photographing including camera shake
JP6348611B2 (en) Automatic focusing method, apparatus, program and recording medium
CN108462833B (en) Photographing method, photographing device and computer-readable storage medium
CN106210496B (en) Photo shooting method and device
CN107426502B (en) Shooting method and device, electronic equipment and storage medium
CN113364965A (en) Shooting method and device based on multiple cameras and electronic equipment
CN111614910B (en) File generation method and device, electronic equipment and storage medium
CN108650412B (en) Display method, display device and computer readable storage medium
US11252341B2 (en) Method and device for shooting image, and storage medium
CN107707819B (en) Image shooting method, device and storage medium
CN111756985A (en) Image shooting method, device and storage medium
CN111562872B (en) Album display method and apparatus, electronic device, computer readable storage medium
CN109447929B (en) Image synthesis method and device
WO2023225910A1 (en) Video display method and apparatus, terminal device, and computer storage medium
CN110876013B (en) Method and device for determining image resolution, electronic equipment and storage medium
US20210160421A1 (en) Image capturing method and device
CN115706848A (en) Focusing control method and device, electronic equipment and storage medium
CN112099894A (en) Content determination method and device
CN112346606A (en) Picture processing method and device and storage medium
CN116939351A (en) Shooting method, shooting device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200918

Address after: No.018, floor 8, building 6, yard 33, middle Xierqi Road, Haidian District, Beijing 100085

Applicant after: BEIJING XIAOMI MOBILE SOFTWARE Co.,Ltd.

Applicant after: Xiaomi Technology Co.,Ltd.

Address before: 100085, Haidian District, Beijing Qinghe Street No. 68, Huarun colorful city shopping center two, 13 layers

Applicant before: Xiaomi Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant