Photographic method, apparatus, electronic device, and storage medium

IN597534BActive Publication Date: 2026-07-31VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
IN202317035700
Authority / Receiving Office
IN · IN
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-12-02
Filing Date
2023-05-23
Publication Date
2026-07-31
Estimated Expiration
2041-11-25
Patent Text Reader

Abstract

Disclosed by the present application are a photographic method, apparatus, electronic device, and storage medium, belonging to the technical field of imaging. The method comprises: receiving a first input by a user to a target control on a camera preview interface; the target control comprises a first region, the first region corresponding to N depth-of-field values; in response to the first input, displaying M camera identifiers in a second region of the target control, each camera identifier corresponding to a depth-of-field range; controlling the M cameras to capture images and outputting a target image; the target image is obtained on the basis of synthesis of the images taken by the M cameras.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0002] This application pertains to the field of imaging technologies, andspecifically relates to a photographing method and apparatus, an electronic device, anda storage medium.BACKGROUND

[0003] Currently, mobile phones are all provided with a plurality of cameras withdifferent focal lengths, and a user may switch the cameras during preparation ofphotographing according to actual needs of the user. A mainstream solution nowadaysis to add a select button in a camera application, so as to tap the button to pop up awindow and then select one camera in the window.

[0004] During implementation of this application, the inventors have found at leastthe following problem in the prior art: the user can select only one camera, for example,selecting one of ultra-wide-angle camera, macro-distance camera, and the like on amobile phone for photographing. This results in a single photographing mode and pooreffects of photographed images, and actual use requirements of different users cannotbe satisfied.SUMMARY

[0005] This application is intended to provide a photographing method andapparatus, an electronic device, and a storage medium, so as to resolve a prior-artproblem that a user has to select a single camera, resulting in a single photographingmode and poor imaging quality.

[0006] In order to resolve the foregoing technical problem, this application isimplemented as follows:

[0007] According to a first aspect, this application provides a photographingmethod, where the method includes:receiving a first input from a user on a target control in a camera previewscreen, where the target control includes a first region, the first region corresponds to Ndepth-of-field values, and N is a positive integer greater than 1;displaying M camera icons in a second region of the target control inresponse to the first input, where M is a positive integer greater than 1, each cameraicon corresponds to one depth-of-field range, and each depth-of-field range isdetermined based on a depth-of-field value corresponding to a target position of eachcamera icon in the second region; andcontrolling M cameras to photograph images and outputting a target image,where the target image is obtained by compositing the images photographed by the Mcameras; andthe M cameras are cameras associated with the M camera icons.

[0008] According to a second aspect, this application provides a photographingapparatus, including:a first receiving module, configured to receive a first input from a user on atarget control in a camera preview screen, where the target control includes a first region,the first region corresponds to N depth-of-field values, and N is a positive integergreater than 1;a first responding module, configured to display M camera icons in a secondregion of the target control in response to the first input, where M is a positive integergreater than 1, each camera icon corresponds to one depth-of-field range, and eachdepth-of-field range is determined based on a depth-of-field value corresponding to atarget position of each camera icon in the second region; anda first control module, configured to control M cameras to photographimages, and output a target image, where the target image is obtained by compositingthe images photographed by the M cameras, and the M cameras are cameras associatedwith the M camera icons.

[0009] According to a third aspect, this application provides an electronic device,where the electronic device includes a processor, a memory, and a program orinstructions stored in the memory and capable of running on the processor, and whenthe program or the instructions are executed by the processor, the steps of thephotographing method according to any one implementation of the first aspect areimplemented.

[0010] According to a fourth aspect, this application provides a readable storagemedium, where a program or instructions are stored in the readable storage medium,and when the program or the instructions are executed by a processor, the steps of thephotographing method according to any one implementation of the first aspect areimplemented.

[0011] According to a fifth aspect, this application provides a chip, where the chipincludes a processor and a communications interface, the communications interface iscoupled to the processor, and the processor is configured to run a program orinstructions to implement the steps of the photographing method according to any oneimplementation of the first aspect.

[0012] According to a sixth aspect, an embodiment of this application provides anelectronic device configured to perform the steps of the photographing methodaccording to the first aspect.

[0013] According to a seventh aspect, an embodiment of this application providesa computer program product, where the program product can be executed by theprocessor to implement the steps of the photographing method according to the firstaspect.

[0014] According to the photographing method and apparatus, the electronic device,and the storage medium provided by this application, the target control is provided onthe camera preview screen, so that the user makes setting for the target control toimplement quick and accurate setting for switching of a plurality of cameras. In thisway, clear images with different depths of field correspondingly photographed bydifferent cameras are composited to output the target image, and all objects in theobtained target image have clear images. This effectively improves convenience ofperforming multi-camera photographing operation by the user and effectively improvesthe imaging quality.BRIEF DESCRIPTION OF DRAWINGS

[0015] FIG. 1 is a schematic flowchart of a photographing method according to thisapplication;

[0016] FIG. 2 is a first schematic diagram of a screen for a procedure of setting atarget control according to this application;

[0017] FIG. 3 is a second schematic diagram of a screen for a procedure of settinga target control according to this application;

[0018] FIG. 4 is a third schematic diagram of a screen for a procedure of setting atarget control according to this application;

[0019] FIG. 5 is a fourth schematic diagram of a screen for a procedure of setting atarget control according to this application;

[0020] FIG. 6 is a fifth schematic diagram of a screen for a procedure of setting atarget control according to this application;

[0021] FIG. 7 is a sixth schematic diagram of a screen for a procedure of setting atarget control according to this application;

[0022] FIG. 8 is a seventh schematic diagram of a screen for a procedure of settinga target control according to this application;

[0023] FIG. 9 is an eighth schematic diagram of a screen for a procedure of settinga target control according to this application;

[0024] FIG. 10 is a ninth schematic diagram of a screen for a procedure of settinga target control according to this application;

[0025] FIG. 11 is a tenth schematic diagram of a screen for a procedure of setting atarget control according to this application;

[0026] FIG. 12 is an eleventh schematic diagram of a screen for a procedure ofsetting a target control according to this application;

[0027] FIG. 13 is a twelfth schematic diagram of a screen for a procedure of settinga target control according to this application;

[0028] FIG. 14 is a schematic structural diagram of a photographing apparatusaccording to this application;

[0029] FIG. 15 is a first schematic structural diagram of an electronic deviceaccording to this application; and

[0030] FIG. 16 is a second schematic structural diagram of an electronic deviceaccording to this application.DETAILED DESCRIPTION OF EMBODIMENTS

[0031] The following clearly and completely describes the technical solutions inthis application with reference to the accompanying drawings in this application.Apparently, the described embodiments are some but not all of the embodiments of thisapplication. All other embodiments obtained by a person of ordinary skill in the artbased on the embodiments of this application without creative efforts shall fall withinthe protection scope of this application.

[0032] In the specification and claims of this application, the terms such as "first"and "second" are intended to distinguish between similar objects but do not necessarilyindicate a specific order or sequence. It should be understood that the terms used in thisway is interchangeable in appropriate circumstances so that the embodiments of thisapplication can be implemented in other orders than the order illustrated or describedherein. In addition, "and / or" in this specification and claims indicates at least one ofconnected objects, and the symbol " / " generally indicates that the associated objects arein an "or" relationship.

[0033] The following describes in detail a photographing method provided in thisapplication by using specific embodiments and application scenarios thereof withreference to the accompanying drawings.

[0034] It should be noted that, for the photographing method provided in theembodiments of this application, the execution entity may be a photographing apparatus,or a control module for executing the photographing method in the photographingapparatus. In this application, the photographing method being executed by thephotographing apparatus is used as an example to illustrate the photographing methodprovided in this embodiment of this application.

[0035] FIG. 1 is a schematic flowchart of a photographing method according to thisapplication. As shown in FIG. 1, the photographing method provided in this applicationcan be applied to a scenario in which a plurality of cameras are provided on a terminal,and a user invokes and sets some of the cameras according to photographing needs, soas to implement the purpose of multi-camera fusion photography. The photographingmethod may include the following steps 11 to 13.

[0036] Step 11: Receive a first input from a user on a target control in a camerapreview screen.

[0037] The target control includes a first region, the first region corresponds to Ndepth-of-field values, and N is a positive integer greater than 1.

[0038] Specifically, the user may tap a camera icon on a terminal display to enterthe camera preview screen and display one target control directly on the camera previewscreen. The icon in this application is used to indicate information using text, symbol,image, or the like, and may use a control or other containers as a carrier for displayinginformation, including but not limited to a text icon, a symbol icon, and an image icon.The camera icon may be an icon located on the terminal screen, for example, a cameraimage or a camera symbol. The target control is a multi-camera operation screen, andthe user may perform an operation or input on the target control to preset operatingparameters for each camera of the terminal and switching between the cameras.

[0039] The target control may be displayed at the bottom of the terminal display forconvenient operation using two hands by the user; or may be provided on the left orright side of the terminal display for convenient operation using one hand by the user.A window shape of the target control may be rectangular, circular, or other shapes.

[0040] Optionally, a specific region for displaying the target control on the terminaldisplay may be set by the user based on use habits of the user. For example, in a casethat the target control is displayed on the left side of the terminal display, the user maytouch a predetermined region of the target control with his finger and drag to a regionat the bottom of the display.

[0041] Optionally, after the user taps the camera icon on the terminal display andenters the camera preview screen, the target control may alternatively not be predisplayed on the camera preview screen, but requires the user to press a shortcut button(for example, volume button + home button) or tap a preset icon on the camera previewscreen for waking up, so as to bring up the target control on the camera preview screen.

[0042] This application does not specifically limit a start mode, window shape,display position, and the like of the target control.

[0043] FIG. 2 is a first schematic diagram of a screen for a procedure of setting atarget control according to this application. As shown in FIG. 2, the application providesan operation method for invoking the target control on a camera preview screen by auser, mainly including: the user slides two fingers to two sides of the screen for adistance on the camera preview screen to bring up the target control.

[0044] Optionally, in order to prevent misoperation, it may be specified that at apreset position, for example, within the region 201 shown in the left figure in FIG. 2,the user can bring up the target control only by pressing the terminal display with twofingers and simultaneously sliding to two sides of the screen for a distance. If it isoutside the region 201, the target control cannot be brought up even if the foregoingsame operation is performed.

[0045] Optionally, to prevent user misoperation, it may be further specified that thetarget control can be brought up only when the distance of sliding two fingers to twosides of the screen is greater than a predetermined distance.

[0046] Further, as shown in the right figure in FIG. 2, this application provides aspecific structure of the target control, mainly including a first region 202 and a secondregion 203. The first region 202 corresponds to a plurality of depth-of-field valueidentifiers 205, and each depth-of-field value identifier 205 corresponds to one depth of-field value. Optionally, the first region 202 may be displayed on the terminal displayin a form of a progress bar, and each point of the progress bar corresponds to a differentdepth-of-field value, for example, in a case that the progress bar is a horizontal progressbar, a total length of the progress bar may be determined based on a width of theterminal display.

[0047] Optionally, if the total length of the progress bar is 8 cm, a depth-of-fieldvalue corresponding to a point 0.1 cm away from a starting point of the progress bar(generally, the starting point is set near a left border of the terminal screen) may be setto 0.1, a depth-of-field value corresponding to a point 1 cm away is set to 1, and a depthof-field value corresponding to a point 2 cm away is set to 2. Correspondingly, thedepth-of-field value of each point on the progress bar may be pre-calibrated accordingto the foregoing proportional relationship between depth-of-field values and the lengthof the progress bar.

[0048] Optionally, a depth-of-field value may be directly displayed as a depth-offield value identifier in the first region 202. For example, a depth-of-field value 0.1, adepth-of-field value 1, and a depth-of-field value 10 in the right figure in FIG. 2 eachserve as a corresponding depth-of-field value identifier.

[0049] The foregoing plurality of depth-of-field values divide the photographingdepth-of-field range into a plurality of consecutive depth-of-field ranges. For example,the depth-of-field value 0.1, depth-of-field value 1, and depth-of-field value 10 dividethe whole photographing depth-of-field range into a depth-of-field range with 0.1-1xfocal length, the depth-of-field range with 1-10x focal length and the depth-of-fieldrange with focal length greater than 10x.

[0050] Optionally, all the depth-of-field values are distributed in the first region 202from left to right in ascending order.

[0051] Corresponding to an arrangement order of the depth-of-field values, aplurality of camera icons 204 are correspondingly present within the second region 203.Each camera icon 204 is associated with one camera of the terminal.

