Photographing method, apparatus and electronic device

By automatically identifying and processing privacy-sensitive objects, the privacy protection process for users during the shooting process is simplified, improving efficiency and security, and solving the problem of time-consuming manual processing of privacy information in existing technologies.

CN119788959BActive Publication Date: 2026-02-10VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411940895.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2026-02-10
Estimated Expiration
2044-12-26

AI Technical Summary

Technical Problem

In existing technologies, users need to manually process privacy information when taking pictures or videos, which makes the privacy protection process cumbersome and time-consuming.

Method used

By receiving user input and capturing preview images using a camera, the system automatically identifies and processes privacy-sensitive objects, including object feature information obtained from other devices, locally stored object information, information about groups the user has joined, and object information selected by the user, thus simplifying the privacy protection process.

Benefits of technology

It achieves automated privacy protection processing, simplifies the process, improves the efficiency and user experience of privacy protection, and reduces the risk of privacy leaks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788959B_ABST
    Figure CN119788959B_ABST
Patent Text Reader

Abstract

The application discloses a photographing method and device and electronic equipment, and belongs to the technical field of camera shooting. The method comprises the following steps: receiving a first input of a user on a photographing preview interface, wherein the photographing preview interface comprises a preview image collected by a camera; in response to the first input, controlling the camera to perform photographing to obtain a first image file; performing privacy protection processing on the first image file according to first information, and outputting the processed first image file; wherein the first information comprises at least one of the following: object feature information obtained from a second electronic device, object information in an image stored locally by the first electronic device, object information configured in a target group to which a user of the first electronic device belongs, and object information of an object selected by the user in the photographing preview interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of camera technology, specifically relating to a shooting method, device, and electronic equipment. Background Technology

[0002] With the advancement of electronic device technology, the functions of electronic device cameras have become increasingly powerful, and more and more users are recording their lives through photography.

[0003] In related technologies, after a user takes a picture or records a video using an electronic device, if the image or video contains private information, the user needs to further process the image or video to hide the private information. For example, when taking a picture that contains a private object, the user needs to manually blur the image in the image editing interface to cover the private object. This makes the entire privacy protection process cumbersome and time-consuming. Summary of the Invention

[0004] The purpose of this application is to provide a shooting method, device, and electronic device that can simplify the steps of the privacy protection process, thereby improving the efficiency of privacy protection.

[0005] In a first aspect, embodiments of this application provide a shooting method, the method comprising: receiving a first input from a user to a shooting preview interface, the shooting preview interface including a preview image captured by a camera; responding to the first input, controlling the camera to shoot and obtaining a first image file; performing privacy protection processing on the first image file according to first information, and outputting a second image file; wherein the first information includes at least one of the following: object feature information obtained from a second electronic device, object information in an image locally stored on the first electronic device, object information configured in a target group joined by the user of the first electronic device, and object information of an object selected by the user in the shooting preview interface.

[0006] Secondly, embodiments of this application provide a shooting device, which includes: a receiving module, a control module, and a processing module, wherein: the receiving module is used to receive a first input from a user to a shooting preview interface, the shooting preview interface including a preview image captured by a camera; the control module is used to control the camera to shoot in response to the first input received by the receiving module, thereby obtaining a first image file; the processing module is used to perform privacy protection processing on the first image file according to the first information received by the receiving module, and output a second image file; wherein the first information includes at least one of the following: object feature information obtained from a second electronic device, object information in an image stored locally by the first electronic device, object information configured in a target group joined by the user of the first electronic device, and object information of an object selected by the user in the shooting preview interface.

[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0011] In this embodiment, a first electronic device receives a first input from a user to a shooting preview interface displaying a preview image captured by a camera, controls the camera to take a picture, obtains a first image file, and performs privacy protection processing on the first image file according to first information, outputting a second image file. The first information includes at least one of the following: object feature information obtained from a second electronic device, object information in an image stored locally by the first electronic device, object information configured by the first electronic device, and object information of an object selected by the user in the shooting preview interface. Through this method, the first electronic device can automatically perform privacy protection processing on the first image file based on at least one of the object information in the local image, object feature information from the second electronic device, object information configured in a group joined by the user, and object information selected by the user, without requiring the user to manually blur the image in the image editing interface. This simplifies the privacy protection process and improves the efficiency of privacy protection. Attached Figure Description

[0012] Figure 1 A schematic flowchart illustrating the shooting method provided in an embodiment of this application;

[0013] Figure 2 One of the schematic diagrams of the interface used in the shooting method provided in the embodiments of this application;

[0014] Figure 3 A second schematic diagram of the interface used in the shooting method provided in the embodiments of this application;

[0015] Figure 4A A third schematic diagram of the interface used in the shooting method provided in the embodiments of this application;

[0016] Figure 4B Fourth schematic diagram of the interface used in the shooting method provided in the embodiments of this application;

[0017] Figure 5A Fifth schematic diagram of the interface used in the shooting method provided in the embodiments of this application;

[0018] Figure 5B A sixth schematic diagram of the interface used in the shooting method provided in the embodiments of this application;

[0019] Figure 6A Seventh schematic diagram of the interface used in the shooting method provided in the embodiments of this application;

[0020] Figure 6B Eighth schematic diagram of the interface used in the shooting method provided in the embodiments of this application;

[0021] Figure 6C A schematic diagram of the interface used in the shooting method provided in the embodiments of this application (Figure 9);

[0022] Figure 6D A schematic diagram of the interface used in the shooting method provided in the embodiments of this application;

[0023] Figure 7 This is a schematic diagram of the imaging device provided in the embodiments of this application;

[0024] Figure 8 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;

[0025] Figure 9 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0026] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0027] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0028] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."

[0029] The subject executing the shooting method provided in this application embodiment can be a shooting device, which can be an electronic device, or a functional module or functional entity within an electronic device. The following description uses an electronic device executing the shooting method as an example to illustrate the shooting method provided in this application embodiment.

