Image shooting and sharing method and electronic device
An image shooting and sharing method includes that an electronic device displays a shooting preview interface in response to a first operation of a user, where the shooting preview interface includes information about a target point of interest, and the target point of interest is a point of interest corresponding to a current location of the electronic device. In response to a second operation of the user, the electronic device obtains a target image through shooting, where image information of the target image includes a part or all of the information about the target point of interest. The electronic device shares the target image on an associated interface of the target point of interest in a target application after a third operation of the user.
1 . A method comprising:
displaying a shooting preview interface of an electronic device in response to a first operation of a user, wherein the shooting preview interface comprises first point of interest information about a target point of interest, and wherein the target point of interest corresponds to a current location of the electronic device;
capturing, in response to a second operation of the user, a target image using a shooting function of a camera of the electronic device;
adding to image information of the target image a part or all of the first point of interest information;
selecting a target application from a plurality of applications based on use frequency or user selection;
sharing, in response to a third operation of the user, the target image on an associated interface of the target point of interest in the target application;
receiving a recommended shooting location that corresponds to the target point of interest from a server of the target application;
displaying the recommended shooting location in the shooting preview interface;
obtaining, in response to a fourth operation of the user, a navigation route from the current location to the recommended shooting location; and
displaying a navigation interface for displaying the navigation route.
2 . The method according to claim 1 , wherein before displaying the shooting preview interface, the method further comprises:
obtaining the current location; and
obtaining the target point of interest based on the current location and a preset correspondence between a location and a point of interest, or obtaining an image captured by the camera at the current location and performing image recognition on the image to obtain the target point of interest.
3 . The method according to claim 1 , wherein the first point of interest information comprises at least one of a name of the target point of interest, a location of the target point of interest, a direction of the target point of interest relative to the current location, a distance between the target point of interest and the current location, a point of interest type of the target point of interest, contact information of the target point of interest, or image content of the target point of interest.
4 . The method according to claim 1 , wherein before detecting the third operation, the method further comprises:
detecting sensitive information in the target image; and
displaying a notification message for querying the user whether to share the target image with the target application.
5 . The method according to claim 1 , wherein sharing the target image on the associated interface comprises:
displaying, in response to the third operation, the associated interface;
displaying, in response to a fifth operation of the user, a sharing editing interface corresponding to the associated interface; and
sharing, in response to a sixth operation of the user, the target image on the associated interface.
6 . The method according to claim 1 , wherein the associated interface comprises at least one piece of comment information that is associated with the target point of interest and that is shared by the user, and wherein the comment information comprises the target image.
7 . The method according to claim 1 , wherein after sharing the target image, the method further comprises:
obtaining exchanged data corresponding to the target image, wherein the exchanged data corresponds to an exchanging operation from another user on the target image in the target application;
displaying the target image in an album application; and
displaying, on the target image.
8 . The method according to claim 7 , wherein the exchanged data comprises at least one of data corresponding to a browse operation, data corresponding to a comment operation, or data corresponding to a like giving operation from another user on the target image in the target application.
9 . The method according to claim 1 , wherein the method further comprising:
displaying the associated interface; and
obtaining, in response to a fifth operation of the user on a first image, second point of interest information of the first image when the associated interface is displayed,
wherein receiving the recommended shooting location comprises receiving the recommended shooting location based on the second point of interest information, and
wherein obtaining the navigation route comprises obtaining, in further response to a sixth operation of the user, the navigation route.
10 . The method according to claim 1 , further comprising:
obtaining a recommended shooting azimuth;
obtaining a current camera azimuth of the electronic device;
generating a notification message based on the current camera azimuth and the recommended shooting azimuth, wherein the notification message prompts the user to adjust a shooting azimuth of the electronic device; and
displaying the notification message.
11 . An electronic device comprising:
at least one memory configured to store instructions; and
at least one processor coupled to the at least one memory and configured to execute the instructions to cause the electronic device to be configured to:
display a shooting preview interface in response to a first operation of a user, wherein the shooting preview interface comprises first point of interest information about a target point of interest, and wherein the target point of interest corresponds to a current location of the electronic device;
capture, in response to a second operation of the user, a target image using a shooting function of a camera of the electronic device;
add to image information of the target image a part or all of the first point of interest information;
select a target application from a plurality of applications based on use frequency or user selection;
share, in response to a third operation of the user, the target image on an associated interface of the target point of interest in the target application;
receive a recommended shooting location that corresponds to the target point of interest from a server of the target application;
display the recommended shooting location in the shooting preview interface;
obtain, in response to a fourth operation of the user, a navigation route from the current location to the recommended shooting location; and
display a navigation interface for displaying the navigation route.
12 . The electronic device according to claim 11 , wherein before displaying the shooting preview interface, the instructions when executed by the at least one processor cause the electronic device to be further configured to:
obtain the current location; and
obtain the target point of interest based on the current location and a preset correspondence between a location and a point of interest, or obtain an image captured by the camera at the current location and perform image recognition on the image to obtain the target point of interest.
13 . The electronic device according to claim 11 , wherein the first point of interest information comprises at least one of a name of the target point of interest, a location of the target point of interest, a direction of the target point of interest relative to the current location, a distance between the target point of interest and the current location, a point of interest type of the target point of interest, contact information of the target point of interest, or image content of the target point of interest.
14 . The electronic device according to claim 11 , wherein before detecting the third operation, the instructions when executed by the at least one processor cause the electronic device to be further configured to:
detect sensitive information in the target image; and
display a notification message for querying the user whether to share the target image with the target application.
15 . The electronic device according to claim 11 , wherein the instructions when executed by the at least one processor cause the electronic device to be further configured to:
display, in response to the third operation of the user, a sharing editing interface corresponding to the associated interface; and
share, in response to a sixth operation of the user, the target image on the associated interface.
16 . The electronic device according to claim 11 , wherein the associated interface comprises at least one piece of comment information that is associated with the target point of interest and that is shared by the user, and wherein the comment information comprises the target image.
17 . The electronic device according to claim 11 , wherein after sharing the target image, the instructions when executed by the at least one processor cause the electronic device to be further configured to:
obtain exchanged data corresponding to the target image, wherein the exchanged data corresponds to an exchanging operation from another user on the target image in the target application;
display the target image in an album application; and
display, on the target image, the exchanged data.
18 . The electronic device according to claim 17 , wherein the exchanged data comprises at least one of data corresponding to a browse operation, data corresponding to a comment operation, or data corresponding to a like giving operation from another user on the target image in the target application.
19 . A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable medium that, when executed by a processor, cause an electronic device to:
display a shooting preview interface of the electronic device in response to a first operation of a user, wherein the shooting preview interface comprises first point of interest information about a target point of interest, and wherein the target point of interest corresponds to a current location of the electronic device;
capture, in response to a second operation of the user, a target image using a shooting function of a camera of the electronic device;
add to image information of the target image a part or all of the first point of interest information;
select a target application from a plurality of applications based on use frequency or user selection;
share, in response to a third operation of the user, the target image on an associated interface of the target point of interest in the target application;
receive a recommended shooting location that corresponds to the target point of interest from a server of the target application;
display the recommended shooting location in the shooting preview interface;
obtain, in response to a fourth operation of the user, a navigation route from the current location to the recommended shooting location; and
display a navigation interface for displaying the navigation route.
20 . The computer program product according to claim 19 , wherein the computer-executable instructions, when executed by the processor, further cause the electronic device to:
obtain a recommended shooting azimuth;
obtain a current camera azimuth of the electronic device;
generate a notification message based on the current camera azimuth and the recommended shooting azimuth, wherein the notification message prompts the user to adjust a shooting azimuth of the electronic device; and
display the notification message.