[0052] Specifically, as shown in FIG. 2, the depth-of-field value 0.1 corresponds toa camera icon with a display number 1, the depth-of-field value 1 corresponds to acamera icon with a display number 2, and the depth-of-field value 10 corresponds to acamera icon with a display number 3. The camera icon with the display number 1, thecamera icon with the display number 2, and the camera icon with the display number 3are associated with three different cameras of the terminal, denoted as camera a, camerab, and camera c, respectively. During actual photographing, the camera a is used forphotographing in the depth-of-field range with 0.1-1x focal length, the camera b is usedfor photographing in the depth-of-field range with 1-10x focal length, and the camerac is used for photographing in the depth-of-field range with focal length greater than10x.

[0053] Step 12: Display M camera icons in the second region of the target controlin response to the first input.

[0054] Each camera icon corresponds to one depth-of-field range, and each depthof-field range is determined based on a depth-of-field value corresponding to a targetposition of each camera icon in the second region, M being a positive integer greaterthan 1. Corresponding to a case that the first region 202 is represented by a progressbar, the second region may be a region of a predetermined range corresponding to theprogress bar, for example, a rectangular region located above or below the progress barmay be specified as the second region 203.

[0055] Specifically, after the target control is displayed on the camera previewscreen, the user may operate the camera icon on the operation screen of the targetcontrol by performing the first input on the target control, such as tapping, dragging,pressing, or sliding.

[0056] Optionally, after receiving the first input, the terminal identifies the firstinput to implement operation on camera icons of the target control and correspondingdepth-of-field ranges, and displays, on the camera preview screen, the target controloperated by the user. Because the camera icons correspond to different cameras on theterminal, the operations such as switching and setting for each camera correspondingto the camera icon can be implemented by performing the operation on the camera icon.

[0057] For example, as shown in the right figure in FIG. 2, in a case that the firstinput of the user is an input for triggering the camera icon with the display number 1on the target control, the camera icon 204 with the display number 1 on the targetcontrol is deleted and a camera icon with a display number 4 is added to a position ofthe camera icon with the display number 1. With the foregoing setting operation, aphotographing depth-of-field range for a camera corresponding to the original cameraicon with the display number 1 is changed to a photographing depth-of-field range fora camera corresponding to the camera icon with the display number 4.

[0058] In the photographing method provided in this application, the user may seta camera icon in the second region or set a depth-of-field range in the first region, so asto control switching of a plurality of cameras and set a photographing depth-of-fieldrange for each camera, thereby implementing customized interaction for multi-cameraphotography and improving convenience of user operations.

[0059] Step 13: Control M cameras to photograph images, and output a target image.

[0060] The target image is obtained by compositing the images photographed bythe M cameras, and the M cameras are cameras associated with the M camera icons.

[0061] Optionally, in a case that the second input is received from the user, forexample, the user taps a photographing button on the camera preview screen or pressesa preset photography shortcut button on the terminal, the cameras associated with thecamera icons on the target control are controlled to perform photographing in relateddepth-of-field ranges respectively, and each camera photograph one frame of image.

[0062] For example, as shown in the right figure in FIG. 2, in a case that the secondregion includes three camera icons with display numbers 1 to 3, the camera icon withthe display number 1 having a depth-of-field value of 0.1, the camera icon with thedisplay number 2 having a depth-of-field value of 1, and the camera icon with thedisplay number 3 having a depth-of-field value of 10, a photographing depth-of-fieldrange of the camera corresponding to the camera icon with the display number 1 is adepth-of-field range with 0.1-1x focal length, a photographing depth-of-field range ofthe camera corresponding to the camera icon with the display number 2 is a depth-offield range with 1-10x focal length, and a photographing depth-of-field range of thecamera corresponding to the camera icon with the display number 3 is a depth-of-fieldrange with focal length greater than 10x.

[0063] In a case that the target control is set as shown in the right figure in FIG. 2,the system receives the second input from the user and controls the three camera iconswith display numbers 1 to 3 to photograph an image with the depth-of-field range of0.1-1x focal length, an image with the depth-of-field range of 1-10x focal length, andan image with the depth-of-field range of focal length greater than 10x, respectively,and finally the three frames of images of the depth-of-field ranges are composited tooutput the target image.

[0064] Optionally, other manners may alternatively be used to control the camerasassociated with the camera icons on the target control to perform photographing inrelated depth-of-field ranges respectively, for example, using time-lapse photography,timed photography, or automatic photography in response to sensed light change, whichis not specifically limited in this application.

[0065] Finally, the images photographed by all cameras are composited to outputthe target image.

[0066] According to the photographing method provided by this application, thetarget control is provided on the camera preview screen, so that the user makes settingfor the target control to implement quick and accurate setting for switching of a pluralityof cameras. In this way, clear images with different depths of field correspondinglyphotographed by different cameras are composited to output the target image, and allobjects in the obtained target image have clear images. This effectively improvesconvenience of performing multi-camera photographing operation by the user andeffectively improves the imaging quality.

[0067] Based on content of the foregoing embodiments, as an optional embodiment,the controlling M cameras to photograph images and outputting a target image includes:controlling each of the cameras associated with the M camera icons tophotograph one frame of depth-of-field image, so as to obtain M frames of depth-offield images; andcomposite the M frames of depth-of-field images to output the target image.

[0068] A difference between the photographing method provided in this applicationand the multi-camera photographing method commonly used in the prior art is mainlyas follows:

[0069] In the prior art, in a case that a plurality of cameras are present on theterminal, the user usually switches, during photographing preparation, camerasaccording to actual needs of the user to select one of the cameras for photographing, orselects one of the plurality of cameras as a primary camera and all other cameras assecondary cameras for joint photographing.

[0070] However, in the technical solution of this application, on the one hand, theuser may select, using the target control, some of the cameras for image photographingwhile keeping unselected cameras not started, thereby satisfying photographingrequirements of different users and reducing power consumption of the terminaleffectively. On the other hand, in the photographing method provided by thisapplication, a depth-of-field range for each selected camera can be set by using thetarget control, and the cameras are not divided into primary and secondary ones, so asto fully use each camera to perform photographing in a matching depth-of-field range.As compared to the prior art in which one single camera is used for photographing alldepth-of-field ranges, this can effectively improve the imaging quality and meetphotographing needs of different users for selecting a specific camera to performphotographing in a specific depth-of-field range.

[0071] Specifically, in the photographing method provided by this application, acamera associated with each camera icon is used for photographing in a different depthof-field range to obtain one image with a corresponding depth-of-field range. Becausethe first region of the target control corresponds to an entire depth-of-field range, atleast one camera is associated with each depth-of-field range for photographing. Acomplete target image can be obtained by compositing images that are obtained bycameras corresponding to all depth-of-field ranges.

[0072] For example, in a case that the target control being set is shown in the rightfigure in FIG. 2, the camera icon with the display number 1, the camera icon with thedisplay number 2, and the camera icon with the display number 3 are associated withthree different cameras of the terminal, denoted as camera a, camera b, and camera c,respectively. During actual photographing, the camera a is controlled to performphotographing in the depth-of-field range with 0.1-1x focal length to obtain a firstframe of image, the camera b is controlled to perform photographing in the depth-of field range with 1-10x focal length to obtain a second frame of image, and the camerac is controlled to perform photographing in the depth-of-field range with focal lengthgreater than 10x to obtain a third frame of image. Finally, the three frames arecomposited to output the target image.

[0073] Assuming that the first frame of image is an image containing a river in FIG. 2, the second frame of image is an image containing woods in FIG. 2, and the thirdframe of image is an image containing starry sky in FIG. 2. The foregoing imagecompositing method includes: splicing the images of the three different depth-of-fieldranges, fusing overlapping portions, and outputting the target image.

[0074] In the photographing method provided by this application, a plurality ofcameras on the terminal may be selected simultaneously by using the target control, anda photographing depth of field for each camera can be set, thereby satisfyingphotographing needs of different users and also providing a convenient and accuratemulti-camera switching method. Specifically, this helps the user add new operationmodes, so that the user may perform an interactive operation in a preview window toimplement camera switching and photographing in some special scenarios. In addition,scenes within a respective depth-of-field range may be photographed by using a cameracorresponding to each camera icon, so as to photograph and composite clear images ofdifferent depths of field to output the target image. This effectively improvesconvenience of multi-camera operation of the user and effectively improves theimaging quality.

[0075] Based on content of the foregoing embodiment, as an optional embodiment,the first input includes a first sub-input, and the first sub-input is an input from the useron K target positions of the target control. T camera icons are included on the targetcontrol before the first sub-input is received.

[0076] The displaying M camera icons in a second region of the target control inresponse to the first input may include:in response to the first sub-input, adding K camera icons to K targetpositions in the second region; andupdating depth-of-field ranges corresponding to the K camera icons and Tcamera icons based on the K target positions; wherea start depth-of-field value of the i-th depth-of-field range corresponding tothe i-th camera icon in the updated K camera icons is a depth-of-field valuecorresponding to a target position at which the i-th camera icon is located; in a case thatthe i-th camera icon has adjacent camera icons on both sides, an end depth-of-fieldvalue of the i-th depth-of-field range is a depth-of-field value corresponding to a targetposition in which the (i+1)-th camera icon in a depth-of-field value increasing directionis located; and in a case that the i-th camera icon has no adjacent camera icon in thedepth-of-field value increasing direction, the end depth-of-field value of the i-th depthof-field range is infinite; where the i-th camera icon is any one of the K camera icons,the M cameras include the K cameras and the T cameras, and M=K+T.

[0077] In the photographing method provided by this application, the first input isperformed on the target control to add at least one camera icon in the second region ofthe target control. Correspondingly, within the first region of the target control, a depthof-field value is added to a target position corresponding to the added camera icon, andeach camera icon added is associated with one of other cameras of the terminal.

[0078] For example, FIG. 3 is a second schematic diagram of a screen for aprocedure of setting a target control according to this application. As shown in FIG. 3,in a case that K=1 and T=3, that is, in a case that three camera icons (which are threecamera icons with display numbers 1, 2, and 3) are included in the target control beforethe first sub-input is received, one camera icon is added to the second region, which isspecifically as follows:

[0079] As shown in the left figure in FIG. 3, in a case that the target controldisplayed on the current screen is a progress bar, the terminal invokes a total of threecameras (denoted as cameras a, b, and c) respectively associated with three cameraicons with display numbers 1 to 3 in the second region. The camera icon with the displaynumber 1 corresponds to a depth-of-field value of 0.1, the camera icon with the displaynumber 2 corresponds to a depth-of-field value of 1, and the camera icon with thedisplay number 3 corresponds to a depth-of-field value of 10. To be specific, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 1 is a depth-of-field range with 0.1-1x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 2 is a depth-of-field range with 1-10x focal length, and aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 3 is a depth-of-field range with focal length greater than 10x.

[0080] In a case that the first sub-input is pressing a target position 301 in the firstregion with a finger by the user and then sliding the finger to the second region for apredetermined distance, one camera icon is added to a position corresponding to thetarget position 301 in the second region. Optionally, the added camera icon is numberedthrough incrementing based on numbers of the original camera icons, that is, a displaynumber of the newly added camera icon is 4. To be specific, a camera icon with thedisplay number 4 is added to a region 302 in the right figure in FIG. 3. Based on theforegoing operations for invoking three cameras of the terminal, a camera (denoted asa camera d) associated with the camera icon with the display number 4 is additionallyinvoked.

[0081] Corresponding to the added camera icon 302, a new depth-of-field value303 is added to the first region, where the depth-of-field value 303 corresponds to thetarget position. For example, the target position in FIG. 3 corresponds to a depth-offield value 303 of 5 in the first region.

[0082] Correspondingly, because the newly added camera icon with the displaynumber 4 is located between the camera icon with the display number 2 and the cameraicon with the display number 3 and its corresponding depth-of-field value is set to 5,the depth-of-field range with 1-10x focal length corresponding to the original cameranumber 2 is divided into a depth-of-field range with 1-5x focal length and a depth-offield range with 5-10x focal length that are adjacent.

[0083] The first sub-input is performed to set the target control. The second regionincludes four camera icons with display numbers 1 to 4. The camera icon with thedisplay number 1 corresponds to a depth-of-field value of 0.1, the camera icon with thedisplay number 2 corresponds to a depth-of-field value of 1, the camera icon with thedisplay number 4 corresponds to a depth-of-field value of 5, and the camera icon withthe display number 3 corresponds to a depth-of-field value of 10. In this case, aphotographing depth-of-field range of the camera a corresponding to the camera iconwith the display number 1 is a depth-of-field range with 0.1-1x focal length, aphotographing depth-of-field range of the camera b corresponding to the camera iconwith the display number 2 is a depth-of-field range with 1-5x focal length, aphotographing depth-of-field range of the camera d corresponding to the camera iconwith the display number 4 is a depth-of-field range with 5-10x focal length, and aphotographing depth-of-field range of the camera c corresponding to the camera iconwith the display number 3 is a depth-of-field range with focal length greater than 10x.