[0030] The shooting method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0031] The shooting method provided in this application can be applied to scenarios of shooting portraits or recording videos of group portraits.

[0032] In the scenario of shooting portraits, suppose user A uses the wide-angle camera of an electronic device to take a group photo of user B, user C, and user D. If user E enters the field of view of the wide-angle camera and user A does not want user E to appear in the captured image, then privacy protection processing can be performed on the image area of ​​user E in the captured image.

[0033] In the scenario of recording videos of a group of people, suppose user A uses the wide-angle camera of an electronic device to record videos of users B, C, and D. If user E enters the field of view of the wide-angle camera and user A does not want user E to appear in the recorded video, then privacy protection processing can be performed on the image area of ​​user E in the recorded video.

[0034] It should be noted that the shooting method provided in this application embodiment can also be applied to shooting other objects, such as shooting natural landscapes, buildings and any other scene. This application embodiment does not limit this.

[0035] Figure 1 This is a schematic flowchart of the shooting method provided in the embodiments of this application, as shown below. Figure 1 As shown, the shooting method may include the following steps 201 to 203:

[0036] Step 201: The first electronic device receives the user's first input to the shooting preview interface.

[0037] The shooting preview interface includes preview images captured by the camera.

[0038] In some embodiments of this application, the camera may include any of the following: a 2x camera, a wide-angle camera, a telephoto camera, and a depth-sensing camera, etc. The camera may also be other cameras, and this application does not limit them in any way.

[0039] In some embodiments of this application, the aforementioned shooting preview interface is used to display a preview image captured by the camera. For example, when using the camera to capture a photo or video of person B, the shooting preview interface displays the captured image of person B.

[0040] In some embodiments of this application, the electronic device can display a shooting preview interface when it enters video recording mode or photo taking mode. For example, after a user opens the camera application, the electronic device enters video recording mode or photo taking mode and displays a shooting preview interface.

[0041] In some embodiments of this application, the first input described above is used to trigger video recording or image capture.

[0042] In some embodiments of this application, the first input may include any of the following: user touch input, voice input, gesture input, folding or unfolding operation of the foldable screen, or other feasible inputs, which are not limited in this application embodiment. Further, the touch input may be: user click input, swipe input, press input, etc. Further, the click operation may be any number of clicks. The swipe operation may be a swipe operation in any direction, such as swiping up, swiping down, swiping left, or swiping right, which are not limited in this application embodiment.

[0043] For example, the first input mentioned above can be a user's touch input to the shooting control in the shooting preview window, or a folding input to the foldable screen, or a swiping input in the shooting preview window.

[0044] Step 202: The first electronic device responds to the first input and controls the camera to take a picture, thereby obtaining the first image file.

[0045] In some embodiments of this application, the first image file described above may include at least one of an image and a video.

[0046] For example, taking the first image file as an example, when using a camera to take a group photo of people B, C and D, if user E enters the field of view of the camera, the first electronic device will obtain an image including people B, C, D and E after taking the picture.

[0047] For another example, taking the first image file as a video, when using a camera to record video of people B, C, and D, if user E enters the camera's field of view, the first electronic device will obtain a video including people B, C, D, and E after recording the video.

[0048] Step 203: The first electronic device performs privacy protection processing on the first image file based on the first information and outputs the second image file.

[0049] The first information includes at least one of the following: object feature information obtained from the second electronic device, object information in images stored locally on the first electronic device, object information configured in the target group joined by the user on the first electronic device, and object information of the object selected by the user in the shooting preview interface.

[0050] In some embodiments of this application, the second image file may include at least one of an image and a video. For example, if the first image file is an image, the second image file may be an image; if the first image file is a video, the second image file may be a video.

[0051] In some possible implementations, the first electronic device may receive object feature information from the second electronic device.

[0052] It should be noted that the second electronic device can send object feature information to the first electronic device.

[0053] In some embodiments of this application, the aforementioned object feature information may include at least one of the following: facial feature information, iris feature information, voiceprint feature information, object feature information, etc. For example, for non-biological objects, object feature information may include shape, size, color, texture, material, etc. For instance, object feature information may be the texture, edges, and color distribution of a license plate.

[0054] It should be noted that the above-mentioned object feature information refers to the data of the specific features of an object (such as an item, person, scene, etc.). These features can be physical features (such as color, shape, size), behavioral features (such as movement trajectory, speed), or any other attribute that can distinguish or define the object.

[0055] In some embodiments of this application, the first electronic device can acquire object information in a locally stored image.

[0056] In some embodiments of this application, the image locally stored by the first electronic device refers to an image stored in the internal memory of the first electronic device. Further, the image may be taken by the first electronic device or downloaded from the Internet.

[0057] In some embodiments of this application, the object information may include at least one of the following: facial information, object information, etc. Further, the facial information may be a facial image, and the object information may be an object image. For example, the facial image may be a face image of person E, and the object image may be an image of a license plate.

[0058] In some embodiments of this application, the first electronic device may obtain object information from a target group joined by the user.

[0059] It should be noted that the user of the first electronic device can be the owner of the first electronic device or other users of the first electronic device.

[0060] In some embodiments of this application, the target group can be a social group, interest group, work group, family group, etc.

[0061] For example, suppose a user joins a social group A, which includes user A, user B, and user C. User A, user B, and user C upload their respective facial images to social group A. The first electronic device can obtain the facial images of user A, user B, and user C in social group A.

[0062] In some embodiments of this application, the electronic device can determine the object in the shooting preview interface based on the user's object selection input in the shooting preview interface, and identify the object information of the object.

[0063] In some embodiments of this application, the object selection input can be a swipe input or a click input on the shooting preview interface. The electronic device can determine the object in the shooting preview interface based on the input trajectory of the swipe input or the position of the click input. For example, assuming that the shooting preview interface displays images of user A and user B captured by the camera, the user can manually select user A's image by swiping the input box on the shooting preview interface. The electronic device then identifies user A as the target object and obtains user A's facial information.

