CN112188097B - Photographing method, photographing apparatus, terminal device, and computer-readable storage medium - Google Patents

Photographing method, photographing apparatus, terminal device, and computer-readable storage medium Download PDF

Info

Publication number
CN112188097B
CN112188097B CN202011047570.8A CN202011047570A CN112188097B CN 112188097 B CN112188097 B CN 112188097B CN 202011047570 A CN202011047570 A CN 202011047570A CN 112188097 B CN112188097 B CN 112188097B
Authority
CN
China
Prior art keywords
preview
picture
magnification
camera
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
CN202011047570.8A
Other languages
Chinese (zh)
Other versions
CN112188097A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011047570.8A priority Critical patent/CN112188097B/en
Publication of CN112188097A publication Critical patent/CN112188097A/en
Application granted granted Critical
Publication of CN112188097B publication Critical patent/CN112188097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Abstract

The application is applicable to the technical field of terminal equipment, and provides a shooting method, a shooting device, terminal equipment and a computer readable storage medium, wherein the shooting method comprises the following steps: if a starting instruction of a camera application is received, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area and a second preview area, the first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of a camera of the terminal equipment under a first magnification, the second preview picture is a view-finding picture of the camera of the terminal equipment under a second magnification, and the second magnification is larger than the first magnification; and if a shooting instruction is received, acquiring a shot image, wherein the shot image is a framing picture of a camera of the terminal equipment under a second magnification. By the method, the shooting time can be shortened.

Description