[0084] For example, FIG. 4 is a third schematic diagram of a screen for a procedureof setting a target control according to this application. As shown in FIG. 4, in a casethat K=2 and T=3, that is, in a case that three camera icons (which are three cameraicons with display numbers 1, 2, and 3) are included in the target control before the firstsub-input is received, two camera icons are added simultaneously to the second region,which is specifically as follows:

[0085] As shown in the left figure in FIG. 4, in a case that the target controldisplayed on the current screen is a progress bar, the first sub-input is simultaneouslypressing two different target positions of a preset position 401 in the first region by theuser with two fingers and then sliding along a direction to the second region for a presetdistance. Assuming that depth-of-field values corresponding to the target positions are5 and 6 in the first region, a camera icon 402 and a camera icon 403 are added at thesame time to positions, corresponding to the two target positions, in the second region.Optionally, the new camera icons are numbered through incrementing based onnumbers of the original camera icons. To be specific, the two new camera icons havedisplay numbers 4 and 5. Based on the foregoing operations for invoking three camerasof the terminal, cameras (denoted as cameras d and e) associated with the camera iconswith the display numbers 4 and 5 are additionally invoked.

[0086] Correspondingly, after the camera icon 402 and the camera icon 403 areadded simultaneously, the depth-of-field ranges corresponding to the camera icons areas follows:

[0087] The camera icon with the display number 1 corresponds to a depth-of-fieldrange of 0.1-1x focal length, the camera icon with the display number 2 corresponds toa depth-of-field range with 1-5x focal length, the camera icon with the display number4 corresponds to a depth-of-field range with 5-6x focal length, the camera icon withthe display number 5 corresponds to a depth-of-field range with 6-10x focal length, andthe camera icon with the display number 3 corresponds to a depth-of-field range withfocal length greater than 10x.

[0088] The first sub-input is performed to set the target control. The second regionincludes five camera icons with display numbers 1 to 5. The camera icon with thedisplay number 1 corresponds to a depth-of-field value of 0.1, the camera icon with thedisplay number 2 corresponds to a depth-of-field value of 1, the camera icon with thedisplay number 4 corresponds to a depth-of-field value of 5, the camera icon with thedisplay number 5 corresponds to a depth-of-field value of 6, and the camera icon withthe display number 3 corresponds to a depth-of-field value of 10. In this case, aphotographing depth-of-field range of the camera a corresponding to the camera iconwith the display number 1 is a depth-of-field range with 0.1-1x focal length, aphotographing depth-of-field range of the camera b corresponding to the camera iconwith the display number 2 is a depth-of-field range with 1-5x focal length, aphotographing depth-of-field range of the camera d corresponding to the camera iconwith the display number 4 is a depth-of-field range with 5-6x focal length, aphotographing depth-of-field range of the camera e corresponding to the camera iconwith the display number 5 is a depth-of-field range with 6-10x focal length, and aphotographing depth-of-field range of the camera c corresponding to the camera iconwith the display number 3 is a depth-of-field range with focal length greater than 10x.

[0089] Therefore, in the photographing method provided by this application, theuser may perform the first sub-input to set the target control, so as to flexibly invokemore cameras on the terminal. In this way, cameras corresponding to different depthof-field ranges and the number of cameras can be user-defined, or invoking of one ormore cameras can be disabled, providing the user with a convenient way to operate aplurality of cameras.

[0090] Optionally, the user may alternatively operate a plurality of camera icons inthe second region at the same time with a plurality of fingers by using the foregoingoperation method.

[0091] Optionally, the first sub-input may be pressing the target position in thesecond region by the user and then sliding along a direction to the first region for apreset distance. In response to the first sub-input, a camera icon is added directly at thetarget position and a depth-of-field value is correspondingly added to a depth-of-fieldrange, corresponding to the target position, in the first region.

[0092] Optionally, the first sub-input may be a touch-and-hold operation performedon a target position in the second region by the user, so as to add one camera icon at thetarget position in response to the first sub-input.

[0093] Optionally, the first sub-input may be a touch-and-hold operation performedon a target position in the first region by the user, so as to add one depth-of-field valueat the target position and correspondingly add one camera icon within the second region.Duration of the touch-and-hold operation may be set according to actual requirements,for example, 1 second.

[0094] In the photographing method provided in this application, a camera icon isadded to the target control to implement the purpose of invoking more cameras on theterminal. During addition of new cameras, setting of a photographing depth-of-fieldrange for the added camera is completed. The user can perform operations on the targetcontrol to implement operations of invoking and switching of a plurality of cameras,setting of photographed objects, and disabling, so as to provide the user with a way toquickly perform setting for multi-camera photography. This can effectively improveoperation efficiency of the user and reduce an operation time for the user.

[0095] Based on content of the foregoing embodiment, as an optional embodiment,the first input includes a second sub-input and a third sub-input, and the target controlincludes T camera icons before the first input is received. The displaying M cameraicons in a second region of the target control in response to the first input may include:displaying Q candidate camera icons on the camera preview screen inresponse to the second sub-input;receiving a third sub-input from the user on Z target camera icons in the Qcandidate camera icons; andin response to the third sub-input, adding the Z target camera icons to a targetposition in the second region, where the target position is determined based on an inputposition of the second sub-input, the M cameras include the Z cameras and the Tcameras, and M=Z+T.

[0096] Optionally, the second sub-input may be an input of pressing the targetposition by the user, and the third sub-input may be a slide input of dragging at leastone of the candidate camera icons to the target position by the user.

[0097] Specifically, in the photographing method provided by this application, twoinputs are performed on the target control to add one camera icon to the second regionof the target control, implementing the purpose of adding and invoking one camera onthe terminal. The purpose of the second sub-input is to display Q candidate cameraicons on the camera preview screen; and the purpose of the third sub-input is to selectand add Z of the Q candidate camera icons to the target position in the second region.

[0098] FIG. 5 is a fourth schematic diagram of a screen for a procedure of setting atarget control according to this application. As shown in FIG. 5, a method forimplementing addition of one camera icon to the target position in the second region ina case of Q=2 and T=1 is provided. Specifically, as shown in the left figure in FIG. 5,before setting for the target control, a total of three cameras (denoted as cameras a, b,and c) of the terminal are invoked, being respectively associated with three cameraicons with display numbers 1 to 3 in the second region. The camera icon with the displaynumber 1 corresponds to a depth-of-field value of 0.1, the camera icon with the displaynumber 2 corresponds to a depth-of-field value of 1, and the camera icon with thedisplay number 3 corresponds to a depth-of-field value of 10. To be specific, aphotographing depth-of-field range of the camera a corresponding to the camera iconwith the display number 1 is a depth-of-field range with 0.1-1x focal length, aphotographing depth-of-field range of the camera b corresponding to the camera iconwith the display number 2 is a depth-of-field range with 1-10x focal length, and aphotographing depth-of-field range of the camera c corresponding to the camera iconwith the display number 3 is a depth-of-field range with focal length greater than 10x.

[0099] In a case that the target control displayed on the current screen is a progressbar, the second sub-input is pressing a target position 501 in the first region by the userwith a finger and then sliding along a direction to the second region for a preset distance,in response to the second input, two camera preview icons are displayed at a position502 corresponding to the target position 501 in the camera preview screen. As shownin the middle figure in FIG. 5, the display numbers of the two camera preview iconsmay be sequentially numbered on the basis of the current camera icons in the targetcontrol. If three camera icons with display numbers 1, 2, and 3 already exist in the targetcontrol, the two camera preview icons may be camera preview icons with displaynumbers 4 and 5.

[00100] Further, the user may perform the third sub-input to select and add one ofthe two camera preview icons to the target position as a new camera icon.

[00101] Optionally, as shown in the right figure in FIG. 5, the third sub-input maybe a tap input, for example, the user may tap the camera preview icon with the displaynumber 4 to add it to a region 503.

[00102] Optionally, the third sub-input may alternatively be a slide input, forexample, the user may press the camera preview icon with the display number 4 with afinger and slide toward the target position to add it to the target position.

[00103] In a case that the added camera icon with the display number 4 correspondsto a depth-of-field value of 5, a total of four cameras (denoted as cameras a, b, c, and d)of the terminal are invoked by the terminal, being respectively associated with fourcamera icons with display numbers 1 to 4 in the second region. The camera icon withthe display number 1 corresponds to a depth-of-field value of 0.1, the camera icon withthe display number 2 corresponds to a depth-of-field value of 1, the camera icon withthe display number 4 corresponds to a depth-of-field value of 5, and the camera iconwith the display number 3 corresponds to a depth-of-field value of 10. To be specific, aphotographing depth-of-field range of the camera a corresponding to the camera iconwith the display number 1 is a depth-of-field range with 0.1-1x focal length, aphotographing depth-of-field range of the camera b corresponding to the camera iconwith the display number 2 is a depth-of-field range with 1-5x focal length, aphotographing depth-of-field range of the camera d corresponding to the camera iconwith the display number 4 is a depth-of-field range with 5-10x focal length, and aphotographing depth-of-field range of the camera c corresponding to the camera iconwith the display number 3 is a depth-of-field range with focal length greater than 10x.

[00104] In the photographing method provided by this application, a method foradding a camera is provided. The user may perform selection and then the systemrecommends an appropriate camera icon based on an input position of the user toquickly complete addition of the camera and setting of a photographing depth-of-fieldrange, thereby effectively reducing an operation time for the user.

[00105] Based on content of the foregoing embodiment, as an optional embodiment,the displaying Q candidate camera icons on the camera preview screen in response tothe second sub-input includes:obtaining a depth-of-field value corresponding to an input position of thesecond sub-input; anddisplaying the Q candidate camera icons in a case that the depth-of-fieldvalue is within a nominal depth-of-field range of cameras corresponding to the Qcandidate camera icons.

[00106] Specifically, in the photographing method provided by this application, atarget position of the second sub-input in the first region is first obtained and then adepth-of-field value of the target position is obtained.

[00107] Further, the nominal depth-of-field range of each camera not yet invoked bythe terminal is obtained. In a case that the depth-of-field value of the target positionfalls within a nominal depth-of-field range of a specific camera, one camera icon isassociated with the camera, and the camera icon is displayed in the region 502 as oneof the Q candidate camera icons. If the depth-of-field value of the target position fallswithin nominal depth-of-field ranges of a plurality of cameras, one camera icon isassociated with each of the plurality of cameras and displayed in the region 502.

[00108] For example, in FIG. 5, if a depth-of-field value corresponding to the targetposition 501 is 5, two candidate camera icons (candidate camera icons with displaynumber 4 and display number 5) are displayed in the region 502 after the user performsthe second sub-input. For example, photographing depth-of-field ranges of camerascorresponding to the two candidate camera icons are a depth-of-field range of 4-6xfocal length and a depth-of-field range of 3-7x focal length.

[00109] Further, in a case that the third sub-input received from the user is a tap inputon the candidate camera icon with the display number 4, the candidate camera icon isadded to the region 503 in the second region.

[00110] Optionally, in a case that the received third sub-input from the user is anoperation of dragging the candidate camera icon with the display number 4 by the userto a position a in the second region and dragging the candidate camera icon with thedisplay number 5 to a position b in the second region, the camera icon with the displaynumber 4 is added to the position a in the second region and the camera icon with thedisplay number 5 is added to the position b in the second region. Correspondingly, adepth-of-field value corresponding to the camera icon with the number 4 is a depth-offield value, corresponding to the position a, in the depth-of-field range in the first region,and a depth-of-field value corresponding to the camera icon with the number 5 is adepth-of-field value, corresponding to the position b, in the depth-of-field range in thefirst region.

[00111] Based on content of the foregoing embodiment, as an optional embodiment,the target control includes M camera icons before the first input is received, the firstinput includes a fourth sub-input, and the fourth sub-input is an input on a first cameraicon and a second camera icon.

[00112] The displaying M camera icons in a second region of the target control inresponse to the first input may include:exchanging display positions of the first camera icon and the second cameraicon in response to the fourth sub-input.

[00113] Optionally, the fourth sub-input is tapping both the first camera icon and thesecond camera icon by the user.

[00114] In the photographing method provided by this application, the user performsan input on any two camera icons, so as to quickly exchange display positions of thetwo camera icons, and exchange photographing depth-of-field ranges of the camerascorresponding to the two camera icons. This facilitates quick exchange and adjustmentof display positions for two related photographed objects by the user duringphotographing.