[0064] For example, in conjunction with the above example, the first information includes facial feature information obtained from the second electronic device and facial information in the local image of the first electronic device. The first electronic device can determine the privacy object in the first image file based on the facial feature information and the facial information in the local image, and perform privacy protection processing on the privacy object in the captured image file.

[0065] For example, in conjunction with the above example, the first information includes facial feature information obtained from the second electronic device, facial information in the local image of the first electronic device, facial images configured in the social groups joined by the user of the first electronic device, and facial information of the portrait selected by the user in the shooting preview interface. The first electronic device can jointly determine the privacy object in the first image file based on the aforementioned facial feature information, facial information in the local image, facial images configured in the social groups, and facial information of the portrait selected by the user, and perform privacy protection processing on the privacy object in the captured image file.

[0066] It should be noted that the combinations of the first information listed in the above embodiments are only some possible examples and do not constitute a limitation on this application. Other combinations not explicitly listed are still within the protection scope of this application.

[0067] In some embodiments of this application, the first electronic device can determine whether the first image file contains a privacy object based on the first information, and if the first image file contains a privacy object, perform privacy protection processing on the privacy object in the first image file.

[0068] In some examples, the electronic device can match the first information with a first image file. When the first image file contains an object that matches the first information, the object in the first image file is identified as a privacy object, and privacy processing is performed on the privacy object.

[0069] In some examples, the electronic device can match first information with a first image file. When the first image file contains an object that matches the first information, other objects in the first image file besides the object are identified as privacy objects, and privacy processing is performed on the privacy objects.

[0070] In some embodiments of this application, the aforementioned privacy object may be a human image, an object, etc.

[0071] It should be noted that the privacy object can be a person who is prohibited from being photographed.

[0072] In some embodiments of this application, the first image file is an image, and the first electronic device can mask or remove the area containing privacy information in the image; or, the first image file is a video, and the first electronic device can mask or remove the area containing privacy information in the video. Further, the masking process can be mosaicking, blurring, or replacement of the privacy information, and the removal process can be removing the privacy information from the image using an image processing algorithm.

[0073] For example, when the first image file is an image containing a private portrait, the first electronic device can match the facial feature information obtained from the second electronic device with the facial information in the image, and when the image contains a private portrait that matches the facial feature information, the private portrait is mosaicked.

[0074] As another example, when the first image file is a video containing a private portrait, the first electronic device can match a pre-set face image with the face information in the video frame of the video, and when the video frame of the video contains a private portrait that matches the face image, the private portrait in the video frame is mosaicked.

[0075] For example, when the first image file is a video containing a private portrait, the first electronic device can perform mosaic processing on the portrait E in the video frame based on the information of the portrait E selected by the user in advance in the shooting preview interface.

[0076] The shooting method provided in this application embodiment involves a first electronic device receiving a first input from a user to a shooting preview interface displaying a preview image captured by a camera, controlling the camera to shoot, obtaining a first image file, and performing privacy protection processing on the first image file according to first information, outputting the processed first image file. The first information includes at least one of the following: object feature information obtained from a second electronic device, object information in an image stored locally on the first electronic device, and object information configured in a target group joined by the user on the first electronic device. Through this method, the first electronic device can automatically perform privacy protection processing on the first image file based on at least one of the object feature information from the second electronic device, object information obtained locally, object information in the target group, and object information of the user-selected object, simplifying the privacy protection process and thus improving the efficiency of privacy protection.

[0077] In some embodiments of this application, after the first electronic device identifies that a privacy object is contained in the first image file based on object feature information from the second electronic device, and performs privacy protection processing on the privacy object in the first image file, it can send a first message to the second electronic device. The first message is used to prompt that the file captured by the first electronic device contains a privacy object, which has been pixelated.

[0078] In some embodiments of this application, after receiving the first message, the second electronic device can display a prompt message based on the first message to notify the user that other electronic devices have taken photos of the privacy data.

[0079] For example, after receiving the first message, the second electronic device displays a prompt message on the screen: "The content captured by device 1 contains person E, and person E has been pixelated."

[0080] In some embodiments of this application, prior to step 201 above, the imaging method provided in this application further includes steps 204 and 205:

[0081] Step 204: The first electronic device displays the shooting preview interface.

[0082] Step 205: The first electronic device determines the privacy object in the shooting preview interface based on the first information, and displays the corresponding no-shooting sign for the privacy object in the shooting preview interface.

[0083] The aforementioned "No Photography" signs are used to indicate that subjects whose privacy is at risk should not be photographed.

[0084] In some embodiments of this application, the first electronic device can match the first information that has been acquired or configured in advance with the real-time preview image in the shooting preview interface, identify the object in the preview image that matches the first information as a privacy object, and display a no-shooting sign in the corresponding area of ​​the privacy object.

[0085] In some embodiments of this application, the aforementioned no-photography sign can be any information that can identify an object, such as a pattern, symbol, or text.

[0086] It should be noted that the "No Photography" sign is used to identify the corresponding private objects, that is, to inform the user which objects in the current preview interface are not allowed to be photographed.

[0087] For example, the electronic device may display a red cross or circle on the privacy object, or the electronic device may display a semi-transparent or fully transparent overlay on the privacy object with the text or icon of "Do Not Photograph"; or the electronic device may display a border on the privacy object that the electronic device can highlight or flash to emphasize the privacy object and remind the privacy object that it is not allowed to be photographed.

[0088] In some embodiments of this application, when the first electronic device identifies at least one privacy object in the shooting preview interface, it can display a prompt message in the shooting preview interface to indicate the number of privacy objects identified.

[0089] For example, if the first electronic device detects two prohibited subjects (i.e., private objects) in the shooting preview interface, it will display a message "Two prohibited subjects detected" in the shooting preview interface to remind the user of the number of prohibited subjects currently in the shooting range. In this way, by displaying the message "Two prohibited subjects detected" in the shooting preview interface, user A can clearly see how many prohibited subjects are currently in the shooting range. This helps the user quickly adjust the shooting angle or position to avoid these subjects, thereby improving shooting efficiency.