Photographing method, photographing apparatus, terminal device, and computer-readable storage medium
Technical Field
The present application belongs to the technical field of terminal devices, and in particular, relates to a shooting method, a shooting device, a terminal device, and a computer-readable storage medium.
Background
The existing terminal device (such as a mobile phone) is usually provided with cameras, the number of the cameras can be 1, or 2 or 3, for example, two cameras with different focal lengths are simultaneously arranged on one terminal device, and then the terminal device can obtain images with different focal lengths by using different cameras.
In the existing shooting method, if an object in a preview interface needs to be enlarged (for example, a camera with a longer focal length is used to shoot the object), during the enlarging operation, the position of the object on the preview interface may be changed, and the object may also disappear in the preview interface. However, after the zoom-in operation is performed, the field angle of the camera is reduced, so that the user needs to move the terminal device for many times to find the object, the shooting time is too long, and the user experience is low.
Disclosure of Invention
The embodiment of the application provides a shooting method, and the problems that in the existing method, after amplification operation is executed, a user needs to move a terminal device for multiple times to shoot a corresponding object, so that shooting time is too long, and user experience is low are solved.
In a first aspect, an embodiment of the present application provides a shooting method, which is applied to a terminal device, and includes:
if a starting instruction of a camera application is received, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area and a second preview area, the first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of a camera of the terminal equipment under a first magnification, the second preview picture is a view-finding picture of the camera of the terminal equipment under a second magnification, and the second magnification is larger than the first magnification;
and if a shooting instruction is received, acquiring a shot image, wherein the shot image is a framing picture of a camera of the terminal equipment under a second magnification.
In a second aspect, an embodiment of the present application provides a shooting device, which is applied to a terminal device, and includes:
the terminal equipment comprises a preview interface display unit, a display unit and a display unit, wherein the preview interface display unit is used for displaying a preview interface of a camera application if a starting instruction of the camera application is received, the preview interface comprises a first preview area and a second preview area, the first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of a camera of the terminal equipment under a first magnification, the second preview picture is a view-finding picture of the camera of the terminal equipment under a second magnification, and the second magnification is larger than the first magnification;
and the image shooting unit is used for acquiring a shot image if a shooting instruction is received, wherein the shot image is a framing picture of a camera of the terminal equipment under a second magnification.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method according to the first aspect is implemented.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on a terminal device, causes the terminal device to execute the method described in the first aspect.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that:
in the embodiment of the invention, after a starting instruction of a camera application is received, a preview interface is displayed, the preview interface comprises a first preview area and a second preview area, a first preview picture and a second preview picture are respectively displayed in the first preview area and the second preview area, and a first magnification factor corresponding to the first preview picture is smaller than a second magnification factor corresponding to the second preview picture. Due to the fact that the preview pictures with different magnification factors are displayed in different preview areas, a user can check the preview pictures with different view angles in different preview areas, and then can move the terminal equipment according to the position relation of each object in the preview pictures with smaller magnification factors, namely, can quickly find the object to be shot displayed in the preview pictures with larger magnification factors, so that shooting of the object to be shot is completed, shooting duration is shortened, and good experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below.
Fig. 1 is a schematic flowchart of a shooting method according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a relationship between a first preview area, a second preview area and an area of interest included in a preview interface of a mobile phone according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating that a picture of a second preview area is changed after a position of an area of interest is changed based on fig. 2 according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a shooting device provided in the second embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to a third embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The first embodiment is as follows:
in the existing shooting method, after a user performs an enlarging operation on a preview interface, a picture included in the preview interface changes, for example, the number of objects included in the preview interface becomes smaller, the area of the object becomes larger, the position of the object changes, and the like. At this time, the user needs the mobile terminal device to ensure that the object to be photographed is located at the designated position in the picture. In order to solve the technical problem, an embodiment of the present application provides a shooting method, where after a start instruction of a camera application is received, a preview interface is displayed, where the preview interface includes a first preview area and a second preview area, and a first preview picture and a second preview picture are respectively displayed in the first preview area and the second preview area, and a first magnification factor corresponding to the first preview picture is smaller than a second magnification factor corresponding to the second preview picture. Due to the fact that the preview pictures with different magnification factors are displayed in different preview areas, a user can check the preview pictures with different view angles in different preview areas, and then can move the terminal equipment according to the position relation of each object in the preview pictures with smaller magnification factors, namely, can quickly find the object to be shot displayed in the preview pictures with larger magnification factors, so that shooting of the object to be shot is completed, shooting duration is shortened, and good experience of the user is improved.
In order to more clearly describe the shooting method provided by the embodiment of the present application, the following description is made by using a specific embodiment:
fig. 1 shows a flowchart of a shooting method provided in an embodiment of the present application, where the shooting method is applied to a terminal device, and details are as follows:
step S11, if a start instruction of a camera application is received, displaying a preview interface of the camera application, where the preview interface includes a first preview area and a second preview area, the first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of a camera of the terminal device under a first magnification, the second preview picture is a view-finding picture of the camera of the terminal device under a second magnification, and the second magnification is greater than the first magnification.
In this embodiment, after a user touches an application icon of a camera application installed on a terminal device, the terminal device determines that a start instruction of the camera application is received; or if the terminal device detects a preset gesture, the terminal device judges that a starting instruction of the camera application is received; or; if the terminal device in the power-on state detects a designated track input by a user on a screen of the terminal device, the terminal device judges that a starting instruction of the camera application is received. The terminal equipment provides a plurality of starting modes of the camera application, so that the flexibility of starting the camera application is improved.
After receiving a starting instruction of the camera application, the terminal device displays a preview interface of the camera application, wherein the preview interface comprises a first preview area and a second preview area, and the positions of the first preview area and the second preview area on the preview interface are not completely equal to each other, that is, the condition that two preview areas are completely covered with each other does not exist between the first preview area and the second preview area. Of course, for the convenience of user operation, the preview interface may further include a shooting button for issuing a shooting operation, a switching button for issuing an operation of switching cameras (switching front and rear cameras), and/or an image viewing button for issuing an operation of viewing a shot image obtained by the last shooting operation, and the like.
And step S12, if a shooting instruction is received, acquiring a shot image, wherein the shot image is a framing picture of the camera of the terminal equipment under the second magnification.
In this embodiment, when the user touches a shooting button (for example, the shooting button 23 in fig. 2), or sends a preset gesture conforming to the shooting instruction, the terminal device determines that the shooting instruction is received, and executes a shooting action, and obtains a view frame of the camera of the terminal device at the second magnification as a shot image obtained by shooting. That is, through the above steps, the framing picture of the camera with a large magnification can be quickly acquired.
In the embodiment of the invention, after a starting instruction of a camera application is received, a preview interface is displayed, the preview interface comprises a first preview area and a second preview area, a first preview picture and a second preview picture are respectively displayed in the first preview area and the second preview area, and a first magnification factor corresponding to the first preview picture is smaller than a second magnification factor corresponding to the second preview picture. Due to the fact that the preview pictures with different magnification factors are displayed in different preview areas, a user can check the preview pictures with different view angles in different preview areas, and then can move the terminal equipment according to the position relation of each object in the preview pictures with smaller magnification factors, namely, can quickly find the object to be shot displayed in the preview pictures with larger magnification factors, so that shooting of the object to be shot is completed, shooting duration is shortened, and good experience of the user is improved.
In some embodiments, considering that there is an individual difference in the photographing habits of the users, the step S11 includes:
if a starting instruction of the camera application is received and the ratio of an image with a second magnification to an image with a first magnification in images stored by the terminal equipment is judged to be larger than or equal to a preset image ratio value, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area and a second preview area, the first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of a camera of the terminal equipment under the first magnification, the second preview picture is a view-finding picture of the camera of the terminal equipment under the second magnification, and the second magnification is larger than the first magnification.
In some embodiments, considering that the user only considers enlarging the ratio of the object to be photographed on the preview screen when the ratio of the object to be photographed on the preview screen is small, therefore, in order to make the magnification of the photographed image more suitable for the user' S requirement, the step S11 includes:
and A1, if a starting instruction of the camera application is received, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area.
And A2, if a target object exists in the first preview picture displayed in the first preview area and the occupied proportion of the target object in the first preview picture is smaller than a preset proportion threshold value, generating a second preview area, and displaying the second preview area on the preview interface. The first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of the camera of the terminal equipment under a first magnification, the second preview picture is a view-finding picture of the camera of the terminal equipment under a second magnification, and the second magnification is larger than the first magnification.
In this embodiment, when the terminal device receives a start instruction of the camera application, the displayed preview interface only includes the first preview area. The terminal equipment adopts a preset target detection algorithm to identify whether a target object exists in a first preview picture displayed in a first preview area, if so, further detects whether the proportion occupied by the target object in the first preview picture is smaller than a preset proportion threshold value, if so, a second preview area is generated, and at the moment, a preview interface simultaneously comprises the first preview area and the second preview area. The target object of the present embodiment is set by the user according to the actual situation, for example, the target object may be a human face, food, flowers, and the like.
In some embodiments, if there is no target object in the first preview screen displayed in the first preview area, the second preview area is not generated; or, if the first preview picture displayed in the first preview area contains the target object, and the proportion of the target object occupied in the first preview picture is greater than or equal to a preset proportion threshold, the second preview area is not generated.
In this embodiment, after receiving a start instruction of a camera application, the second preview area is not generated first, and when it is detected that a target object exists in the first preview image and it is determined that the ratio occupied by the target object in the first preview area is small, it is determined that a user wishes to photograph the target object, and at this time, the terminal device generates the second preview image, so that the magnification of a subsequently obtained photographed image is the second magnification; otherwise, it is determined that the user does not wish to photograph the target object, that is, does not need to perform a corresponding zoom-in action, that is, does not generate the second preview area, so that the zoom factor of the subsequently obtained photographed image is the first zoom factor. Through the steps, the magnification of the shot image can be ensured to be the magnification expected by the user, so that the good experience of the user is greatly improved.
In some embodiments, the step S11 includes:
and B1, if a starting instruction of the camera application is received, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area.
And B2, if an object tracking command is received, generating a second preview area, and displaying the second preview area on the preview interface, wherein the object tracking command is sent out by the user touching a tracking button arranged on the preview interface. The first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of the camera of the terminal equipment under a first magnification, the second preview picture is a view-finding picture of the camera of the terminal equipment under a second magnification, and the second magnification is larger than the first magnification.
In this embodiment, after receiving the start instruction of the camera application, the terminal device does not generate the second preview area first, and only after receiving the object tracking instruction, the terminal device generates the second preview area. Since the object tracking command is issued by the user touching the tracking button provided on the preview interface, the second preview area generated by the above steps can improve the accuracy of the generation of the second preview area.
In some embodiments, the area of the first preview region is larger than that of the second preview region, and the first preview region includes a region of interest with a fixed shape but a variable position, and the second preview region displays a second preview screen as a screen within the region of interest.
In this embodiment, since the larger the preview screen is, the clearer the details displayed on the preview screen are, in order to facilitate the user to quickly determine the object (i.e., the object to be photographed) in the second preview area, the area of the first preview area is set to be larger than that of the second preview area, so that the user can more accurately and quickly determine the object to be photographed from the first preview area having a larger area through the region of interest. As shown in fig. 2, the terminal device is a mobile phone, the displayed preview interface 2 includes a first preview area 21 and a second preview area 22, the first preview area 21 further includes an interest area 211, and the user can change the position of the interest area 211 by pressing and moving the edge of the interest area 211. The second preview screen displayed in the second preview area 22 is a screen obtained by enlarging a screen included in the region of interest 211.
In some embodiments, after this step S11, it includes:
c1, if the position of the interesting area is detected to be changed, determining the picture contained in the interesting area after the position is changed.
And C2, magnifying the screen from the first magnification to the second magnification, and displaying the magnified screen in the second preview area as a second preview screen.
In this embodiment, when the user drags the region of interest 211 to change the position of the region of interest 211 (for example, from the position of fig. 2 to the position of fig. 3), that is, to change the picture of the region of interest 211, the picture of the second preview area 22 is correspondingly changed to be consistent with the picture of the region of interest 211 (but the magnification is not consistent). That is to say, in the embodiment of the present application, the user can adjust the second preview picture displayed in the second preview area by adjusting the position of the region of interest, so that the second preview picture displayed in the second preview area can be determined quickly, and thus, the object can be shot quickly, the shooting duration is shortened, and the good experience of the user is improved.
In some embodiments, the terminal device comprises a first camera and a second camera, and the magnification of the image taken by the first camera is a first magnification and the magnification of the image taken by the second camera is a second magnification; the method for magnifying the picture from a first magnification to a second magnification and displaying the picture in a second preview area as a second preview picture comprises the following steps:
and D1, if the picture is within the angle of view of the second camera, controlling the second camera to view the area corresponding to the picture, so as to enlarge the picture from the first magnification to the second magnification, and displaying the picture as a second preview picture in the second preview area.
D2, if the image is outside the angle of view of the second camera, the image is magnified from the first magnification to the second magnification by the electronic magnification technology and displayed in the second preview area as the second preview image.
The fact that the picture in the region of interest is within the field angle of the second camera means that the second camera can also view and shoot the area corresponding to the picture in the region of interest.
In this embodiment, if the user drags the region of interest and the corresponding screen is within the field angle of the second camera, the second camera views the region corresponding to the screen, and since the magnification of the image captured by the second camera is the second magnification, the second camera views the region corresponding to the screen, which is equivalent to enlarging the screen included in the region of interest after the position change from the first magnification to the second magnification, that is, enlarging the screen included in the region of interest after the position change from the first magnification to the second magnification by the optical magnification technology. And if the corresponding picture is judged to be out of the field angle of the second camera after the position of the region of interest is changed, the picture is magnified from the first magnification to the second magnification by an electronic magnification (namely digital magnification and digital zooming) technology. Wherein, the function of the electronic enlarged picture can be realized by adopting an interpolation algorithm.
In some embodiments, the first camera may be a normal color camera, or may be a camera (wide-angle lens) with a large field angle; the second camera may be a telephoto camera.
In some embodiments, the terminal device comprises a first camera and a second camera, and the magnification of the image shot by the first camera is a first magnification and the magnification of the image shot by the second camera is a second magnification; the method for magnifying the picture from a first magnification to a second magnification and displaying the picture in a second preview area as a second preview picture comprises the following steps:
and E1, if the picture is within the angle of view of the second camera, controlling the second camera to view the area corresponding to the picture, so as to enlarge the picture from the first magnification to the second magnification, and displaying the picture as a second preview picture in the second preview area.
E2, if the image is outside the angle of view of the second camera, recognizing whether the image contains the target object, if the image contains the target object, adjusting the angle of view of the second camera so that the image is within the adjusted angle of view of the second camera, and controlling the second camera to view the area corresponding to the image, so as to enlarge the image from the first magnification to the second magnification, and displaying the enlarged image as a second preview image in the second preview area.
E3, if the screen does not contain the target object, the screen is magnified from the first magnification to the second magnification by the electronic magnification technology and displayed in the second preview area as the second preview screen.
In the above-described E1 to E3, the second camera is adjustable, that is, the angle of view of the second camera is variable. Therefore, after the interesting area is adjusted, if the included picture is also within the field angle of the second camera, the second camera is adopted to view the corresponding area, and when the subsequent terminal equipment detects the shooting action, the picture viewed by the second camera can be obtained; if the included picture is outside the angle of view of the second camera, the terminal device identifies whether the picture includes the target object (such as whether the picture includes a human face, food, and the like) through a specified algorithm (such as a target identification algorithm, a classification method, and the like), and if the picture includes the target object, the second camera is adjusted so that the picture is within the adjusted angle of view of the second camera, and the adjusted second camera is controlled to view the area corresponding to the picture. That is, because the angle of view of the second camera that is set up is adjustable, therefore, can realize the real-time tracking to the target object, and the picture of tracking is clear, and the magnification is the second magnification to make the user can obtain more detailed information of target object, improved user's good experience.
In some embodiments, the first camera may be a normal color camera, or may be a camera (wide-angle lens) with a large field angle; the second camera may be a telephoto camera.
In some embodiments, after step S11, comprising: and if a preview picture switching instruction is received, exchanging the picture of the first preview area with the picture of the second preview area.
In this embodiment, a preview interface of the terminal device is provided with a switch button, and after the user clicks the switch button, the terminal device receives a preview area switch instruction. Or, when the user simultaneously touches the first preview area and the second preview area with different fingers, the finger touching the first preview area slides towards the second preview area, and the finger touching the second preview area slides towards the first preview area, the terminal device receives the preview screen switching instruction. Referring to fig. 2, if the terminal device receives a preview screen switching instruction, a screen included in the first preview area is a view-finding screen at the second magnification, and a screen included in the second preview area is a view-finding screen at the first magnification. If the terminal device receives the shooting instruction after the position of the first preview area and the picture of the second preview area are interchanged, the terminal device acquires the framing picture of the camera under the second magnification, namely the picture contained in the first preview area. Because the user can interchange the picture of the first preview area and the picture of the second preview area, the user can flexibly operate the display according to the actual situation. For example, when the area of the first preview area is larger, the user can determine whether the picture contained in the first preview area is the picture which the user wants to capture or not from the first preview area with larger area by interchanging the picture of the second preview area and the picture of the first preview area, thereby improving the accuracy of the captured image.
Example two:
fig. 4 shows a block diagram of a configuration of an imaging apparatus according to an embodiment of the present application, which corresponds to the imaging method according to the first embodiment, and only shows portions related to the embodiment of the present application for convenience of description.
Referring to fig. 4, the photographing apparatus 4 is applied to a terminal device, and includes:
a preview interface display unit 41, configured to display a preview interface of a camera application if a start instruction of the camera application is received, where the preview interface includes a first preview area and a second preview area, the first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of a camera of the terminal device under a first magnification, the second preview picture is a view-finding picture of the camera of the terminal device under a second magnification, and the second magnification is greater than the first magnification.
And the image shooting unit 42 is used for acquiring a shot image if the shooting instruction is received, wherein the shot image is a framing picture of the camera of the terminal equipment under the second magnification.
In the embodiment of the application, because the preview pictures with different magnification factors are displayed in different preview areas, a user can check the preview pictures with different field angles in different preview areas, and then can quickly find the object to be shot displayed in the preview picture with larger magnification factor through the mobile terminal equipment according to the position relation of each object in the preview picture with smaller magnification factor, thereby completing shooting of the object to be shot, reducing the shooting time and improving the good experience of the user.
In some embodiments, in consideration of individual differences in the shooting habits of the users, the preview interface display unit 41 is specifically configured to:
if a starting instruction of the camera application is received and the ratio of an image with a second magnification to an image with a first magnification in images stored by the terminal equipment is judged to be larger than or equal to a preset image ratio value, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area and a second preview area, the first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of a camera of the terminal equipment under the first magnification, the second preview picture is a view-finding picture of the camera of the terminal equipment under the second magnification, and the second magnification is larger than the first magnification.
In some embodiments, considering that the user only considers enlarging the ratio of the object to be photographed on the preview screen when the ratio occupied by the object to be photographed on the preview screen is small, in order to make the magnification of the photographed image more suitable for the user's requirement, the preview interface display unit 41 includes:
the first preview area display module is used for displaying a preview interface of the camera application if a starting instruction of the camera application is received, wherein the preview interface comprises a first preview area.
And the second preview area generating module is used for generating a second preview area if a target object exists in the first preview picture displayed in the first preview area and the occupied proportion of the target object in the first preview picture is smaller than a preset proportion threshold value, and the second preview area is displayed on the preview interface.
In some embodiments, the camera 4 further comprises:
a second preview area non-generation module, configured to not generate a second preview area if there is no target object in the first preview screen displayed in the first preview area; or, if the first preview picture displayed in the first preview area contains the target object, and the proportion of the target object occupied in the first preview picture is greater than or equal to a preset proportion threshold, the second preview area is not generated.
In some embodiments, the preview interface display unit 41 includes:
the first preview area display module is used for displaying a preview interface of the camera application if a starting instruction of the camera application is received, wherein the preview interface comprises a first preview area.
And the object tracking instruction receiving module is used for generating a second preview area if an object tracking instruction is received, and the second preview area is displayed on the preview interface, wherein the object tracking instruction is sent out by a user touching a tracking button arranged on the preview interface.
In some embodiments, the area of the first preview region is larger than that of the second preview region, and the first preview region includes a region of interest with a fixed shape but a variable position, and the second preview region displays a second preview screen as a screen within the region of interest.
In some embodiments, the photographing device 4 includes:
and the interested area adjusting unit is used for determining the picture contained in the interested area after the position is changed if the position of the interested area is detected to be changed.
And a screen enlarging unit for enlarging the screen from the first magnification to the second magnification and displaying the screen in the second preview area as a second preview screen.
In some embodiments, the terminal device comprises a first camera and a second camera, and the image captured by the first camera has a first magnification and the image captured by the second camera has a second magnification. The picture enlarging unit includes:
and the first optical amplification module is used for controlling the second camera to frame the area corresponding to the picture if the picture is within the angle of view of the second camera, so that the picture is amplified from the first magnification to the second magnification and is displayed in the second preview area as a second preview picture.
And the first electronic magnification module is used for magnifying the picture from the first magnification to the second magnification through an electronic magnification technology and displaying the picture as a second preview picture in the second preview area if the picture is out of the field angle of the second camera.
In some embodiments, the terminal device comprises a first camera and a second camera, and the image captured by the first camera has a first magnification and the image captured by the second camera has a second magnification. The picture enlarging unit includes:
and the second optical amplification module is used for controlling the second camera to frame the area corresponding to the picture if the picture is within the angle of view of the second camera, so that the picture is amplified from the first magnification to the second magnification and is displayed in the second preview area as a second preview picture.
And the third optical amplification module is used for identifying whether the picture contains a target object or not if the picture is out of the field angle of the second camera, adjusting the field angle of the second camera if the picture contains the target object, controlling the second camera to view the area corresponding to the picture if the picture is within the adjusted field angle of the second camera, and amplifying the picture from the first magnification to the second magnification to be displayed in the second preview area as a second preview picture.
And the second electronic amplification module is used for amplifying the picture from the first magnification to the second magnification through an electronic amplification technology and displaying the picture as a second preview picture in a second preview area if the picture does not contain the target object.
In some embodiments, the photographing device 4 includes: and the picture switching unit is used for interchanging the picture of the first preview area and the picture of the second preview area if a preview picture switching instruction is received.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Example three:
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 5, the terminal device 5 of this embodiment includes: at least one processor 50 (only one processor is shown in fig. 5), a memory 51, and a computer program 52 stored in the memory 51 and executable on the at least one processor 50, the processor 50 implementing the steps in any of the various method embodiments described above when executing the computer program 52:
if a starting instruction of a camera application is received, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area and a second preview area, the first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of a camera of the terminal equipment under a first magnification, the second preview picture is a view-finding picture of the camera of the terminal equipment under a second magnification, and the second magnification is larger than the first magnification;
and if a shooting instruction is received, acquiring a shot image, wherein the shot image is a framing picture of a camera of the terminal equipment under a second magnification.
Optionally, if a start instruction of the camera application is received, displaying a preview interface of the camera application, where the preview interface includes a first preview area and a second preview area, and includes:
if a starting instruction of a camera application is received, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area;
and if a target object exists in a first preview picture displayed in the first preview area and the occupied proportion of the target object in the first preview picture is smaller than a preset proportion threshold value, generating a second preview area, and displaying the second preview area on the preview interface.
Optionally, if a start instruction of the camera application is received, displaying a preview interface of the camera application, where the preview interface includes a first preview area and a second preview area, and includes:
if a starting instruction of a camera application is received, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area;
and if an object tracking instruction is received, generating a second preview area, wherein the second preview area is displayed on the preview interface, and the object tracking instruction is sent out by a user touching a tracking button arranged on the preview interface.
Optionally, the area of the first preview area is larger than the area of the second preview area, the first preview area includes an area of interest with a fixed shape but a variable position, and a second preview picture displayed in the second preview area is a picture in the area of interest.
Optionally, after the displaying the preview interface of the camera application, the method further includes:
if the change of the position of the region of interest is detected, determining a picture contained in the region of interest after the change of the position;
and amplifying the picture from the first magnification to the second magnification, and displaying the picture in a second preview area as a second preview picture.
Optionally, the terminal device includes a first camera and a second camera, and a magnification of an image captured by the first camera is a first magnification, and a magnification of an image captured by the second camera is a second magnification; the magnifying the picture from a first magnification to a second magnification and displaying the picture in a second preview area as a second preview picture comprises:
if the picture is within the field angle of the second camera, controlling the second camera to view the area corresponding to the picture so as to amplify the picture from the first magnification to the second magnification, and displaying the picture as a second preview picture in a second preview area;
and if the picture is out of the field angle of the second camera, magnifying the picture from a first magnification to a second magnification through an electronic magnification technology, and displaying the picture in a second preview area as a second preview picture.
Optionally, the terminal device includes a first camera and a second camera, and a magnification of an image captured by the first camera is a first magnification, and a magnification of an image captured by the second camera is a second magnification; the magnifying the picture from a first magnification to a second magnification and displaying the picture in a second preview area as a second preview picture comprises:
if the picture is within the field angle of the second camera, controlling the second camera to view the area corresponding to the picture so as to amplify the picture from the first magnification to the second magnification, and displaying the picture as a second preview picture in a second preview area;
if the picture is outside the field angle of the second camera, identifying whether the picture contains a target object, if so, adjusting the field angle of the second camera to enable the picture to be within the adjusted field angle of the second camera, and then controlling the second camera to view a region corresponding to the picture so as to magnify the picture from a first magnification to a second magnification and display the picture as a second preview picture in a second preview region;
and if the picture does not contain the target object, the picture is magnified from the first magnification to the second magnification through an electronic magnification technology and is displayed in a second preview area as a second preview picture.
The terminal device 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is only an example of the terminal device 5, and does not constitute a limitation to the terminal device 5, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, and the like.
The Processor 50 may be a Central Processing Unit (CPU), and the Processor 50 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may in some embodiments be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (9)