[00115] FIG. 6 is a fifth schematic diagram of a screen for a procedure of setting atarget control according to this application. As shown in the left figure in FIG. 6, afourth sub-input is received from the user in a case that the target control on the currentscreen is a progress bar. The fourth sub-input may be simultaneously tapping both acamera icon with a display number 4 and a camera icon with a display number 3 in aregion 601 by the user. As shown in the right figure in FIG. 6, in response to the fourthsub-input, positions of the camera icon with the display number 4 and the camera iconwith the display number 3 are exchanged.

[00116] Specifically, as shown in the left figure in FIG. 6, before setting for the targetcontrol is performed, a total of four cameras (denoted as cameras a, b, c, and d) of theterminal are invoked by the terminal, being respectively associated with four cameraicons with display numbers 1 to 4 in the second region. The camera icon with the displaynumber 1 corresponds to a depth-of-field value of 0.1, the camera icon with the displaynumber 2 corresponds to a depth-of-field value of 1, the camera icon with the displaynumber 4 corresponds to a depth-of-field value of 5, and the camera icon with thedisplay number 3 corresponds to a depth-of-field value of 10. To be specific, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 1 is a depth-of-field range with 0.1-1x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 2 is a depth-of-field range with 1-5x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 4 is a depth-of-field range with 5-10x focal length, and aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 3 is a depth-of-field range with focal length greater than 10x.

[00117] After setting for the target control is performed by the fourth sub-input, thefour cameras are respectively associated with the four camera icons with the displaynumbers 1 to 4 in the second region. The camera icon with the display number 1corresponds to a depth-of-field value of 0.1, the camera icon with the display number 2corresponds to a depth-of-field value of 1, the camera icon with the display number 3corresponds to a depth-of-field value of 5, and the camera icon with the display number4 corresponds to a depth-of-field value of 10. To be specific, a photographing depth-offield range of the camera corresponding to the camera icon with the display number 1is a depth-of-field range with 0.1-1x focal length, a photographing depth-of-field rangeof the camera corresponding to the camera icon with the display number 2 is a depthof-field range with 1-5x focal length, a photographing depth-of-field range of thecamera corresponding to the camera icon with the display number 3 is a depth-of-fieldrange with 5-10x focal length, and a photographing depth-of-field range of the cameracorresponding to the camera icon with the display number 4 is a depth-of-field rangewith focal length greater than 10x.

[00118] Optionally, in order to prevent user misoperation, the method for settingexchange of the two camera icons may alternatively be: pressing the camera icon withthe display number 4 and the camera icon with the display number 3 simultaneouslywith fingers by the user and holding them for a period of time, so as to exchangepositions of the two target camera icons.

[00119] Optionally, the method for setting exchange of the two camera icons mayalternatively be: pressing the camera icon with the display number 4 and the cameraicon with the display number 3 simultaneously with fingers by the user and sliding to amiddle position between the two camera icons, so as to exchange positions of the twotarget camera icons.

[00120] Optionally, the foregoing method for setting exchange of the two cameraicons may alternatively be: pressing the camera icon with the display number 3 with afinger by the user and moving along a direction to the camera icon with the displaynumber 4 to cross the camera icon with the display number 4 and reach the oppositeside of the camera icon with the display number 4, so as to exchange positions of thetwo target camera icons.

[00121] Similarly, the foregoing method for setting exchange of the two cameraicons may alternatively be: pressing the camera icon with the display number 4 with afinger by the user and moving along a direction to the camera icon with the displaynumber 3 to cross the camera icon with the display number 3 and reach the oppositeside of the camera icon with the display number 3, so as to exchange positions of thetwo target camera icons.

[00122] In the photographing method provided by this application, the userexchanges two camera icons directly in the target control to quickly complete setting ofthe photographing depth-of-field ranges for the cameras corresponding to the cameraicons, effectively reducing the time operation of the user and facilitating the operation.

[00123] Based on content of the foregoing embodiment, as an optional embodiment,the target control includes M camera icons before the first input is received, the firstinput includes a fifth sub-input, and the fifth sub-input is an input on a third cameraicon.

[00124] The displaying M camera icons in a second region of the target control inresponse to the first input may include:updating the third camera icon to a fourth camera icon in response to thefifth sub-input, where the fourth camera icon is determined based on an inputcharacteristic of the first input.

[00125] Optionally, the fifth sub-input is performing a rotate input while pressing thecamera icon.

[00126] In the photographing method provided by this application, an input isreceived from the user to directly adjust the third camera icon to the fourth camera icon,that is, the photographing depth-of-field range for the camera corresponding to the thirdcamera icon is changed to that for the camera corresponding to the fourth camera icon.

[00127] Specifically, FIG. 7 is a sixth schematic diagram of a screen for a procedureof setting a target control according to this application. As shown in the left figure inFIG. 7, in a case that a target control displayed on a current screen is a progress bar andthat a camera icon in a region 701 is determined to be a third camera icon, the userpresses a camera icon with a display number 4 with a finger and makes rotation, forexample, according to a preset direction, clockwise, or counterclockwise, so as to setthe camera icon with the display number 4 to another camera icon and display it in theregion 701 within the second region.

[00128] An input characteristic of the first input may be a characteristic of an inputmode, input duration, or input direction of the first input.

[00129] Optionally, in a case that the input mode of the first input is an input ofpressing the camera icon and making rotation, it may be determined, based on adirection of the rotation input, whether to perform an increase operation or a decreaseoperation on the display number of the camera icon. For example, it may be set thatwhen the camera icon is pressed and rotated clockwise, the display number of thecamera icon is increased accordingly. For example, when being pressed and rotatedclockwise, the camera icon of the display number 4 may be replaced with a camera icon5. Further, for example, in a case that the input mode of the first input is touching andholding the camera icon with one finger by the user, the display number of the cameraicon is increased evenly according to an input duration of the first input and the displaynumber flashes at a corresponding position until the end of the first input.

[00130] Optionally, in the case that the input mode of the first input is touching andholding the camera icon with one finger by the user while pressing a volume up buttonwith another finger, the display number of the camera icon is increased based on thenumber of times of pressing the volume up button. If the camera icon with the displaynumber 4 is pressed and the volume up button is pressed twice, the camera icon withthe display number 4 may be replaced with a camera icon with 6.

[00131] Correspondingly, in the case that the input mode of the first input is touchingand holding the camera icon with one finger by the user while pressing a volume downbutton with another finger, the display number of the camera icon is decreased basedon the number of times of pressing the volume down button. If the camera icon withthe display number 4 is pressed and the volume down button is pressed twice, thecamera icon with the display number 4 may be replaced with a camera icon with 2.

[00132] Optionally, if an added camera icon is already present in the second region,a selection menu is displayed to the user so that the user determines a specific settingposition of the camera icon according to the selection menu. As in the foregoingembodiment, when being pressed and rotated counterclockwise, if the camera icon withthe display number 4 may be replaced with a camera with a display number 3. In a casethat the camera with the display number 3 is already present in the second region, aselection menu is displayed on the current display screen to prompt the user todetermine a specific position of the camera with the display number 3 after replacement.

[00133] Optionally, a magnitude of increase for the camera icon may alternativelybe determined based on an angle of the rotate input, for example, for every 15° increaseof an angle of rotation, the camera icon is incremented by 1 accordingly. As shown inthe right figure in FIG. 7, in a case that the angle of rotation may be between 30° and45°, the original camera icon with the display number 4 is replaced with a camera iconwith a display number 6.

[00134] Specifically, as shown in the left figure in FIG. 7, before setting for the targetcontrol is performed, a total of four cameras (denoted as cameras a, b, c, and d) of theterminal are invoked by the terminal, being respectively associated with four cameraicons with display numbers 1 to 4 in the second region. The camera icon with the displaynumber 1 corresponds to a depth-of-field value of 0.1, the camera icon with the displaynumber 2 corresponds to a depth-of-field value of 1, the camera icon with the displaynumber 3 corresponds to a depth-of-field value of 5, and the camera icon with thedisplay number 4 corresponds to a depth-of-field value of 10. To be specific, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 1 is a depth-of-field range with 0.1-1x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 2 is a depth-of-field range with 1-5x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 3 is a depth-of-field range with 5-10x focal length, and aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 4 is a depth-of-field range with focal length greater than 10x.

[00135] After setting for the target control is performed by the fifth sub-input, fourcameras are respectively associated with four camera icons with display numbers 1, 2,3, and 6 in the second region. The camera icon with the display number 1 correspondsto a depth-of-field value of 0.1, the camera icon with the display number 2 correspondsto a depth-of-field value of 1, the camera icon with the display number 3 correspondsto a depth-of-field value of 5, and the camera icon with the display number 6corresponds to a depth-of-field value of 10. To be specific, a photographing depth-offield range of the camera corresponding to the camera icon with the display number 1is a depth-of-field range with 0.1-1x focal length, a photographing depth-of-field rangeof the camera corresponding to the camera icon with the display number 2 is a depth of-field range with 1-5x focal length, a photographing depth-of-field range of thecamera corresponding to the camera icon with the display number 3 is a depth-of-fieldrange with 5-10x focal length, and a photographing depth-of-field range of the camera(denoted as camera e) corresponding to the camera icon with the display number 6 is adepth-of-field range with focal length greater than 10x.

[00136] It should be noted that, due to change in the number of the camera icon, acamera with a photographing depth-of-field range being a depth-of-field range withfocal length greater than 10x is changed from the original camera d to the camera e, andinvoking of the camera d is stopped.

[00137] In the photographing method provided by this application, the user maychange a camera icon in the target control to implement the purpose of changing acamera, and the user may quickly complete camera replacement and configuration ofcameras in the depth-of-field range, effectively reducing an operation time of the userand improving efficiency of setting photographing parameters of the camera by the user.

[00138] Based on content of the foregoing embodiment, as an optional embodiment,the target control includes M camera icons before the first input is received, and thefirst input includes a sixth sub-input.

[00139] The displaying M camera icons in a second region of the target control inresponse to the first input may include:adjusting, in response to the sixth sub-input, positions of all M camera iconsin the second region to be system default positions, where the system default positionis determined based on at least one of a current photographing scene characteristic andnominal depth-of-field ranges of M cameras corresponding to the M camera icons.

[00140] Optionally, the sixth sub-input of the user may be a slide input in the secondregion.

[00141] In the photographing method provided by this application, the sixth subinput is received from the user, so as to rearrange, based on a moving track of the sixthsub-input, all camera icons along the track according to system default positions.

[00142] For example, FIG. 8 is a seventh schematic diagram of a screen for aprocedure of setting a target control according to this application. As shown in the leftfigure in FIG. 8, in a case that a target control displayed on a current screen is a progressbar, the sixth sub-input may be an operation of quickly sliding a finger from one sideof a region 801 in the second region to the other side in the region of the target controlby the user, and the sliding track passes through four camera icons with display numbers1-4 in sequence. In response to the sixth sub-input, the four camera icons are rearrangedaccording to the system default positions.

[00143] The system default position is determined based on a nominalphotographing depth-of-field range for a camera corresponding to each camera icon anda current photographing scene characteristic.

[00144] The scene characteristic includes a current photographed object, currentphotographing light, and the like.

[00145] For example, in a case that the photographed object is a plurality of objectsincluding a river near, woods slightly far, and starry sky in the distance, a photographingdepth-of-field range for the camera icon with the display number 3 is a depth-of-fieldrange with 6-8x focal length, and a photographing depth-of-field range for the cameraicon with the display number 4 is a depth-of-field range with 12-14x focal length, afterthe sixth sub-input is received, camera icons in a region 802 and a region 803 arereadjusted. A result of the adjustment is shown in the right figure in FIG. 8.

[00146] After the adjustment, the camera icon with the display number 3 is used forphotographing in the depth-of-field range corresponding to the woods, and the cameraicon with the display number 4 is used for photographing in the depth-of-field rangecorresponding to the starry sky. In this way, clearer images can be obtained as comparedto a photographing mode before the adjustment.

[00147] Specifically, as shown in the left figure in FIG. 8, before setting for the targetcontrol is performed, a total of four cameras (denoted as cameras a, b, c, and d) of theterminal are invoked by the terminal, being respectively associated with four cameraicons with display numbers 1 to 4 in the second region. The camera icon with the displaynumber 1 corresponds to a depth-of-field value of 0.1, the camera icon with the displaynumber 2 corresponds to a depth-of-field value of 1, the camera icon with the displaynumber 4 corresponds to a depth-of-field value of 5, and the camera icon with thedisplay number 3 corresponds to a depth-of-field value of 10. To be specific, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 1 is a depth-of-field range with 0.1-1x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 2 is a depth-of-field range with 1-5x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 4 is a depth-of-field range with 5-10x focal length, and aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 3 is a depth-of-field range with focal length greater than 10x.