[0090] For example, in conjunction with the above examples, such as Figure 2 As shown, when user A wants a group photo of people B, C, and D, after the user opens the camera application of the first electronic device, the first electronic device displays a shooting preview interface 21. The shooting preview interface 21 includes people B, C, and D, as well as people E and F who have accidentally entered the shooting range. The first electronic device recognizes that person E matches the object feature information from another electronic device, and recognizes that person F is the object that the user selected in the shooting preview interface in advance. Then, the first electronic device displays a no-photography sign 22 and a no-photography sign 23 in the upper right corner of people E and F in the shooting preview interface 21, respectively, to remind that people E and F are not allowed to be photographed. In addition, the first electronic device displays the prompt message "2 prohibited subjects detected" in the shooting preview interface to remind user A that there are currently two prohibited subjects in the shooting range.

[0091] In a shooting scenario, when user A is taking a group photo, they may not want to capture people unrelated to the theme of the photo or those who should not be photographed (such as people E and F). The shooting method provided in this application automatically identifies and marks these prohibited objects in the form of "no-photography" icons on the shooting preview interface. This avoids the user discovering the problem only after taking the photo, thereby saving the user's time and effort and improving the shooting experience. In addition, this not only effectively reminds user A not to photograph these objects, but also prevents the leakage of personal privacy and enhances the privacy protection effect.

[0092] In some embodiments of this application, step 205 may include steps 205a and 205b:

[0093] Step 205a: The first electronic device performs image recognition on the preview image of the shooting preview interface to determine at least one object in the preview image.

[0094] Step 205b: The first electronic device identifies at least one object that matches the object feature information as a privacy object.

[0095] In some embodiments of this application, the first electronic device may use image processing algorithms or artificial intelligence technologies (such as deep learning, computer vision, etc.) to perform real-time analysis on the preview image in the shooting preview interface in order to identify various objects in the preview image. The objects may be people, animals, objects, buildings, etc.

[0096] For example, in conjunction with the above example, in a scenario where user A wants to take a group photo of people B, C, and D, the first electronic device displays a shooting preview interface 31 that includes these three people as well as people E and F who have accidentally entered the shooting range. At this time, the first electronic device performs image recognition on the preview image in the shooting preview interface, thereby identifying the five objects: people B, C, D, E, and F.

[0097] In some embodiments of this application, the first electronic device can identify private objects in the shooting preview interface based on received object feature information (sensitive information such as facial features, iris features, ID card numbers, and names), or based on pre-set object information (facial images, iris images, object images, etc.), or based on object information of the object selected by the user in the shooting preview interface. Specifically, the first electronic device can match all identified objects with object feature information or object information, and mark the matched objects as private objects.

[0098] For example, in conjunction with the above example, the first electronic device has identified five objects in the preview image. Assuming that the feature information of person E matches the feature information of an object from another electronic device (for example, the facial features of person E match the facial feature information in a database), the first electronic device identifies person E as a privacy object.

[0099] To reiterate, in conjunction with the above example, the first electronic device has identified five objects in the preview image. Assuming that the feature information of person F matches pre-configured object information (e.g., the facial image of person E matches a pre-configured facial image), the first electronic device identifies person F as a privacy object.

[0100] For example, combining the above example, the first electronic device has identified five objects in the preview image. Assuming that the feature information of person F matches the image of a person selected by the user in the shooting preview interface, the first electronic device identifies person F as a privacy object.

[0101] In this embodiment, by automatically identifying and marking privacy-sensitive objects, users can be prevented from unintentionally photographing sensitive or inappropriate individuals, thereby reducing the risk of privacy leaks. Simultaneously, by intuitively displaying "No Photography" signs and prompts on the shooting preview interface, the user's awareness and control are enhanced, allowing them to more intuitively understand the current shooting status and thus improving the user experience during the shooting process.

[0102] In some embodiments of this application, step 205 may include steps 205c to 205e:

[0103] Step 205c: The first electronic device performs image recognition on the preview image of the shooting preview interface to determine at least one object in the preview image.

[0104] Step 205d: The first electronic device determines a target object that matches at least one of the at least one objects.

[0105] Step 205e: The first electronic device identifies at least one object other than the target object as a privacy object.

[0106] In some embodiments of this application, the first electronic device uses image recognition technology (such as deep learning models, computer vision algorithms, etc.) to analyze the real-time displayed shooting preview image and identify the individual objects contained in the image, such as people, animals, items or other identifiable entities.

[0107] In some embodiments of this application, the first electronic device can identify the target object that the user needs to pay attention to in the preview image of the shooting preview interface based on the first information. After determining the target object, the first electronic device can identify the remaining objects in the preview image (i.e., objects that have not been determined as target objects) as privacy objects.

[0108] For example, in conjunction with the above example, after the first electronic device determines at least one object in the preview image, it can identify the object among the at least one objects that matches the first information as a privacy object; or, it can identify the object among the at least one objects other than the target object as a privacy object, wherein the target object is the object that matches the first information.

[0109] It should be noted that the target object in the shooting preview interface is the object that the user needs to focus on. Other objects are private objects and are not allowed to be photographed or recorded at will.

[0110] For example, in conjunction with the above embodiments, suppose the first electronic device has identified five objects in the preview image: person A, person B, person C, person D, and person E. The electronic device matches these objects with pre-configured object information. Assuming that the facial features of person A, person B, and person C match the pre-configured face images, the first electronic device identifies person A, person B, and person C as target objects. Since person A, person B, and person C have been identified as target objects, the first electronic device considers the remaining objects, person D and person E, as privacy objects.

