Shooting method and device and electronic equipment
By receiving user input in the shooting preview interface and automatically performing privacy protection processing, the problem of cumbersome privacy protection processing in the existing technology is solved, efficient privacy protection is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202411940895.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-12-26
AI Technical Summary
In the prior art, after a user takes an image or video, he or she needs to manually process the image or video to hide private information, resulting in a cumbersome and time-consuming process.
By receiving input from the user to the shooting preview interface, the camera is controlled to shoot, and the images or videos are automatically protected based on the acquired object feature information, locally stored image information, group configuration information added by the user, and object information selected by the user.
It simplifies the processing process of privacy protection, improves the efficiency of privacy protection, reduces the steps of manual processing by users, and improves the shooting experience and privacy protection effect.
Smart Images

Figure CN119788959A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of camera technology, and specifically relates to a shooting method, device and electronic equipment. Background Art
[0002] With the development and progress of electronic equipment technology, the functions of cameras in electronic devices are becoming more and more powerful, and more and more users are recording their lives through photography.
[0003] In the related art, after a user uses an electronic device to take an image or record a video, if the image or video contains private information, the user needs to further process the image or video to hide the private information in the image or video. For example, when an image containing a private object is taken, the user needs to manually code the image in the image editing interface to cover the private object in the image. As a result, the entire privacy protection process is cumbersome and time-consuming. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a shooting method, device and electronic device, which can simplify the steps of the privacy protection processing flow, thereby improving the efficiency of privacy protection.
[0005] In a first aspect, an embodiment of the present application provides 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; in response to the first input, controlling the camera to shoot and obtaining a first image file; performing privacy protection processing on the first image file based on the first information, and outputting a second image file; wherein the first information includes at least one of the following: object feature information obtained from the second electronic device, object information in an image locally stored in the first electronic device, object information configured in a target group joined by a user of the first electronic device, and object information of an object selected by the user in the shooting preview interface.
[0006] In a second aspect, an embodiment of the present application provides 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, and the shooting preview interface includes 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, and obtain 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 the second electronic device, object information in the image locally stored in the first electronic device, object information configured in a target group joined by a user of the first electronic device, and object information of an object selected by the user in the shooting preview interface.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0011] In an embodiment of the present application, a first electronic device receives a first input from a user on 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 based on the first information, and outputs a second image file, wherein the first information is at least one of the following: object feature information obtained from the second electronic device, object information in an image locally stored 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, the object feature information from the second electronic device, the object information configured in the group joined by the user, and the object information selected by the user, without the user having to manually code the first image file in the image editing interface, thereby simplifying the steps of the privacy protection processing flow, thereby improving the efficiency of privacy protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 A schematic diagram of a process flow of a photographing method provided in an embodiment of the present application;
[0013] Figure 2 One of the schematic diagrams of the interface used by the shooting method provided in the embodiment of the present application;
[0014] Figure 3 A second schematic diagram of an interface used by the photographing method provided in an embodiment of the present application;
[0015] Figure 4A A third schematic diagram of an interface used by the photographing method provided in an embodiment of the present application;
[0016] Figure 4B A fourth schematic diagram of an interface used by the photographing method provided in an embodiment of the present application;
[0017] Figure 5A A fifth schematic diagram of an interface used by the photographing method provided in an embodiment of the present application;
[0018] Figure 5B A sixth schematic diagram of an interface used by the photographing method provided in an embodiment of the present application;
[0019] Fig. 6A Schematic diagram of the interface used by the shooting method provided in the embodiment of the present application, No. 7;
[0020] Figure 6B An eighth schematic diagram of an interface used by the photographing method provided in an embodiment of the present application;
[0021] Figure 6C A ninth schematic diagram of an interface used by the photographing method provided in an embodiment of the present application;
[0022] Fig.6D A tenth schematic diagram of an interface used by the photographing method provided in an embodiment of the present application;
[0023] Figure 7 A schematic diagram of the structure of a photographing device provided in an embodiment of the present application;
[0024] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0025] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0028] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "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 (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".
[0029] The execution subject of the shooting method provided in the embodiment of the present application may be a shooting device, which may be an electronic device, or a functional module or functional entity in the electronic device. The shooting method provided in the embodiment of the present application is described below by taking the electronic device executing the shooting method as an example.
[0030] The following is a detailed description of the shooting method provided in the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0031] The shooting method provided in the embodiment of the present application can be applied to the scene of shooting portraits or the scene of recording videos of group portraits.
[0032] For the scenario of taking 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 shooting field of view of the wide-angle camera and user A does not want user E to appear in the captured image, privacy protection processing can be performed on the image area of user E in the captured image.
[0033] For the scenario of recording a video of a group portrait, assume that user A uses the wide-angle camera of an electronic device to record a video for user B, user C, and user D. If user E enters the shooting field of view of the wide-angle camera and user A does not want user E to appear in the recorded video, 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 the embodiment of the present application can also be applied to scenes of shooting other objects, such as shooting natural landscapes, buildings, and any other scenes, and the embodiment of the present application is not limited to this.
[0035] Figure 1 A schematic diagram of the process of the shooting method provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, the shooting method may include the following steps 201 to 203:
[0036] Step 201: A first electronic device receives a first input from a user on a shooting preview interface.
[0037] The shooting preview interface includes a preview image captured by the camera.
[0038] In some embodiments of the present application, the above-mentioned camera may include any one of the following: a 2x camera, a wide-angle camera, a telephoto camera, and a depth of field camera, etc. The above-mentioned camera may also be other cameras, and the embodiments of the present application do not impose any limitations on this.
[0039] In some embodiments of the present application, the shooting preview interface is used to display the preview image captured by the camera. For example, when the camera is used to shoot a photo or video of person B, the captured image of person B is displayed in the shooting preview interface.
[0040] In some embodiments of the present application, the electronic device may display a shooting preview interface when entering a video recording mode or a photo taking mode. For example, after a user opens a camera application, the electronic device enters a video recording mode or a photo taking mode and displays a shooting preview interface.
[0041] In some embodiments of the present application, the first input is used to trigger video recording or image capture.
[0042] In some embodiments of the present application, the first input may include any of the following: a user's touch input, a voice input, a gesture input, a folding or unfolding operation of a foldable screen, or other feasible inputs, which are not limited in the embodiments of the present application. Furthermore, the touch input may be: a user's click input, a sliding input, a pressing input, etc. Furthermore, the click operation may be any number of click operations. The sliding operation may be a sliding operation in any direction, such as sliding up, sliding down, sliding to the left, or sliding to the right, etc., which are not limited in the embodiments of the present application.
[0043] Exemplarily, the first input may be a touch input of a user on a shooting control in a shooting preview window, or a folding input of a foldable screen, or a sliding input in the shooting preview window.
[0044] Step 202: The first electronic device controls a camera to shoot in response to a first input to obtain a first image file.
[0045] In some embodiments of the present application, the first image file 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 photo of person B, person C and person D, user E enters the shooting field of view of the camera. After the first electronic device takes the photo, an image including person B, person C, person D and person E will be obtained.
[0047] As another example, taking the first image file as a video, when a camera is used to record a video of person B, person C, and person D, user E enters the shooting field of view of the camera. After the first electronic device records the video, a video including person B, person C, person D, and person E will be obtained.
[0048] Step 203: The first electronic device performs privacy protection processing on the first image file according to the first information, and outputs a second image file.
[0049] Among them, the above-mentioned first information includes at least one of the following: object feature information obtained from the second electronic device, object information in the image locally stored in the first electronic device, object information configured in the target group joined by the user of the first electronic device, and object information of the object selected by the user in the shooting preview interface.
[0050] In some embodiments of the present application, the second image file may include at least one of an image and a video. For example, when the first image file is an image, the second image file may be an image; when 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 the object feature information to the first electronic device.
[0053] In some embodiments of the present application, the object feature information may include at least one of the following: facial feature information, iris feature information, voiceprint feature information, object feature information, etc. Exemplarily, for non-biological objects, the object feature information may include shape, size, color, texture, material, etc. For example, the object feature information may be the texture, edge, color distribution, etc. 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, a person, a scene, etc.), which can be a physical feature (such as color, shape, size), a behavioral feature (such as motion trajectory, speed), or any other attribute that can distinguish or define the object.
[0055] In some embodiments of the present application, the first electronic device may obtain object information in a locally stored image.
[0056] In some embodiments of the present application, the image locally stored in the first electronic device refers to an image stored in an 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 the present application, the object information may include at least one of the following: face information, object information, etc. Further, the face information may be a face image, and the object information may be an object image. Exemplarily, the face image may be a facial image of person E, and the object image may be an image of a license plate.
[0058] In some embodiments of the present 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 may be the owner of the first electronic device or another user who uses the first electronic device.
[0060] In some embodiments of the present application, the target group may be a social group, an interest group, a work group, a family group, etc.
[0061] Exemplarily, assuming that a user joins social group A, which includes user A, user B and user C, and user A, user B and user C upload their respective facial images in social group A, the first electronic device can obtain the facial image of user A, the facial image of user B and the facial image of user C in social group A.
[0062] In some embodiments of the present application, the electronic device may determine an object in the shooting preview interface and identify object information of the object based on an object selection input by a user in the shooting preview interface.
[0063] In some embodiments of the present application, the object selection input may be a sliding input or a click input on the shooting preview interface, and the electronic device may determine the object in the shooting preview interface according to the input track of the sliding input or the position of the click input. For example, assuming that the shooting preview interface displays an image of user A and an image of user B captured by the camera, the user can manually slide the input box in the shooting preview interface to select the image of user A, and the electronic device determines user A as the target object and obtains the facial information of user A.
[0064] Exemplarily, in combination with the above example, the first information includes facial feature information obtained from the second electronic device and facial information in a local image of the first electronic device. The first electronic device can jointly determine the privacy object in the first image file based on the above 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] Exemplarily, in combination 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 group 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 above facial feature information, facial information in the local image, facial images configured in the social group, 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 to the present application. Other combinations not explicitly listed are still within the scope of protection of the present application.
[0067] In some embodiments of the present application, the first electronic device may 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 may match the first information with the first image file, and when the first image file contains an object matching the first information, determine the object in the first image file as a privacy object, and perform privacy processing on the privacy object.
[0069] In some examples, the electronic device may match the first information with the first image file, and when the first image file contains an object matching the first information, determine other objects in the first image file except the object as privacy objects, and perform privacy processing on the privacy objects.
[0070] In some embodiments of the present application, the above-mentioned privacy object may be a portrait, an object, etc.
[0071] It should be noted that the privacy object may be an object that is prohibited from being photographed.
[0072] In some embodiments of the present application, the first image file is an image, and the first electronic device can mask or eliminate the area where the private information in the image is located; or the first image file is a video, and the first electronic device can mask or eliminate the area where the private information in the video is located. Further, the masking process can be mosaic processing, blur processing, and replacement processing of the private information, and the above-mentioned elimination process can be removing the private information in the image through an image processing algorithm.
[0073] Exemplarily, when the first image file is an image containing a private portrait, the first electronic device may 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 matching the facial feature information, perform mosaic processing on the private portrait.
[0074] As another example, when the first image file is a video containing a private portrait, the first electronic device may match a preset facial image with facial information in a video frame of the video, and when the video frame of the video contains a private portrait matching the facial image, the first electronic device may perform mosaic processing on the private portrait in the video frame.
[0075] As another example, when the first image file is a video containing a private portrait, the first electronic device may perform mosaic processing on the portrait E in the video frame according to information of the portrait E selected in advance by the user in the shooting preview interface.
[0076] The shooting method provided in the embodiment of the present application is that the first electronic device receives the first input of the user on the shooting preview interface showing the preview image captured by the camera, controls the camera to shoot, obtains the first image file, and performs privacy protection processing on the first image file according to the first information, and outputs the processed first image file, wherein the first information is at least one of the following: object feature information obtained from the second electronic device, object information in the image locally stored by the first electronic device, and object information configured in the target group joined by the user of the first electronic device. Through this method, the first electronic device can automatically perform privacy protection processing on the first image file according to at least one of the object feature information from the second electronic device, the object information obtained from the local end, the object information in the target group, and the object information of the object selected by the user, thereby simplifying the steps of the privacy protection processing flow, thereby improving the efficiency of privacy protection.
[0077] In some embodiments of the present application, after the first electronic device identifies that a first image file contains a privacy object based on object feature information from the second electronic device and performs privacy protection processing on the privacy object in the first image file, the first electronic device can send a first message to the second electronic device, where the first message is used to prompt that the file taken by the first electronic device contains a privacy object and that the privacy object has been mosaic processed.
[0078] In some embodiments of the present application, after receiving the first message, the second electronic device may display prompt information according to the first message to prompt the user that other electronic devices have taken photos of the privacy correspondence.
[0079] Exemplarily, after receiving the first message, the second electronic device displays a prompt message on the display screen: "The content photographed by device 1 includes person E, and the person E has been mosaic processed."
[0080] In some embodiments of the present application, before the above step 201, the shooting method provided in the embodiment of the present application further includes the following steps 204 and 205:
[0081] Step 204: The first electronic device displays a shooting preview interface.
[0082] Step 205: The first electronic device determines the privacy object in the shooting preview interface according to the first information, and displays a prohibition mark corresponding to the privacy object in the shooting preview interface.
[0083] Among them, the above-mentioned no-photography sign is used to indicate that photography of private objects is prohibited.
[0084] In some embodiments of the present application, the first electronic device may match the first information acquired or configured in advance with the real-time preview image in the shooting preview interface, determine 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 the present application, the aforementioned prohibited photography sign may be any information that can identify an object, such as a pattern, a symbol, or text.
[0086] It should be noted that the prohibited shooting mark is used to identify the corresponding privacy object, that is, to inform the user which objects in the current preview interface are not allowed to be photographed.
[0087] Exemplarily, 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 mask layer on the privacy object with the text or icon of "No Photography" on it; or the electronic device may display a highlighted or flashing border on the privacy object to highlight the privacy object and remind that the privacy object is not allowed to be photographed.
[0088] In some embodiments of the present application, when the first electronic device recognizes at least one privacy object in the shooting preview interface, it can display prompt information in the shooting preview interface to prompt the number of recognized privacy objects.
[0089] For example, if the first electronic device recognizes that the shooting preview interface includes two prohibited shooting objects (i.e., privacy objects), it will display a prompt message "2 prohibited shooting objects detected" in the shooting preview interface to remind the user of the number of prohibited shooting objects currently entering the shooting range. In this way, by displaying the prompt message "2 prohibited shooting objects detected" in the shooting preview interface, user A can clearly understand how many prohibited shooting objects are in the current shooting range. This helps users quickly adjust the shooting angle or position to avoid these objects, thereby improving shooting efficiency.
[0090] For example, in combination with the above examples, Figure 2 As shown, when user A wants to take a photo of person B, person C and person D, after the user opens the camera application of the first electronic device, the first electronic device displays a shooting preview interface 21, which includes person B, person C, person D and person E and person F who have mistakenly 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 pre-selected by the user in the shooting preview interface. Then, the first electronic device displays a no-shooting mark 22 and a no-shooting mark 23 in the upper right corner of person E and person F in the shooting preview interface 21, respectively, to remind that person E and person F are objects that are not allowed to be photographed. In addition, the first electronic device displays a prompt message "2 prohibited shooting objects detected" in the shooting preview interface to remind user A that there are currently two prohibited shooting objects entering the shooting range.
[0091] In a shooting scenario, when taking a group photo, user A may not want to take photos of people who are irrelevant to the subject of the group photo or who should not be photographed (such as person E and person F). The shooting method provided in the embodiment of the present application automatically identifies and marks these prohibited objects in the form of prohibited shooting marks in the shooting preview interface, thereby avoiding users from discovering problems after shooting, thereby saving users' time and energy and improving the shooting experience. In addition, this not only effectively reminds user A not to shoot these objects, but also prevents the leakage of personal privacy and enhances the privacy protection effect.
[0092] In some embodiments of the present application, the above step 205 may include the following 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 determines an object that matches the object feature information among the at least one object as a privacy object.
[0095] In some embodiments of the present 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 to identify various objects in the preview image, which may be people, animals, objects, buildings, etc.
[0096] For example, in combination with the above example, in a scene where user A wants to take a group photo of person B, person C, and person D, the first electronic device displays a shooting preview interface 31 including these three persons and person E and person F who have mistakenly 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 five objects: person B, person C, person D, person E, and person F.
[0097] In some embodiments of the present application, the first electronic device may identify the privacy object in the shooting preview interface based on the received object feature information (sensitive information such as face features, iris features, ID card number, name, etc.) or based on the pre-set object information (face image, iris image, object image, etc.), or based on the object information of the object selected by the user in the shooting preview interface. Specifically, the first electronic device may match all the identified objects with the object feature information or object information, and mark the matching objects as privacy objects.
[0098] For example, in combination 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 determines person E as a private object.
[0099] As another example, in combination 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 the pre-configured object information (for example, the facial image of person E matches the pre-configured facial image), the first electronic device determines person F as a privacy object.
[0100] For example, in combination 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 the image of the person selected by the user in advance in the shooting preview interface, the first electronic device determines person F as a private object.
[0101] In the embodiment of the present application, by automatically identifying and marking private objects, users can be prevented from accidentally photographing sensitive or unphotographed people, thereby reducing the risk of privacy leakage. At the same time, by intuitively displaying the prohibited shooting logo and prompt information in the shooting preview interface, the user's perception and control ability is improved, allowing the user to more intuitively understand the current shooting status, thereby improving the user experience of the shooting process.
[0102] In some embodiments of the present application, the above step 205 may include the following 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 the at least one object among the at least one object.
[0105] Step 205e: the first electronic device determines an object other than the target object among the at least one object as a privacy object.
[0106] In some embodiments of the present application, the first electronic device uses image recognition technology (such as deep learning models, computer vision algorithms, etc.) to parse the real-time displayed shooting preview image to identify each independent object contained in the image, such as people, animals, objects or other identifiable entities.
[0107] In some embodiments of the present 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 determine the remaining objects in the preview image (i.e., objects that are not determined as target objects) as privacy objects.
[0108] Exemplarily, in combination with the above example, after the first electronic device determines at least one object in the preview image, it can determine the object in the at least one object that matches the first information as a privacy object; or, determine the object in the at least one object other than the target object as a privacy object, where 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 pay attention to, and other objects except the target object are private objects and are not allowed to be photographed or recorded at will.
[0110] Exemplarily, in combination with the above embodiment, it is assumed that 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 the above objects with pre-configured object information. Assuming that the facial features of person A, person B, and person C match the pre-configured face image, the first electronic device determines person A, person B, and person C as target objects. Since person A, person B, and person C have been determined as target objects, the first electronic device regards the remaining objects person D and person E as privacy objects.
[0111] In an embodiment of the present application, by matching objects in the preview image with pre-configured information and determining which objects are private objects, the first electronic device can provide users with a higher level of privacy protection, thereby preventing users from inadvertently photographing people who do not want to be recorded, thereby reducing the risk of privacy leakage.
[0112] In some embodiments of the present application, the first information is object feature information obtained from the second electronic device; illustratively, after the above step 205, the shooting method provided in the embodiment of the present 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 indicate that the shooting preview interface of the first electronic device includes a privacy object that matches the object feature information.
[0115] Exemplarily, in combination 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 object feature information 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), electronic device 1 determines person E as a private object, displays a prompt message in the shooting preview interface, such as "1 prohibited shooting object is detected", and displays a prohibited shooting sign at the position 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 the embodiment of the present application, the first electronic device sends a notification to the second electronic device to remind the relevant user to pay attention to his or her privacy security, so that the user of the second electronic device or people related to it can immediately take measures to protect their privacy, such as leaving the shooting range or reminding the photographer to pay attention. In this way, the user's awareness of privacy protection is enhanced through clear prompts and notifications, and the user's privacy security is improved.
[0117] In some embodiments of the present application, when the second electronic device receives the second message from the first electronic device, it displays prompt information according to the second message, and the prompt information is used to prompt that the privacy object that is not allowed to be photographed is within the shooting range of the first electronic device.
[0118] For example, in combination with the above Figure 2 When user A wants to take a photo of person B, person C and person D, after the user opens the camera application of the first electronic device, the first electronic device displays a shooting preview interface 21, which includes person B, person C, person D and person E and person F who have mistakenly 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 the object pre-selected by the user in the shooting preview interface. Then, the first electronic device displays a prohibition mark 22 and a prohibition mark 23 in the upper right corner of the person E and person F in the shooting preview interface 21, respectively, to remind that person E and person F are objects that are not allowed to be photographed. In addition, the first electronic device displays a prompt message "2 prohibited shooting objects are detected" in the shooting preview interface to remind user A that there are currently two prohibited shooting objects entering 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 a notification message 31 “Person E has entered the shooting range of device 1 ” on the display screen.
[0119] In an embodiment of the present application, the first electronic device sends a notification message to the second electronic device, and the second electronic device can display a related notification on its display screen according to the notification message, thereby providing real-time feedback to the user, so that the user of the second electronic device can promptly understand that he or she has entered the shooting range and take necessary privacy protection measures. This instant notification mechanism realizes cross-device privacy protection between the first electronic device and the second electronic device, thereby improving the interoperability and privacy efficiency between electronic devices.
[0120] In some embodiments of the present application, when the second electronic device recognizes that the shooting preview interface includes a privacy object based on object feature information from the second electronic device, the second electronic device may send a request message to the second electronic device to request shooting of the privacy object.
[0121] In some embodiments of the present 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 a photo of the private object.
[0122] Furthermore, after receiving the user's touch input to 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, wherein the first option indicates consent to filming and the second option indicates disagreement to filming.
[0123] For example, in combination with the above Figure 2 When the first electronic device recognizes 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 to shoot the person E, such as Figure 4A As shown, after the second electronic device receives the notification message, it displays a notification message 41 on the display screen, “Device 1 is photographing person E, do you agree?” Then, after the user clicks on the notification message 41, as shown in FIG. Figure 4B As shown, the second electronic device displays a prompt window 42, which includes the prompt information "Device 1 is taking a photo of person E, do you agree?", the image E1 of person E, an "Agree" option and a "Disagree" option. After the user clicks the "Agree" option, the second electronic device sends a response message to the first electronic device, and the response message is used to indicate consent to take the photo of person E. After the first electronic device receives the response message, it updates the color of the prohibition mark of person E in the shooting preview interface from red to green, and does not perform privacy protection processing on person E in the first image file after shooting.
[0124] In an embodiment of the present application, when the first electronic device recognizes the privacy object of the second electronic device in the shooting preview interface, it can send a notification message to the second electronic device. The second electronic device improves the flexibility of privacy protection by displaying a prompt window on the second electronic device and soliciting user consent.
[0125] In some embodiments of the present application, the above step 203 can be implemented by the following steps 203a and 203b.
[0126] Step 203a: The first electronic device determines a privacy object in the first image file according to the first information.
[0127] Step 203b: The first electronic device performs privacy protection processing on the image area where the privacy object in the first image file is located, and outputs a second image file.
[0128] In some embodiments of the present application, the first electronic device may match the first information with an object in an image or video to identify and determine a private object in the image or video.
[0129] In some embodiments of the present application, after determining the privacy object, the first electronic device may perform privacy protection processing on the image area where the privacy object is located. Exemplarily, the above privacy protection processing includes but is not limited to blurring, pixelation, blocking, replacing the background, or completely deleting the privacy object.
[0130] It should be noted that the processed images or videos no longer contain identifiable privacy object information, thereby protecting the privacy of the relevant persons.
[0131] In some embodiments of the present application, before the above step 203, the shooting method provided by the embodiment of the present application may further include the following step A1 or step A2:
[0132] Step A1: When the first electronic device establishes a communication connection with the second electronic device, the first electronic device receives object feature information from the second electronic device through the communication connection.
[0133] Step A2: the first electronic device obtains at least one object information configured in the target group.
[0134] The target group includes at least one group member, and one group member corresponds to one or more object information.
[0135] In some embodiments of the present application, the above-mentioned communication connection may be a Bluetooth connection or a WIFI connection, etc.
[0136] In some embodiments of the present 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] Exemplarily, when the first electronic device starts taking pictures, it will actively scan all electronic devices (such as the second electronic device) within a certain range nearby that support the anti-secret photography function, and establish a connection with the nearby anti-secret photography electronic devices through wireless communication technology (such as Bluetooth, WiFi, etc.). The second electronic device will actively push the feature information of the object to be prevented from being photographed configured by the user on the device to the first electronic device.
[0138] In some possible implementations, the second electronic device may determine an object that needs to be prevented from being photographed, and send the object feature information of the object to the first electronic device. Further, the first electronic device may determine the object corresponding to the object feature information as a privacy object that does not need to be photographed.
[0139] Exemplarily, the user of the second electronic device can select an object that needs to be prevented from being photographed, and there are two ways:
[0140] Method 1: Select from the automatically classified portraits, ID cards, license plates, etc. in the album and turn on anti-secret photography.
[0141] For example, Figure 5A As shown, the album interface 51 of the first electronic device includes a thumbnail image of at least one portrait of the "person" type. The user can click on the thumbnail image of the portrait that others are not allowed to take pictures of. After the user selects thumbnail image d, thumbnail image f, thumbnail image h, and thumbnail image i, the first electronic device can determine the portraits corresponding to thumbnail image d, thumbnail image f, thumbnail image h, and thumbnail image i as privacy objects that are not allowed to be photographed, and display a no-shooting mark 52 in the upper right corner of each selected thumbnail image, and then send the object feature information of these objects to the first electronic device when it detects that there are electronic devices in the shooting state nearby (such as the first electronic device).
[0142] Furthermore, the album interface 51 also includes "people" options, "license plate" and other type options and a "custom" option. The user can select the corresponding type option to trigger the display of thumbnail images of the corresponding type of objects, or select the "custom" option to customize other object types.
[0143] For example, in combination with the above 5A, after the user clicks the "license plate" option, Figure 5BAs shown, the second electronic device displays thumbnail images 53 and thumbnail images 54 of license plate images in the album interface 51. The user can select thumbnail images of license plates that are not allowed to be photographed by others. The electronic device determines the license plate selected by the user as a privacy 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 image and select the object in the shooting preview interface.
[0145] Exemplarily, after the second electronic device opens the camera application, it collects an image of an object that is not allowed to be photographed through the camera and determines the object as a privacy object, or after receiving a user click or circle operation on the object, determines the object as a privacy object.
[0146] In an embodiment of the present application, by receiving object feature information from a second electronic device, the first electronic device can more accurately identify private objects in an image or video, thereby automatically blocking, blurring, or performing other forms of privacy protection processing on the private objects during the shooting process, thereby effectively preventing privacy leaks.
[0147] In some other possible implementations, the first electronic device may obtain object information configured in one or more target groups. Further, the first electronic device may determine the objects corresponding to the object information as objects to be photographed, and determine the objects different from the objects in the shooting preview interface as private objects that do not need to be photographed.
[0148] In some embodiments of the present application, the shooting preview interface of the first electronic device may also include at least one group identifier. After the user clicks 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, and determines other objects other than the target object as private objects that do not need to be photographed. Furthermore, the first electronic device may obtain the shooting parameters corresponding to the above object information from the target group, and shoot 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., which includes at least one group member, and each group member corresponds to one or more object information, which may include name, age, gender, facial features, photos, etc., which are used to identify specific members in the group. For example, a family group may be configured with a list of family members who do not want to be photographed and their feature information. When device 1 is shooting, device 1 can identify and mark the objects that should not be photographed based on the configured object information.
[0150] Exemplarily, the implementation may include the following steps:
[0151] Step 11: The first electronic device creates a shooting group (such as a target group) in a camera application, and related users join the group.
[0152] For example, related users can join the group by scanning their faces, such as Fig. 6A As shown, when the first electronic device displays the shooting preview interface 61 of the camera application, the user of the first electronic device (group owner) clicks "+" in the camera to create a group and takes a photo of his own face, as shown in FIG. Figure 6B As shown, the first electronic device displays a facial photo 62 and an "Initiate Group" option in the shooting preview interface 61. After the first electronic device receives a click on the "Initiate Group" option from the user, other nearby electronic devices will receive a signal to create a group. At this time, users of other nearby electronic devices open their cameras to capture the facial image of the group owner, and then click a button to join the group that appears above the facial image of the group owner.
[0153] Step 12: The first electronic device may configure at least one object information in the shooting group.
[0154] For example, after each member joins the shooting group, the member can upload one or more portrait information that he or she wants to be photographed on the portrait configuration interface, such as Figure 6C As shown, the portrait configuration interface 63 includes portraits a1 and a2 (ie, object information) uploaded by the member who wants to be photographed.
[0155] Furthermore, members can set image parameters for uploaded portraits according to shooting requirements, such as beauty, pendant stickers, etc., and configure shooting parameters for corresponding objects, so as to shoot corresponding objects according to corresponding shooting parameters. Fig.6D As shown, in the parameter setting interface 64, there are "Beauty" option, "Filter" option and "Sticker" option. Members can set the shooting parameters of the uploaded portraits according to their own needs through the above options.
[0156] Step 13: When shooting, the first electronic device Fig. 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 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 group selected by the user when shooting, and automatically eliminate or blur non-group users, and shoot and automatically beautify the corresponding portrait according to the configured shooting parameters.
[0157] In the embodiment of the present 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 policies for different groups according to their needs, thereby improving the flexibility of privacy protection.
[0158] The above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or, under the premise that there is no contradiction, can also be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.
[0159] The shooting method provided in the embodiment of the present application can be executed by a shooting device. In the embodiment of the present application, the shooting method is executed by a shooting device as an example to illustrate the shooting device provided in the embodiment of the present application.
[0160] Figure 7 A structural diagram of a photographing device 700 provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the device 700 may include: a receiving module 701, a control module 702 and a processing module 703, wherein: the above-mentioned receiving module 701 is used to receive a first input from a user to a shooting preview interface, and the above-mentioned shooting preview interface includes a preview image captured by a camera; the above-mentioned control module 702 is used to control the above-mentioned camera to shoot in response to the first input received by the above-mentioned receiving module 701, and obtain a first image file; the above-mentioned processing module 703 is used to perform privacy protection processing on the above-mentioned first image file according to the first information received by the above-mentioned receiving module 701, and output a second image file; wherein the above-mentioned first information includes at least one of the following: object feature information obtained from the second electronic device, object information in the image locally stored in the first electronic device, object information configured in the target group joined by the user of the first electronic device, and object information of the object selected by the user in the shooting preview interface.
[0161] In some embodiments of the present application, the above-mentioned device also includes a display module and a determination module, wherein: the above-mentioned display module is used to display a shooting preview interface before receiving a first input from a user on the shooting preview interface; the above-mentioned determination module is used to determine the privacy object in the shooting preview interface based on the above-mentioned first information; the above-mentioned display module is also used to display a prohibition mark corresponding to the privacy object determined by the determination module in the shooting preview interface, and the above-mentioned prohibition mark is used to indicate that shooting of the privacy object is prohibited.
[0162] In some embodiments of the present application, the above-mentioned determination module is specifically used to: perform image recognition on the preview image of the above-mentioned shooting preview interface to determine at least one object in the above-mentioned preview image; and determine the object in the above-mentioned at least one object that matches the above-mentioned first information as a privacy object.
[0163] In some embodiments of the present application, the above-mentioned 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; determine the target object that matches the above-mentioned first information in the above-mentioned at least one object; and determine objects other than the target object in the at least one object as privacy objects.
[0164] In some embodiments of the present application, the above-mentioned first information is object characteristic information obtained from the above-mentioned second electronic device; the above-mentioned device also includes: a sending module; the above-mentioned sending module is used to send a second message to the second electronic device, and the above-mentioned second message is used to indicate that the shooting preview interface of the first electronic device includes a privacy object matching the above-mentioned image characteristic information.
[0165] In some embodiments of the present application, the processing module is specifically used to: determine the privacy object in the first image file according to 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.
[0166] In some embodiments of the present application, the above-mentioned device also includes: a receiving module; the above-mentioned receiving module is used to perform privacy protection processing on the first image file according to the first information, and before outputting the processed first image file, when a communication connection is established with the second electronic device, receive object feature information from the second electronic device through a communication connection; or, the above-mentioned processing module is also used to perform privacy protection processing on the above-mentioned first image file according to the first information, and before outputting the processed first image file, obtain at least one object information configured in the target group, wherein the above-mentioned target group includes at least one group member, and one of the above-mentioned group members corresponds to one or more object information.
[0167] The shooting device provided in the embodiment of the present application receives a first input from a user on a shooting preview interface displaying a preview image captured by a camera, controls the camera to shoot, obtains a first image file, performs privacy protection processing on the first image file according to first information, and outputs the processed first image file, wherein the first information is at least one of the following: object feature information obtained from a second electronic device, object information in an image locally stored by the first electronic device, object information in a target group joined by a user of 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 according to at least one of the object information in the local image, the object feature information from the second electronic device, the object information configured in the group joined by the user, and the object information selected by the user, thereby simplifying the steps of the privacy protection processing flow, thereby improving the efficiency of privacy protection.
[0168] The shooting device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0169] The shooting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0170] The shooting device provided in the embodiment of the present application can implement each process implemented in the above-mentioned shooting method embodiment, and will not be described again here to avoid repetition.
[0171] Alternatively, if Figure 8 As shown, an embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 802 stores programs or instructions that can be executed on the processor 801, and when the program or instructions are executed by the processor 801, the various steps of the above-mentioned shooting method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described again here.
[0172] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0173] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0174] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0175] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0176] Among them, the above-mentioned user input unit 107 is used to receive the user's first input on the shooting preview interface, and the above-mentioned shooting preview interface includes a preview image captured by the camera; the above-mentioned processor 110 is used to control the above-mentioned camera to shoot in response to the first input received by the above-mentioned user input unit 107, and obtain a first image file; the above-mentioned processor 110 is used to perform privacy protection processing on the above-mentioned first image file according to the first information received by the above-mentioned user input unit 107, and output the processed first image file; wherein the above-mentioned first information includes at least one of the following: object feature information obtained from the second electronic device, object information in the image locally stored in the first electronic device, object information configured in the target group joined by the user of the first electronic device, and object information of the object selected by the user in the shooting preview interface.
[0177] In some embodiments of the present application, the display unit 106 is used to display a shooting preview interface before receiving a first input from a user on the shooting preview interface; the processor 110 is used to determine a privacy object in the shooting preview interface based on the first information; the display unit 106 is also used to display a prohibition mark corresponding to the privacy object determined by the processor 110 in the shooting preview interface, and the prohibition mark is used to indicate that shooting of the privacy object is prohibited.
[0178] In some embodiments of the present application, the processor 110 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 an object in the at least one object that matches the first information as a privacy object.
[0179] In some embodiments of the present application, the processor 110 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; determine a target object in the at least one object that matches the first information; and determine objects other than the target object in the at least one object as privacy objects.
[0180] In some embodiments of the present application, the first information is object characteristic information obtained from the second electronic device; the radio frequency unit 101 is used to send a second message to the second electronic device, and the second message is used to indicate that the shooting preview interface of the first electronic device includes a privacy object that matches the above-mentioned image characteristic information.
[0181] In some embodiments of the present application, the processor 110 is specifically used to: determine the privacy object in the first image file according to 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 the present application, the user input unit 107 is used to perform privacy protection processing on the first image file according to the first information, and before outputting the processed first image file, when a communication connection is established with the second electronic device, receive object feature information from the second electronic device through a communication connection; or, the processor 110 is also used to perform privacy protection processing on the first image file according to the first information, and before outputting the processed first image file, obtain at least one object information configured in a target group, 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 the embodiment of the present application receives a first input from a user on a shooting preview interface displaying a preview image captured by a camera, controls the camera to shoot, obtains a first image file, performs privacy protection processing on the first image file according to the first information, and outputs the processed first image file, wherein the first information is at least one of the following: object feature information obtained from a second electronic device, object information in an image locally stored by the first electronic device, object information in a target group joined by a user of the first electronic device, and object information of an object selected by the user in the shooting interface. In this way, the electronic device can automatically perform privacy protection processing on the first image file according to at least one of the object information in the local image, the object feature information from the second electronic device, the object information configured in the group joined by the user, and the object information selected by the user, thereby simplifying the steps of the privacy protection processing flow and improving the efficiency of privacy protection.
[0184] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: 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 keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0185] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0186] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.
[0187] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0188] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0189] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned shooting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0190] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0191] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0192] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0193] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0194] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A shooting method, applied to a first electronic device, characterized in that: The method comprises: Receiving a first input from a user on a shooting preview interface, wherein the shooting preview interface includes a preview image captured by a camera; In response to the first input, controlling the camera to shoot and obtaining a first image file; According to the first information, performing privacy protection processing on the first image file, and outputting 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 locally stored by the first electronic device, object information configured in a target group joined by a user of the first electronic device, and object information of an object selected by a user in the shooting preview interface.
2. The method according to claim 1, characterized in that Before receiving a first input from a user on the shooting preview interface, the method further includes: Display the shooting preview interface; According to the first information, a privacy object in the shooting preview interface is determined, and a prohibition mark corresponding to the privacy object is displayed in the shooting preview interface, wherein the prohibition mark is used to indicate that shooting of the privacy object is prohibited.
3. The method according to claim 2, characterized in that The determining, according to the first information, the privacy object in the shooting preview interface includes: Performing image recognition on the preview image of the shooting preview interface to determine at least one object in the preview image; An object among the at least one object that matches the first information is determined as the privacy object; or an object among the at least one object other than a target object is determined as the privacy object, the target object being the object that matches the first information.
4. The method according to claim 2, characterized in that: The first information is object feature information obtained from the second electronic device; after determining the private object in the shooting preview interface according to the first information, the method further includes: A second message is sent to the second electronic device, where the second message is used to indicate that the shooting preview interface of the first electronic device includes a privacy object that matches the object feature information.
5. The method according to claim 1, characterized in that The step of performing privacy protection processing on the first image file according to the first information and outputting a second image file comprises: determining a privacy object in the first image file according to the first information; Perform privacy protection processing on the image area where the privacy object is located in the first image file, and output the second image file.
6. A photographing device, characterized in that: The device comprises: a receiving module, a control module and a processing module, wherein: The receiving module is used to receive a first input from a user on a shooting preview interface, where the shooting preview interface includes 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 to obtain 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; The first information includes at least one of the following: object feature information obtained from the second electronic device, object information in an image locally stored by the first electronic device, object information configured in a target group joined by a user of the first electronic device, and object information of an object selected by a user in the shooting preview interface.
7. The device according to claim 6, characterized in that The device also includes a display module and a determination module, wherein: The display module is used to display the shooting preview interface before receiving the first input of the user on the shooting preview interface; The determination module is used to determine the privacy object in the shooting preview interface according to the first information, and the display module is also used to display the prohibition mark corresponding to the privacy object determined by the determination module in the shooting preview interface, and the prohibition mark is used to indicate that the privacy object is prohibited from being photographed.
8. The device according to claim 7, characterized in that The 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; Determine an object among the at least one object that matches the first information as the privacy object; Alternatively, objects other than the target object in the at least one object are determined as the privacy object, and the target object is an object matching the first information.
9. The device according to claim 7, characterized in that The first information is object feature information acquired 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, where the second message is used to indicate that the shooting preview interface of the first electronic device includes a privacy object that matches the object feature information.
10. The device according to claim 6, characterized in that The processing module is specifically used for: determining a privacy object in the first image file according to the first information; Perform privacy protection processing on the image area where the privacy object is located in the first image file, and output the second image file.
11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Shooting method and electronic equipment
CN111050077A
Display method and device and electronic equipment
CN112804445A
Privacy protection method and equipment for shooting
CN115460349A
Image processing method and device, electronic equipment and computer readable storage medium
CN117372280A
Photographing device
JP2009204918A