[00148] After setting for the target control is performed by the sixth sub-input, fourcameras are respectively associated with four camera icons with display numbers 1 to4 in the second region. The camera icon with the display number 1 corresponds to adepth-of-field value of 0.1, the camera icon with the display number 2 corresponds toa depth-of-field value of 1, the camera icon with the display number 3 corresponds to adepth-of-field value of 5, and the camera icon with the display number 4 correspondsto a depth-of-field value of 10. To be specific, a photographing depth-of-field range ofthe camera corresponding to the camera icon with the display number 1 is a depth-offield range with 0.1-1x focal length, a photographing depth-of-field range of the cameracorresponding to the camera icon with the display number 2 is a depth-of-field rangewith 1-5x focal length, a photographing depth-of-field range of the cameracorresponding to the camera icon with the display number 3 is a depth-of-field rangewith 5-10x focal length, and a photographing depth-of-field range of the cameracorresponding to the camera icon with the display number 4 is a depth-of-field rangewith focal length greater than 10x.

[00149] It should be noted that in this application, through the sixth sub-input, thephotographing depth-of-field ranges corresponding to the original camera c and camerad are exchanged automatically by the terminal based on nominal depth-of-field rangesof the original camera c and camera d and the current photographing scenecharacteristics, thereby further improving the imaging quality.

[00150] Reset content may include not only an arrangement sequence of the cameraicons, but also depth-of-field values (that is, spacing between the camera icons)corresponding to the camera icons.

[00151] Optionally, the sixth sub-input may be a quick slide from the left side to theright side of the second region or from the right side to the left side of the second region.

[00152] Optionally, based on the track of the sixth sub-input, the camera iconsthrough which the track passes are rearranged according to a system default optimaldistance, while camera icons through which the tack of the sixth sub-input does not passare not rearranged.

[00153] Optionally, a sliding speed of the sixth sub-input may alternatively belimited in a way that the sixth sub-input can be identified by the terminal only if thesliding speed of the sixth sub-input is greater than a preset sliding speed, so as torearrange related target camera icons according to the system default positions.

[00154] According to the photographing method provided by this application, amethod for quickly restoring all started cameras to the system default optimal settingsis provided for the user, and the user may quickly complete resetting of all cameras,effectively reducing an operation time of the user and effectively improving the imagingquality.

[00155] Based on content of the foregoing embodiment, as an optional embodiment,the target control includes T camera icons before the first input is received, the firstinput includes a seventh sub-input, and the seventh sub-input is an input on P cameraicons on the target control by the user.

[00156] The displaying M camera icons in a second region of the target control inresponse to the first input may include:deleting the P camera icons in the second region in response to the seventhsub-input, where the T cameras include the P cameras, M=T-P, and P is a positive integer.

[00157] The seventh sub-input may be a slide input of dragging the camera icon.

[00158] Specifically, according to the photographing method provided by thisapplication, the seventh sub-input is received from the user, so as to delete redundantcamera icons to disable invoking of the camera corresponding to the camera icon.

[00159] For example, FIG. 9 is an eighth schematic diagram of a screen for aprocedure of setting a target control according to this application. As shown in the leftfigure in FIG. 9, in a case that the target control displayed on the current screen is aprogress bar, the seventh sub-input may be an operation of pressing a camera icon witha display number 4 in a region 901 with a finger by the user and sliding down for apreset distance. In response to the seventh sub-input, the camera icon with the displaynumber 4 is deleted. As shown in the right figure in FIG. 9, the original region 901 isblank after the camera icon with the display number 4 is deleted.

[00160] Correspondingly, after the camera icon with the display number 4 is deleted,the photographing depth-of-field range of the camera corresponding to the originalcamera icon with the display number 4 is added into a depth-of-field range of a cameracorresponding to a previous camera icon adjacent thereto.

[00161] Specifically, the depth-of-field range corresponding to the original cameraicon with the display number 4 is a depth-of-field range of 5-10x focal length; and theprevious camera icon adjacent thereto is the camera icon with the display number 2,with the corresponding depth-of-field range being a depth-of-field range of 1-5x focallength. After deletion of the camera icon with the display number 4, the depth-of-fieldrange corresponding to the camera icon with the display number 2 is changed to a depthof-field range of 1-10x focal length accordingly.

[00162] Specifically, as shown in the left figure in FIG. 9, before setting for the targetcontrol is performed, a total of four cameras (denoted as cameras a, b, c, and d) of theterminal are invoked by the terminal, being respectively associated with four cameraicons with display numbers 1 to 4 in the second region. The camera icon with the displaynumber 1 corresponds to a depth-of-field value of 0.1, the camera icon with the displaynumber 2 corresponds to a depth-of-field value of 1, the camera icon with the displaynumber 4 corresponds to a depth-of-field value of 5, and the camera icon with thedisplay number 3 corresponds to a depth-of-field value of 10. To be specific, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 1 is a depth-of-field range with 0.1-1x focal length, a photographing depth-of-field range of the camera corresponding to the camera iconwith the display number 2 is a depth-of-field range with 1-5x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 4 is a depth-of-field range with 5-10x focal length, and aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 3 is a depth-of-field range with focal length greater than 10x.

[00163] After the target control is set using the seventh sub-input, the original cameraicon with the display number 4 and a corresponding camera d are deleted, remainingthree cameras are associated with three camera icons with display numbers 1, 2, and 3in the second region, respectively. In this case, the camera icon with the display number1 corresponds to a depth-of-field value of 0.1, the camera icon with the display number2 corresponds to a depth-of-field value of 1, and the camera icon with the displaynumber 3 corresponds to a depth-of-field value of 10. To be specific, a photographingdepth-of-field range of the camera corresponding to the camera icon with the displaynumber 1 is a depth-of-field range with 0.1-1x focal length, a photographing depth-of field range of the camera corresponding to the camera icon with the display number 2is a depth-of-field range with 1-10x focal length, and a photographing depth-of-fieldrange of the camera corresponding to the camera icon with the display number 3 is adepth-of-field range with focal length greater than 10x.

[00164] It should be noted that, for the photographing method provided in this application, the user may alternatively perform input simultaneously with P fingers, anddeletes P camera icons by using the foregoing operation method.

[00165] For example, FIG. 10 is a ninth schematic diagram of a screen for aprocedure of setting a target control according to this application. As shown in the leftfigure in FIG. 10, in a case that the target control displayed on the current screen is aprogress bar, if the seventh sub-input is an operation of simultaneously pressing acamera icon with a display number 2 in a region 1001 and a camera icon with a displaynumber 4 in a region 1002 with fingers by the user and sliding down simultaneouslyfor a preset distance, the camera icon with the display number 2 and the camera iconwith the display number 4 are deleted simultaneously in response to the seventh sub input. As shown in the right figure in FIG. 10, a region 1003 is blank after the targetcontrol is deleted.

[00166] Correspondingly, after the camera icon with the display number 2 and thecamera icon with the display number 4 are deleted, photographing tasks forphotographing ranges of their corresponding cameras are performed by camerascorresponding to previous camera icons adjacent to them.

[00167] Specifically, after the camera icon with the display number 2 and the cameraicon with the display number 4 are deleted, the photographing ranges of the camerascorresponding to the camera icon with the display number 2 and the camera icon withthe display number 4 are added to the corresponding photographing range of the cameracorresponding to the camera icon with the display number 1.

[00168] Specifically, as shown in the right figure in FIG. 10, after the target controlis set using the seventh sub-input, the original camera icons with the display number 2and display number 4 and corresponding cameras b and d are deleted, remaining twocameras are associated with two camera icons with display numbers 1 and 3 in the second region, respectively. In this case, the camera icon with the display number 1corresponds to a depth-of-field value of 0.1, and the camera icon with the displaynumber 3 corresponds to a depth-of-field value of 10. To be specific, a photographingdepth-of-field range of the camera corresponding to the camera icon with the displaynumber 1 is a depth-of-field range with 0.1-10x focal length, and a photographingdepth-of-field range of the camera corresponding to the camera icon with the displaynumber 3 is a depth-of-field range with focal length greater than 10x.

[00169] Optionally, this application does not specifically limit a sliding direction ofsliding after pressing the camera icon to be deleted is performed. It may be a slide downmode in the foregoing embodiment or may be sliding up or rapid sliding in any otherdirection (except sliding in the first region).

[00170] In the photographing method provided by this application, a method fordeleting camera icons in the target control to quickly stop using some cameras isprovided, so as to provide the user with a method for quickly performing multi-camerasetting. This can effectively reduce an operation time of the user, reduce energyconsumption of the terminal to some extent, and adapt to photographing habits ofdifferent users.

[00171] Based on content of the foregoing embodiment, as an optional embodiment,the first input includes an eighth sub-input, the eighth sub-input is an input from theuser on E target camera icons on the target control, the M cameras include E cameras,and E is a positive integer greater than 2.

[00172] Before the controlling M cameras to photograph images and outputting atarget image, the method may further include:updating the E target camera icons to a first combined display mode, andupdating depth-of-field ranges corresponding to the E cameras to a first target uniondepth-of-field range, where the first target union depth-of-field range is a union ofdepth-of-field ranges corresponding to the E cameras, and photographed objects of Etarget cameras corresponding to the E target camera icons after updating of the depthof-field range are photographed objects of a same depth-of-field range.

[00173] Optionally, the eighth sub-input may be a drag input of simultaneouslydragging two camera icons to overlap.

[00174] Specifically, in the photographing method provided by this application, amethod for setting multi-camera fusion photography is provided. The eighth sub-inputis received from the user, the E cameras corresponding to the eighth sub-input are fusedinto the first combined display mode, and corresponding depth-of-field ranges of the Ecameras are combined to serve as the first target union depth-of-field rangecorresponding to the first combined display mode.

[00175] In this embodiment of this application, setting for fusion of two cameraicons may be performed. FIG. 11 is a tenth schematic diagram of a screen for aprocedure of setting a target control according to this application. As shown in the leftfigure in FIG. 11, in a case that a target control displayed on a current screen is aprogress bar, the user presses a camera icon with a display number 2 and a camera iconwith a display number 4 in a region 1101 simultaneously with fingers and drags the twocamera icons to overlap. In this case, a first combined display mode including thecamera icon with the display number 2 and the camera icon with the display number 4may be obtained and displayed in a region 1102, as shown in the right figure in FIG. 11.

[00176] Further, after fusion of the two camera icons, correspondingly, the depth-offield range corresponding to the original camera icon 2 (the depth-of-field range of 1-5x focal length) and the depth-of-field range corresponding to the original camera icon4 (the depth-of-field range of 5-10x focal length) are also combined. To be specific, thefirst target union depth-of-field range is a depth-of-field range of 1-10x focal length,and photographing is performed in the first target union depth-of-field range in a dualcamera fusion mode by using the cameras corresponding to the camera icon 2 andcamera icon 4.

[00177] The dual-camera fusion photography means that during specificphotographing, the cameras corresponding to the camera icon 2 and camera icon 4 eachare for photographing in the depth-of-field range of 1-10x focal length to obtain oneframe of image each, and then image fusion is performed on the two frames of imageto obtain an output of dual-camera fusion photography.

[00178] Specifically, as shown in the left figure in FIG. 11, before setting for thetarget control is performed, a total of four cameras (denoted as cameras a, b, c, and d)of the terminal are invoked by the terminal, being respectively associated with fourcamera icons with display numbers 1 to 4 in the second region. The camera icon withthe display number 1 corresponds to a depth-of-field value of 0.1, the camera icon withthe display number 2 corresponds to a depth-of-field value of 1, the camera icon withthe display number 4 corresponds to a depth-of-field value of 5, and the camera iconwith the display number 3 corresponds to a depth-of-field value of 10. To be specific, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 1 is a depth-of-field range with 0.1-1x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 2 is a depth-of-field range with 1-5x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 4 is a depth-of-field range with 5-10x focal length, and aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 3 is a depth-of-field range with focal length greater than 10x.

[00179] After the target control is set using the eighth sub-input, the camera iconwith the display number 2 is fused with the camera icon with the display number 4 toform the first combined display mode (as shown in the region 1102 in the right figureof FIG. 11). The camera icon with the display number 1 corresponds to a depth-of-fieldvalue of 0.1, the first combined display mode corresponds to a depth-of-field value of1, and the camera icon with the display number 3 corresponds to a depth-of-field valueof 10. To be specific, a photographing depth-of-field range of the camera correspondingto the camera icon with the display number 1 is a depth-of-field range with 0.1-1x focallength, a photographing depth-of-field range of the camera corresponding to the firstcombined display mode is a depth-of-field range with 1-10x focal length, and aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 3 is a depth-of-field range with focal length greater than 10x.