[0111] In this embodiment of the application, by matching the objects in the preview image with pre-configured information and determining which objects are privacy objects, the first electronic device can provide users with a higher level of privacy protection, thereby preventing users from unintentionally photographing people they do not want to be recorded, and thus reducing the risk of privacy leakage.

[0112] In some embodiments of this application, the first information mentioned above is object feature information obtained from the second electronic device; exemplarily, after step 205, the shooting method provided in the embodiments of this application may further include the following step 206:

[0113] Step 206: The first electronic device sends a second message to the second electronic device.

[0114] The second message is used to instruct the first electronic device to include a privacy object in its shooting preview interface that matches the object's feature information.

[0115] For example, in conjunction with the above example, the first electronic device (such as electronic device 1) has identified five objects in the preview image. Assuming that the feature information of person E matches the feature information of an object from another electronic device (such as electronic device 2) (for example, the facial features of person E match the facial feature information in a database), then electronic device 1 identifies person E as a privacy object, displays a prompt message on the shooting preview interface, such as "One prohibited shooting object detected", displays a no-shooting sign at the location of person E in the shooting preview interface, and sends a notification to electronic device 2 to remind the user of electronic device 2 that person E has entered the shooting range of electronic device 1.

[0116] In this embodiment, the first electronic device sends a notification to the second electronic device to remind the relevant user to pay attention to their privacy and security. This allows the user of the second electronic device or related persons to take immediate measures to protect their privacy, such as leaving the shooting range or alerting the photographer. Thus, clear prompts and notifications enhance users' awareness of privacy protection and improve their privacy security.

[0117] In some embodiments of this application, when the second electronic device receives a second message from the first electronic device, it displays a prompt message based on the second message. The prompt message is used to indicate that a private object that is not allowed to be photographed is within the shooting range of the first electronic device.

[0118] For example, in conjunction with the above Figure 2 When user A wants a group photo of people B, C, and D, after opening the camera application of the first electronic device, the first electronic device displays a shooting preview interface 21. This shooting preview interface 21 includes people B, C, and D, as well as people E and F who have accidentally entered the shooting range. The first electronic device recognizes that person E matches the object feature information from the second electronic device, and recognizes that person F is an object that the user selected in the shooting preview interface beforehand. Therefore, the first electronic device displays "No Photography" signs 22 and 23 in the upper right corner of people E and F in the shooting preview interface 21, respectively, to remind users that people E and F are not allowed to be photographed. In addition, the first electronic device displays the prompt message "Two prohibited photography objects detected" in the shooting preview interface to remind user A that two prohibited photography objects have entered the shooting range, and sends a notification message to the second electronic device to remind the user of the second electronic device that person E has entered the shooting range of the first electronic device. Figure 3 As shown, after receiving the notification message, the second electronic device displays notification message 31 on the screen: "Person E has entered the shooting range of device 1".

[0119] In this embodiment, the first electronic device sends a notification message to the second electronic device, which can then display the relevant notification on its screen, providing real-time feedback to the user. This allows the user of the second electronic device to be aware that they have entered the shooting range and take necessary privacy protection measures. This instant notification mechanism enables cross-device privacy protection between the first and second electronic devices, improving interoperability and privacy efficiency between electronic devices.

[0120] In some embodiments of this application, if the second electronic device identifies a private object in the shooting preview interface based on object feature information from the second electronic device, it can send a request message to the second electronic device to request that the private object be photographed.

[0121] In some embodiments of this application, after receiving the request message, the second electronic device displays a prompt message to remind the user that other electronic devices need to take pictures of the privacy object.

[0122] Furthermore, after receiving the user's touch input of the prompt information, the second electronic device displays a prompt window, which includes an image of the privacy object, a first option, and a second option. The first option indicates consent to filming, and the second option indicates dis consent to filming.

[0123] For example, in conjunction with the above Figure 2 If the first electronic device detects that the person E in the shooting preview interface matches the object feature information from the second electronic device, it sends a notification message to the second electronic device to request that person E be photographed. Figure 4A As shown, after receiving the notification message, the second electronic device displays notification message 41 on the screen: "Device 1 is taking pictures of person E. Do you agree?". Then, after the user clicks on notification message 41, as shown... Figure 4B As shown, the second electronic device displays a prompt window 42, which includes the prompt message "Device 1 is taking pictures of person E, do you agree?", image E1 of person E, "agree" option, and "disagree" option. After the user clicks the "agree" option, the second electronic device sends a response message to the first electronic device. This response message indicates that the user agrees to take pictures of person E. After receiving the response message, the first electronic device updates the color of the "Do Not Photograph" sign for person E in the shooting preview interface from red to green, and does not perform any privacy protection processing on person E in the first image file after the shooting.

[0124] In this embodiment of the application, when the first electronic device recognizes the privacy object of the second electronic device in the shooting preview interface, it sends a notification message to the second electronic device. The second electronic device then displays a prompt window on its screen and seeks the user's consent, thereby improving the flexibility of privacy protection.

[0125] In some embodiments of this application, step 203 can be implemented by steps 203a and 203b.

[0126] Step 203a: The first electronic device determines the privacy object in the first image file based on the first information.

[0127] Step 203b: The first electronic device performs privacy protection processing on the image area where the privacy object is located in the first image file, and outputs the second image file.

[0128] In some embodiments of this application, the first electronic device can match first information with objects in an image or video to identify and determine privacy objects in the image or video.

[0129] In some embodiments of this application, after identifying a privacy object, the first electronic device can perform privacy protection processing on the image area where the privacy object is located. Exemplarily, the aforementioned privacy protection processing includes, but is not limited to, blurring, pixelation, occlusion, background replacement, or complete deletion of the privacy object.

[0130] It should be noted that the processed images or videos no longer contain identifiable privacy information, thus protecting the privacy of the individuals involved.

[0131] In some embodiments of this application, prior to step 203 above, the imaging method provided in this application may further include step A1 or step A2:

[0132] Step A1: When the first electronic device establishes a communication connection with the second electronic device, it receives object feature information from the second electronic device through the communication connection.

