Photographing method, photographing apparatus, electronic device, and medium
A photographing method includes receiving a first input performed by a user on M control regions of a target control, where the target control includes N control regions, the N control regions include the M control regions. M is a positive integer, and N is a positive integer greater than or equal to M; and displaying M first images on a photographing preview interface in response to the first input, where the M first images are images of a first object that are respectively collected by M cameras, and the M cameras are in a one-to-one correspondence with the M control regions.
1 . A photographing method, comprising:
receiving a first input performed by a user on M control regions of a target control, wherein the target control comprises N control regions, the N control regions comprise the M control regions, M is a positive integer, and N is a positive integer greater than or equal to M; and
displaying M first images on a photographing preview interface in response to the first input, wherein the M first images are images of a first object that are respectively collected by M cameras, and the M cameras are in a one-to-one correspondence with the M control regions; wherein
display areas of all of the M first images are different from each other, and the M first images are successively superposed and displayed; wherein
the first input is an input used for successively selecting the M control regions;
a superposition order of each first image in the M first images is determined according to a selected order of a control region corresponding to each first image, and a display area of each first image in the M first images is determined according to the selected order of the control region corresponding to each first image; and
after the displaying M first images on a photographing preview interface in response to the first input, the method further comprises:
receiving a sliding input performed by the user on the target control;
in a case that a sliding direction of the sliding input is a first direction, displaying, on the photographing preview interface, an image that is of the first object and that is collected by a first camera, wherein the first camera is any camera in N cameras except the M cameras, and the N cameras are in a one-to-one correspondence with the N control regions;
in a case that the sliding direction of the sliding input is a second direction, cancelling display, on the photographing preview interface, of an image that is of the first object and that is collected by a second camera, wherein the second camera is any camera in the M cameras; and
in a case that the sliding direction of the sliding input is a third direction, undoing a first operation, wherein a first execution moment of the first operation is earlier than a second execution moment of the sliding input.
2 . The method according to claim 1 , wherein in a case that the sliding direction of the sliding input is the first direction, the first camera is a camera corresponding to a first target control region in the N control regions, and the first target control region is a control region closest to a start input location of the sliding input; and
in a case that the sliding direction of the sliding input is the second direction, the second camera is a camera corresponding to a second target control region in the N control regions, and the second target control region is a control region closest to the start input location of the sliding input.
3 . The method according to claim 1 , wherein after the displaying M first images on a photographing preview interface in response to the first input, the method further comprises:
receiving a second input performed by the user on the target control and a third input performed by the user to select a target image on the photographing preview interface, wherein the second input is used to trigger execution of a replication operation, and the target image is an image of a second object; and
replicating, in response to the second input and the third input, all operations performed on the first object to the second object, wherein
after all the operations performed on the first object are replicated to the second object, M second images are displayed on the photographing preview interface, and the M second images are images of the second object that are respectively collected by the M cameras.
4 . The method according to claim 3 , wherein the second input is further used to instruct to establish an association relationship;
the replicating, in response to the second input and the third input, all operations performed on the first object to the second object comprises:
replicating, in response to the second input and the third input, all the operations performed on the first object to the second object, and establishing an association relationship between the first object and the second object; and
after the replicating, in response to the second input and the third input, all the operations performed on the first object to the second object, and establishing an association relationship between the first object and the second object, the method further comprises:
receiving a fourth input on the target control; and
separately performing the same processing on an image of the first object and an image of the second object in response to the fourth input; wherein after the replicating, in response to the second input and the third input, all the operations performed on the first object to the second object, and establishing an association relationship between the first object and the second object, the method further comprises:
receiving a fifth input performed by the user on the target control; and
unbinding the association relationship in response to the fifth input.
5 . An electronic device, comprising a processor, a memory, and a program or an instruction stored in the memory and executable on the processor, wherein the program or the instruction, when executed by the processor, causes the electronic device to perform:
receiving a first input performed by a user on M control regions of a target control, wherein the target control comprises N control regions, the N control regions comprise the M control regions, M is a positive integer, and N is a positive integer greater than or equal to M; and
displaying M first images on a photographing preview interface in response to the first input, wherein the M first images are images of a first object that are respectively collected by M cameras, and the M cameras are in a one-to-one correspondence with the M control regions; wherein
display areas of all of the M first images are different from each other, and the M first images are successively superposed and displayed; wherein
the first input is an input used for successively selecting the M control regions;
a superposition order of each first image in the M first images is determined according to a selected order of a control region corresponding to each first image, and a display area of each first image in the M first images is determined according to the selected order of the control region corresponding to each first image; and
the program or the instruction, when executed by the processor, causes the electronic device to further perform:
receiving a sliding input performed by the user on the target control;
in a case that a sliding direction of the sliding input is a first direction, displaying, on the photographing preview interface, an image that is of the first object and that is collected by a first camera, wherein the first camera is any camera in N cameras except the M cameras, and the N cameras are in a one-to-one correspondence with the N control regions;
in a case that the sliding direction of the sliding input is a second direction, cancelling display, on the photographing preview interface, of an image that is of the first object and that is collected by a second camera, wherein the second camera is any camera in the M cameras; and
in a case that the sliding direction of the sliding input is a third direction, undoing a first operation, wherein a first execution moment of the first operation is earlier than a second execution moment of the sliding input.
6 . The electronic device according to claim 5 , wherein in a case that the sliding direction of the sliding input is the first direction, the first camera is a camera corresponding to a first target control region in the N control regions, and the first target control region is a control region closest to a start input location of the sliding input; and
in a case that the sliding direction of the sliding input is the second direction, the second camera is a camera corresponding to a second target control region in the N control regions, and the second target control region is a control region closest to the start input location of the sliding input.
7 . The electronic device according to claim 5 , wherein the program or the instruction, when executed by the processor, causes the electronic device to further perform:
receiving a second input performed by the user on the target control and a third input performed by the user to select a target image on the photographing preview interface, wherein the second input is used to trigger execution of a replication operation, and the target image is an image of a second object; and
replicating, in response to the second input and the third input, all operations performed on the first object to the second object, wherein
after all the operations performed on the first object are replicated to the second object, M second images are displayed on the photographing preview interface, and the M second images are images of the second object that are respectively collected by the M cameras.
8 . The electronic device according to claim 7 , wherein the second input is further used to instruct to establish an association relationship; and
the program or the instruction, when executed by the processor, causes the electronic device to perform:
replicating, in response to the second input and the third input, all the operations performed on the first object to the second object, and establishing an association relationship between the first object and the second object; and
the program or the instruction, when executed by the processor, causes the electronic device to further perform:
receiving a fourth input on the target control; and
separately performing the same processing on an image of the first object and an image of the second object in response to the fourth input; and
the program or the instruction, when executed by the processor, causes the electronic device to further perform:
receiving a fifth input performed by the user on the target control; and
unbinding the association relationship in response to the fifth input.
9 . A non-transitory readable storage medium, wherein the non-transitory readable storage medium stores a program or instruction, and the program or the instruction, when executed by a processor of an electronic device, causes the electronic device to perform:
receiving a first input performed by a user on M control regions of a target control, wherein the target control comprises N control regions, the N control regions comprise the M control regions, M is a positive integer, and N is a positive integer greater than or equal to M; and
displaying M first images on a photographing preview interface in response to the first input, wherein the M first images are images of a first object that are respectively collected by M cameras, and the M cameras are in a one-to-one correspondence with the M control regions; wherein
display areas of all of the M first images are different from each other, and the M first images are successively superposed and displayed; wherein
the first input is an input used for successively selecting the M control regions;
a superposition order of each first image in the M first images is determined according to a selected order of a control region corresponding to each first image, and a display area of each first image in the M first images is determined according to the selected order of the control region corresponding to each first image; and
the program or the instruction, when executed by the processor, causes the electronic device to further perform:
receiving a sliding input performed by the user on the target control;
in a case that a sliding direction of the sliding input is a first direction, displaying, on the photographing preview interface, an image that is of the first object and that is collected by a first camera, wherein the first camera is any camera in N cameras except the M cameras, and the N cameras are in a one-to-one correspondence with the N control regions;
in a case that the sliding direction of the sliding input is a second direction, cancelling display, on the photographing preview interface, of an image that is of the first object and that is collected by a second camera, wherein the second camera is any camera in the M cameras; and
in a case that the sliding direction of the sliding input is a third direction, undoing a first operation, wherein a first execution moment of the first operation is earlier than a second execution moment of the sliding input.
10 . The non-transitory readable storage medium according to claim 9 , wherein in a case that the sliding direction of the sliding input is the first direction, the first camera is a camera corresponding to a first target control region in the N control regions, and the first target control region is a control region closest to a start input location of the sliding input; and
in a case that the sliding direction of the sliding input is the second direction, the second camera is a camera corresponding to a second target control region in the N control regions, and the second target control region is a control region closest to the start input location of the sliding input.
11 . The non-transitory readable storage medium according to claim 9 , wherein the program or the instruction, when executed by the processor, causes the electronic device to further perform:
receiving a second input performed by the user on the target control and a third input performed by the user to select a target image on the photographing preview interface, wherein the second input is used to trigger execution of a replication operation, and the target image is an image of a second object; and
replicating, in response to the second input and the third input, all operations performed on the first object to the second object, wherein
after all the operations performed on the first object are replicated to the second object, M second images are displayed on the photographing preview interface, and the M second images are images of the second object that are respectively collected by the M cameras.