[00180] The first combined display mode may be displayed in a plurality of manners.As shown in the right figure in FIG. 11, after fusion of the camera icon with the displaynumber 2 and the camera icon with the display number 4, the first combined displaymode obtained may be a new camera icon by appropriately reducing sizes of the cameraicon with the display number 2 and the camera icon with the display number 4 andpartially overlapping them.

[00181] Optionally, a new camera icon may be generated and numbers 2 and 4 areboth displayed on the new camera icon.

[00182] This application does not limit a specific display mode of the first combineddisplay mode, and based on a display result, the user is able to know which cameraicons are fused in the displayed first combined display mode.

[00183] In this application, setting for fusion of three camera icons may beperformed. FIG. 12 is an eleventh schematic diagram of a screen for a procedure ofsetting a target control according to this application. As shown in FIG. 12, in a case ofE=3, that is, an eighth sub-input by the user is for three camera icons, the eighth subinput by the user is received, and the eighth sub-input is an operation of sliding threecamera icons with display numbers 1, 2, and 4 in sequence with a finger by the user ina region 1201. In response to the eighth sub-input, the three camera icons are fused togenerate a first combined display mode, and the first combined display mode isdisplayed in a first target union depth-of-field range corresponding to the original threecamera icons. Specifically, the first combined display mode after the fusion is displayedin a region 1202 in the right figure in FIG. 12. The fusion process in this applicationmay be updating display of a fused image in real time during photographing preview.

[00184] In the photographing method provided by this application, the user performsa fusion operation on a plurality of camera icons, so as to implement setting for rapidfusion photography of some cameras of the terminal to obtain a fused image of aspecific depth-of-field range. This provides a basis for clearer identification of peopleand background within the depth-of-field range based on a depth information filter, andprovides possibility for portrait background blurred photography and after-zoomsharpness adjustment.

[00185] Based on content of the foregoing embodiment, as an optional embodiment,the first input includes a ninth sub-input, and the ninth sub-input is an input from theuser on two target camera icons on the target control.

[00186] Before the controlling M cameras to photograph images and outputting atarget image, the method further includes:in response to the ninth sub-input, in a track direction of the ninth sub-input,updating the two target camera icons and respective adjacent camera icons to a secondcombined display mode and a third combined display mode respectively, and updatingdepth-of-field ranges corresponding to the two target camera icons and the respectiveadjacent camera icons to a second target union depth-of-field range and a third targetunion depth-of-field range respectively, where the second target union depth-of-fieldrange and the third target union depth-of-field range each are a union of depth-of-fieldranges corresponding to the target camera icon and the adjacent camera icons; wherethe two target camera icons are non-adjacent camera icons; andphotographed objects of two target cameras corresponding to a targetcamera icon and an adjacent camera icon after updating of the depth-of-field range maybe photographed objects in a same depth-of-field range.

[00187] According to the photographing method provided by this application, amethod for setting quick two-two fusion of a plurality of cameras is provided:receiving a ninth sub-input from the user, where the ninth sub-input may bea slide input from the user on a plurality of target camera icons in the second region,for example, drawing an arc from a first target camera icon to another target cameraicon. In response to the ninth sub-input, two-two fusion on the plurality of camera iconsare performed based on camera icons corresponding to start and end ends of the ninthsub-input and a sliding direction of the arc.

[00188] Correspondingly, after fusion of two target camera icons, one combineddisplay mode is obtained. A depth-of-field range corresponding to the combined displaymode is a union range of the two target camera icons being combined.

[00189] For example, FIG. 13 is a twelfth schematic diagram of a screen for aprocedure of setting a target control according to this application. As shown in the leftfigure in FIG. 13, a ninth sub-input of the user may be: sliding from a camera icon witha display number 1 in a region 1301 in the second region to a camera icon with a displaynumber 4 in a region 1302. The sliding track of the ninth sub-input is a directed arcconnecting the camera icon with the display number 1 to the camera icon with thedisplay number 4. In the arc direction, the camera icon with the display number 1 isadjacent to a camera icon with a display number 2; and the camera icon with the displaynumber 4 is adjacent to a camera icon with a display number 3.

[00190] In response to the ninth sub-input, the camera icon with the display number1 and the camera icon 2 are fused into one fused camera icon; and the camera icon withthe display number 4 and the camera icon 3 are fused into another fused camera icon.A schematic diagram of an obtained target control after fusion is shown in the rightfigure in FIG. 13, that is, a second combined display mode is displayed in a region 1303and a third combined display mode is displayed in a region 1304.

[00191] Before fusion, the depth-of-field ranges corresponding to the camera iconsare as follows: the camera icon with the display number 1 corresponds to a depth-offield range with 0.1-1x focal length, the camera icon with the display number 2corresponds to a depth-of-field range with 1-5x focal length, the camera icon with thedisplay number 4 corresponds to a depth-of-field range with 5-10x focal length, andthe camera icon with the display number 3 corresponds to a depth-of-field range withfocal length greater than 10x. After the fusion, a second target union depth-of-fieldrange corresponding to the second combined display mode is a union depth-of-fieldrange of depth-of-field ranges of the original camera icon with the display number 1and camera icon with the display number 2, specifically, being a depth-of-field rangeof 0.1-5x focal length; and a third target union depth-of-field range corresponding tothe third combined display mode is a union depth-of-field range of depth-of-field rangesof the original camera icon with the display number 4 and camera icon with the displaynumber 3, specifically, being a depth-of-field range of focal length greater than 5x.

[00192] Specifically, as shown in the left figure in FIG. 13, before setting for thetarget control is performed, a total of four cameras (denoted as cameras a, b, c, and d)of the terminal are invoked by the terminal, being respectively associated with fourcamera icons with display numbers 1 to 4 in the second region. The camera icon withthe display number 1 corresponds to a depth-of-field value of 0.1, the camera icon withthe display number 2 corresponds to a depth-of-field value of 1, the camera icon withthe display number 4 corresponds to a depth-of-field value of 5, and the camera iconwith the display number 3 corresponds to a depth-of-field value of 10. To be specific, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 1 is a depth-of-field range with 0.1-1x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 2 is a depth-of-field range with 1-5x focal length, aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 4 is a depth-of-field range with 5-10x focal length, and aphotographing depth-of-field range of the camera corresponding to the camera iconwith the display number 3 is a depth-of-field range with focal length greater than 10x.

[00193] After the target control is set using the ninth sub-input, the camera icon withthe display number 1 is fused with the camera icon with the display number 2 to obtainthe second combined display mode (as shown in the region 1301), and the camera iconwith the display number 4 is fused with the camera icon with the display number 3 toobtain the third combined display mode (as shown in the region 1304). The depth-offield value corresponding to the second combined display mode is 0.1 and the depthof-field value corresponding to the third combined display mode is 5. To be specific,cameras a and b corresponding to the second combined display mode perform fusionphotographing together in the depth-of-field range of 0.1-5x focal length, and cameras4 and 3 corresponding to the third combined display mode perform fusionphotographing together in the depth-of-field range with focal length greater than 5x.

[00194] This application provides a method for grouping a plurality of cameras forfusion. The target control is provided on the camera preview screen, so that the usermakes setting for the target control to implement quick and accurate setting forswitching of a plurality of cameras. In this way, clear images with different depths offield correspondingly photographed by different cameras are composited to output thetarget image, and all objects in the obtained target image have clear images. Thiseffectively improves convenience of performing multi-camera photographing operationby the user and effectively improves the imaging quality.

[00195] FIG. 14 is a schematic structural diagram of a photographing apparatusaccording to this application. As shown in FIG. 14, this application provides aphotographing apparatus, including, but not limited to, a first receiving module 1401, afirst responding module 1402, and a first control module 1403.

[00196] The first receiving module 1401 is configured to receive a first input from auser on a target control in a camera preview screen, where the target control includes afirst region, the first region corresponds to N depth-of-field values, and N is a positiveinteger greater than 1.

[00197] The first responding module 1402 is mainly configured to display M cameraicons in a second region of the target control in response to the first input, where M isa positive integer greater than 1, each camera icon corresponds to one depth-of-fieldrange, and each depth-of-field range is determined based on a depth-of-field valuecorresponding to a target position of each camera icon in the second region.

[00198] The first control module 1403 is mainly configured to control M cameras tophotograph images, and output a target image, where the target image is obtained bycompositing the images photographed by the M cameras, and the M cameras arecameras associated with the M camera icons.

[00199] Specifically, the first receiving module 1401 may receive an input of tappinga camera icon on the camera preview screen by the user. At the beginning of enteringthe camera preview screen, one target control is directly displayed on the camerapreview screen, and the target control is a multi-camera operation screen.

[00200] Further, the first receiving module 1401 is further configured to receive anoperation or input on the target control by the user and preset operating parameters ofthe cameras and switching between the cameras of the terminal.

[00201] For example, the first input may alternatively be an operation of pressingtwo fingers on a terminal display at a preset position by the user and simultaneouslysliding to two sides of the screen for a distance.

[00202] It should be noted that for the photographing apparatus provided in thisapplication, the target control mainly includes a first region and a second region. Thefirst region corresponds to a plurality of depth-of-field value identifiers, each depth-offield value identifier corresponds to one depth-of-field value, and depth-of-field valuesdivide a photographing depth-of-field range into a plurality of consecutive depth-offield ranges. A plurality of camera icons is provided in a second region correspondingto each depth-of-field value in the first region.

[00203] Further, after the first receiving module 1401 receives the first input fromthe user on the target control, the first responding module 1402 identifies the first inputin response to the first input, so as to implement an operation on the camera icons andcorresponding depth-of-field ranges on the target control, and display an operationresult.

[00204] Because the camera icons correspond to different cameras on the terminal,the operations such as switching and setting for each camera corresponding to thecamera icon can be implemented by performing the operation on the camera icon.

[00205] Further, after obtaining related setting parameters of the after-adjustmenttarget control, the first control module 1403 controls each of the M camerascorresponding to the M depth-of-field ranges to photograph a scene within the range toobtain one frame of image. Finally, the obtained M frames are fused into the targetimage for outputting.

[00206] According to the photographing apparatus provided by this application, thetarget control is provided on the camera preview screen, so that the user makes settingfor the target control to implement quick and accurate setting for switching of a pluralityof cameras. In this way, clear images with different depths of field correspondinglyphotographed by different cameras are composited to output the target image, and allobjects in the obtained target image have clear images. This effectively improvesconvenience of performing multi-camera photographing operation by the user andeffectively improves the imaging quality.

[00207] Optionally, in the photographing apparatus provided in this application, thefirst control module is specifically configured to control each of the cameras associatedwith the M camera icons to photograph one frame of depth-of-field image, so as toobtain M frames of depth-of-field images; andcomposite the M frames of depth-of-field images to output the target image.

[00208] Optionally, for the photographing apparatus provided in this application, thefirst input includes a first sub-input, and the first sub-input is an input from the user onK target positions of the target control. T camera icons are included on the target controlbefore the first sub-input is received.

[00209] The first responding module may be specifically configured to:in response to the first sub-input, add K camera icons to K target positionsin the second region; andupdate depth-of-field ranges corresponding to the K camera icons and Tcamera icons based on the K target positions; where a start depth-of-field value of thei-th depth-of-field range corresponding to the i-th camera icon in the updated K cameraicons is a depth-of-field value corresponding to a target position at which the i-thcamera icon is located; in a case that the i-th camera icon has adjacent camera icons onboth sides, an end depth-of-field value of the i-th depth-of-field range is a depth-offield value corresponding to a target position in which the (i+1)-th camera icon in adepth-of-field value increasing direction is located; and in a case that the i-th cameraicon has no adjacent camera icon in the depth-of-field value increasing direction, theend depth-of-field value of the i-th depth-of-field range is infinite; where the i-th cameraicon is any one of the K camera icons, the M cameras include the K cameras and the Tcameras, and M=K+T.

[00210] Optionally, for the photographing apparatus provided in this application, thefirst input includes a second sub-input and a third sub-input, and the first respondingmodule includes a first response unit, a second response unit, and a third response unit.

[00211] The first response unit is configured to display Q candidate camera icons onthe camera preview screen in response to the second sub-input.

[00212] The second response unit is configured to receive a third sub-input from theuser on Z target camera icons in the Q candidate camera icons.