[0133] Step A2: The first electronic device acquires at least one object information configured in the target group.

[0134] The target group mentioned above includes at least one group member, and one group member corresponds to one or more object information.

[0135] In some embodiments of this application, the communication connection described above may be a Bluetooth connection or a WIFI connection, etc.

[0136] In some embodiments of this application, a first electronic device establishes a communication connection with a second electronic device. Once the communication connection is established, the first electronic device can receive object feature information from the second electronic device through the connection.

[0137] For example, when the first electronic device starts taking pictures, it will actively scan all electronic devices (such as the second electronic device) that support the anti-spy camera function within a certain range, and establish a connection with the nearby anti-spy camera electronic devices through wireless communication technology (such as Bluetooth, WiFi, etc.). The second electronic device will actively push the object feature information configured by the user on the device to prevent being photographed to the first electronic device.

[0138] In some possible implementations, the second electronic device can identify objects that need to be prevented from being photographed and send the object's characteristic information to the first electronic device. Furthermore, the first electronic device can determine the objects corresponding to this characteristic information as privacy objects that do not need to be photographed.

[0139] For example, the user of the second electronic device can select the object that needs to be prevented from being photographed, with the following two paths:

[0140] Method 1: Select from automatically categorized photos of people, ID cards, license plates, etc. in the album and enable anti-spy photography.

[0141] For example, such as Figure 5A As shown, the album interface 51 of the first electronic device includes at least one thumbnail image of a person in the "People" category. The user can click on the thumbnail image of a person that is not allowed to be photographed by others. After the user selects thumbnail image d, thumbnail image f, thumbnail image h, and thumbnail image i, the first electronic device can identify the person corresponding to thumbnail image d, thumbnail image f, thumbnail image h, and thumbnail image i as a private object that is not allowed to be photographed, and display a no-photography sign 52 in the upper right corner of each selected thumbnail image. Then, when it detects that there are electronic devices (such as the first electronic device) in the vicinity that are taking pictures, it sends the object feature information of these objects to the first electronic device.

[0142] Furthermore, the album interface 51 also includes options such as "People", "License Plate" and "Custom", allowing users to select the corresponding type option to trigger the display of thumbnail images of the corresponding type of object, or to select the "Custom" option to customize other object types.

[0143] For example, combining the above 5A, after the user clicks the "License Plate" option, as follows: Figure 5BAs shown, the second electronic device displays a thumbnail image 53 and a thumbnail image 54 of the license plate in the album interface 51. The user can select a thumbnail image of a license plate that is not allowed to be photographed by others. The electronic device identifies the license plate selected by the user as a private object and displays a "No Photography" sign 55 in the upper right corner of the thumbnail image of the license plate.

[0144] Method 2: Use the camera to frame the shot and select the subject in the shooting preview interface.

[0145] For example, after the second electronic device opens the camera application, it captures an image of an object that is not allowed to be photographed through the camera and identifies the object as a privacy object, or after receiving a user's click or selection operation on the object, it identifies the object as a privacy object.

[0146] In this embodiment of the application, by receiving object feature information from the second electronic device, the first electronic device can more accurately identify privacy objects in images or videos, thereby automatically occluding, blurring or otherwise protecting privacy objects during the shooting process, thus effectively preventing privacy leakage.

[0147] In other possible implementations, the first electronic device can acquire object information configured in one or more target groups. Furthermore, the first electronic device can identify the objects corresponding to this object information as the objects to be photographed, while identifying objects in the shooting preview interface that differ from these objects as privacy objects that do not need to be photographed.

[0148] In some embodiments of this application, the shooting preview interface of the first electronic device may further include at least one group identifier. After the user clicks on the target group identifier, the first electronic device obtains the object information configured in the target group indicated by the target group identifier, and determines the target object corresponding to the object information as the object to be photographed, while other objects besides the target object are determined as privacy objects that do not need to be photographed. Further, the first electronic device can obtain the shooting parameters corresponding to the above-mentioned object information from the target group, and take a picture of the object corresponding to the object information according to the shooting parameters.

[0149] It should be noted that the target group can represent a specific social circle, family, work team, etc., containing at least one group member. Each group member corresponds to one or more object information, which may include name, age, gender, facial features, photo, etc., used to identify specific members within the group. For example, a family group may be configured with a list of family members who do not wish to be photographed, along with their characteristic information. When device 1 is taking pictures, device 1 can identify and mark objects that should not be photographed based on this configured object information.

[0150] For example, this implementation may include the following steps:

[0151] Step 11: The first electronic device creates a shooting group (such as a target group) in the camera application, and relevant users join the group.

[0152] For example, relevant users can join a group by scanning their face, such as... Figure 6A As shown, when the first electronic device displays the camera application's shooting preview interface 61, the user (group owner) of the first electronic device clicks the "+" button in the camera to create a group and takes a photo of their face, as shown. Figure 6B As shown, the first electronic device displays a face photo 62 and a "Start a group" option in the shooting preview interface 61. After the first electronic device receives the user's click on the "Start a group" option, other nearby electronic devices will receive the signal to create a group. At this time, users of other nearby electronic devices can open their cameras to take a picture of the group owner's face and then click on the "Join Group" button that appears above the group owner's face image.

[0153] Step 12: The first electronic device can configure at least one object information in the shooting group.

[0154] For example, after each member joins the shooting group, they can upload one or more portraits they want to be photographed on the portrait configuration interface, such as... Figure 6C As shown, the portrait configuration interface 63 includes portraits a1 and a2 (i.e., object information) uploaded by members that they want to be photographed.

[0155] Furthermore, members can set image parameters for uploaded portraits according to their shooting needs, such as beauty filters, stickers, etc., and configure shooting parameters for the corresponding objects, thereby shooting the corresponding objects according to the corresponding shooting parameters, such as... Figure 6D As shown, in the parameter settings interface 64, there are "Beauty" options, "Filter" options, and "Sticker" options. Members can use these options to set the shooting parameters of the uploaded portrait when taking the picture according to their own needs.