1. A shooting method is applied to a terminal device and comprises the following steps:
if a starting instruction of a camera application is received, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area and a second preview area, the positions of the first preview area and the second preview area on the preview interface are not completely equal, the first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of a camera of the terminal equipment under a first magnification, the second preview picture is a view-finding picture of the camera of the terminal equipment under a second magnification, and the second magnification is larger than the first magnification; if a starting instruction of the camera application is received, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area and a second preview area, and the method comprises the following steps: if a starting instruction of a camera application is received, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area; if an object tracking instruction is received, generating a second preview area, wherein the second preview area is displayed on the preview interface, and the object tracking instruction is sent out by a user touching a tracking button arranged on the preview interface; the terminal equipment comprises a first camera and a second camera, the magnification of an image shot by the first camera is a first magnification, and the magnification of an image shot by the second camera is a second magnification; the first camera is a wide-angle lens, and the second camera is a long-focus camera;
and if a shooting instruction is received, acquiring a shot image, wherein the shot image is a framing picture of a camera of the terminal equipment under a second magnification.
2. The shooting method according to claim 1, wherein if a camera application start instruction is received, a preview interface of the camera application is displayed, and the preview interface includes a first preview area and a second preview area, and further comprising:
if a starting instruction of a camera application is received, displaying a preview interface of the camera application, wherein the preview interface comprises a first preview area;
and if a target object exists in a first preview picture displayed in the first preview area and the occupied proportion of the target object in the first preview picture is smaller than a preset proportion threshold value, generating a second preview area, and displaying the second preview area on the preview interface.
3. The photographing method according to claim 1 or 2, wherein an area of the first preview region is larger than an area of the second preview region, and the first preview region includes a region of interest having a fixed shape but a variable position, and the second preview region displays a second preview screen that is a screen within the region of interest.
4. The capture method of claim 3, after the displaying the preview interface of the camera application, comprising:
if the change of the position of the region of interest is detected, determining a picture contained in the region of interest after the change of the position;
and amplifying the picture from the first magnification to the second magnification, and displaying the picture in a second preview area as a second preview picture.
5. The photographing method of claim 4, wherein the enlarging the picture from the first magnification to the second magnification and displaying in the second preview area as the second preview picture comprises:
if the picture is within the field angle of the second camera, controlling the second camera to view the area corresponding to the picture so as to amplify the picture from the first magnification to the second magnification, and displaying the picture as a second preview picture in a second preview area;
and if the picture is out of the field angle of the second camera, magnifying the picture from a first magnification to a second magnification through an electronic magnification technology, and displaying the picture in a second preview area as a second preview picture.
6. The photographing method according to claim 4, wherein the terminal device includes a first camera and a second camera, and a magnification of an image photographed by the first camera is a first magnification and a magnification of an image photographed by the second camera is a second magnification; the magnifying the picture from a first magnification to a second magnification and displaying the picture in a second preview area as a second preview picture comprises:
if the picture is within the field angle of the second camera, controlling the second camera to view the area corresponding to the picture so as to amplify the picture from the first magnification to the second magnification, and displaying the picture as a second preview picture in a second preview area;
if the picture is outside the field angle of the second camera, identifying whether the picture contains a target object, if so, adjusting the field angle of the second camera to enable the picture to be within the adjusted field angle of the second camera, and then controlling the second camera to view a region corresponding to the picture so as to magnify the picture from a first magnification to a second magnification and display the picture as a second preview picture in a second preview region;
and if the picture does not contain the target object, the picture is magnified from the first magnification to the second magnification through an electronic magnification technology and is displayed in a second preview area as a second preview picture.
7. A shooting device is characterized by being applied to terminal equipment and comprising:
the terminal equipment comprises a preview interface display unit, a preview interface display unit and a display unit, wherein the preview interface display unit is used for displaying a preview interface of a camera application if a starting instruction of the camera application is received, the preview interface comprises a first preview area and a second preview area, the positions of the first preview area and the second preview area on the preview interface are not completely equal, the first preview area displays a first preview picture, the second preview area displays a second preview picture, the first preview picture is a view-finding picture of a camera of the terminal equipment under a first magnification, the second preview picture is a view-finding picture of the camera of the terminal equipment under a second magnification, and the second magnification is larger than the first magnification;
the image shooting unit is used for acquiring a shot image if a shooting instruction is received, wherein the shot image is a framing picture of a camera of the terminal equipment under a second magnification;
the preview interface display unit includes:
the device comprises a first preview area display module, a second preview area display module and a third preview area display module, wherein the first preview area display module is used for displaying a preview interface of a camera application if a starting instruction of the camera application is received, and the preview interface comprises a first preview area;
the object tracking instruction receiving module is used for generating a second preview area if an object tracking instruction is received, wherein the second preview area is displayed on the preview interface, and the object tracking instruction is sent out by a user touching a tracking button arranged on the preview interface; the terminal equipment comprises a first camera and a second camera, the magnification of an image shot by the first camera is a first magnification, and the magnification of an image shot by the second camera is a second magnification; the first camera is a wide-angle lens, and the second camera is a long-focus camera.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
CN202011047570.8A 2020-09-29 2020-09-29 Photographing method, photographing apparatus, terminal device, and computer-readable storage medium Active CN112188097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011047570.8A CN112188097B (en) 2020-09-29 2020-09-29 Photographing method, photographing apparatus, terminal device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011047570.8A CN112188097B (en) 2020-09-29 2020-09-29 Photographing method, photographing apparatus, terminal device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN112188097A CN112188097A (en) 2021-01-05
CN112188097B true CN112188097B (en) 2022-08-09