[00213] The third response unit is configured to: in response to the third sub-input,add the Z target camera icons to a target position in the second region, where the targetposition is determined based on an input position of the second sub-input, the Mcameras include the Z cameras and the T cameras, and M=Z+T.

[00214] Optionally, for the photographing apparatus provided in this application, thefirst response unit of the first responding module is specifically configured to:obtain a depth-of-field value corresponding to an input position of thesecond sub-input; anddisplay the Q candidate camera icons in a case that the depth-of-field valueis within a nominal depth-of-field range of cameras corresponding to the Q candidatecamera icons.

[00215] Optionally, for the photographing apparatus provided in this application, thetarget control includes M camera icons before the first input is received, the first inputincludes a fourth sub-input, and the fourth sub-input is an input on a first camera iconand a second camera icon.

[00216] The first responding module may be specifically configured to:exchange display positions of the first camera icon and second camera iconin response to the fourth sub-input.

[00217] Optionally, for the photographing apparatus provided in this application, thetarget control includes M camera icons before the first input is received, the first inputincludes a fifth sub-input, and the fifth sub-input is an input on a third camera icon.

[00218] The first responding module may be specifically configured to:update the third camera icon to a fourth camera icon in response to the fifthsub-input, where the fourth camera icon is determined based on an input characteristicof the first input.

[00219] Optionally, for the photographing apparatus provided in this application, thetarget control includes M camera icons before the first input is received, and the firstinput includes a sixth sub-input.

[00220] The first responding module may be specifically configured to:adjust, in response to the sixth sub-input, positions of all M camera icons inthe second region to be system default positions, where the system default position isdetermined based on at least one of a current photographing scene characteristic andnominal depth-of-field ranges of M cameras corresponding to the M camera icons.

[00221] Optionally, for the photographing apparatus provided in this application, thetarget control includes M camera icons before the first input is received, the first inputincludes a seventh sub-input, and the seventh sub-input is an input from the user on Pcamera icons of the target control.

[00222] The first responding module may be specifically configured to:delete the P camera icons in the second region in response to the seventhsub-input, where the T cameras include the P cameras, M=T-P, and P is a positive integer.

[00223] Optionally, for the photographing apparatus provided in this application, thefirst input includes an eighth sub-input, the eighth sub-input is an input from the useron E target camera icons on the target control, the M cameras include E cameras, andE is a positive integer greater than 2.

[00224] The first control module may be further configured to:before the M cameras are controlled to photograph images and output thetarget image, update the E target camera icons to a first combined display mode, andupdate depth-of-field ranges corresponding to the E cameras to a first target uniondepth-of-field range, where the first target union depth-of-field range is a union ofdepth-of-field ranges corresponding to the E cameras, and photographed objects of Etarget cameras corresponding to the E target camera icons after updating of the depthof-field range are photographed objects of a same depth-of-field range.

[00225] Optionally, for the photographing apparatus provided in this application, thefirst input includes a ninth sub-input, and the ninth sub-input is an input from the useron two target camera icons on the target control. The first control module may be furtherconfigured to:before the M cameras are controlled to photograph images and output thetarget image, in response to the ninth sub-input, in a track direction of the ninth sub input, update the two target camera icons and respective adjacent camera icons to asecond combined display mode and a third combined display mode respectively, andupdate depth-of-field ranges corresponding to the two target camera icons and therespective adjacent camera icons to a second target union depth-of-field range and athird target union depth-of-field range respectively, where the second target uniondepth-of-field range and the third target union depth-of-field range each are a union ofdepth-of-field ranges corresponding to the target camera icon and the adjacent cameraicons; where the two target camera icons are non-adjacent camera icons; andphotographed objects of two target cameras corresponding to a targetcamera icon and an adjacent camera icon after updating of the depth-of-field range arephotographed objects in a same depth-of-field range.

[00226] The photographing apparatus provided in this application is capable ofimplementing all the method steps of the foregoing method embodiment, with the sametechnical effects achieved, and details are not repeated herein.

[00227] The terminal in this application may be an apparatus, or may be a component,an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronicdevice or a non-mobile electronic device. For example, the mobile electronic devicemay be a mobile phone, a tablet computer, a notebook computer, a palmtop computer,an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer(ultra-mobile personal computer, UMPC), a netbook, a personal digital assistant(personal digital assistant, PDA), or the like. The non-mobile electronic device may bea server, a network-attached storage (Network Attached Storage, NAS), a personalcomputer (personal computer, PC), a television (television, TV), a teller machine, a selfservice machine, or the like. This is not specifically limited in this application.

[00228] The photographing apparatus in this application may be an apparatus withan operating system. The operating system may be an Android (Android) operatingsystem, an iOS operating system, or other possible operating systems, and is notspecifically limited in this application.

[00229] The photographing apparatus provided in this application is capable ofimplementing the processes implemented by the photographing apparatus in the method embodiments in FIG. 1 to FIG. 13. To avoid repetition, details are not described hereinagain.

[00230] Optionally, this application further provides an electronic device 150, asshown in FIG. 15, including a processor 152, a memory 151, and a program orinstructions stored in the memory 151 and capable of running on the processor 152. When the program or the instructions are executed by the processor 152, the processesof the foregoing embodiments of the photographing method are implemented, with thesame technical effects achieved. To avoid repetition, details are not described hereinagain.

[00231] It should be noted that the electronic device in this application includes theaforementioned mobile electronic device and non-mobile electronic device.

[00232] FIG. 16 is a schematic diagram of a hardware structure of an electronicdevice for implementing this application.

[00233] The electronic device 1600 includes but is not limited to components suchas a radio frequency unit 1601, a network module 1602, an audio output unit 1603, aninput unit 1604, a sensor 1605, a display unit 1606, a user input unit 1607, an interfaceunit 1608, a memory 1609, and a processor 1610.

[00234] A person skilled in the art can understand that the electronic device 1600may further include a power supply (for example, a battery) supplying power to allcomponents, and the power supply may be logically connected to the processor 1610through a power management system. In this way, functions such as chargemanagement, discharge management, and power consumption management areimplemented by using the power management system. The structure of the electronicdevice shown in FIG. 16 does not constitute any limitation on the electronic device. Theelectronic device may include more or fewer components than those shown in the figure,or a combination of some components, or the components disposed differently. Detailsare not repeated herein.

[00235] It may be understood that in this application, the input unit 1604 may includea graphics processing unit (Graphics Processing Unit, GPU) 1641 and a microphone1642. The graphics processing unit 1641 processes image data of a still picture or videoobtained by an image capture apparatus (such as a camera) in a video capture mode oran image capture mode. The display unit 1606 may include a display panel 1661, andthe display panel 1661 may be configured in a form of a liquid crystal display, anorganic light-emitting diode, and the like. The user input unit 1607 may include a touchpanel 1671 and other input devices 1672. The touch panel 1671 is also referred to as atouchscreen. The touch panel 1671 may include two parts: a touch detection apparatusand a touch controller. The other input devices 1672 may include but are not limited toa physical keyboard, a function key (such as a volume control button or a power on / offbutton), a trackball, a mouse, a joystick, and the like. Details are not described herein.The memory 1609 may be configured to store software programs and various data,including but not limited to application programs and an operating system. Theprocessor 1610 may integrate an application processor and a modem processor, wherethe application processor mainly processes the operating system, user interfaces,application programs, and the like, and the modem processor mainly processes wirelesscommunication. It can be understood that the modem processor may alternatively benot integrated in the processor 1610.

[00236] The processor 1610 is configured to: receive a first input from a user on atarget control in a camera preview screen, where the target control includes a first region,the first region corresponds to N depth-of-field values, and N is a positive integergreater than 1; display M camera icons in a second region of the target control inresponse to the first input, where M is a positive integer greater than 1, each cameraicon corresponds to one depth-of-field range, and each depth-of-field range isdetermined based on a depth-of-field value corresponding to a target position of eachcamera icon in the second region; and control M cameras to photograph images, andoutput a target image, where the target image is obtained by compositing the imagesphotographed by the M cameras, and the M cameras are cameras associated with the Mcamera icons.

[00237] Optionally, the processor 1610 is specifically configured to: control each ofthe cameras associated with the M camera icons to photograph one frame of depth-of field image, so as to obtain M frames of depth-of-field images; andcomposite the M frames of depth-of-field images to output the target image.

[00238] Optionally, the first input includes a first sub-input, and the first sub-inputis an input from the user on K target positions of the target control. T camera icons areincluded on the target control before the first sub-input is received.

[00239] The processor 1610 is specifically configured to:in response to the first sub-input, add K camera icons to K target positionsin the second region; andupdate depth-of-field ranges corresponding to the K camera icons and Tcamera icons based on the K target positions; where a start depth-of-field value of thei-th depth-of-field range corresponding to the i-th camera icon in the updated K cameraicons is a depth-of-field value corresponding to a target position at which the i-thcamera icon is located; in a case that the i-th camera icon has adjacent camera icons onboth sides, an end depth-of-field value of the i-th depth-of-field range is a depth-offield value corresponding to a target position in which the (i+1)-th camera icon in a depth-of-field value increasing direction is located; and in a case that the i-th cameraicon has no adjacent camera icon in the depth-of-field value increasing direction, theend depth-of-field value of the i-th depth-of-field range is infinite; where the i-th cameraicon is any one of the K camera icons, the M cameras include the K cameras and the Tcameras, and M=K+T.

[00240] Optionally, the first input includes a second sub-input and a third sub-input,and the target control includes T camera icons before the first input is received.

[00241] The processor 1610 may include a first response unit, a second response unit,and a third response unit.

[00242] The first response unit is configured to display Q candidate camera icons onthe camera preview screen in response to the second sub-input.

[00243] The second response unit is configured to receive a third sub-input from theuser on Z target camera icons in the Q candidate camera icons.

[00244] The third response unit is configured to: in response to the third sub-input,add the Z target camera icons to a target position in the second region, where the targetposition is determined based on an input position of the second sub-input, the Mcameras include the Z cameras and the T cameras, and M=Z+T.

[00245] Optionally, the first response unit of the processor 1610 is specificallyconfigured to:obtain a depth-of-field value corresponding to an input position of thesecond sub-input; anddisplay the Q candidate camera icons in a case that the depth-of-field valueis within a nominal depth-of-field range of cameras corresponding to the Q candidatecamera icons.

[00246] Optionally, the target control includes M camera icons before the first inputis received, the first input includes a fourth sub-input, and the fourth sub-input is aninput on a first camera icon and a second camera icon.

[00247] The processor 1610 may be specifically configured to:exchange display positions of the first camera icon and second camera iconin response to the fourth sub-input.

[00248] Optionally, the target control includes M camera icons before the first inputis received, the first input includes a fifth sub-input, and the fifth sub-input is an inputon a third camera icon.

[00249] The processor 1610 may be specifically configured to:update the third camera icon to a fourth camera icon in response to the fifthsub-input, where the fourth camera icon is determined based on an input characteristicof the first input.

[00250] Optionally, the target control includes M camera icons before the first inputis received, and the first input includes a sixth sub-input.

[00251] The processor 1610 may be specifically configured to:adjust, in response to the sixth sub-input, positions of all M camera icons inthe second region to be system default positions, where the system default position isdetermined based on at least one of a current photographing scene characteristic andnominal depth-of-field ranges of M cameras corresponding to the M camera icons.

[00252] Optionally, the target control includes T camera icons before the first inputis received, the first input includes a seventh sub-input, and the seventh sub-input is aninput from the user on P camera icons of the target control.

[00253] The processor 1610 may be specifically configured to:delete the P camera icons in the second region in response to the seventhsub-input, where the T cameras include the P cameras, M=T-P, and P is a positive integer.

[00254] Optionally, the first input includes an eighth sub-input, the eighth sub-inputis an input from the user on E target camera icons on the target control, the M camerasinclude E cameras, and E is a positive integer greater than 2.

[00255] The first control module of the processor 1610 may be further configured to:before the M cameras are controlled to photograph images and output thetarget image, update the E target camera icons to a first combined display mode, andupdate depth-of-field ranges corresponding to the E cameras to a first target uniondepth-of-field range, where the first target union depth-of-field range is a union ofdepth-of-field ranges corresponding to the E cameras, and photographed objects of Etarget cameras corresponding to the E target camera icons after updating of the depthof-field range are photographed objects of a same depth-of-field range.

[00256] Optionally, the first input includes a ninth sub-input, and the ninth sub-inputis an input from the user on two target camera icons on the target control.