[0156] Step 13: When the first electronic device is taking pictures, such as... Figure 6A As shown, after the user clicks the "Select Shooting Group" option in the shooting preview interface, the first electronic device displays at least one group identifier. After the user clicks on the target group identifier, the electronic device can automatically focus on the object (such as a portrait) corresponding to the object information configured in the user-selected group when shooting, and automatically remove or blur out non-group users, as well as shoot and automatically beautify the corresponding portrait according to the configured shooting parameters.

[0157] In this embodiment of the application, the first electronic device can obtain the object information configured in the target group, so that the user can flexibly configure different privacy protection strategies for different groups according to their own needs, thereby improving the flexibility of privacy protection.

[0158] The above-described method embodiments, or various possible implementations of the method embodiments, can be executed individually, or, provided there are no contradictions, they can be combined with each other. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.

[0159] The shooting method provided in this application can be executed by a shooting device. This application uses a shooting device executing the shooting method as an example to illustrate the shooting device provided in this application.

[0160] Figure 7 This is a schematic diagram of the structure of the imaging device 700 provided in the embodiments of this application, as shown below. Figure 7 As shown, the device 700 may include: a receiving module 701, a control module 702, and a processing module 703, wherein: the receiving module 701 is used to receive a first input from a user to a shooting preview interface, the shooting preview interface including a preview image captured by a camera; the control module 702 is used to control the camera to shoot in response to the first input received by the receiving module 701, thereby obtaining a first image file; the processing module 703 is used to perform privacy protection processing on the first image file according to the first information received by the receiving module 701, and output a second image file; wherein the first information includes at least one of the following: object feature information obtained from a second electronic device, object information in an image stored locally by the first electronic device, object information configured in a target group joined by the user of the first electronic device, and object information of an object selected by the user in the shooting preview interface.

[0161] In some embodiments of this application, the above-described device further includes a display module and a determination module, wherein: the display module is used to display the shooting preview interface before receiving the user's first input to the shooting preview interface; the determination module is used to determine the privacy object in the shooting preview interface according to the first information; the display module is also used to display a no-shooting sign corresponding to the privacy object determined by the determination module in the shooting preview interface, and the no-shooting sign is used to indicate that the privacy object is prohibited from being photographed.

[0162] In some embodiments of this application, the determination module is specifically used to: perform image recognition on the preview image of the shooting preview interface to determine at least one object in the preview image; and determine the object that matches the first information among the at least one object as a privacy object.

[0163] In some embodiments of this application, the aforementioned determining module is specifically used for: performing image recognition on the preview image of the shooting preview interface to determine at least one object in the preview image; determining a target object among the at least one object that matches the first information; and determining objects other than the target object among the at least one object as privacy objects.

[0164] In some embodiments of this application, the first information is object feature information obtained from the second electronic device; the device further includes: a sending module; the sending module is used to send a second message to the second electronic device, the second message being used to indicate that the shooting preview interface of the first electronic device includes a privacy object that matches the image feature information.

[0165] In some embodiments of this application, the above-mentioned processing module is specifically used to: determine the privacy object in the first image file based on the first information; perform privacy protection processing on the image area where the privacy object in the first image file is located, and output the second image file.

[0166] In some embodiments of this application, the above-mentioned apparatus further includes: a receiving module; the receiving module is configured to receive object feature information from a second electronic device via a communication connection before performing privacy protection processing on the first image file according to the first information and outputting the processed first image file; or, the processing module is further configured to obtain at least one object information configured in a target group before performing privacy protection processing on the first image file according to the first information and outputting the processed first image file, wherein the target group includes at least one group member, and one group member corresponds to one or more object information.

[0167] The shooting device provided in this application embodiment receives a first input from a user to a shooting preview interface displaying a preview image captured by a camera, controls the camera to shoot, obtains a first image file, and performs privacy protection processing on the first image file according to first information, outputting the processed first image file. The first information includes at least one of the following: object feature information obtained from a second electronic device, object information in an image locally stored on the first electronic device, object information in a target group joined by the user on the first electronic device, and object information of an object selected by the user in the shooting preview interface. In this way, the shooting device can automatically perform privacy protection processing on the first image file based on at least one of the object information in the local image, object feature information from the second electronic device, object information configured in the group joined by the user, and object information selected by the user, simplifying the privacy protection process and thus improving the efficiency of privacy protection.

[0168] The shooting device in this application embodiment can be an electronic device or a component of an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope.

[0169] The shooting device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0170] The shooting device provided in this application embodiment can realize all the processes implemented in the above shooting method embodiment, and will not be described again here to avoid repetition.

[0171] Optionally, such as Figure 8 As shown, this application embodiment also provides an electronic device 800, including a processor 801 and a memory 802. The memory 802 stores a program or instructions that can run on the processor 801. When the program or instructions are executed by the processor 801, they implement the various steps of the above-described shooting method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0172] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0173] Figure 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0174] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.

[0175] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0176] The user input unit 107 is configured to receive a first input from the user to the shooting preview interface, which includes a preview image captured by the camera. The processor 110 is configured to respond to the first input received by the user input unit 107, control the camera to take a picture, and obtain a first image file. The processor 110 is configured to perform privacy protection processing on the first image file according to the first information received by the user input unit 107, and output the processed first image file. The first information includes at least one of the following: object feature information obtained from the second electronic device, object information in an image stored locally on the first electronic device, object information configured in a target group joined by the user of the first electronic device, and object information of an object selected by the user in the shooting preview interface.

[0177] In some embodiments of this application, the display unit 106 is used to display the shooting preview interface before receiving the user's first input to the shooting preview interface; the processor 110 is used to determine the privacy object in the shooting preview interface according to the first information; the display unit 106 is also used to display a no-shooting sign corresponding to the privacy object determined by the processor 110 in the shooting preview interface, and the no-shooting sign is used to indicate that the privacy object is prohibited from being photographed.