Family

ID=73945721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011047570.8A Active CN112188097B (en) 2020-09-29 2020-09-29 Photographing method, photographing apparatus, terminal device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN112188097B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115802145A (en) * 2021-09-08 2023-03-14 华为技术有限公司 Shooting method and electronic equipment
CN116112781B (en) * 2022-05-25 2023-12-01 荣耀终端有限公司 Video recording method, device and storage medium
CN115499589A (en) * 2022-09-19 2022-12-20 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7794396B2 (en) * 2006-11-03 2010-09-14 Stryker Corporation System and method for the automated zooming of a surgical camera
US9197864B1 (en) * 2012-01-06 2015-11-24 Google Inc. Zoom and image capture based on features of interest
CN106454135B (en) * 2016-11-29 2019-11-01 维沃移动通信有限公司 One kind is taken pictures based reminding method and mobile terminal
CN106909274B (en) * 2017-02-27 2020-12-15 南京车链科技有限公司 Image display method and device
US10469759B2 (en) * 2017-11-07 2019-11-05 Axis Ab Combining optical and digital zoom under varying image capturing conditions
CN114915726A (en) * 2019-11-15 2022-08-16 华为技术有限公司 Shooting method and electronic equipment

Also Published As

Publication number Publication date
CN112188097A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN112188097B (en) Photographing method, photographing apparatus, terminal device, and computer-readable storage medium
CN111654629B (en) Camera switching method and device, electronic equipment and readable storage medium
CN108737739B (en) Preview picture acquisition method, preview picture acquisition device and electronic equipment
CN111726533A (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
CN111866392B (en) Shooting prompting method and device, storage medium and electronic equipment
CN112954193B (en) Shooting method, shooting device, electronic equipment and medium
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
WO2022161340A1 (en) Image display method and apparatus, and electronic device
CN112954210A (en) Photographing method and device, electronic equipment and medium
CN112887617B (en) Shooting method and device and electronic equipment
CN113141450A (en) Shooting method, shooting device, electronic equipment and medium
CN111970437B (en) Text shooting method, wearable device and storage medium
CN113840070A (en) Shooting method, shooting device, electronic equipment and medium
CN113923350A (en) Video shooting method and device, electronic equipment and readable storage medium
US11770603B2 (en) Image display method having visual effect of increasing size of target image, mobile terminal, and computer-readable storage medium
CN110166696B (en) Photographing method, photographing device, terminal equipment and computer-readable storage medium
CN111201773A (en) Photographing method and device, mobile terminal and computer readable storage medium
JP2024504159A (en) Photography methods, equipment, electronic equipment and readable storage media
CN112055156B (en) Preview image updating method and device, mobile terminal and storage medium
JP2023526806A (en) Anti-shake method, anti-shake device and electronic device
WO2024061134A1 (en) Photographing method and apparatus, electronic device, and medium
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112929566A (en) Display control method, display control device, electronic device, and medium
CN112887624B (en) Shooting method and device and electronic equipment
CN114025100A (en) Shooting method, shooting device, electronic equipment and readable storage medium

Legal Events

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