[00257] The first control module of the processor 1610 is further configured to:before the M cameras are controlled to photograph images and output thetarget image, in response to the ninth sub-input, in a track direction of the ninth subinput, update the two target camera icons and respective adjacent camera icons to asecond combined display mode and a third combined display mode respectively, andupdate depth-of-field ranges corresponding to the two target camera icons and therespective adjacent camera icons to a second target union depth-of-field range and athird target union depth-of-field range respectively, where the second target uniondepth-of-field range and the third target union depth-of-field range each are a union ofdepth-of-field ranges corresponding to the target camera icon and the adjacent cameraicons; where the two target camera icons are non-adjacent camera icons, andphotographed objects of two target cameras corresponding to a target camera icon andan adjacent camera icon after updating of the depth-of-field range are photographedobjects in a same depth-of-field range.

[00258] According to the electronic device provided by this application, the targetcontrol is provided on the camera preview screen, so that the user makes setting for thetarget control to implement quick and accurate setting for switching of a plurality ofcameras. In this way, clear images with different depths of field correspondinglyphotographed by different cameras are composited to output the target image. Thiseffectively improves convenience of performing multi-camera photographing operationby the user and effectively improves the imaging quality.

[00259] This application further provides a readable storage medium, where aprogram or an instruction is stored in the readable storage medium. When the programor instruction is executed by a processor, the processes of the foregoing photographingmethod embodiment can be implemented, with same technical effects achieved. Toavoid repetition, details are not described herein again.

[00260] The processor is a processor in the electronic device described in theforegoing embodiments. The readable storage medium includes a computer-readablestorage medium, for example, a computer read-only memory (Read-Only Memory,ROM), a random access memory (Random Access Memory, RAM), a magnetic disk,or an optical disc. The computer-readable storage medium includes, for example, a non transitory computer-readable storage medium, such as a read-only memory (Read-OnlyMemory, ROM for short), a random access memory (Random Access Memory, RAMfor short), a magnetic disk, or an optical disc.

[00261] This application further provides a chip, where the chip includes a processorand a communications interface, the communications interface is coupled to theprocessor, and the processor is configured to run a program or instructions to implementthe foregoing photographing method embodiments, with the same technical effectsachieved. To avoid repetition, details are not repeated herein.

[00262] An embodiment of this application further provides an electronic device,configured to perform the processes of the foregoing photographing methodembodiment, with the same technical effects achieved. To avoid repetition, details arenot described herein.

[00263] An embodiment of this application provides a computer program product,and the computer program product is executed by at least one processor to perform theprocesses of the foregoing photographing method embodiment, with the same technicaleffects achieved. To avoid repetition, details are not described herein.

[00264] It should be understood that the chip mentioned in this application may alsobe referred to as a system-level chip, a system chip, a chip system, a system-on-chip,or the like.

[00265] It should be noted that the terms "include", "comprise", or any of theirvariants are intended to cover a non-exclusive inclusion, such that a process, a method,an article, or an apparatus that includes a list of elements not only includes thoseelements but also includes other elements that are not expressly listed, or furtherincludes elements inherent to such process, method, article, or apparatus. In absence ofmore constraints, an element preceded by "includes a..." does not preclude the existenceof other identical elements in the process, method, article, or apparatus that includes theelement. In addition, it should be noted that the scope of the method and the apparatusin the embodiments of this application is not limited to executing the functions in anorder shown or discussed, but may also include executing the functions in asubstantially simultaneous manner or in a reverse order, depending on the functionsinvolved. For example, the described methods may be performed in an order differentfrom that described, and steps may alternatively be added, omitted, or combined. Inaddition, features described with reference to some examples may be combined in otherexamples.

[00266] According to the foregoing description of the implementations, a personskilled in the art may clearly understand that the methods in the foregoing embodimentsmay be implemented by using software in combination with a necessary commonhardware platform, and certainly may alternatively be implemented by using hardware.However, in most cases, the former is a preferred implementation. Based on such anunderstanding, the technical solutions of this application essentially or the partcontributing to the prior art may be implemented in a form of a software product. Thesoftware product is stored in a storage medium (such as a ROM / RAM, a magnetic disk,or an optical disc), and includes several instructions for instructing a terminal (whichmay be a mobile phone, a computer, a server, an air conditioner, a network device, orthe like) to perform the methods described in the embodiments of this disclosure.

[00267] The foregoing describes the embodiments of this application with referenceto the accompanying drawings. However, this application is not limited to the foregoingspecific embodiments. The foregoing specific embodiments are merely illustrativerather than restrictive. As instructed by this application, persons of ordinary skill in theart may develop many other manners without departing from principles of thisapplication and the protection scope of the claims, and all such manners fall within theprotection scope of this application.

Claims

1. A photographing method, comprising: receiving a first input from a user on a target control in a camera preview screen, wherein the target control comprises a first region, the first region corresponds to N depth-of-field values, and N is a positive integer greater than 1; displaying M camera icons in a second region of the target control in response to the first input, wherein M is a positive integer greater than 1, each camera icon corresponds to one depth-of-field range, and each depth-of-field range is determined based on a depth-of-field value corresponding to a target position of each camera icon in the second region; and controlling M cameras to photograph images and outputting a target image, wherein the target image is obtained by compositing the images photographed by the M cameras, and the M cameras are cameras associated with the M camera icons.

2. The photographing method according to claim 1, wherein the controlling M cameras to photograph images and outputting a target image comprises: controlling each of the cameras associated with the M camera icons to photograph one frame of depth-of-field image, so as to obtain M frames of depth-of-field images; and compositing the M frames of depth-of-field images to output the target image.

3. The photographing method according to claim 1, wherein the first input comprises a first sub-input, the first sub-input is an input from the user on K target positions of the target control, and T camera icons are comprised on the target control before the first sub-input is received; and the displaying M camera icons in a second region of the target control in response to the first input comprises: in response to the first sub-input, adding K camera icons to K target positions in the second region; and updating depth-of-field ranges corresponding to the K camera icons and T camera icons based on the K target positions; wherein a start depth-of-field value of the i-th depth-of-field range corresponding to the ith camera icon in the updated K camera icons is a depth-of-field value corresponding to a target position at which the i-th camera icon is located; in a case that the i-th camera icon has adjacent camera icons on both sides, an end depth-of-field value of the i-th depth-of-field range is a depth-of-field value corresponding to a target position in which the (i+1)-th camera icon in a depth-of-field value increasing direction is located; and in a case that the i-th camera icon has no adjacent camera icon in the depth-of-field value increasing direction, the end depth-of-field value of the i-th depth-of-field range is infinite; wherein the i-th camera icon is any one of the K camera icons, the M cameras comprise the K cameras and the T cameras, and M=K+T.

4. The photographing method according to claim 1, wherein the first input comprises a second sub-input and a third sub-input, the target control comprises T camera icons before the first input is received, and the displaying M camera icons in a second region of the target control in response to the first input comprises: displaying Q candidate camera icons on the camera preview screen in response to the second sub-input; receiving a third sub-input from the user on Z target camera icons in the Q candidate camera icons; and in response to the third sub-input, adding the Z target camera icons to a target position in the second region, wherein the target position is determined based on an input position of the second sub-input, the M cameras comprise the Z cameras and the T cameras, and M=Z+T.

5. The photographing method according to claim 4, wherein the displaying Q candidate camera icons on the camera preview screen in response to the second subinput comprises: obtaining a depth-of-field value corresponding to an input position of the second sub-input; and displaying the Q candidate camera icons in a case that the depth-of-field value is within a nominal depth-of-field range of cameras corresponding to the Q candidate camera icons.

6. The photographing method according to claim 1, wherein the target control comprises M camera icons before the first input is received, the first input comprises a fourth sub-input, and the fourth sub-input is an input on a first camera icon and a second camera icon; and the displaying M camera icons in a second region of the target control in response to the first input comprises: exchanging display positions of the first camera icon and second camera icon in response to the fourth sub-input.

7. The photographing method according to claim 1, wherein the target control comprises M camera icons before the first input is received, the first input comprises a fifth sub-input, and the fifth sub-input is an input on a third camera icon; and the displaying M camera icons in a second region of the target control in response to the first input comprises: updating the third camera icon to a fourth camera icon in response to the fifth subinput, wherein the fourth camera icon is determined based on an input characteristic of the first input.

8. The photographing method according to claim 1, wherein the target control comprises M camera icons before the first input is received, and the first input comprises a sixth sub-input; and the displaying M camera icons in a second region of the target control in response to the first input comprises: adjusting, in response to the sixth sub-input, positions of all M camera icons in the second region to be system default positions, wherein the system default position is determined based on at least one of a current photographing scene characteristic and nominal depth-of-field ranges of M cameras corresponding to the M camera icons.

9. The photographing method according to claim 1, wherein the target control comprises T camera icons before the first input is received, the first input comprises a seventh sub-input, and the seventh sub-input is an input from the user on P camera icons of the target control; and the displaying M camera icons in a second region of the target control in response to the first input comprises: deleting the P camera icons in the second region in response to the seventh subinput, wherein the T cameras comprise the P cameras, M=T-P, and P is a positive integer.

10. The photographing method according to claim 1, wherein the first input comprises an eighth sub-input, the eighth sub-input is an input from the user on E target camera icons on the target control, the M cameras comprise E cameras, and E is a positive integer greater than 2; and before the controlling M cameras to photograph images and outputting a target image, the method further comprises: updating the E target camera icons to a first combined display mode, and updating depth-of-field ranges corresponding to the E cameras to a first target union depth-of field range, wherein the first target union depth-of-field range is a union of depth-offield ranges corresponding to the E cameras, and photographed objects of E target cameras corresponding to the E target camera icons after updating of the depth-of-field range are photographed objects of a same depth-of-field range.

11. The photographing method according to claim 1, wherein the first input comprises a ninth sub-input, and the ninth sub-input is an input from the user on two target camera icons on the target control; and before the controlling M cameras to photograph images and outputting a target image, the method further comprises: in response to the ninth sub-input, in a track direction of the ninth sub-input, updating the two target camera icons and respective adjacent camera icons to a second combined display mode and a third combined display mode respectively, and updating depth-of-field ranges corresponding to the two target camera icons and the respective adjacent camera icons to a second target union depth-of-field range and a third target union depth-of-field range respectively, wherein the second target union depth-of-field range and the third target union depth-of-field range each are a union of depth-of-field ranges corresponding to the target camera icon and the adjacent camera icons; wherein the two target camera icons are non-adjacent camera icons, and photographed objects of two target cameras corresponding to a target camera icon and an adjacent camera icon after updating of the depth-of-field range are photographed objects in a same depth-of-field range.

12. A photographing apparatus, comprising: a first receiving module, configured to receive a first input from a user on a target control in a camera preview screen, wherein the target control comprises a first region, the first region corresponds to N depth-of-field values, and N is a positive integer greater than 1; a first responding module, configured to display M camera icons in a second region of the target control in response to the first input, wherein M is a positive integer greater than 1, each camera icon corresponds to one depth-of-field range, and each depth-offield range is determined based on a depth-of-field value corresponding to a target position of each camera icon in the second region; and a first control module, configured to control M cameras to photograph images and output a target image, wherein the target image is obtained by compositing the images photographed by the M cameras, and the M cameras are cameras associated with the M camera icons.

13. The photographing apparatus according to claim 12, wherein the first control module is specifically configured to control each of the cameras associated with the M camera icons to photograph one frame of depth-of-field image, so as to obtain M frames of depth-of-field images; and composite the M frames of depth-of-field images to output the target image.

14. The photographing apparatus according to claim 12, wherein the first input comprises a first sub-input, the first sub-input is an input from the user on K target positions of the target control, and T camera icons are comprised on the target control before the first sub-input is received; and the first responding module is specifically configured to: in response to the first sub-input, add K camera icons to K target positions in the second region; and update depth-of-field ranges corresponding to the K camera icons and T camera icons based on the K target positions; wherein a start depth-of-field value of the i-th depth-of-field range corresponding to the ith camera icon in the updated K camera icons is a depth-of-field value corresponding to a target position at which the i-th camera icon is located; in a case that the i-th camera icon has adjacent camera icons on both sides, an end depth-of-field value of the i-th depth-of-field range is a depth-of-field value corresponding to a target position in which the (i+1)-th camera icon in a depth-of-field value increasing direction is located; and in a case that the i-th camera icon has no adjacent camera icon in the depth-of-field value increasing direction, the end depth-of-field value of the i-th depth-of-field range is infinite; wherein the i-th camera icon is any one of the K camera icons, the M cameras comprise the K cameras and the T cameras, and M=K+T.

15. An electronic device, comprising a processor, a memory, and a program or instructions stored in the memory and capable of running on the processor, wherein when the program or the instructions are executed by the processor, the steps of the photographing method according to any one of claims 1 to 11 are implemented.