[0178] In some embodiments of this application, the processor 110 is specifically configured to: perform image recognition on the preview image of the shooting preview interface to determine at least one object in the preview image; and identify the object among the at least one object that matches the first information as a privacy object.

[0179] In some embodiments of this application, the processor 110 is specifically configured to: perform image recognition on the preview image of the shooting preview interface to determine at least one object in the preview image; determine the target object among the at least one object that matches the first information; and determine the objects among the at least one object other than the target object as privacy objects.

[0180] In some embodiments of this application, the first information is object feature information obtained from the second electronic device; the radio frequency unit 101 is used to send a second message to the second electronic device, the second message being used to indicate that the shooting preview interface of the first electronic device includes a privacy object that matches the image feature information.

[0181] In some embodiments of this application, the processor 110 is specifically used to: determine a privacy object in a first image file based on the first information; perform privacy protection processing on the image area where the privacy object in the first image file is located, and output a second image file.

[0182] In some embodiments of this application, the user input unit 107 is configured to receive object feature information from the second electronic device via a communication connection before performing privacy protection processing on the first image file according to the first information and outputting the processed first image file; or, the processor 110 is further configured to obtain at least one object information configured in a target group before performing privacy protection processing on the first image file according to the first information and outputting the processed first image file, wherein the target group includes at least one group member and one group member corresponds to one or more object information.

[0183] The electronic device provided in this application embodiment receives a first input from a user to a shooting preview interface displaying a preview image captured by a camera, controls the camera to shoot, obtains a first image file, and performs privacy protection processing on the first image file according to first information, outputting the processed first image file. The first information includes at least one of the following: object feature information obtained from a second electronic device, object information in an image stored locally on the first electronic device, object information in a target group joined by the user on the first electronic device, and object information of an object selected by the user on the shooting interface. In this way, the electronic device can automatically perform privacy protection processing on the first image file based on at least one of the object information in the local image, object feature information from the second electronic device, object information configured in the group joined by the user, and object information selected by the user, simplifying the privacy protection process and thus improving the efficiency of privacy protection.

[0184] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0185] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0186] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.

[0187] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described shooting method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0188] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0189] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described shooting method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0190] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0191] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described shooting method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0192] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0193] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0194] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A shooting method, applied to a first electronic device, characterized in that, The method includes: The camera preview interface is displayed, which includes a preview image captured by the camera. Based on the first information, the privacy object in the shooting preview interface is identified, and a no-shooting sign corresponding to the privacy object is displayed in the shooting preview interface. The no-shooting sign is used to indicate that the privacy object is prohibited from being photographed. Receive the user's first input to the shooting preview interface; In response to the first input, the camera is controlled to capture an image, resulting in a first image file; Based on the first information, the first image file is subjected to privacy protection processing, and the second image file is output. The first information includes at least one of the following: object feature information obtained from the second electronic device, object information in an image stored locally by the first electronic device, object information configured in a target group joined by the user of the first electronic device, and object information of an object selected by the user in the shooting preview interface.

2. The method according to claim 1, characterized in that, The step of determining the privacy object in the shooting preview interface based on the first information includes: Image recognition is performed on the preview image of the shooting preview interface to identify at least one object in the preview image; The object that matches the first information among the at least one objects is determined as the privacy object; or, the object other than the target object among the at least one objects is determined as the privacy object, where the target object is the object that matches the first information.

3. The method according to claim 1, characterized in that, The first information is object feature information obtained from the second electronic device; After determining the privacy object in the shooting preview interface based on the first information, the method further includes: A second message is sent to the second electronic device, the second message being used to instruct the first electronic device to include a privacy object in its shooting preview interface that matches the object's feature information.

4. The method according to claim 1, characterized in that, The step of performing privacy protection processing on the first image file based on the first information and outputting the second image file includes: Based on the first information, the privacy object in the first image file is determined; The image region containing the privacy object in the first image file is subjected to privacy protection processing, and the second image file is output.

5. A shooting device, applied to a first electronic device, characterized in that, The device includes: a display module, a determination module, a receiving module, a control module, and a processing module, wherein: The display module is used to display a shooting preview interface, which includes a preview image captured by the camera; The determining module is used to determine the privacy object in the shooting preview interface based on the first information. The display module is also used to display the no-shooting sign corresponding to the privacy object determined by the determining module in the shooting preview interface. The no-shooting sign is used to indicate that the privacy object is prohibited from being photographed. The receiving module is used to receive the user's first input to the shooting preview interface; The control module is used to control the camera to take a picture in response to the first input received by the receiving module, and obtain a first image file; The processing module is used to perform privacy protection processing on the first image file based on the first information received by the receiving module, and output a second image file; The first information includes at least one of the following: object feature information obtained from the second electronic device, object information in an image stored locally by the first electronic device, object information configured in a target group joined by the user of the first electronic device, and object information of an object selected by the user in the shooting preview interface.

6. The apparatus according to claim 5, characterized in that, The determining module is specifically used for: Image recognition is performed on the preview image of the shooting preview interface to identify at least one object in the preview image; The object that matches the first information among the at least one objects is identified as the privacy object; Alternatively, the object other than the target object among the at least one object may be identified as the privacy object, wherein the target object is the object that matches the first information.

7. The apparatus according to claim 5, characterized in that, The first information is object feature information obtained from the second electronic device; the device further includes: a sending module; The sending module is used to send a second message to the second electronic device, the second message being used to indicate that the shooting preview interface of the first electronic device includes a privacy object that matches the object feature information.

8. The apparatus according to claim 5, characterized in that, The processing module is specifically used for: Based on the first information, the privacy object in the first image file is determined; The image region containing the privacy object in the first image file is subjected to privacy protection processing, and the second image file is output.

9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the shooting method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Image processing method and device, electronic equipment and computer readable storage medium

    CN117372280A