WO2021027633A1 - Picture processing method and related apparatus - Google Patents
Picture processing method and related apparatus Download PDFInfo
- Publication number
- WO2021027633A1 WO2021027633A1 PCT/CN2020/106822 CN2020106822W WO2021027633A1 WO 2021027633 A1 WO2021027633 A1 WO 2021027633A1 CN 2020106822 W CN2020106822 W CN 2020106822W WO 2021027633 A1 WO2021027633 A1 WO 2021027633A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- picture
- application
- picture data
- private information
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/53—Querying
- G06F16/535—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6245—Protecting personal data, e.g. for financial or medical purposes
- G06F21/6254—Protecting personal data, e.g. for financial or medical purposes by anonymising data, e.g. decorrelating personal data from the owner's identification
Definitions
- This application relates to the field of information processing technology, and in particular to an image processing method and related devices.
- this application provides an image processing method, including: a first electronic device receives a user's first input for a first application. In response to the first input, the first electronic device obtains first picture data. When the first application does not have permission to access the private information of the picture, the first electronic device deletes the private information in the first picture data. The first electronic device sends the first picture data after the private information is deleted to the second electronic device through the first application.
- the method when the first application has permission to access the private information of the picture, the method further includes: when the first electronic device determines that the avatar information corresponding to the account on the second electronic device is included in the first application In a picture data, the first electronic device sends the encrypted first picture data and the key to the second electronic device through the first application. Wherein, the key is used for the second electronic device to decrypt private information.
- the first electronic device determines that the avatar information corresponding to the account on the second electronic device is not included in the first picture data
- the first picture data after the private information is encrypted by the first electronic device is sent to the first application The second electronic device. In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user.
- the first electronic device acquiring the first picture data specifically includes: a storage path for the first electronic device to acquire the first picture data; the first electronic device according to the storage of the first picture data Path to obtain the first picture data.
- the method further includes: the first electronic device sends the first picture data to the second electronic device through the first application .
- the privacy information includes one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode information, and portrait mood information.
- the present application provides a first electronic device, including: an input module, configured to receive a user's first input for a first application.
- the obtaining module is configured to obtain first picture data in response to the first input.
- the processing module is used to delete the private information in the first picture data when the first application does not have permission to access the private information of the picture.
- the sending module is used to send the first picture data after deleting the private information to the second electronic device through the first application.
- the user can set the permission of the application to access the private information in Exif data on the first electronic device.
- the first electronic device can In the process of obtaining the original image of the picture or obtaining the Exif data separately, the application dynamically deletes the private information in the Exif data (such as GPS location information, picture shooting time, picture shooting model, etc.). In this way, it can be realized that the first electronic device does not change the picture data stored in the mobile phone itself, and when reading the picture data or reading the Exif data in the picture data, the private information in the Exif data is dynamically deleted, thereby protecting user privacy.
- the private information in the Exif data is dynamically deleted, thereby protecting user privacy.
- the input module is also used to receive a second input from the user.
- the first electronic device further includes: a setting module, configured to enable or disable the permission of the first application to access the private information of the picture in response to the second input. In this way, the user can set the permission to obtain the private information in the picture for the application on the first electronic device, and protect the privacy of the user for different applications.
- the first electronic device further includes: an encryption module configured to encrypt the private information in the first picture data when the first application has permission to access the private information of the picture.
- the sending module is further configured to send the first image data encrypted with the private information to the second electronic device through the first application when the second electronic device does not have the right to obtain the private information of the first picture data.
- the first electronic device further includes: an encryption module configured to encrypt the private information in the first picture data when the first application has permission to access the private information of the picture.
- the sending module is also used to send the first image data and key after encrypting the private information to the first application through the first application when the second electronic device has the authority to obtain the private information of the first image data.
- the key is used for the second electronic device to decrypt the encrypted private information in the first picture data. In this way, when the electronic device 100 shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user.
- the first electronic device further includes: an encoding and decoding module, configured to decode the first picture data, and store the decoded first picture data in a designated buffer.
- the processing module is specifically configured to delete the private information in the first picture data in the designated cache. In this way, the picture data stored in the mobile phone itself is not changed, and the private information in the Exif data is dynamically deleted when the picture data is read or the Exif data in the picture data is read.
- the obtaining module is specifically configured to: in response to the first input, obtain a storage path of the first picture data; and obtain the first picture data according to the storage path of the first picture data.
- the sending module is further configured to send the first picture data to the second electronic device when the first application has permission to access the private information of the picture.
- the privacy information includes one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode information, and portrait mood information.
- this application provides a first electronic device, including one or more processors, one or more memories, and a touch screen.
- the one or more memories are coupled with one or more processors, and the one or more memories are used to store computer program codes.
- the computer program codes include computer instructions.
- the one or more processors execute the computer instructions
- the first electronic The device executes the image processing information method in any one of the possible implementation manners of any of the foregoing aspects.
- an embodiment of the present application provides a computer storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the image processing information in any one of the possible implementations of any of the above aspects method.
- the embodiments of the present application provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute the image processing information method in any one of the possible implementations of any of the above aspects.
- FIG. 1 is a schematic diagram of a picture file format provided by an embodiment of the application
- FIG. 2 is a schematic diagram of the flow of reading original pictures by an application in the related technology provided by this application;
- FIGS. 8A-8B are schematic diagrams of another set of interfaces provided by an embodiment of this application.
- FIGS. 10A-10F are schematic diagrams of another set of interfaces provided by an embodiment of the application.
- FIGS. 11A-11E are schematic diagrams of another set of interfaces provided by an embodiment of this application.
- the tag value corresponding to the GPS version is "0", the tag value corresponding to the GPS north and south latitude is “1”, the tag value corresponding to the GPS latitude is “2”, and the GPS east-west longitude
- the corresponding tag value is "3”
- the tag value corresponding to the GPS longitude value is "4"
- the tag value corresponding to the GPS altitude reference value is "5"
- the tag value corresponding to the GPS altitude is “6”
- the GPS time stamp corresponds to
- the tag value is "7”
- the tag value corresponding to the GPS measured satellite is "8”
- the tag value corresponding to the GPS receiver status is "9”
- the tag value corresponding to the GPS measurement mode is "10”
- the value is "11”
- the tag value corresponding to the GPS speed unit is “12”
- the tag value corresponding to the GPS receiver speed is “13”
- the tag value corresponding to the GPS moving direction reference is “14”
- FIG. 2 shows the flow of reading original pictures by an application in the related technology of the present application.
- the process of reading image data by applications on mobile phones, tablets and other electronic devices can be as follows:
- the picture reading request may include information such as picture address, operation type, conversion operation, and so on.
- the electronic device may use a uniform resource identifier (URI) to represent each available resource (for example, pictures, video clips, etc.).
- URI generally consists of three parts: the naming mechanism for accessing resources (scheme), the hostname where the resources are stored (hostname), and the name of the resource itself (path).
- the picture acquisition module can convert the URI of the picture into the storage path of the picture.
- the URI of all picture folders on the electronic device may be "content://media/external", where the URI of picture A in all pictures may be "content://media/external/images/media/212304 ".
- the image acquisition module can convert the URI of the image A into the storage path of the image, where the storage path of the image A can be "file://storage/emulated/0/Android/data/com.zn_android.zn/cache /PostPicture/20190905193015.jpg".
- the above examples are only used to explain the application and should not constitute a limitation.
- the picture information stored in the bottom layer has to undergo codec conversion before it can become our common picture file.
- the picture processing module Through the picture processing module, the picture can be decoded, inverted, and cropped.
- the upper-layer application may obtain the picture from the cache according to the calling interface returned by the cache module.
- some applications on the electronic device can also obtain the Exif data of the picture separately.
- the gallery application may obtain the GPS location information and the thumbnail of the picture from the Exif data of the picture.
- the gallery application can classify the pictures according to the GPS location information of the pictures, and display the thumbnails corresponding to the pictures with the GPS location information in the same area on the same page of the gallery application interface In the display area.
- the picture gallery application can also obtain the shooting time and thumbnail of the picture from the Exif data of the picture. After the gallery application obtains the shooting time and thumbnail of the picture, the gallery application can classify the pictures according to the shooting time of the picture, and display the thumbnails corresponding to the pictures in the same time period in the same display area of the gallery application interface in.
- the electronic device 100 displays a gallery interface 410.
- the gallery interface 410 may include one or more folders.
- the one or more folders are distinguished by address names.
- the address names of the aforementioned one or more folders may include Guangzhou, Shenzhen, Wuhan, Shanghai, Beijing, Zhuhai, etc.
- the address name of the folder 411 may be "Shenzhen”. It means that the shooting addresses of the pictures in the folder 411 are all in "Shenzhen".
- the original picture data will carry the corresponding Exif data.
- the Exif data may include shooting location information (for example, GPS positioning information), shooting time, shooting device model, shooting mode, portrait mood information, etc. This information does not affect the imaging and display effect of the picture, but it will expose personal privacy data. For example, when an electronic device uses WeChat to send the original image, it will send out the real image file together with Exif data, causing the leakage of user privacy data.
- FIG. 5 shows a schematic structural diagram of the electronic device 100.
- the electronic device 100 shown in FIG. 5 is only an example, and the electronic device 100 may have more or fewer components than those shown in FIG. 5, two or more components may be combined, or Can have different component configurations.
- the various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
- the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2.
- Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display 194, And subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM subscriber identification module
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
- the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units.
- the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
- AP application processor
- modem processor modem processor
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- the different processing units may be independent devices or integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 100.
- the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
- the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may include multiple sets of I2C buses.
- the processor 110 can couple the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
- the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
- the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
- the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
- the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
- the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
- the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
- the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
- the power management module 141 may also be provided in the processor 110.
- the power management module 141 and the charging management module 140 may also be provided in the same device.
- the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
- the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
- the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmitting them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
- the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
- the modem processor may be an independent device.
- the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication technology
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
- the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
- the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 includes a display panel.
- the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
- LCD liquid crystal display
- OLED organic light-emitting diode
- active-matrix organic light-emitting diode active-matrix organic light-emitting diode
- AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
- the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
- the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
- the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
- ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be provided in the camera 193.
- the camera 193 is used to capture still images or videos.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- ISP outputs digital image signals to DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats.
- the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
- Video codecs are used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
- MPEG moving picture experts group
- the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
- the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
- the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
- UFS universal flash storage
- the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
- the audio module 170 can also be used to encode and decode audio signals.
- the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
- the speaker 170A also called a “speaker” is used to convert audio electrical signals into sound signals.
- the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
- the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
- the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
- the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
- the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C.
- the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
- the earphone interface 170D is used to connect wired earphones.
- the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association
- the air pressure sensor 180C is used to measure air pressure.
- the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers, etc.
- the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
- the light emitting diode may be an infrared light emitting diode.
- the electronic device 100 emits infrared light to the outside through the light emitting diode.
- the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
- the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
- the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
- the ambient light sensor 180L is used to sense the brightness of the ambient light.
- the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
- the temperature sensor 180J is used to detect temperature.
- the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
- the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
- the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
- the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
- the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
- the application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
- the button 190 includes a power button, a volume button, and so on.
- the button 190 may be a mechanical button. It can also be a touch button.
- the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
- the motor 191 can generate vibration prompts.
- the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
- touch operations applied to different applications can correspond to different vibration feedback effects.
- Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
- Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
- the SIM card interface 195 is used to connect to the SIM card.
- the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
- the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
- the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
- the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
- the SIM card interface 195 can also be compatible with different types of SIM cards.
- the SIM card interface 195 may also be compatible with external memory cards.
- the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
- the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
- the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
- the embodiment of the present invention takes an Android system with a layered architecture as an example to exemplify the software structure of the electronic device 100.
- FIG. 6 is a software structure block diagram of an electronic device 100 according to an embodiment of the present invention.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
- the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the system library, and the kernel layer (not shown in the figure).
- the application layer can include a series of application packages.
- the application package may include a setting application 601, a social application 602 (for example, WeChat, QQ, etc.), a gallery application 603 and other applications.
- the setting application 601 includes a filtering switch for private information, which is used to turn on/off the filtering function for private information of pictures.
- the setting application 601 can also modify the setting parameters of the application.
- Applications such as the social application 602 and the gallery application 603 can be used to obtain the original image data, Exif data, thumbnail data, etc. of the image file on the electronic device.
- the social application 602 can also send the original image data to the contact's device.
- the application framework layer may include an Exif data acquisition module 604, an Exif data optimization module 605, a thumbnail acquisition module 606, an original image acquisition module 607, and so on.
- the application framework layer may also include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. (all not shown in the figure).
- the window manager is used to manage window programs.
- the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
- the content provider is used to store and retrieve data and make these data accessible to applications.
- the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
- the view system includes visual controls, such as controls that display text and controls that display pictures.
- the view system can be used to build applications.
- the display interface can be composed of one or more views.
- the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
- the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
- the 2D graphics engine is a drawing engine for 2D drawing.
- the media library includes a picture codec library 608, and the picture codec library 608 can be used to code and decode pictures.
- the Exif data optimization module 605 can determine whether the application B has permission to access the private information in the picture file. If the application B does not have permission to access the private information in the image file, the Exif data optimization module 605 can call the Exif data acquisition module 604 to filter out the private information in the Exif data after acquiring the Exif data.
- the Exif data optimization module 605 can determine whether the application C has permission to access the private information in the picture file. If the application C does not have permission to access the private information in the image file, the Exif data optimization module 605 can call the thumbnail acquisition module 606 to obtain the thumbnail data and thumbnail exif information, filter out the private information in the thumbnail exif information, and Provide an interface for application C to call the thumbnail data and thumbnail exif information after filtering the private information.
- the Exif data optimization module 605 can determine whether the application C has permission to access the thumbnails in the picture folder. If the application C does not have the permission to access the thumbnails, the Exif data optimization module 606 can instruct to shrink The thumbnail image acquisition module 606 rejects the application C's thumbnail acquisition request.
- the following describes the user interface (UI) involved in the user setting permissions for the application in the embodiment of the present application.
- the electronic device 100 may display a home screen interface 710 on the touch screen.
- the home screen interface 710 displays a page on which application icons are placed.
- the page includes multiple application icons (for example, weather application icons, stock application icons). Icon, calculator application icon, setting application icon 711, mail application icon, Alipay application icon, Facebook application icon, browser application icon, gallery application icon, music application icon, video application icon, WeChat application icon).
- a page indicator is also included below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages.
- There are multiple tray icons below the page indicator (such as dial-up application icon, information application icon, contact application icon, camera application icon). The tray icon remains displayed when the page is switched.
- the page can include multiple application icons and page indicators ; The page indicator may not be a part of the page and exist alone. The above-mentioned tray icon is also optional, which is not limited in the embodiment of the application.
- the electronic device 100 may receive an input operation (for example, a single click) of the user with respect to the setting application icon 711, and in response to the input operation, the electronic device 100 may display the setting main interface 720 as shown in FIG. 7B.
- an input operation for example, a single click
- the main setting interface 720 display includes wireless and network settings, device connection settings, application settings 721, battery settings, display settings, sound settings, storage settings, security and privacy settings. Entry, user and account setting entries, system setting entries, etc.
- wireless and network setting items can be used to set up WLAN, dual card management, mobile network, etc.
- the device connection setting item can be used to set Bluetooth, NFC, mobile phone screen projection, etc.
- the application setting item 721 can be used to set permission management, default applications, application clones, and so on.
- the battery setting item can be used to set the power saving mode and display the power consumption ranking and so on.
- the display setting item can be used to set the display brightness, desktop style, font and display size of the electronic device, etc.
- the sound setting item can be used to set DND, ringtone, vibration, etc.
- the storage settings entry can be used to clean up memory acceleration and so on.
- Security and privacy can be used to set face unlock, fingerprint, lock screen password and so on.
- User and account setting items can be used to set up multiple users, cloud space, accounts, and so on.
- the system setting item can be used to set the system navigation mode, software update, language and input method, etc.
- the electronic device 100 may receive an input operation (for example, a single click) of the user on the application setting item 721, and in response to the input operation, the electronic device 100 may display an application setting interface 730 as shown in FIG. 7C.
- an input operation for example, a single click
- the electronic device 100 may receive an input operation (for example, a single click) of the user for the authority management setting item 731, and in response to the input operation, the electronic device 100 may display the authority management interface 740 as shown in FIG. 7D.
- an input operation for example, a single click
- the authority management interface 740 can display storage authority setting items, phone authority setting items, location information authority setting items, camera authority setting items, microphone authority setting items, address book authority setting items, and information authority setting items. Entry, picture permission setting entry 741, etc.
- the storage permission setting item can be used to set the permission of an application program installed on the electronic device 100 to access the storage.
- the phone permission setting item can be used to set the permission of the installed application of the electronic device 100 to access the phone function.
- the location information setting item can be used to set the permission of the application installed on the electronic device 100 to open the location function.
- the camera permission setting item can be used to set the permission of an application installed on the electronic device 100 to open the camera function.
- the microphone permission setting item can be used to set the permission of an application installed on the electronic device 100 to turn on the microphone function.
- the address book permission setting entry can be used to set the permission of the application installed on the electronic device 100 to access the address book.
- the information authority setting item can be used to set the authority of the applications installed on the electronic device 100 to read SMS/MMS, send SMS/MMS, and receive SMS/MMS.
- the picture permission setting item can be used to set the permission of the application installed on the electronic device 100 to access the picture file stored on the electronic device 100 (for example, obtaining the private information in the picture file, the permission to separately obtain the Exif data of the picture file, and obtaining the thumbnail Permissions, etc.).
- the electronic device 100 may receive an input operation (for example, a click) of the user for the picture permission setting item 741, and in response to the input operation, the electronic device 100 may display a picture permission setting interface 750 as shown in FIG. 7E.
- an input operation for example, a click
- the picture permission setting interface 750 may include a picture privacy information filtering item 751, a picture thumbnail filtering item 752, and so on.
- the picture privacy information filtering entry 751 can be used to set the permission of the application to access the private information in the picture file stored on the electronic device 100.
- the picture thumbnail filtering entry 752 can be used to set the permission of the application to access thumbnails in the picture files stored on the electronic device 100.
- the electronic device 100 may receive the user's input operation on the picture privacy information filtering item 751, and in response to the input operation, the electronic device 100 may receive the picture privacy information setting interface 760 as shown in FIG. 7F.
- the picture privacy information setting interface 760 may display one or more application setting options (for example, WeChat setting options, Facebook setting options, Twitter setting options, QQ setting options, gallery setting options, etc. ).
- application setting options for example, WeChat setting options, Facebook setting options, Twitter setting options, QQ setting options, gallery setting options, etc.
- the switch control can be used to turn on or turn off the privacy information filtering function when the application accesses pictures.
- the switch control 761 on the WeChat application option can be used to turn on/off the filtering function of private information when the WeChat application accesses pictures.
- the picture privacy information setting interface 760 may also display a selection all switch 762. When the selection all switch is turned on, the setting application can turn on the switches corresponding to all application setting options in the picture privacy information setting interface 760. Control.
- the electronic device 100 may receive a user's input operation on the switch control 761, and in response to the input operation, the electronic device 100 may enable privacy information filtering when the WeChat application accesses pictures.
- the picture privacy information setting interface 760 is on the WeChat application option.
- the switch control 761 can be in an on state.
- the electronic device 100 displays a picture browsing interface 810.
- the picture browsing interface 810 can display the picture 811 and the shooting location 812 corresponding to the picture 811 (for example, "Shenzhen") and the shooting time 813 (for example, "July 15, 2019 3:54 pm"), Picture detail information control 814, sharing function control, favorite function control, edit function control, delete function control, more function control and so on.
- the electronic device 100 may receive a user's input operation (for example, a click) on the picture detailed information control 814, and in response to the input operation, the electronic device 100 may display a picture detailed information window 820 as shown in FIG. 8B.
- a user's input operation for example, a click
- the electronic device 100 may send the image file stored locally on the electronic device 100 to other devices through a communication application (such as a WeChat application, etc.).
- a communication application such as a WeChat application, etc.
- the electronic device 100 can filter the private information in the picture file before the communication application obtains the picture file.
- the privacy information may include one or more of shooting address information, shooting device model, shooting mode, shooting time, portrait mood information, and so on. In this way, the electronic device 100 does not change the original picture data stored in the mobile phone itself, and when reading the picture data, it dynamically deletes the private information in the picture data, which protects user privacy.
- the electronic device 100 may receive an input operation (for example, a click) of the user on the WeChat application icon 911, and in response to the input operation, the electronic device 100 may display the WeChat application interface 920 as shown in FIG. 9B.
- an input operation for example, a click
- the WeChat application interface 920 includes a message browsing page 921 and a menu 923.
- the menu 923 includes a WeChat control 924, a contact control 925, a discovery control 926, and a my control 927.
- the WeChat control 924 is used to trigger the terminal 100 to display the message browsing page 921.
- the contact control 925 can be used to trigger the terminal 100 to display a page that includes multiple WeChat contact options.
- the discovery control 926 can be used to trigger the terminal 100 to display a page that includes functional controls such as Moments and Sweep.
- the my control 927 can be used to trigger the terminal 100 to display a page including the personal information of the WeChat user and other information.
- the message browsing page 921 includes one or more message options (for example, the message option 922 of the contact "MAC”, the message option of the contact "Kate”, the message option of the email reminder, the message option of the subscription number, the contact The message option of the group “workgroup 1", the message option of WeChat sports, the message option of the contact group “fitness group”).
- message options for example, the message option 922 of the contact "MAC", the message option of the contact "Kate”, the message option of the email reminder, the message option of the subscription number, the contact The message option of the group “workgroup 1", the message option of WeChat sports, the message option of the contact group "fitness group”).
- the electronic device 100 may receive an input operation (such as a single click) of the user for more controls 934, and in response to the input operation, the electronic device 100 may display a function control page 935 as shown in FIG. 9D.
- an input operation such as a single click
- the voice input function control can be used to trigger the collection of the user's voice and send it to the contact's device.
- the collection function control can be used to open files (for example, pictures, documents, music, videos, etc.) collected by the user on the WeChat application.
- the electronic device 100 receives a user's input operation (for example, a single click) on the album function control 936, and in response to the input operation, the electronic device 100 may display a picture selection interface 940 as shown in FIG. 9E.
- a user's input operation for example, a single click
- the picture selection interface 940 may include thumbnails of one or more pictures. Among them, each thumbnail can be displayed with a mark. This mark can be used to indicate whether the user has selected the picture corresponding to the thumbnail.
- the picture corresponding to the thumbnail 941 may be the picture 811 in FIG. 8A, and a mark 942 is displayed on the thumbnail 941.
- the mark 942 is currently in an unselected state to indicate that the picture corresponding to the thumbnail 941 is not selected. Selected by the user.
- the picture selection interface 940 may include an original picture selection control 943, and the original picture function control 943 may be used for the electronic device 100 to send the picture selected by the user to the contact's device without compression.
- the original image function control 943 is currently in a closed state, which is used to indicate that the current electronic device 100 will compress the image to be sent selected by the user.
- the user has selected the picture corresponding to the thumbnail 941.
- the mark 942 on the thumbnail 941 is in the selected state.
- the original image function control 943 is in an on state.
- the electronic device 100 may display a sending control 944 on the picture selection interface 940.
- the electronic device 100 can receive the user's input operation (for example, click) on the sending control 944, and in response to the input operation, the electronic device 100 can determine whether the WeChat application has permission to access the private information of the picture (for example, shooting address information, shooting time , Shooting device model, shooting mode, etc.), if the WeChat application does not have permission to access the private information of the picture, the electronic device 100 filters (can also be called deleting) the picture before the WeChat application obtains the picture corresponding to the thumbnail 941 Private information in the Exif data of the picture (for example, shooting address information, shooting time, shooting device model, shooting mode, etc.).
- the electronic device 100 filters (can also be called deleting) the picture before the WeChat application obtains the picture corresponding to the thumbnail 941 Private information in the Exif data of the picture (for example, shooting address information, shooting time, shooting device model, shooting mode, etc.).
- the electronic device 100 may filter out the private information in the Exif data of the picture when encoding and decoding the picture corresponding to the thumbnail 941, and save the picture data after the filtering (also called deletion) of the private information. Into the cache for the WeChat application to read. In another possible implementation manner, the electronic device 100 may also store the encoded and decoded picture data in a cache after encoding and decoding the picture corresponding to the thumbnail 941, and then filter (also referred to as deleting) the cache. After the private information in the Exif data of the image data, the image data after filtering out the private information is returned to the WeChat application.
- the electronic device 100 does not change the original picture data stored in the mobile phone itself, and when reading the picture data, it dynamically deletes the private information in the picture data, which protects user privacy.
- the electronic device 100 does not change the original picture data stored in the mobile phone itself, and when reading the picture data, it dynamically deletes the private information in the picture data, which protects user privacy.
- the electronic device 100 filters out the private information in the picture selected by the user (for example, shooting address information, shooting time, shooting device model, shooting mode, etc.), it can send the filtered picture with private information to the contact's device on.
- the private information in the picture selected by the user for example, shooting address information, shooting time, shooting device model, shooting mode, etc.
- the electronic device 100 can directly send the filtered private information picture to the server of the WeChat application, and then the server sends the filtered private information picture to the contact's device ( For example, the electronic device 101).
- the electronic device 100 may send a picture with filtered private information to a file server of a WeChat application. Then, the electronic device 100 sends the link of the picture to the contact's device (for example, the electronic device 101) through the communication server of the WeChat application. After obtaining the link of the picture through the communication server of the WeChat application, the device of the contact (such as the electronic device 101) can download the picture from the server according to the link of the picture.
- the electronic device 100 may display the thumbnail 951 in the chat interface 930 after sending the picture corresponding to the thumbnail 941 to the contact (for example, “MAC”) through the WeChat application.
- the thumbnail 951 and the thumbnail 941 in FIG. 9E are from the same picture.
- the device of the contact may be the electronic device 101.
- the electronic device 101 displays a chat interface 1010 of the WeChat application.
- the contact person of the chat interface 1010 is “Daniel”.
- the device of the contact "Daniel” may be the electronic device 100 in the foregoing embodiment.
- the chat interface 1010 displays the name of the contact (such as "Daniel"), the avatar of the contact, the chat message 1015, the voice input control 1011, the text input control 1012, the expression control 1013, more controls 1014, and so on.
- the chat message 1015 is a thumbnail corresponding to the picture sent by the device (electronic device 100) of the contact "Daniel".
- the electronic device 101 may receive an input operation (for example, a click) of the user for the chat message 1015, and in response to the input operation, the electronic device 101 may display a picture display interface 1020 as shown in FIG. 10B.
- an input operation for example, a click
- the electronic device 101 may display a picture display interface 1020 as shown in FIG. 10B.
- the electronic device 101 may display a picture 1021 and a save control 1022.
- the picture 1021 is sent by the electronic device 100 to the electronic device 101 through the WeChat application.
- the save control 1022 may be used to trigger the electronic device 101 to save the picture 1021 to a local folder (for example, the storage path of the picture 1021 may be "internal storage/DCIM/Wexin/IMG_20190715_155430").
- the electronic device 101 After the electronic device 101 stores the picture 1021 locally, the user can view the picture 1021 and related information of the picture 1021 in the gallery application.
- the WeChat album interface 1040 displays thumbnails including one or more pictures (for example, the thumbnail 1041 of the aforementioned picture 1021, etc.).
- the electronic device 101 can receive an input operation (for example, a click) of the thumbnail 1041 by the user, and in response to the input operation, the electronic device 101 can display a picture browsing interface 1050 as shown in FIG. 10E.
- an input operation for example, a click
- the picture browsing interface 1050 displays pictures 1021, the time the picture was saved (for example, "8:08 am on November 15, 2019"), picture details control 1052, sharing function control, and collection function Controls, edit function controls, delete function controls, more function controls, etc.
- the electronic device 101 may receive a user's input operation (for example, a click) on the picture detailed information control 1052, and in response to the input operation, the electronic device 100 may display a picture detailed information window 1060 as shown in FIG. 10F.
- a user's input operation for example, a click
- the application on the electronic device 100 can separately obtain the Exif data of the picture.
- the electronic device 100 can determine whether the application has the right to obtain the Exif data of the picture. If the application does not have permission to access the private information in the picture file on the electronic device 100, the electronic device 100 can filter the private information in the Exif data before the application obtains the Exif data of the picture. In this way, the electronic device 100 may not change the original picture data stored in the mobile phone itself, and when the application reads the Exif data, the private information in the picture data is dynamically deleted, thereby protecting user privacy.
- the cloud server may encrypt the private information in the Exif data of the picture, and then send the encrypted private information to the user B's device (for example, the electronic device 101).
- the electronic device 100 shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user.
- the function window 1120 may display that it includes one or more function options (for example, a top option, a delete option, a rename option, a sharing option 1121, an option to move into another album, etc.).
- one or more function options for example, a top option, a delete option, a rename option, a sharing option 1121, an option to move into another album, etc.
- the electronic device 100 may receive an input operation (for example, a click) of the user for the sharing option 1121, and in response to the input operation, the electronic device 100 may display an album sharing interface 1130 as shown in FIG. 11C.
- an input operation for example, a click
- each album to be shared includes one or more pictures.
- the publicly shared album control 1135 can be used to open or close the publicly selected album. Currently, the publicly shared album control 1135 is closed.
- the album address sending control 1136 can be used to trigger the electronic device 100 to send the acquisition address of the selected album to other devices.
- the electronic device 100 may receive an input operation (for example, a click) of the user for the publicly shared album control 1135, and in response to this operation, the electronic device 100 may enable the function of publicly sharing the album.
- an input operation for example, a click
- the user name of the cloud account A logged in on the electronic device 100 may be "Daniel”
- the electronic device 101 may log in to the cloud account B
- the user name of the cloud account B may be "MAC”.
- the electronic device 101 can obtain the album (or picture) shared by the electronic device 100 through the cloud account A in the following ways: 1.
- the electronic device 101 can scan the two-dimensional code 1137 of the album sharing interface 1130 shown in FIG. 11D to obtain Go to the acquisition address of the album to be shared by the electronic device 100 (for example, the aforementioned travel album 1111).
- the electronic device 100 can receive and respond to the input operation of the album address sending control 1136 shown in FIG. 11C, and send the acquisition address of the album to be shared (for example, the travel album 1111) to the electronic device 101 through social applications.
- the electronic device 100 can add the cloud account B corresponding to the electronic device 101 to the album member list, and send the acquisition address of the album to be shared (for example, the travel album 1111 described above) to the electronic device 101 logged in to the cloud account B through the cloud server.
- the electronic device 100 may add the cloud account B corresponding to the electronic device 101 to the album member list.
- the list of album members may display an identifier 1131 corresponding to the cloud account A logged in on the electronic device 100 and an identifier 1138 corresponding to the cloud account B logged in on the electronic device 101.
- the electronic device 100 may send the acquisition address of the photo album (for example, travel photo album 1111) to be shared to the electronic device 101 with the cloud account B through the cloud server.
- the photo album for example, travel photo album 1111
- the electronic device 101 may send an album acquisition request to the cloud server according to the acquisition address.
- the cloud server may send thumbnails corresponding to each picture included in the album to be shared (for example, travel album 1111) to the electronic device 101.
- the electronic device 101 may display a cloud album interface 1210.
- the cloud album interface 1210 displays thumbnails (for example, thumbnails 1211, 1212) of picture files included in an album to be shared by the electronic device 100 (for example, the travel album 1111).
- the electronic device 101 can receive the user's input operation on the thumbnail 1211. In response to the input operation, the electronic device 101 can obtain the obtaining address of the picture file corresponding to the thumbnail 1211, and download the picture file from the cloud server according to the obtaining address of the picture file The picture file to the local.
- the cloud server may send the picture file to the electronic device 101 after encrypting the private information in the Exif data in the picture file.
- the electronic device 101 may receive and respond to the user's input operation (for example, clicking) on the thumbnail 1211, and obtain the image file corresponding to the thumbnail 1211 from the cloud server. After obtaining the picture file corresponding to the thumbnail 1211, the electronic device 101 may store it in the cache, and obtain the non-private information in the main image data and Exif data from the picture file, and display the picture 1221.
- the cloud server can send the image file A with the encrypted private information to the electronic device 101.
- the electronic device 100 can allow different recipients to set different image file acquisition permissions, and can realize that the device of the recipient specified by the user (such as relatives, colleagues, etc.) can obtain the private information in the shared image file, and other recipients
- the device of a party (such as a stranger) cannot obtain the private information in the shared picture file, which protects the privacy of the user.
- the electronic device 100 may first encrypt the private information in the local picture, and then send the encrypted picture data and the key to the cloud server.
- the electronic device 100 may send the identification of the device that has the authority to obtain the private information in the picture to be shared to the cloud server.
- the cloud server receives a request from another device (such as electronic device 101) to obtain a picture to be shared, the cloud server can determine the other device (such as electronic device 101) according to the device identification (such as cloud account) of the other device (such as electronic device 101) 101) Is there permission to obtain the private information of the picture to be shared.
- the cloud server may send the encrypted private information to the picture to be shared and the key to the other device (such as the electronic device 101). If other devices do not have permission to obtain the private information of the picture to be shared, the cloud server may send the encrypted private information to the picture to be shared to other devices (for example, the electronic device 101).
- the electronic device 100 can send the picture to be shared to the receiving device (for example, the electronic device 101) through the application A.
- the electronic device 100 can delete the private information in the picture to be shared, and then delete the private information through the application A Send the picture to be shared to the receiving device. In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user.
- the electronic device 100 can encrypt the private information and use the picture to be shared through the application A.
- the decrypted key is sent to the second electronic device.
- the electronic device 100 can send the encrypted private information to the receiving device (electronic device 101) through the application A. ).
- the electronic device 100 may upload all local picture files to a cloud server for storage through application A (for example, a cloud photo album application).
- the electronic device 100 can browse the image files stored in the storage space of the cloud account A on the cloud server by logging into the cloud account A on the application A.
- the electronic device 100 can share the picture to be shared selected by the user on the cloud server to devices corresponding to other cloud accounts.
- the cloud server may determine whether the avatar information of the cloud account logged in on the receiving device (for example, the electronic device 101) requesting to obtain the picture to be shared is included in the picture to be shared. If yes, the cloud server can send the picture to be shared to the receiving device (for example, the electronic device 101).
- the cloud server can delete the private information in the picture to be shared, and then send the picture to be shared with the deleted private information to the receiving device (for example, the electronic device 101). In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user.
- the cloud server may encrypt the private information to be shared and the key for decryption Send to the second electronic device.
- the cloud server may send the encrypted private information to the picture to be shared to the receiving device (electronic device 101).
- FIG. 13 shows a picture processing method provided by an embodiment of the present application.
- the first electronic device may be the aforementioned electronic device 100
- the second electronic device may be the aforementioned electronic device 101.
- the method includes:
- the first electronic device receives a user's first input for a first application.
- the first application may be the WeChat application in the embodiment shown in FIGS. 9A to 9G, and the first input may be an input operation (for example, a single click) on the sending control 944 shown in FIG. 9F.
- the first electronic device acquires first picture data in response to the first input.
- the first electronic device may first obtain the storage path of the first picture data, and then obtain the first picture data according to the storage path of the first picture data.
- the first picture data may be a picture file corresponding to the thumbnail 941 in the embodiment shown in FIG. 9F.
- the first electronic device may determine whether the first application has the permission to access the private information of the picture, and if it does not have the permission, the first electronic device may delete the private information in the first picture data.
- the private information may include one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode information, portrait mood information, and so on.
- the private information also includes some other information selected by the user from the Exif data.
- the process of deleting the private information in the first picture data by the first electronic device can be implemented in the following two ways: 1.
- the first electronic device can decode the first picture data first, and decode the decoded first picture data Store in the designated cache. Then, the first electronic device deletes the private information in the first picture data in the designated cache. 2.
- the first electronic device may first decode the first picture data and delete the private information in the first picture data in the coding and decoding stage. Then, the first electronic device may store the first picture data after the private information is deleted in the designated cache.
- the first electronic device sends the first picture data with the private information deleted to the second electronic device.
- the first electronic device may be the electronic device 100 in the foregoing embodiment
- the second electronic device may be the electronic device 101 in the foregoing embodiment.
- the first electronic device may shrink The picture file corresponding to the thumbnail 941 is sent to the second electronic device (electronic device 101) after the private information is deleted.
- the method before the first electronic device receives the user's first input for the first application, the method further includes: the first electronic device receives the user's second input. In response to the second input, the first electronic device turns on or turns off the permission of the first application to access the private information of the picture. In this way, the user can set the permission to obtain the private information in the picture for the application on the first electronic device, and protect the privacy of the user for different applications.
- the embodiments shown in FIGS. 7A to 7G which are not repeated here.
- the method further includes: the first electronic device encrypts the private information in the first picture data.
- the first electronic device sends the encrypted first picture data and the key to the second electronic device through the first application .
- the key is used for the second electronic device to decrypt the encrypted private information in the first picture data.
- the method when the first application has permission to access the private information of the picture, the method further includes: when the first electronic device determines that the avatar information corresponding to the account on the second electronic device is included in the first application In a picture data, the first electronic device sends the first picture data to the second electronic device through the first application. When the first electronic device determines that the avatar information corresponding to the account on the second electronic device is not included in the first picture data, the first electronic device deletes the private information in the first picture data, and will delete the private information The first picture data is sent to the second electronic device through the first application. In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user. For specific content, please refer to the foregoing embodiment, which will not be repeated here.
- the method further includes: the first electronic device downloads The thumbnail is obtained from the exchangeable image file format Exif data of the first picture data.
- the first electronic device displays the thumbnail.
- the method further includes: the first electronic device sends the first picture data to the second electronic device through the first application .
- the private information may include one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode information, portrait mood information, and so on.
- FIG. 14 shows a schematic diagram of functional units of an electronic device 1400 provided in the present application.
- the electronic device 1400 may be the first electronic device (electronic device 100) in the foregoing embodiment.
- the electronic device 1400 includes:
- the input module 1410 is configured to receive a user's first input for the first application.
- the obtaining module 1420 is configured to obtain first picture data in response to the first input.
- the processing module 1430 is configured to delete the private information in the first picture data when the first application does not have permission to access the private information of the picture.
- the sending module 1440 is configured to send the first picture data after deleting the private information to the second electronic device through the first application.
- the first electronic device further includes: an encryption module configured to encrypt the private information in the first picture data when the first application has permission to access the private information of the picture.
- the sending module 1440 is further configured to send the first image data encrypted with the private information to the second electronic device through the first application when the second electronic device does not have the authority to obtain the private information of the first image data . In this way, when the first electronic device shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user.
- the first electronic device further includes: an encryption module configured to encrypt the private information in the first picture data when the first application has permission to access the private information of the picture.
- the sending module 1440 is further configured to send the first image data and key after the encrypted private information to the first application through the first application when the second electronic device has the authority to obtain the private information of the first image data.
- the second electronic device wherein, the key is used for the second electronic device to decrypt the encrypted private information in the first picture data. In this way, when the electronic device 100 shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user.
- the processing module 1430 is further configured to determine whether the avatar information corresponding to the account on the second electronic device is included in the first picture data.
- the sending module 1440 is further configured to send the first image data to the second image data through the first application when the processing module determines that the avatar information corresponding to the account on the second electronic device is included in the first image data.
- Electronic equipment The sending module 1440 is further configured to, when the processing module determines that the avatar information corresponding to the account on the second electronic device is not included in the first picture data, send the first application after deleting the private information through the first application.
- the picture data is given to the second electronic device. In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user.
- the first electronic device further includes: an encoding and decoding module, configured to decode the first picture data, and store the decoded first picture data in a designated buffer.
- the processing module 1430 is specifically configured to delete the private information in the first picture data in the designated cache. In this way, the picture data stored in the mobile phone itself is not changed, and the private information in the Exif data is dynamically deleted when the picture data is read or the Exif data in the picture data is read.
- the first electronic device further includes: a coding and decoding module, configured to decode the first picture data.
- the processing module is specifically configured to delete the private information in the first picture data, and store the first picture data after deleting the private information in a designated cache. In this way, the picture data stored in the mobile phone itself is not changed, and the private information in the Exif data is dynamically deleted when the picture data is read or the Exif data in the picture data is read.
- the obtaining module 1420 is specifically configured to: in response to the first input, obtain a storage path of the first picture data; obtain the first picture data according to the storage path of the first picture data .
- the sending module 1440 is further configured to send the first picture data to the second electronic device when the first application has permission to access the private information of the picture.
- the privacy information includes one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode information, and portrait mood information.
- the user can set the permission of the application to access the private information in the Exif data on the first electronic device.
- the first electronic device can use the application In the process of obtaining the original picture of the picture or separately obtaining the Exif data, the private information in the Exif data (such as GPS location information, picture shooting time, picture shooting model, etc.) is dynamically deleted.
- the first electronic device does not change the picture data stored in the mobile phone itself, and when reading the picture data or reading the Exif data in the picture data, the private information in the Exif data is dynamically deleted, thereby protecting user privacy.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Data Mining & Analysis (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Medical Informatics (AREA)
- Telephone Function (AREA)
Abstract
Disclosed is a picture processing method, which relates to the field of information processing. The method comprises: a first electronic device receiving first input of a user for a first application; in response to the first input, the first electronic device acquiring first picture data; when the first application does not have permission to access privacy information of a picture, the first electronic device deleting privacy information in the first picture data; and the first electronic device sending the first picture data, after the privacy information is deleted, to a second electronic device by means of the first application. Thus, dynamically deleting, when the picture data is sent by means of the application, privacy information in the picture data without original picture data stored in a mobile phone itself being changed, protecting user privacy.
Description
本申请要求于2019年08月09日提交中国专利局、申请号为201910735943.1、申请名称为“一种动态删除图片敏感信息的实现方法及设备”、以及2019年11月30日提交中国专利局、申请号为201911209308.6、申请名称为“一种图片处理方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application is required to be submitted to the China Patent Office on August 9, 2019, the application number is 201910735943.1, the application name is "A method and equipment for dynamically deleting sensitive information of pictures", and it is submitted to the China Patent Office on November 30, 2019. The priority of the Chinese patent application whose application number is 201911209308.6 and the application name is "A picture processing method and related device", the entire content of which is incorporated into this application by reference.
本申请涉及信息处理技术领域,尤其涉及一种图片处理方法及相关装置。This application relates to the field of information processing technology, and in particular to an image processing method and related devices.
现在智能手机和数码相机在拍摄过程中会采集包括拍摄日期、光圈、快门、焦距、对比度、饱和度、GPS定位、缩略图等信息,也就是可交换图片文件格式(exchangeable image file format,Exif)信息。Exif信息是专门为数码相机的照片设定的,可以记录数据照片的属性信息和拍摄数据。Exif信息可以被附加在JPEG、TIFF、RIFF等文件之中,为其增加有关数码相机拍摄信息的内容和缩略图或图像处理相关的参数信息。Now smartphones and digital cameras collect information including shooting date, aperture, shutter, focal length, contrast, saturation, GPS positioning, thumbnails, etc. during the shooting process, that is, exchangeable image file format (Exif) information. Exif information is specially set for photos of digital cameras, and can record attribute information and shooting data of data photos. Exif information can be appended to files such as JPEG, TIFF, RIFF, etc., to add content related to digital camera shooting information and parameter information related to thumbnails or image processing.
当前的Exif信息中保存有部分用户的隐私信息,例如,图片数据发送时携带了GPS位置信息等,导致获取人可以基于GPS位置信息推导出用户的私人住址。例如,从社交渠道获取到对方的图片时,获取人可以在图片详细信息中查询到该图片的GPS位置信息。然后,获取人可以在通过该GPS位置信息在地图上查看到该图片的拍摄位置。这样,造成照片持有人的个人隐私数据泄露。The current Exif information saves part of the user's private information, for example, when the image data is sent with GPS location information, etc., the acquirer can deduce the user's private address based on the GPS location information. For example, when a picture of the other party is obtained from a social channel, the obtainer can query the GPS location information of the picture in the picture detailed information. Then, the acquiring person can view the shooting location of the picture on the map through the GPS location information. In this way, the personal privacy data of the photo holder is leaked.
发明内容Summary of the invention
本申请提供了一种图片处理方法及相关装置,实现了电子设备可以不改变手机自身存储的原始图片数据,在通过无权限的应用读取/发送读取图片数据时,动态删除图片数据中的隐私信息,保护了用户隐私。This application provides a picture processing method and related devices, which realize that the electronic device can not change the original picture data stored in the mobile phone itself, and dynamically delete the picture data when the picture data is read/sent through an unauthorized application. Privacy information protects user privacy.
第一方面,本申请提供了一种图片处理方法,包括:第一电子设备接收用户针对第一应用的第一输入。响应于该第一输入,该第一电子设备获取第一图片数据。当该第一应用没有权限访问图片的隐私信息时,该第一电子设备删除该第一图片数据中的隐私信息。该第一电子设备将删除该隐私信息后的该第一图片数据通过该第一应用发送给第二电子设备。In a first aspect, this application provides an image processing method, including: a first electronic device receives a user's first input for a first application. In response to the first input, the first electronic device obtains first picture data. When the first application does not have permission to access the private information of the picture, the first electronic device deletes the private information in the first picture data. The first electronic device sends the first picture data after the private information is deleted to the second electronic device through the first application.
通过本申请提供一种图片处理方法,用户可以在电子设备上设置应用程序访问Exif数据中隐私信息的权限,当某一应用或接收方没有权限访问图片的Exif数据时,电子设备可以在该应用获取图片原图或单独获取Exif数据的过程中,动态删除Exif数据中的隐私信息(例如GPS位置信息、图片拍摄时间、图片拍摄机型等等)。这样,可以实现了电子设备可以不改变手机自身存储的图片数据,在读取图片数据或者读取图片数据中的Exif数据时,动态删除Exif数据中的隐私信息,保护了用户隐私。This application provides an image processing method. The user can set the permission of the application to access the private information in the Exif data on the electronic device. When an application or the recipient does not have the permission to access the Exif data of the image, the electronic device can use the application In the process of obtaining the original picture of the picture or separately obtaining the Exif data, the private information in the Exif data (such as GPS location information, picture shooting time, picture shooting model, etc.) is dynamically deleted. In this way, it can be realized that the electronic device does not change the picture data stored in the mobile phone itself, and when reading the picture data or reading the Exif data in the picture data, the private information in the Exif data is dynamically deleted, thereby protecting user privacy.
在一种可能的实现方式中,在该第一电子设备接收用户针对第一应用的第一输入之前,该方法还包括:第一电子设备接收用户的第二输入。响应于该第二输入,该第一电子设备开启或关闭该第一应用访问图片的隐私信息的权限。这样,用户可以给第一电子设备上的 应用设置图片中隐私信息的获取权限,针对不同应用对用户的隐私进行保护。In a possible implementation manner, before the first electronic device receives the user's first input for the first application, the method further includes: the first electronic device receives the user's second input. In response to the second input, the first electronic device turns on or turns off the permission of the first application to access the private information of the picture. In this way, the user can set the permission to obtain the private information in the picture for the application on the first electronic device, and protect the privacy of the user for different applications.
在一种可能的实现方式中,当该第一应用有权限访问图片的隐私信息时,该方法还包括:该第一电子设备将该第一图片数据中的隐私信息进行加密。当该第二电子设备没有权限获取该第一图片数据的隐私信息时,该第一电子设备将加密隐私信息后的该第一图片数据通过该第一应用发送给该第二电子设备。这样,可以实现第一电子设备分享图片给其他设备时,防止其他设备获取到图片中的隐私信息,保护了用户的隐私。In a possible implementation manner, when the first application has permission to access the private information of the picture, the method further includes: the first electronic device encrypts the private information in the first picture data. When the second electronic device does not have the authority to obtain the private information of the first picture data, the first electronic device sends the encrypted first picture data to the second electronic device through the first application. In this way, when the first electronic device shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user.
在一种可能的实现方式中,当该第一应用有权限访问图片的隐私信息时,该方法还包括:该第一电子设备将该第一图片数据中的隐私信息进行加密。当该第二电子设备有权限获取该第一图片数据的隐私信息时,该第一电子设备将加密隐私信息后的该第一图片数据和密钥通过该第一应用发送给该第二电子设备。其中,该密钥用于该第二电子设备解密该第一图片数据中已加密的隐私信息。这样,可以实现电子设备100分享图片给其他设备时,防止其他设备获取到图片中的隐私信息,保护了用户的隐私。In a possible implementation manner, when the first application has permission to access the private information of the picture, the method further includes: the first electronic device encrypts the private information in the first picture data. When the second electronic device has the authority to obtain the private information of the first picture data, the first electronic device sends the encrypted first picture data and the key to the second electronic device through the first application . Wherein, the key is used for the second electronic device to decrypt the encrypted private information in the first picture data. In this way, when the electronic device 100 shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user.
在一种可能的实现方式中,当该第一应用有权限访问图片的隐私信息时,该方法还包括:当第一电子设备确定该第二电子设备上的账户对应的头像信息包含在该第一图片数据中,该第一电子设备通过该第一应用发送该第一图片数据给该第二电子设备。当第一电子设备确定该第二电子设备上的账户对应的头像信息不包含在该第一图片数据中,该第一电子设备删除该第一图片数据中的隐私信息,并将删除该隐私信息该第一图片数据通过该第一应用发送给该第二电子设备。这样,可以实现只让账户头像在该图片中的接收方获取到图片中的隐私信息,保护了用户的隐私。In a possible implementation, when the first application has permission to access the private information of the picture, the method further includes: when the first electronic device determines that the avatar information corresponding to the account on the second electronic device is included in the first application In a picture data, the first electronic device sends the first picture data to the second electronic device through the first application. When the first electronic device determines that the avatar information corresponding to the account on the second electronic device is not included in the first picture data, the first electronic device deletes the private information in the first picture data, and will delete the private information The first picture data is sent to the second electronic device through the first application. In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user.
在一种可能的实现方式中,当该第一应用有权限访问图片的隐私信息时,该方法还包括:当第一电子设备确定该第二电子设备上的账户对应的头像信息包含在该第一图片数据中,该第一电子设备通过该第一应用发送加密隐私信息后的第一图片数据以及密钥给该第二电子设备。其中,该密钥用于第二电子设备解密出隐私信息。当第一电子设备确定该第二电子设备上的账户对应的头像信息不包含在该第一图片数据中,该第一电子设备加密隐私信息后的第一图片数据通过该第一应用发送给该第二电子设备。这样,可以实现只让账户头像在该图片中的接收方获取到图片中的隐私信息,保护了用户的隐私。In a possible implementation, when the first application has permission to access the private information of the picture, the method further includes: when the first electronic device determines that the avatar information corresponding to the account on the second electronic device is included in the first application In a picture data, the first electronic device sends the encrypted first picture data and the key to the second electronic device through the first application. Wherein, the key is used for the second electronic device to decrypt private information. When the first electronic device determines that the avatar information corresponding to the account on the second electronic device is not included in the first picture data, the first picture data after the private information is encrypted by the first electronic device is sent to the first application The second electronic device. In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user.
在一种可能的实现方式中,该第一电子设备删除该第一图片数据中的隐私信息,具体包括:该第一电子设备将该第一图片数据进行解码,并将解码后的第一图片数据存储到指定缓存中。该第一电子设备删除该指定缓存中的第一图片数据中的隐私信息。这样,可以实现不改变手机自身存储的图片数据,在读取图片数据或者读取图片数据中的Exif数据时,动态删除Exif数据中的隐私信息。In a possible implementation manner, deleting the private information in the first picture data by the first electronic device specifically includes: the first electronic device decodes the first picture data, and decodes the decoded first picture The data is stored in the designated cache. The first electronic device deletes the private information in the first picture data in the designated cache. In this way, the picture data stored in the mobile phone itself is not changed, and the private information in the Exif data is dynamically deleted when the picture data is read or the Exif data in the picture data is read.
在一种可能的实现方式中,该第一电子设备删除该第一图片数据中的隐私信息,具体包括:该第一电子设备对该第一图片数据进行解码,并删除该第一图片数据中的该隐私信息。该第一电子设备将删除该隐私信息后的该第一图片数据存储到指定缓存中。这样,可以实现不改变手机自身存储的图片数据,在读取图片数据或者读取图片数据中的Exif数据时,动态删除Exif数据中的隐私信息。In a possible implementation, the first electronic device deleting the private information in the first picture data specifically includes: the first electronic device decodes the first picture data, and deletes the first picture data Of this private information. The first electronic device stores the first picture data after deleting the private information in a designated cache. In this way, the picture data stored in the mobile phone itself is not changed, and the private information in the Exif data is dynamically deleted when the picture data is read or the Exif data in the picture data is read.
在一种可能的实现方式中,该第一电子设备获取第一图片数据,具体包括:该第一电子设备获取第一图片数据的存储路径;该第一电子设备根据该第一图片数据的存储路径, 获取该第一图片数据。In a possible implementation, the first electronic device acquiring the first picture data specifically includes: a storage path for the first electronic device to acquire the first picture data; the first electronic device according to the storage of the first picture data Path to obtain the first picture data.
在一种可能的实现方式中,在该第一电子设备将删除该隐私信息后的该第一图片数据发送给该第一应用的指定联系人后,该方法还包括:该第一电子设备从该第一图片数据的可交换图像文件格式Exif数据中获取缩略图。该第一电子设备显示该缩略图。In a possible implementation, after the first electronic device sends the first picture data after deleting the private information to the designated contact of the first application, the method further includes: the first electronic device downloads The thumbnail is obtained from the exchangeable image file format Exif data of the first picture data. The first electronic device displays the thumbnail.
在一种可能的实现方式中,当该第一应用有权限访问图片的隐私信息时,该方法还包括:该第一电子设备通过该第一应用发送该第一图片数据给该第二电子设备。In a possible implementation, when the first application has permission to access the private information of the picture, the method further includes: the first electronic device sends the first picture data to the second electronic device through the first application .
在一种可能的实现方式中,该隐私信息包括以下一项或多项:拍摄地址信息、拍摄时间信息、拍摄设备机型信息、拍摄模式信息、人像心情信息。In a possible implementation manner, the privacy information includes one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode information, and portrait mood information.
第二方面,本申请提供了一种第一电子设备,包括:输入模块,用于接收用户针对第一应用的第一输入。获取模块,用于响应于该第一输入,获取第一图片数据。处理模块,用于当该第一应用没有权限访问图片的隐私信息时,删除该第一图片数据中的隐私信息。发送模块,用于将删除该隐私信息后的该第一图片数据通过该第一应用发送给第二电子设备。In a second aspect, the present application provides a first electronic device, including: an input module, configured to receive a user's first input for a first application. The obtaining module is configured to obtain first picture data in response to the first input. The processing module is used to delete the private information in the first picture data when the first application does not have permission to access the private information of the picture. The sending module is used to send the first picture data after deleting the private information to the second electronic device through the first application.
通过本申请提供第一电子设备,用户可以在第一电子设备上设置应用程序访问Exif数据中隐私信息的权限,当某一应用或接收方没有权限访问图片的Exif数据时,第一电子设备可以在该应用获取图片原图或单独获取Exif数据的过程中,动态删除Exif数据中的隐私信息(例如GPS位置信息、图片拍摄时间、图片拍摄机型等等)。这样,可以实现了第一电子设备可以不改变手机自身存储的图片数据,在读取图片数据或者读取图片数据中的Exif数据时,动态删除Exif数据中的隐私信息,保护了用户隐私。By providing the first electronic device through this application, the user can set the permission of the application to access the private information in Exif data on the first electronic device. When an application or the recipient does not have the permission to access the Exif data of the picture, the first electronic device can In the process of obtaining the original image of the picture or obtaining the Exif data separately, the application dynamically deletes the private information in the Exif data (such as GPS location information, picture shooting time, picture shooting model, etc.). In this way, it can be realized that the first electronic device does not change the picture data stored in the mobile phone itself, and when reading the picture data or reading the Exif data in the picture data, the private information in the Exif data is dynamically deleted, thereby protecting user privacy.
在一种可能的实现方式中,该输入模块,还用于接收用户的第二输入。该第一电子设备还包括:设置模块,用于响应于该第二输入,开启或关闭该第一应用访问图片的隐私信息的权限。这样,用户可以给第一电子设备上的应用设置图片中隐私信息的获取权限,针对不同应用对用户的隐私进行保护。In a possible implementation manner, the input module is also used to receive a second input from the user. The first electronic device further includes: a setting module, configured to enable or disable the permission of the first application to access the private information of the picture in response to the second input. In this way, the user can set the permission to obtain the private information in the picture for the application on the first electronic device, and protect the privacy of the user for different applications.
在一种可能的实现方式中,该第一电子设备还包括:加密模块,用于当该第一应用有权限访问图片的隐私信息时,将该第一图片数据中的隐私信息进行加密。该发送模块,还用于当该第二电子设备没有权限获取该第一图片数据的隐私信息时,将加密隐私信息后的该第一图片数据通过该第一应用发送给该第二电子设备。这样,可以实现第一电子设备分享图片给其他设备时,防止其他设备获取到图片中的隐私信息,保护了用户的隐私。In a possible implementation manner, the first electronic device further includes: an encryption module configured to encrypt the private information in the first picture data when the first application has permission to access the private information of the picture. The sending module is further configured to send the first image data encrypted with the private information to the second electronic device through the first application when the second electronic device does not have the right to obtain the private information of the first picture data. In this way, when the first electronic device shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user.
在一种可能的实现方式中,该第一电子设备还包括:加密模块,用于当该第一应用有权限访问图片的隐私信息时,将该第一图片数据中的隐私信息进行加密。该发送模块,还用于当该第二电子设备有权限获取该第一图片数据的隐私信息时,将加密隐私信息后的该第一图片数据和密钥,通过该第一应用发送给该第二电子设备。其中,该密钥用于该第二电子设备解密该第一图片数据中已加密的隐私信息。这样,可以实现电子设备100分享图片给其他设备时,防止其他设备获取到图片中的隐私信息,保护了用户的隐私。In a possible implementation manner, the first electronic device further includes: an encryption module configured to encrypt the private information in the first picture data when the first application has permission to access the private information of the picture. The sending module is also used to send the first image data and key after encrypting the private information to the first application through the first application when the second electronic device has the authority to obtain the private information of the first image data. 2. Electronic equipment. Wherein, the key is used for the second electronic device to decrypt the encrypted private information in the first picture data. In this way, when the electronic device 100 shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user.
在一种可能的实现方式中,该处理模块,还用于确定该第二电子设备上的账户对应的头像信息是否包含在该第一图片数据中。该发送模块,还用于当该处理模块确定该第二电子设备上的账户对应的头像信息包含在该第一图片数据中时,通过该第一应用发送该第一 图片数据给该第二电子设备。该发送模块,还用于当该处理模块确定该第二电子设备上的账户对应的头像信息不包含在该第一图片数据中时,通过该第一应用发送删除隐私信息后的该第一图片数据给该第二电子设备。这样,可以实现只让账户头像在该图片中的接收方获取到图片中的隐私信息,保护了用户的隐私。In a possible implementation manner, the processing module is further configured to determine whether the avatar information corresponding to the account on the second electronic device is included in the first picture data. The sending module is further configured to send the first image data to the second electronic device through the first application when the processing module determines that the avatar information corresponding to the account on the second electronic device is included in the first image data. equipment. The sending module is further configured to send, through the first application, the first picture after the private information has been deleted when the processing module determines that the avatar information corresponding to the account on the second electronic device is not included in the first picture data Data to the second electronic device. In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user.
在一种可能的实现方式中,该第一电子设备还包括:编解码模块,用于将该第一图片数据进行解码,并将解码后的第一图片数据存储到指定缓存中。该处理模块,具体用于删除该指定缓存中的第一图片数据中的隐私信息。这样,可以实现不改变手机自身存储的图片数据,在读取图片数据或者读取图片数据中的Exif数据时,动态删除Exif数据中的隐私信息。In a possible implementation manner, the first electronic device further includes: an encoding and decoding module, configured to decode the first picture data, and store the decoded first picture data in a designated buffer. The processing module is specifically configured to delete the private information in the first picture data in the designated cache. In this way, the picture data stored in the mobile phone itself is not changed, and the private information in the Exif data is dynamically deleted when the picture data is read or the Exif data in the picture data is read.
在一种可能的实现方式中,该第一电子设备还包括:编解码模块,用于将该第一图片数据进行解码。该处理模块,具体用于删除该第一图片数据中的隐私信息,并将删除该隐私信息后的该第一图片数据存储到指定缓存中。这样,可以实现不改变手机自身存储的图片数据,在读取图片数据或者读取图片数据中的Exif数据时,动态删除Exif数据中的隐私信息。In a possible implementation manner, the first electronic device further includes: a coding and decoding module, configured to decode the first picture data. The processing module is specifically configured to delete the private information in the first picture data, and store the first picture data after deleting the private information in a designated cache. In this way, the picture data stored in the mobile phone itself is not changed, and the private information in the Exif data is dynamically deleted when the picture data is read or the Exif data in the picture data is read.
在一种可能的实现方式中,该获取模块,具体用于:响应于该第一输入,获取第一图片数据的存储路径;根据该第一图片数据的存储路径,获取该第一图片数据。In a possible implementation manner, the obtaining module is specifically configured to: in response to the first input, obtain a storage path of the first picture data; and obtain the first picture data according to the storage path of the first picture data.
在一种可能的实现方式中,该获取模块,还用于在该发送模块将删除该隐私信息后的该第一图片数据发送给该第二电子设备后,从该第一图片数据的可交换文件格式Exif数据中获取缩略图。该第一电子设备还包括:显示模块,用于在该发送模块将删除该隐私信息后的该第一图片数据发送给该第二电子设备后,显示该缩略图。In a possible implementation manner, the acquiring module is further configured to: after the sending module sends the first picture data after deleting the private information to the second electronic device, from the exchange of the first picture data The thumbnail is obtained from the file format Exif data. The first electronic device further includes: a display module, configured to display the thumbnail after the sending module sends the first picture data after deleting the private information to the second electronic device.
在一种可能的实现方式中,该发送模块,还用于当该第一应用有权限访问图片的隐私信息时,发送该第一图片数据给该第二电子设备。In a possible implementation, the sending module is further configured to send the first picture data to the second electronic device when the first application has permission to access the private information of the picture.
在一种可能的实现方式中,该隐私信息包括以下一项或多项:拍摄地址信息、拍摄时间信息、拍摄设备机型信息、拍摄模式信息、人像心情信息。In a possible implementation manner, the privacy information includes one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode information, and portrait mood information.
第三方面,本申请提供了一种第一电子设备,包括一个或多个处理器、一个或多个存储器、触控屏。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得第一电子设备执行上述任一方面任一项可能的实现方式中的图片处理信息方法。In a third aspect, this application provides a first electronic device, including one or more processors, one or more memories, and a touch screen. The one or more memories are coupled with one or more processors, and the one or more memories are used to store computer program codes. The computer program codes include computer instructions. When the one or more processors execute the computer instructions, the first electronic The device executes the image processing information method in any one of the possible implementation manners of any of the foregoing aspects.
第四方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的实现方式中的图片处理信息方法。In a fourth aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the image processing information in any one of the possible implementations of any of the above aspects method.
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述任一方面任一项可能的实现方式中的图片处理信息方法。In a fifth aspect, the embodiments of the present application provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute the image processing information method in any one of the possible implementations of any of the above aspects.
图1为本申请实施例提供的一种图片文件格式示意图;FIG. 1 is a schematic diagram of a picture file format provided by an embodiment of the application;
图2为本申请提供的相关技术中应用程序读取原始图片的流程示意图;FIG. 2 is a schematic diagram of the flow of reading original pictures by an application in the related technology provided by this application;
图3为本申请实施例提供的存储和读取可交换图像文件格式数据的示意图;3 is a schematic diagram of storing and reading exchangeable image file format data provided by an embodiment of the application;
图4A-图4B为本申请实施例提供的一组界面示意图;4A-4B are schematic diagrams of a set of interfaces provided by an embodiment of the application;
图5为本申请实施例提供的一种电子设备的结构示意图;FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of this application;
图6为本申请实施例提供的一种软件架构示意图;Figure 6 is a schematic diagram of a software architecture provided by an embodiment of the application;
图7A-图7G为本申请实施例提供的另一组界面示意图;7A-7G are schematic diagrams of another set of interfaces provided by an embodiment of this application;
图8A-图8B为本申请实施例提供的另一组界面示意图;8A-8B are schematic diagrams of another set of interfaces provided by an embodiment of this application;
图9A-图9G为本申请实施例提供的另一组界面示意图;9A-9G are schematic diagrams of another set of interfaces provided by an embodiment of the application;
图10A-图10F为本申请实施例提供的另一组界面示意图;10A-10F are schematic diagrams of another set of interfaces provided by an embodiment of the application;
图11A-图11E为本申请实施例提供的另一组界面示意图;11A-11E are schematic diagrams of another set of interfaces provided by an embodiment of this application;
图12A-图12B为本申请实施例提供的另一组界面示意图;12A-12B are schematic diagrams of another set of interfaces provided by an embodiment of the application;
图13为本申请实施例提供的一种图片处理方法的流程示意图;FIG. 13 is a schematic flowchart of an image processing method provided by an embodiment of this application;
图14为本申请实施例提供的一种电子设备的功能模块图。FIG. 14 is a functional module diagram of an electronic device provided by an embodiment of this application.
下面将结合附图对本申请实施例中的技术方案进行清除、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be cleared and described in detail below in conjunction with the drawings. Among them, in the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; the "and/or" in the text is only a description of related objects The association relationship of indicates that there can be three relationships, for example, A and/or B, which can indicate: A alone exists, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application , "Multiple" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “multiple” The meaning is two or more.
下面介绍本申请实施例中涉及的图片文件格式。The following describes the image file format involved in the embodiments of this application.
请参见图1,图1为本申请实施例提供的一种图片文件格式示意图。如图1所示,图片文件的内容都开始于图像起始(start of image,SOI)标记,并结束于图像结束(end of image,EOI)标记。其中,该图像起始标记为一个二进制值“0xFDD8”,图像结束标记为“0xFFDD9”。图片文件包括有可交换图像文件格式(Exif)数据和主图像数据。其中,Exif数据可以开始于应用1(APP1)标记,该APP1标记为一个二进制值“0xFFE1”。该Exif数据可包括有主图像Exif信息、缩略图Exif信息和缩略图。其中,该主图像Exif信息用于描述主图像数据的附加信息(例如拍摄日期、光圈、快门、焦距、对比度、饱和度、GPS位置等信息)。缩略图Exif信息用于描述缩略图的附加信息(例如,缩略图的大小、缩略图的压缩方式等等)。Please refer to Fig. 1, which is a schematic diagram of a picture file format provided by an embodiment of the application. As shown in Figure 1, the content of the image file starts with the start of image (SOI) mark and ends with the end of image (EOI) mark. Among them, the image start tag is a binary value "0xFDD8", and the image end tag is "0xFFDD9". The picture file includes exchangeable picture file format (Exif) data and main picture data. Among them, the Exif data can start with the application 1 (APP1) tag, and the APP1 tag is a binary value "0xFFE1". The Exif data may include main image Exif information, thumbnail Exif information, and thumbnails. Wherein, the main image Exif information is used to describe additional information of the main image data (for example, shooting date, aperture, shutter, focal length, contrast, saturation, GPS location, etc.). The thumbnail Exif information is used to describe the additional information of the thumbnail (for example, the size of the thumbnail, the compression method of the thumbnail, etc.).
其中,Exif数据中的每个参数在带有不同的标签。分析Exif数据中的标签值,可以确定出每个参数的在Exif数据中的存储位置。例如,GPS位置信息相关的标签可以入下表1所示:Among them, each parameter in the Exif data has a different label. Analyzing the tag value in the Exif data can determine the storage location of each parameter in the Exif data. For example, tags related to GPS location information can be entered as shown in Table 1 below:
表1Table 1
标签名称Label name | 标签(TAG_ID)Tag (TAG_ID) |
GPS版本(GPSVersionID)GPS version (GPSVersionID) | 00 |
GPS南北纬(GPSLatitudeRef)GPS Latitude (GPSLatitudeRef) | 11 |
GPS纬度(GPSLatitude)GPS Latitude (GPSLatitude) | 22 |
GPS东西经(GPSLongitudeRef)GPS East and West (GPSLongitudeRef) | 33 |
GPS经度值(GPSLongitude)GPS longitude value (GPSLongitude) | 44 |
GPS海拔参照值(GPSAltitudeRef)GPS altitude reference value (GPSAltitudeRef) | 55 |
GPS海拔(GPSAltitude)GPS Altitude (GPSAltitude) | 66 |
GPS时间戳(GPSTimeStamp)GPS time stamp (GPSTimeStamp) | 77 |
GPS测量的卫星(GPSSatellites)GPS satellites (GPSSatellites) | 88 |
GPS接收器状态(GPSStatus)GPS receiver status (GPSStatus) | 99 |
GPS测量模式(GPSMeasureMode)GPS measurement mode (GPSMeasureMode) | 1010 |
GPS精度(GPSDOP)GPS accuracy (GPSDOP) | 1111 |
GPS速度单位(GPSSpeedRef)GPS speed unit (GPSSpeedRef) | 1212 |
GPS接收器速度(GPSSpeed)GPS receiver speed (GPSSpeed) | 1313 |
GPS移动方位参照(GPSTrackRef)GPS mobile location reference (GPSTrackRef) | 1414 |
GPS移动方位(GPSTrack)GPS moving position (GPSTrack) | 1515 |
……... | ……... |
由上表1可以看出,GPS位置信息中,GPS版本对应的标签值为“0”,GPS南北纬对应的标签值为“1”,GPS纬度对应的标签值为“2”,GPS东西经对应的标签值为“3”,GPS经度值对应的标签值为“4”,GPS海拔参照值对应的标签值为“5”,GPS海拔对应的标签值为“6”,GPS时间戳对应的标签值为“7”,GPS测量的卫星对应的标签值为“8”,GPS接收器状态对应的标签值为“9”,GPS测量模式对应的标签值为“10”,GPS精度对应的标签值为“11”,GPS速度单位对应的标签值为“12”,GPS接收器速度对应的标签值为“13”,GPS移动方位参照对应的标签值为“14”,GPS移动方位对应的标签值为“15”。以上表1所示示例仅仅用于解释本申请不应构成限定。It can be seen from Table 1 that in the GPS location information, the tag value corresponding to the GPS version is "0", the tag value corresponding to the GPS north and south latitude is "1", the tag value corresponding to the GPS latitude is "2", and the GPS east-west longitude The corresponding tag value is "3", the tag value corresponding to the GPS longitude value is "4", the tag value corresponding to the GPS altitude reference value is "5", the tag value corresponding to the GPS altitude is "6", and the GPS time stamp corresponds to The tag value is "7", the tag value corresponding to the GPS measured satellite is "8", the tag value corresponding to the GPS receiver status is "9", the tag value corresponding to the GPS measurement mode is "10", the tag corresponding to the GPS accuracy The value is "11", the tag value corresponding to the GPS speed unit is "12", the tag value corresponding to the GPS receiver speed is "13", the tag value corresponding to the GPS moving direction reference is "14", the tag corresponding to the GPS moving direction The value is "15". The examples shown in Table 1 above are only used to explain that this application should not constitute a limitation.
下面介绍相关技术中电子设备上的应用程序读取原始图片的流程。The following describes the process of reading the original picture by the application on the electronic device in the related art.
请参照图2,图2示出了本申请相关技术中应用程序读取原始图片的流程。如图2所示,目前,手机、平板等电子设备上应用程序读取图片数据的流程可以如下:Please refer to FIG. 2, which shows the flow of reading original pictures by an application in the related technology of the present application. As shown in Figure 2, at present, the process of reading image data by applications on mobile phones, tablets and other electronic devices can be as follows:
S201、上层应用(例如,微信应用)接收到加载及显示图片的任务后,可以创建图片读取请求,并下发给图片获取模块。S201. After receiving the task of loading and displaying pictures, an upper-layer application (for example, a WeChat application) may create a picture reading request and issue it to a picture acquisition module.
其中,该图片读取请求中可以包括图片地址、操作类型、转化操作等信息。Wherein, the picture reading request may include information such as picture address, operation type, conversion operation, and so on.
S202、图片获取模块在接收到图片获取请求后,可以判断缓存里是否有该图片,若缓存中有该图片。图片获取模块可以从缓存中读取到该图片的数据,并上报给上层应用,以将该图片显示到目标界面布局上。S202: After receiving the image acquisition request, the image acquisition module may determine whether the image is in the cache, and if there is the image in the cache. The picture acquisition module can read the data of the picture from the cache and report it to the upper application to display the picture on the target interface layout.
S203、当缓存中没有该图片的数据时,图片获取模块可以根据该图片读取请求中的图片地址,识别出该图片的加载路径。S203: When there is no data of the picture in the cache, the picture acquisition module can identify the loading path of the picture according to the picture address in the picture reading request.
其中,电子设备可以将可用的每种资源(例如图片、视频片段等)都用统一资源标识符(uniform resource identifier,URI)来表示。URI一般可由三部分组成:访问资源的命名 机制(scheme),存放资源的主机名(hostname),资源自身的名称(path)。图片获取模块可以将该图片的URI转换为该图片的存储路径。Among them, the electronic device may use a uniform resource identifier (URI) to represent each available resource (for example, pictures, video clips, etc.). URI generally consists of three parts: the naming mechanism for accessing resources (scheme), the hostname where the resources are stored (hostname), and the name of the resource itself (path). The picture acquisition module can convert the URI of the picture into the storage path of the picture.
图片获取模块可以根据该图片的URI中访问资源的命名机制判断该图片的加载途径。例如,当该图片的URI中scheme为“content://”时,该加载的图片为电子设备本地上存储的图片。当该图片的URI中scheme为“http://”时,该加载的图片为网络图片。The picture acquisition module can determine the loading path of the picture according to the naming mechanism of the accessed resource in the URI of the picture. For example, when the scheme in the URI of the picture is "content://", the loaded picture is a picture stored locally on the electronic device. When the scheme in the URI of the picture is "http://", the loaded picture is a network picture.
示例性的,电子设备上所有图片文件夹的URI可以为“content://media/external”,其中,所有图片中图片A的URI可以为“content://media/external/images/media/212304”。图片获取模块可以将该图片A的URI转换为该图片的存储路径,其中,该图片A的存储路径可以为“file://storage/emulated/0/Android/data/com.zn_android.zn/cache/PostPicture/20190905193015.jpg”。上述示例仅仅用于解释本申请,不应构成限定。Exemplarily, the URI of all picture folders on the electronic device may be "content://media/external", where the URI of picture A in all pictures may be "content://media/external/images/media/212304 ". The image acquisition module can convert the URI of the image A into the storage path of the image, where the storage path of the image A can be "file://storage/emulated/0/Android/data/com.zn_android.zn/cache /PostPicture/20190905193015.jpg". The above examples are only used to explain the application and should not constitute a limitation.
S204、调度模块可以将图片获取任务入队,并按照入队顺序执行任务。S204. The scheduling module can enqueue the image acquisition task into the queue, and execute the task in the order of enqueue.
其中,调度模块可以实现图片获取的入队、执行、完成、取消、暂停等。该调度模块可以实现业务逻辑在不同线程的切换、执行,还可以负责管理线程池、下载、解码、缓存等等。Among them, the scheduling module can realize the enqueue, execution, completion, cancellation, and suspension of the image acquisition. The scheduling module can realize the switching and execution of business logic in different threads, and can also be responsible for managing thread pools, downloading, decoding, caching, and so on.
S205、调度模块可以判断该图片获取任务是否执行成功,若是,则执行步骤S206、调度模块可以调用图片处理模块对存储的图片进行处理。S205. The scheduling module can determine whether the image acquisition task is successfully executed, and if so, execute step S206, and the scheduling module can call the image processing module to process the stored image.
其中,由于底层存储的图片信息因为数据格式的问题,都要经历编解码的转化,才能成为我们常见的图片文件。通过图片处理模块可以对图片进行解码、反转、剪裁等处理操作。Among them, because of the problem of the data format, the picture information stored in the bottom layer has to undergo codec conversion before it can become our common picture file. Through the picture processing module, the picture can be decoded, inverted, and cropped.
若调度模块判定入队的图片获取任务执行失败时,调度模块可以向上层应用反馈图片获取失败,并结束图片获取流程。If the scheduling module determines that the execution of the image acquisition task entered into the queue fails, the scheduling module can feed back the failure of the image acquisition to the upper application and end the image acquisition process.
S207、图片处理模块可以判断图片处理是否成功,若是,则执行步骤S208、图片处理模块可以调用缓存模块可以将处理后(例如,解码、转换等处理操作)的图片存到缓存中,并将缓存中该图片的调用接口返回给上层应用。S207. The image processing module can determine whether the image processing is successful, and if so, execute step S208. The image processing module can call the cache module to store the processed (for example, decoding, conversion, and other processing operations) image in the cache, and cache it The calling interface of the picture in the image is returned to the upper application.
S209、上层应用可以根据缓存模块返回的调用接口,从缓存中获取到该图片。S209. The upper-layer application may obtain the picture from the cache according to the calling interface returned by the cache module.
其中,上层应用在获取到该图片后,可以将该图片显示到显示屏的目标应用布局上,还可以将该图片上传服务器或发送给联系人的设备上。Among them, after the upper-level application obtains the picture, it can display the picture on the target application layout of the display screen, and can also upload the picture to the server or send it to the contact's device.
在另一些相关技术中,电子设备上的一些应用程序还可以单独获取图片的Exif数据。例如,电子设备上的图库应用为了根据图片的拍摄地址对图片进行分类,图库应用可以从图片的Exif数据中获取到图片的GPS位置信息以及缩略图。当图库应用获取到图片的GPS位置信息以及缩略图后,图库应用可以根据图片的GPS位置信息,对图片进行分类,将GPS位置信息属于同一地区的图片对应的缩略图显示在图库应用界面的同一显示区域中。In other related technologies, some applications on the electronic device can also obtain the Exif data of the picture separately. For example, in order to classify the pictures according to the shooting address of the picture by the gallery application on the electronic device, the gallery application may obtain the GPS location information and the thumbnail of the picture from the Exif data of the picture. After the gallery application obtains the GPS location information and thumbnails of the pictures, the gallery application can classify the pictures according to the GPS location information of the pictures, and display the thumbnails corresponding to the pictures with the GPS location information in the same area on the same page of the gallery application interface In the display area.
又例如,图库应用为了根据图片的拍摄时间对图片进行分类,图库应用还可以从图片的Exif数据中获取到图片的拍摄时间以及缩略图。当图库应用获取到图片的拍摄时间以及缩略图后,图库应用可以根据图片的拍摄时间对图片进行分类,将拍摄时间属于同一时间段内的图片对应的缩略图显示在图库应用界面的同一显示区域中。For another example, in order to classify pictures according to the shooting time of the picture, the picture gallery application can also obtain the shooting time and thumbnail of the picture from the Exif data of the picture. After the gallery application obtains the shooting time and thumbnail of the picture, the gallery application can classify the pictures according to the shooting time of the picture, and display the thumbnails corresponding to the pictures in the same time period in the same display area of the gallery application interface in.
示例性的,如图3所示,当相机应用有权限获取电子设备的GPS位置信息时,相机应用可以在拍照时获取到电子设备的GPS位置信息,并将该GPS位置信息存储在拍摄的图片文件中。其中,该GPS位置信息可以存储在图片文件的Exif数据中。当图库应用需要获到该图片的GPS位置信息时,图库应用可以从该图片文件中的Exif数据中获取到该图片的GPS位置信息。Exemplarily, as shown in FIG. 3, when the camera application has permission to obtain the GPS location information of the electronic device, the camera application can obtain the GPS location information of the electronic device when taking a photo, and store the GPS location information in the captured picture File. Among them, the GPS location information can be stored in the Exif data of the picture file. When the gallery application needs to obtain the GPS location information of the picture, the gallery application can obtain the GPS location information of the picture from the Exif data in the picture file.
若图库应用需要根据该图片的GPS位置信息对图片进行分类,图库应用还可以从该图片中获取该图片文件的缩略图。在获取到该图片文件的缩略图和GPS位置信息后,图库应用可以从地图中确定出该GPS位置信息对应的地址名称(例如深圳市),并将该图片文件划分到该地址名称对应的分类中。当电子设备响应于用户的操作打开图库应用中该地址名称对应的分类时,电子设备可以在该地址名称对应的分类中显示该图片文件的缩略图。If the gallery application needs to classify the picture according to the GPS location information of the picture, the gallery application can also obtain the thumbnail of the picture file from the picture. After obtaining the thumbnail and GPS location information of the image file, the gallery application can determine the address name (such as Shenzhen) corresponding to the GPS location information from the map, and classify the image file into the category corresponding to the address name in. When the electronic device opens the category corresponding to the address name in the gallery application in response to the user's operation, the electronic device may display the thumbnail of the picture file in the category corresponding to the address name.
示例性的,如图4A所示,电子设备100显示了图库界面410。其中,该图库界面410中可以包括一个或多个文件夹。其中,该一个或多个文件夹通过地址名称区分。例如,上述一个或多个文件夹的地址名称可以包括有广州市、深圳市、武汉市、上海市、北京市、珠海市等等。文件夹411的地址名称可以为“深圳市”。即表示文件夹411中的图片的拍摄地址都在“深圳市”。Exemplarily, as shown in FIG. 4A, the electronic device 100 displays a gallery interface 410. Wherein, the gallery interface 410 may include one or more folders. Among them, the one or more folders are distinguished by address names. For example, the address names of the aforementioned one or more folders may include Guangzhou, Shenzhen, Wuhan, Shanghai, Beijing, Zhuhai, etc. The address name of the folder 411 may be "Shenzhen". It means that the shooting addresses of the pictures in the folder 411 are all in "Shenzhen".
电子设备可以接收用户针对文件夹411的输入操作,响应于该输入操作,电子设备可以显示如图4B所示的文件夹界面420。如图4B所示,该文件夹界面420中显示包括有一个或多张拍摄地址在“深圳市”的图片对应的缩略图。The electronic device can receive the user's input operation on the folder 411, and in response to the input operation, the electronic device can display a folder interface 420 as shown in FIG. 4B. As shown in FIG. 4B, the folder interface 420 displays thumbnails corresponding to one or more pictures with a shooting address in "Shenzhen".
通过上述相关技术,某些具有读取照片权限的应用,在获取到照片原始图片数据后,就会直接发送给联系人或上传到服务器上了。而照片原图数据中会携带有对应的Exif数据。其中,该Exif数据中可包括有拍摄位置信息(例如GPS定位信息)、拍摄时间、拍摄设备机型、拍摄模式、人像心情信息等。这些信息不影响图片的成像及显示效果,但是会暴露个人的隐私数据。例如,当电子设备使用微信发送原图时,会将真实的图片文件连同Exif数据一起发出,引起用户隐私数据的泄露。Through the above-mentioned related technologies, some applications with the permission to read photos will directly send the original picture data to the contact or upload it to the server. The original photo data will carry the corresponding Exif data. Wherein, the Exif data may include shooting location information (for example, GPS positioning information), shooting time, shooting device model, shooting mode, portrait mood information, etc. This information does not affect the imaging and display effect of the picture, but it will expose personal privacy data. For example, when an electronic device uses WeChat to send the original image, it will send out the real image file together with Exif data, causing the leakage of user privacy data.
其中,一些应用也可以单独读取图片的Exif数据,这些应用在单独读取到图片的Exif数据后,同样也有泄露用户隐私的风险。Among them, some applications can also read the Exif data of the picture separately. After these applications read the Exif data of the picture separately, they also have the risk of leaking user privacy.
因此,本申请提供一种图片处理方法,用户可以在电子设备上设置应用程序访问Exif数据中隐私信息的权限,当某一应用没有权限访问图片的Exif数据时,电子设备可以在该应用获取图片原图或单独获取Exif数据的过程中,动态删除Exif数据中的隐私信息(例如GPS位置信息、图片拍摄时间、图片拍摄机型等等)。这样,可以实现了电子设备可以不改变手机自身存储的图片数据,在读取图片数据或者读取图片数据中的Exif数据时,动态删除Exif数据中的隐私信息,保护了用户隐私。Therefore, this application provides an image processing method. The user can set the permission of the application to access the private information in the Exif data on the electronic device. When an application does not have the permission to access the Exif data of the image, the electronic device can obtain the image in the application In the process of obtaining the original image or separately obtaining the Exif data, the private information in the Exif data (such as GPS location information, picture shooting time, picture shooting model, etc.) is dynamically deleted. In this way, it can be realized that the electronic device does not change the picture data stored in the mobile phone itself, and when reading the picture data or reading the Exif data in the picture data, the private information in the Exif data is dynamically deleted, thereby protecting user privacy.
下面介绍本申请中提供的一种电子设备100。The following introduces an electronic device 100 provided in this application.
图5示出了电子设备100的结构示意图。FIG. 5 shows a schematic structural diagram of the electronic device 100.
下面以电子设备100为例对实施例进行具体说明。应该理解的是,图5所示电子设备100仅是一个范例,并且电子设备100可以具有比图5中所示的更多的或者更少的部件, 可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。Hereinafter, the embodiment will be described in detail by taking the electronic device 100 as an example. It should be understood that the electronic device 100 shown in FIG. 5 is only an example, and the electronic device 100 may have more or fewer components than those shown in FIG. 5, two or more components may be combined, or Can have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2. Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display 194, And subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Among them, the controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄 像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 can couple the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to realize communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on. GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用 于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmitting them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包 括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information and can continuously learn by itself. The NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功 能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通 过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F, used to measure distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
下面介绍本申请中涉及的软件系统架构。The following describes the software system architecture involved in this application.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present invention takes an Android system with a layered architecture as an example to exemplify the software structure of the electronic device 100.
图6是本发明实施例的电子设备100的软件结构框图。FIG. 6 is a software structure block diagram of an electronic device 100 according to an embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,系统库,以及内核层(图中未示出)。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the system library, and the kernel layer (not shown in the figure).
应用程序层可以包括一系列应用程序包。该应用程序包可以包括设置应用601,社交应用602(例如微信、QQ等等)、图库应用603等应用程序。The application layer can include a series of application packages. The application package may include a setting application 601, a social application 602 (for example, WeChat, QQ, etc.), a gallery application 603 and other applications.
其中,设置应用601包括有隐私信息的过滤开关,用于开启/关闭图片隐私信息的过滤功能。设置应用601还可以对应用的设置参数进行修改。Among them, the setting application 601 includes a filtering switch for private information, which is used to turn on/off the filtering function for private information of pictures. The setting application 601 can also modify the setting parameters of the application.
社交应用602、图库应用603等应用可用于获取电子设备上图片文件的原图数据、Exif 数据、缩略图数据等等。社交应用602还可以将原图数据发送给联系人的设备上。Applications such as the social application 602 and the gallery application 603 can be used to obtain the original image data, Exif data, thumbnail data, etc. of the image file on the electronic device. The social application 602 can also send the original image data to the contact's device.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
如图6所示,应用程序框架层可以包括Exif数据获取模块604、Exif数据优化模块605、缩略图获取模块606、原图获取模块607等等。As shown in FIG. 6, the application framework layer may include an Exif data acquisition module 604, an Exif data optimization module 605, a thumbnail acquisition module 606, an original image acquisition module 607, and so on.
其中,Exfi数据获取模块604可用于获取图片文件中的Exif数据。Exif数据优化模块605可用于为设置应用提供接口,开启或关闭对图片的隐私信息过滤。缩略图获取模块606可用于从图片文件的Exif数据中获取缩略图。原图获取模块607用于获取图片文件解码后的图片文件。Among them, the Exfi data acquisition module 604 can be used to acquire Exif data in the picture file. The Exif data optimization module 605 can be used to provide an interface for setting applications, and enable or disable privacy information filtering of pictures. The thumbnail obtaining module 606 can be used to obtain thumbnails from the Exif data of the picture file. The original image obtaining module 607 is used to obtain the decoded picture file of the picture file.
在一些实施例中,应用程序框架层还可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等(均未在图中示出)。其中,窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。In some embodiments, the application framework layer may also include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. (all not shown in the figure). Among them, the window manager is used to manage window programs. The window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc. The content provider is used to store and retrieve data and make these data accessible to applications. The data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc. The view system includes visual controls, such as controls that display text and controls that display pictures. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures. The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.). The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。其中,媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。其中,媒体库中包括有图片编解码库608,该图片编解码库608可用于对图片进行编解码。The system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc. Among them, the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing. The media library includes a picture codec library 608, and the picture codec library 608 can be used to code and decode pictures.
其中,用户可以在设置应用601中对社交应用602设置获取图片文件中隐私信息的权限。设置应用601可以将无权限获取图片文件中隐私信息的应用对应的应用标识下发到框架层的Exif数据优化模块605上。Exif数据优化模块605可以控制Exif数据获取模块604、缩略图获取模块606、原图获取模块607或图片编解码库608对图片文件中隐私信息的过滤。Among them, the user can set the permission of obtaining private information in the picture file to the social application 602 in the setting application 601. The setting application 601 can deliver the application identifier corresponding to the application that has no right to obtain the private information in the image file to the Exif data optimization module 605 of the framework layer. The Exif data optimization module 605 can control the Exif data acquisition module 604, the thumbnail acquisition module 606, the original image acquisition module 607, or the picture codec library 608 to filter the private information in the picture file.
1、当应用A(例如微信等应用)需要获取图片文件的原图数据时,Exif数据优化模块605可以判断该应用A是否有权限访问图片文件中的隐私信息。若该应用A无权限访问图 片文件中的隐私信息,Exif数据优化模块605可以设置如下隐私信息过滤点之一。1. When an application A (such as an application such as WeChat) needs to obtain the original image data of a picture file, the Exif data optimization module 605 can determine whether the application A has permission to access the private information in the picture file. If the application A does not have permission to access the private information in the image file, the Exif data optimization module 605 can set one of the following privacy information filtering points.
过滤点1:Exif数据优化模块605可以调用图片编解码库608在对图片文件进行编解码得到原图数据,并过滤掉原图数据中的隐私信息。图片编解码库608在对图片文件进行编解码和过滤隐私信息后,可以将过滤掉隐私信息后的原图数据存入缓存中。原图获取模块608可以从该缓存中获取到过滤掉隐私信息的原图数据,提供接口给应用A调取。Filtering point 1: The Exif data optimization module 605 can call the picture codec library 608 to encode and decode the picture file to obtain the original picture data, and filter out the private information in the original picture data. After the picture codec library 608 encodes and decodes the picture file and filters the private information, the original picture data after the private information is filtered can be stored in the cache. The original image acquisition module 608 can obtain the original image data with privacy information filtered out from the cache, and provide an interface for the application A to retrieve.
过滤点2:图片编解码库608在对图片文件进行解码后,可以将解码后的原图数据存入缓存中。Exif数据优化模块605可以调用原图获取模块607过滤掉缓存中原图数据的隐私信息。原图获取模块607在过滤掉原图数据的隐私信息后,可以提供接口给应用A调取该过滤掉隐私信息的原图数据。Filtering point 2: After the picture codec library 608 decodes the picture file, the decoded original picture data can be stored in the buffer. The Exif data optimization module 605 can call the original image acquisition module 607 to filter out the private information of the original image data in the cache. After the original image acquisition module 607 filters out the private information of the original image data, it may provide an interface for the application A to retrieve the original image data from which the private information is filtered out.
2、当应用B(例如图库应用)需要获取图片文件的Exif数据时,Exif数据优化模块605可以判断该应用B是否有权限访问图片文件中的隐私信息。若该应用B无权限访问图片文件中的隐私信息,Exif数据优化模块可605以调用Exif数据获取模块604在获取到Exif数据后,过滤掉Exif数据中的隐私信息。2. When application B (for example, a gallery application) needs to obtain Exif data of a picture file, the Exif data optimization module 605 can determine whether the application B has permission to access the private information in the picture file. If the application B does not have permission to access the private information in the image file, the Exif data optimization module 605 can call the Exif data acquisition module 604 to filter out the private information in the Exif data after acquiring the Exif data.
其中,当Exif数据获取模块604获取图片文件中的整个Exif数据时,Exif数据获取模块604可以将获取到Exif数据中隐私信息删除,并将删除隐私信息后的Exif数据上报给应用B。当Exif数据获取模块604需要获取Exif数据中的信息1(例如GPS位置信息)时,Exif数据获取模块604可以判断该信息1是否为隐私信息,若是,则Exif数据获取模块604可以返回拒绝指令给应用B,该拒绝指令用于指示应用B无权限获取该信息1。Wherein, when the Exif data obtaining module 604 obtains the entire Exif data in the picture file, the Exif data obtaining module 604 may delete the private information in the obtained Exif data, and report the Exif data after the private information is deleted to the application B. When the Exif data acquisition module 604 needs to acquire information 1 (such as GPS location information) in the Exif data, the Exif data acquisition module 604 can determine whether the information 1 is private information, and if so, the Exif data acquisition module 604 can return a rejection instruction to Application B, the rejection instruction is used to indicate that application B has no right to obtain the information 1.
3、当应用C(例如QQ等应用)需要获取图片文件的缩略图时,Exif数据优化模块605可以判断该应用C是否有权限访问图片文件中的隐私信息。若该应用C无权限访问图片文件中的隐私信息,Exif数据优化模块605可以调用缩略图获取模块606获取到缩略图数据以及缩略图exif信息后,过滤掉缩略图exif信息中的隐私信息,并提供接口给应用C调用过滤隐私信息后的缩略图数据以及缩略图exif信息。3. When an application C (such as an application such as QQ) needs to obtain a thumbnail of a picture file, the Exif data optimization module 605 can determine whether the application C has permission to access the private information in the picture file. If the application C does not have permission to access the private information in the image file, the Exif data optimization module 605 can call the thumbnail acquisition module 606 to obtain the thumbnail data and thumbnail exif information, filter out the private information in the thumbnail exif information, and Provide an interface for application C to call the thumbnail data and thumbnail exif information after filtering the private information.
在一种可能的实现方式中,Exif数据优化模块605可以判断该应用C是否有权限访问图片文件夹中的缩略图,若该应用C无权限访问缩略图,则Exif数据优化模块606可以指示缩略图获取模块606拒绝应用C的缩略图获取请求。In a possible implementation, the Exif data optimization module 605 can determine whether the application C has permission to access the thumbnails in the picture folder. If the application C does not have the permission to access the thumbnails, the Exif data optimization module 606 can instruct to shrink The thumbnail image acquisition module 606 rejects the application C's thumbnail acquisition request.
下面介绍本申请实施例中用户给应用设置权限涉及的用户界面(UI)。The following describes the user interface (UI) involved in the user setting permissions for the application in the embodiment of the present application.
如图7A所示,电子设备100可以在触控屏上显示主屏界面710,该主屏界面710显示了一个放置有应用图标的页面,该页面包括多个应用图标(例如,天气应用图标、股票应用图标、计算器应用图标、设置应用图标711、邮件应用图标、支付宝应用图标、脸书应用图标、浏览器应用图标、图库应用图标、音乐应用图标、视频应用图标、微信应用图标)。多个应用图标下方还包括页面指示符,以表明当前显示的页面与其他页面的位置关系。页面指示符的下方有多个托盘图标(例如拨号应用图标、信息应用图标、联系人应用图标、相机应用图标),托盘图标在页面切换时保持显示,页面可以包括多个应用图标和页面指示符;页面指示符也可以不是页面的一部分,单独存在,上述托盘图标也是可选的,本申请实施例对此不做限制。As shown in FIG. 7A, the electronic device 100 may display a home screen interface 710 on the touch screen. The home screen interface 710 displays a page on which application icons are placed. The page includes multiple application icons (for example, weather application icons, stock application icons). Icon, calculator application icon, setting application icon 711, mail application icon, Alipay application icon, Facebook application icon, browser application icon, gallery application icon, music application icon, video application icon, WeChat application icon). A page indicator is also included below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages. There are multiple tray icons below the page indicator (such as dial-up application icon, information application icon, contact application icon, camera application icon). The tray icon remains displayed when the page is switched. The page can include multiple application icons and page indicators ; The page indicator may not be a part of the page and exist alone. The above-mentioned tray icon is also optional, which is not limited in the embodiment of the application.
电子设备100可以接收用户针对设置应用图标711的输入操作(例如单击),响应于该 输入操作,电子设备100可以显示如图7B所示的设置主界面720。The electronic device 100 may receive an input operation (for example, a single click) of the user with respect to the setting application icon 711, and in response to the input operation, the electronic device 100 may display the setting main interface 720 as shown in FIG. 7B.
如图7B所示,该设置主界面720显示包括有无线和网络设置条目、设备连接设置条目、应用设置条目721、电池设置条目、显示设置条目、声音设置条目、存储设置条目、安全和隐私设置条目、用户和账户设置条目、系统设置条目等等。其中,无线和网络设置条目可用于设置WLAN、双卡管理、移动网络等。设备连接设置条目可用于设置蓝牙、NFC、手机投屏等。应用设置条目721可用于设置权限管理、默认应用、应用分身等等。电池设置条目可用于设置省电模式以及显示耗电排行等等。显示设置条目可用于设置电子设备的显示亮度、桌面风格、字体与显示大小等等。声音设置条目可用于设置免打扰、铃声、振动等。存储设置条目可用于清理内存加速等等。安全和隐私可用于设置人脸解锁、指纹、锁屏密码等等。用户和账户设置条目可用于设置多用户、云空间、账户等等。系统设置条目可用于设置系统导航方式、软件更新、语言和输入法等等。As shown in Figure 7B, the main setting interface 720 display includes wireless and network settings, device connection settings, application settings 721, battery settings, display settings, sound settings, storage settings, security and privacy settings. Entry, user and account setting entries, system setting entries, etc. Among them, wireless and network setting items can be used to set up WLAN, dual card management, mobile network, etc. The device connection setting item can be used to set Bluetooth, NFC, mobile phone screen projection, etc. The application setting item 721 can be used to set permission management, default applications, application clones, and so on. The battery setting item can be used to set the power saving mode and display the power consumption ranking and so on. The display setting item can be used to set the display brightness, desktop style, font and display size of the electronic device, etc. The sound setting item can be used to set DND, ringtone, vibration, etc. The storage settings entry can be used to clean up memory acceleration and so on. Security and privacy can be used to set face unlock, fingerprint, lock screen password and so on. User and account setting items can be used to set up multiple users, cloud space, accounts, and so on. The system setting item can be used to set the system navigation mode, software update, language and input method, etc.
电子设备100可以接收用户针对应用设置条目721的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图7C所示的应用设置界面730。The electronic device 100 may receive an input operation (for example, a single click) of the user on the application setting item 721, and in response to the input operation, the electronic device 100 may display an application setting interface 730 as shown in FIG. 7C.
如图7C所示,该应用设置界面730中显示包括有应用管理设置条目、应用启动设置条目、权限管理设置条目731、默认应用设置条目、应用分身设置条目等等。其中,该应用管理设置条目可用于设置电子设备100上已安装应用程序的存储、启动运行、关闭运行等等。该应用启动设置条目可用于设置电子设备100上已安装应用程序的自动管理启动。该权限管理设置条目731可用于设置电子设备100上已安装应用程序的访问权限。默认应用设置条目可用于设置某一功能(例如文档浏览)被打开时优先选择的应用。应用分身设置条目可用于设置电子设备100上已安装应用程序的分身,可用于用户在分身的两个应用上登录不同的用户账号。As shown in FIG. 7C, the application setting interface 730 displays an application management setting entry, an application startup setting entry, a permission management setting entry 731, a default application setting entry, an application avatar setting entry, and so on. Wherein, the application management setting item can be used to set the storage, start-up operation, shutdown operation and so on of the installed application program on the electronic device 100. The application startup setting item can be used to set the automatic management startup of the installed application on the electronic device 100. The permission management setting item 731 can be used to set the access permission of the installed application on the electronic device 100. The default application setting item can be used to set the preferred application when a certain function (such as document browsing) is opened. The application avatar setting item can be used to set the avatar of the installed application on the electronic device 100, and can be used for the user to log in to different user accounts on the two applications of the avatar.
电子设备100可以接收用户针对权限管理设置条目731的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图7D所示的权限管理界面740。The electronic device 100 may receive an input operation (for example, a single click) of the user for the authority management setting item 731, and in response to the input operation, the electronic device 100 may display the authority management interface 740 as shown in FIG. 7D.
如图7D所示,该权限管理界面740可以显示包括有存储权限设置条目、电话权限设置条目、位置信息权限设置条目、相机权限设置条目、麦克风权限设置条目、通讯录权限设置条目、信息权限设置条目、图片权限设置条目741等等。其中,该存储权限设置条目可用于设置电子设备100上已安装的应用程序访问存储的权限。该电话权限设置条目可用于设置电子设备100已安装的应用程序访问电话功能的权限。该位置信息设置条目可用于设置电子设备100上已安装的应用程序打开定位功能的权限。该相机权限设置条目可用于设置电子设备100上已安装的应用程序打开相机功能的权限。麦克风权限设置条目可用于设置电子设备100上已安装的应用程序打开麦克风功能的权限。通讯录权限设置条目可用于设置电子设备100上已安装的应用程序访问通讯录的权限。该信息权限设置条目可用于设置电子设备100上已安装的应用程序读取短信/彩信、发送短信/彩信、接收短信/彩信的权限。该图片权限设置条目可用于设置电子设备100上已安装的应用程序访问电子设备100上已存储图片文件的权限(例如,获取图片文件中隐私信息、单独获取图片文件Exif数据的权限、获取缩略图的权限等等)。As shown in FIG. 7D, the authority management interface 740 can display storage authority setting items, phone authority setting items, location information authority setting items, camera authority setting items, microphone authority setting items, address book authority setting items, and information authority setting items. Entry, picture permission setting entry 741, etc. Wherein, the storage permission setting item can be used to set the permission of an application program installed on the electronic device 100 to access the storage. The phone permission setting item can be used to set the permission of the installed application of the electronic device 100 to access the phone function. The location information setting item can be used to set the permission of the application installed on the electronic device 100 to open the location function. The camera permission setting item can be used to set the permission of an application installed on the electronic device 100 to open the camera function. The microphone permission setting item can be used to set the permission of an application installed on the electronic device 100 to turn on the microphone function. The address book permission setting entry can be used to set the permission of the application installed on the electronic device 100 to access the address book. The information authority setting item can be used to set the authority of the applications installed on the electronic device 100 to read SMS/MMS, send SMS/MMS, and receive SMS/MMS. The picture permission setting item can be used to set the permission of the application installed on the electronic device 100 to access the picture file stored on the electronic device 100 (for example, obtaining the private information in the picture file, the permission to separately obtain the Exif data of the picture file, and obtaining the thumbnail Permissions, etc.).
电子设备100可以接收用户针对图片权限设置条目741的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图7E的图片权限设置界面750。The electronic device 100 may receive an input operation (for example, a click) of the user for the picture permission setting item 741, and in response to the input operation, the electronic device 100 may display a picture permission setting interface 750 as shown in FIG. 7E.
如图7E所示,该图片权限设置界面750可以包括有图片隐私信息过滤条目751和图片缩略图过滤条目752等等。其中,该图片隐私信息过滤条目751可用于设置应用程序访问电子设备100上已存储图片文件中隐私信息的权限。该图片缩略图过滤条目752可用于设置应用程序访问电子设备100上已存储图片文件中缩略图的权限。As shown in FIG. 7E, the picture permission setting interface 750 may include a picture privacy information filtering item 751, a picture thumbnail filtering item 752, and so on. Wherein, the picture privacy information filtering entry 751 can be used to set the permission of the application to access the private information in the picture file stored on the electronic device 100. The picture thumbnail filtering entry 752 can be used to set the permission of the application to access thumbnails in the picture files stored on the electronic device 100.
电子设备100可以接收用户针对图片隐私信息过滤条目751的输入操作,响应于该输入操作,电子设备100可以如图7F所示的图片隐私信息设置界面760。The electronic device 100 may receive the user's input operation on the picture privacy information filtering item 751, and in response to the input operation, the electronic device 100 may receive the picture privacy information setting interface 760 as shown in FIG. 7F.
如图7F所示,该图片隐私信息设置界面760可以显示包括有一个或多个应用设置选项(例如,微信设置选项、脸书设置选项、推特设置选项、QQ设置选项、图库设置选项等等)。其中,每个应用设置选项上有一个开关控件,该开关控件可用于开启或关闭对应用访问图片时的隐私信息过滤功能。例如,微信应用选项上的开关控件761,可用于开启/关闭微信应用访问图片时隐私信息的过滤功能。其中,该图片隐私信息设置界面760上还可以显示包括有全选开关762,当该全选开关处于开启状态时,设置应用可以开启该图片隐私信息设置界面760中全部的应用设置选项对应的开关控件。As shown in FIG. 7F, the picture privacy information setting interface 760 may display one or more application setting options (for example, WeChat setting options, Facebook setting options, Twitter setting options, QQ setting options, gallery setting options, etc. ). Among them, there is a switch control on each application setting option, and the switch control can be used to turn on or turn off the privacy information filtering function when the application accesses pictures. For example, the switch control 761 on the WeChat application option can be used to turn on/off the filtering function of private information when the WeChat application accesses pictures. Wherein, the picture privacy information setting interface 760 may also display a selection all switch 762. When the selection all switch is turned on, the setting application can turn on the switches corresponding to all application setting options in the picture privacy information setting interface 760. Control.
电子设备100可以接收用户针对开关控件761的输入操作,响应于该输入操作,电子设备100可以开启对微信应用访问图片时的隐私信息过滤。The electronic device 100 may receive a user's input operation on the switch control 761, and in response to the input operation, the electronic device 100 may enable privacy information filtering when the WeChat application accesses pictures.
如图7G所示,当电子设备100响应于接收到用户的针对开关控件761的输入操作,开启对微信应用访问图片是的隐私信息过滤时,该图片隐私信息设置界面760中该微信应用选项上的开关控件761可以处于开启状态。As shown in FIG. 7G, when the electronic device 100, in response to receiving the user's input operation on the switch control 761, turns on the privacy information filtering for the WeChat application to access pictures, the picture privacy information setting interface 760 is on the WeChat application option. The switch control 761 can be in an on state.
下面结合应用场景,介绍本申请提供的一种图片处理方法。The following describes an image processing method provided in this application in combination with application scenarios.
电子设备100在通过相机应用开启摄像头,拍摄照片后可以将该图片的相关信息(例如,拍摄参数、拍摄设备机型、拍摄模式、拍摄时间、拍摄地址信息、人像心情信息等等)存储在该图片的Exif数据中。当用户需要查看该图片的相关信息时,若图库应用有权限读取图片的Exif数据,用户可以打开电子设备100上的图库应用查看该图片的相关信息(例如,拍摄参数、拍摄设备机型、拍摄模式、拍摄时间、拍摄地址信息等等)。The electronic device 100 turns on the camera through the camera application, and after taking a photo, it can store relevant information of the picture (for example, shooting parameters, shooting device model, shooting mode, shooting time, shooting address information, portrait mood information, etc.) in the In the Exif data of the picture. When the user needs to view the relevant information of the picture, if the gallery application has permission to read the Exif data of the picture, the user can open the gallery application on the electronic device 100 to view the relevant information of the picture (for example, shooting parameters, shooting device model, Shooting mode, shooting time, shooting address information, etc.).
示例性的,如图8A所示,电子设备100显示出图片浏览界面810。其中,该图片浏览界面810中可以上显示包括有图片811以及该图片811对应的拍摄地点812(例如“深圳”)和拍摄时间813(例如“2019年7月15日下午3:54”)、图片详细信息控件814、分享功能控件、收藏功能控件、编辑功能控件、删除功能控件,更多功能控件等等。Exemplarily, as shown in FIG. 8A, the electronic device 100 displays a picture browsing interface 810. Wherein, the picture browsing interface 810 can display the picture 811 and the shooting location 812 corresponding to the picture 811 (for example, "Shenzhen") and the shooting time 813 (for example, "July 15, 2019 3:54 pm"), Picture detail information control 814, sharing function control, favorite function control, edit function control, delete function control, more function control and so on.
电子设备100可以接收用户针对该图片详细信息控件814的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图8B所示的图片详细信息窗口820。The electronic device 100 may receive a user's input operation (for example, a click) on the picture detailed information control 814, and in response to the input operation, the electronic device 100 may display a picture detailed information window 820 as shown in FIG. 8B.
如图8B所示,该图片详细信息窗口820中显示包括有该图片811的详细信息。其中,该详细信息可以包括存储名称、拍摄参数、拍摄设备机型、拍摄模式、存储路径等。例如,该图片811的存储名称可以为“IMG_20190715_155430”。该图片811的拍摄参数可以为“感光度(ISO)为50,快门速度为1/3279s,对焦模式为自动对焦(AF-A),白平衡(AWB)为开启状态,曝光补偿(EV)为0,光圈(F)为1.8,闪光灯为自动模式,焦距为27mm(等效35mm胶片焦距)等等。该图片811的拍摄设备机型可以为“EML-AL00”,拍摄模式可以为“普通”。该图片811的存储路径为“内部存储 /DCIM/Camera/IMG_20190715_155430”。其中,图片详细信息还可以包括有图片的人像心情信息,即电子设备100通过AI识别到图片中人物的心情信息(例如开心或难过或忧伤等等)。上述示例仅仅用于解释本申请,不应构成限定。As shown in FIG. 8B, detailed information including the picture 811 is displayed in the picture detailed information window 820. Wherein, the detailed information may include storage name, shooting parameters, shooting device model, shooting mode, storage path, etc. For example, the storage name of the picture 811 may be "IMG_20190715_155430". The shooting parameters of this picture 811 can be "Sensitivity (ISO) is 50, shutter speed is 1/3279s, focus mode is autofocus (AF-A), white balance (AWB) is on, and exposure compensation (EV) is 0, the aperture (F) is 1.8, the flash is in automatic mode, the focal length is 27mm (equivalent to 35mm film focal length), etc. The camera model of this picture 811 can be "EML-AL00", and the shooting mode can be "normal" The storage path of the picture 811 is “internal storage/DCIM/Camera/IMG_20190715_155430”. The detailed information of the picture may also include the mood information of the person in the picture, that is, the electronic device 100 recognizes the mood information of the person in the picture through AI (for example, Happy or sad or sad, etc.) The above examples are only used to explain this application and should not constitute a limitation.
在一些应用场景中,电子设备100可以通过通讯应用(例如微信应用等)将电子设备100上本地存储的图片文件发送给其他设备。当该通讯应用无权限访问电子设备100上图片文件中的隐私信息时,电子设备100可以在该通讯应用获取到图片文件之前,过滤该图片文件中的隐私信息。其中,隐私信息可以包括拍摄地址信息、拍摄设备型号、拍摄模式、拍摄时间、人像心情信息等等中的一种或多种。这样,电子设备100可以不改变手机自身存储的原始图片数据,在读取图片数据时,动态删除图片数据中的隐私信息,保护了用户隐私。In some application scenarios, the electronic device 100 may send the image file stored locally on the electronic device 100 to other devices through a communication application (such as a WeChat application, etc.). When the communication application does not have permission to access the private information in the picture file on the electronic device 100, the electronic device 100 can filter the private information in the picture file before the communication application obtains the picture file. The privacy information may include one or more of shooting address information, shooting device model, shooting mode, shooting time, portrait mood information, and so on. In this way, the electronic device 100 does not change the original picture data stored in the mobile phone itself, and when reading the picture data, it dynamically deletes the private information in the picture data, which protects user privacy.
示例性的,如图9A所示,电子设备100可以显示有主屏界面910,其中,该主屏界面910上显示包括有一个或多个应用图标(例如,天气应用图标、股票应用图标、计算器应用图标、设置应用图标、邮件应用图标、支付宝应用图标、脸书应用图标、浏览器应用图标、图库应用图标、音乐应用图标、视频应用图标、微信应用图标911)。其中,由于图9A中的主屏界面910上述图7A中所示主屏界面710相同,因此,上述图7A中针对主屏界面710的文字说明也同样适用于图9A中的主屏界面910,在此不再赘述。Exemplarily, as shown in FIG. 9A, the electronic device 100 may display a home screen interface 910, where the home screen interface 910 includes one or more application icons (for example, weather application icons, stock application icons, calculator applications). Icon, settings application icon, mail application icon, Alipay application icon, Facebook application icon, browser application icon, gallery application icon, music application icon, video application icon, WeChat application icon 911). Wherein, since the main screen interface 910 in FIG. 9A is the same as the main screen interface 710 shown in FIG. 7A, the text description for the main screen interface 710 in FIG. 7A also applies to the main screen interface 910 in FIG. 9A, and will not be repeated here. Repeat.
电子设备100可以接收用户针对微信应用图标911的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图9B所示的微信应用界面920。The electronic device 100 may receive an input operation (for example, a click) of the user on the WeChat application icon 911, and in response to the input operation, the electronic device 100 may display the WeChat application interface 920 as shown in FIG. 9B.
如图9B所示,该微信应用界面920中包括有消息浏览页面921和菜单923。其中,该菜单923中包括有微信控件924、联系人控件925、发现控件926和我的控件927。其中,该微信控件924用于触发终端100显示出该消息浏览页面921。该联系人控件925可用于触发终端100显示出包括有多个微信联系人选项的页面。该发现控件926可用于触发终端100显示包括有朋友圈、扫一扫等功能控件的页面。该我的控件927可用于触发终端100显示包括有微信用户的个人资料等信息的页面。该消息浏览页面921中包括有一个或多个消息选项(例如,联系人“MAC”的消息选项922、联系人“Kate”的消息选项、邮箱提醒的消息选项、订阅号的消息选项、联系人群组“工作组1”的消息选项、微信运动的消息选项、联系人群组“健身群”的消息选项)。As shown in FIG. 9B, the WeChat application interface 920 includes a message browsing page 921 and a menu 923. Among them, the menu 923 includes a WeChat control 924, a contact control 925, a discovery control 926, and a my control 927. The WeChat control 924 is used to trigger the terminal 100 to display the message browsing page 921. The contact control 925 can be used to trigger the terminal 100 to display a page that includes multiple WeChat contact options. The discovery control 926 can be used to trigger the terminal 100 to display a page that includes functional controls such as Moments and Sweep. The my control 927 can be used to trigger the terminal 100 to display a page including the personal information of the WeChat user and other information. The message browsing page 921 includes one or more message options (for example, the message option 922 of the contact "MAC", the message option of the contact "Kate", the message option of the email reminder, the message option of the subscription number, the contact The message option of the group "workgroup 1", the message option of WeChat sports, the message option of the contact group "fitness group").
终端100可以接收用户作用于消息选项922的操作,响应于该操作,终端100可以显示如图9C所示的聊天界面930。The terminal 100 may receive the user's operation on the message option 922, and in response to the operation, the terminal 100 may display a chat interface 930 as shown in FIG. 9C.
如图9C所示,该聊天界面930显示包括有联系人名称(例如“MAC”)、语音输入控件931、文字输入框932、表情控件933、更多功能控件934。其中,该语音输入控件931可用于触发终端100将文字输入框932替换显示为语音输入框。文字输入框932可用于显示用户输入的文字或表情图片。表情控件933可用于触发终端100显示出一个或多个可发送的表情图片。该更多功能控件934可用于触发终端100显示更多微信聊天功能控件(例如图片发送控件、视频发送控件、拍照发送控件,等等)。As shown in FIG. 9C, the chat interface 930 includes a contact name (for example, "MAC"), a voice input control 931, a text input box 932, an expression control 933, and a more function control 934. The voice input control 931 can be used to trigger the terminal 100 to replace and display the text input box 932 as a voice input box. The text input box 932 can be used to display text or emoticons input by the user. The emoticon control 933 can be used to trigger the terminal 100 to display one or more sendable emoticon pictures. The more function control 934 can be used to trigger the terminal 100 to display more WeChat chat function controls (for example, picture sending control, video sending control, photo sending control, etc.).
电子设备100可以接收用户针对更多控件934的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图9D所示的功能控件页面935。The electronic device 100 may receive an input operation (such as a single click) of the user for more controls 934, and in response to the input operation, the electronic device 100 may display a function control page 935 as shown in FIG. 9D.
如图9D所示,该功能控件页面935中显示包括有一个或多个功能控件(例如相册功能控件936、相机功能控件、视频通话功能控件、位置功能控件、红包功能控件、转账功能控件、语音输入功能控件、收藏功能控件等等)。其中,该相册功能控件936可用于触发选择待发送的图片。该相机功能控件可用于触发电子设备100开启摄像头拍照,并可将拍到的照片发送给联系人的设备上。该位置功能控件可用于将电子设备100当前的位置信息发送给联系人的设备上。该红包功能控件、转账功能控件可用于触发电子转账给联系人的账户。该语音输入功能控件可用于触发采集用户的声音,并发送到联系人的设备上。该收藏功能控件可用于打开用户在微信应用上收藏的文件(例如、图片、文档、音乐、视频等等)。As shown in FIG. 9D, the function control page 935 displays one or more function controls (such as photo album function control 936, camera function control, video call function control, location function control, red envelope function control, transfer function control, voice Input function control, favorite function control, etc.). Among them, the album function control 936 can be used to trigger the selection of the picture to be sent. The camera function control can be used to trigger the electronic device 100 to turn on the camera to take pictures and send the taken pictures to the contact's device. The location function control can be used to send the current location information of the electronic device 100 to the contact's device. The red envelope function control and transfer function control can be used to trigger electronic transfer to the contact's account. The voice input function control can be used to trigger the collection of the user's voice and send it to the contact's device. The collection function control can be used to open files (for example, pictures, documents, music, videos, etc.) collected by the user on the WeChat application.
电子设备100接收用户针对该相册功能控件936的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图9E所示的图片选择界面940。The electronic device 100 receives a user's input operation (for example, a single click) on the album function control 936, and in response to the input operation, the electronic device 100 may display a picture selection interface 940 as shown in FIG. 9E.
如图9E所示,该图片选择界面940中可以包括有一个或多个图片的缩略图。其中,每一个缩略图上可以显示有一个标记。该标记可用于表示用户是否选中了该缩略图对应的图片。例如,缩略图941对应的图片可以是上述图8A中的图片811,该缩略图941上显示有标记942,其中,该标记942当前处于未选中状态,用于表示该缩略图941对应的图片未被用户选中。该图片选择界面940可以包括有原图选择控件943,该原图功能控件943可用于电子设备100将用户选中的图片不经过压缩,发送给到联系人的设备上。当前该原图功能控件943处于关闭状态,用于表示当前电子设备100会对用户选中的待发送的图片进行压缩。As shown in FIG. 9E, the picture selection interface 940 may include thumbnails of one or more pictures. Among them, each thumbnail can be displayed with a mark. This mark can be used to indicate whether the user has selected the picture corresponding to the thumbnail. For example, the picture corresponding to the thumbnail 941 may be the picture 811 in FIG. 8A, and a mark 942 is displayed on the thumbnail 941. The mark 942 is currently in an unselected state to indicate that the picture corresponding to the thumbnail 941 is not selected. Selected by the user. The picture selection interface 940 may include an original picture selection control 943, and the original picture function control 943 may be used for the electronic device 100 to send the picture selected by the user to the contact's device without compression. The original image function control 943 is currently in a closed state, which is used to indicate that the current electronic device 100 will compress the image to be sent selected by the user.
电子设备100可以接收用户作用于缩略图941的输入操作(例如单击),响应于该输入操作,电子设备100可以在缩略图941上的标记942可以切换为选中状态。该标记942处于选中状态时,可用于表示该缩略图941对应的图片已被用户选中。电子设备100可以接收用户作用于原图功能控件943的输入操作(例如单击),响应于该输入操作,电子设备100可以将原图功能控件切换为开启状态。The electronic device 100 may receive an input operation (for example, a click) of the user on the thumbnail 941, and in response to the input operation, the electronic device 100 may switch the mark 942 on the thumbnail 941 to a selected state. When the mark 942 is in the selected state, it can be used to indicate that the picture corresponding to the thumbnail 941 has been selected by the user. The electronic device 100 may receive an input operation (for example, a single click) of the user on the original image function control 943, and in response to the input operation, the electronic device 100 may switch the original image function control to an on state.
如图9F所示,用户已经选中缩略图941对应的图片。该缩略图941上的标记942处于选中状态。该原图功能控件943处于开启状态。在用户选中缩略图941之后,电子设备100可以在图片选择界面940上显示发送控件944。As shown in FIG. 9F, the user has selected the picture corresponding to the thumbnail 941. The mark 942 on the thumbnail 941 is in the selected state. The original image function control 943 is in an on state. After the user selects the thumbnail 941, the electronic device 100 may display a sending control 944 on the picture selection interface 940.
电子设备100可以接收用户针对发送控件944的输入操作(例如单击),响应于该输入操作,电子设备100可以判断该微信应用是否有权限访问图片的隐私信息(例如,拍摄地址信息、拍摄时间、拍摄设备机型、拍摄模式等等),若微信应用没有权限访问图片的隐私信息,则电子设备100在微信应用获取到该缩略图941对应的图片之前,过滤(也可称为删除)该图片的Exif数据中的隐私信息(例如,拍摄地址信息、拍摄时间、拍摄设备机型、拍摄模式等等)。The electronic device 100 can receive the user's input operation (for example, click) on the sending control 944, and in response to the input operation, the electronic device 100 can determine whether the WeChat application has permission to access the private information of the picture (for example, shooting address information, shooting time , Shooting device model, shooting mode, etc.), if the WeChat application does not have permission to access the private information of the picture, the electronic device 100 filters (can also be called deleting) the picture before the WeChat application obtains the picture corresponding to the thumbnail 941 Private information in the Exif data of the picture (for example, shooting address information, shooting time, shooting device model, shooting mode, etc.).
其中,电子设备100可以在对缩略图941对应的图片进行编解码时,过滤掉该图片的Exif数据中的隐私信息,并将该过滤掉(也可称为删除)隐私信息后的图片数据存入缓存中,供微信应用读取。在另一种可能的实现方式中,电子设备100还可以在对缩略图941对应的图片编解码后,将编解码后的图片数据存入缓存中,然后再过滤(也可称为删除)缓存中该图片数据的Exif数据中的隐私信息,之后,再将过滤掉隐私信息后的图片数据返 回给微信应用。这样,电子设备100可以不改变手机自身存储的原始图片数据,在读取图片数据时,动态删除图片数据中的隐私信息,保护了用户隐私。具体实现可以参考前述图6所示实施例,在此不再赘述。Wherein, the electronic device 100 may filter out the private information in the Exif data of the picture when encoding and decoding the picture corresponding to the thumbnail 941, and save the picture data after the filtering (also called deletion) of the private information. Into the cache for the WeChat application to read. In another possible implementation manner, the electronic device 100 may also store the encoded and decoded picture data in a cache after encoding and decoding the picture corresponding to the thumbnail 941, and then filter (also referred to as deleting) the cache. After the private information in the Exif data of the image data, the image data after filtering out the private information is returned to the WeChat application. In this way, the electronic device 100 does not change the original picture data stored in the mobile phone itself, and when reading the picture data, it dynamically deletes the private information in the picture data, which protects user privacy. For specific implementation, reference may be made to the embodiment shown in FIG. 6, which will not be repeated here.
电子设备100在过滤掉用户选中图片中的隐私信息(例如,拍摄地址信息、拍摄时间、拍摄设备机型、拍摄模式等等)后,可以将该已过滤隐私信息的图片发送到联系人的设备上。After the electronic device 100 filters out the private information in the picture selected by the user (for example, shooting address information, shooting time, shooting device model, shooting mode, etc.), it can send the filtered picture with private information to the contact's device on.
其中,在一种可能实现方式中,电子设备100可以直接将该已过滤隐私信息的图片发送到微信应用的服务器上,然后,该服务器再将该过滤隐私信息的图片发送给联系人的设备(例如电子设备101)上。在另一种可能的实现方式中,电子设备100可以将已过滤隐私信息的图片发送给微信应用的文件服务器。然后电子设备100通过微信应用的通讯服务器将该图片的链接发送给联系人的设备(例如电子设备101)上。联系人的设备(例如电子设备101)在通过微信应用的通讯服务器获取到该图片的链接后,可以根据该图片的链接从服务器上下载该图片。Among them, in a possible implementation manner, the electronic device 100 can directly send the filtered private information picture to the server of the WeChat application, and then the server sends the filtered private information picture to the contact's device ( For example, the electronic device 101). In another possible implementation manner, the electronic device 100 may send a picture with filtered private information to a file server of a WeChat application. Then, the electronic device 100 sends the link of the picture to the contact's device (for example, the electronic device 101) through the communication server of the WeChat application. After obtaining the link of the picture through the communication server of the WeChat application, the device of the contact (such as the electronic device 101) can download the picture from the server according to the link of the picture.
如图9G所示,电子设备100在通过微信应用发送该缩略图941对应的图片给联系人(例如“MAC”)后,可以在聊天界面930中显示缩略图951。其中,缩略图951和上述图9E中的缩略图941来自于同一图片中。As shown in FIG. 9G, the electronic device 100 may display the thumbnail 951 in the chat interface 930 after sending the picture corresponding to the thumbnail 941 to the contact (for example, “MAC”) through the WeChat application. Among them, the thumbnail 951 and the thumbnail 941 in FIG. 9E are from the same picture.
在联系人的设备(例如电子设备101)接收到电子设备100通过微信应用发送的图片之后,联系人的设备可以存储到本地。用户可以在联系人的设备上的图库中查看到该图片以及该图片相关信息。其中,联系人的设备(电子设备101)获取到的该图片中的隐私信息(例如,拍摄地址信息、拍摄模式、拍摄时间、拍摄机型等等)已被过滤。也即是说,用户无法从电子设备101上查看到该图片的隐私信息。After the contact's device (for example, the electronic device 101) receives the picture sent by the electronic device 100 through the WeChat application, the contact's device can be stored locally. The user can view the picture and its related information in the gallery on the contact’s device. Among them, the private information (for example, shooting address information, shooting mode, shooting time, shooting model, etc.) in the picture acquired by the contact's device (electronic device 101) has been filtered. In other words, the user cannot view the private information of the picture from the electronic device 101.
示例性的,如图10A所示,联系人的设备可以为电子设备101。电子设备101上显示有微信应用的聊天界面1010。其中,该聊天界面1010的联系人为“Daniel”。联系人“Daniel”的设备可以为前述实施例中的电子设备100。该聊天界面1010中显示包括有联系人的名称(例如“Daniel”)、联系人的头像、聊天消息1015、语音输入控件1011、文字输入控件1012、表情控件1013、更多控件1014等等。其中,该聊天消息1015为联系人“Daniel”的设备(电子设备100)发送的图片对应的缩略图。Exemplarily, as shown in FIG. 10A, the device of the contact may be the electronic device 101. The electronic device 101 displays a chat interface 1010 of the WeChat application. The contact person of the chat interface 1010 is “Daniel”. The device of the contact "Daniel" may be the electronic device 100 in the foregoing embodiment. The chat interface 1010 displays the name of the contact (such as "Daniel"), the avatar of the contact, the chat message 1015, the voice input control 1011, the text input control 1012, the expression control 1013, more controls 1014, and so on. Wherein, the chat message 1015 is a thumbnail corresponding to the picture sent by the device (electronic device 100) of the contact "Daniel".
电子设备101可以接收用户针对该聊天消息1015的输入操作(例如单击),响应于该输入操作,电子设备101可以显示如图10B所示的图片展示界面1020。The electronic device 101 may receive an input operation (for example, a click) of the user for the chat message 1015, and in response to the input operation, the electronic device 101 may display a picture display interface 1020 as shown in FIG. 10B.
如图10B所示,该电子设备101可以显示有图片1021和保存控件1022。其中,该图片1021由上述电子设备100通过微信应用发送给电子设备101。该保存控件1022可用于触发电子设备101保存该图片1021至本地的文件夹中(例如,该图片1021的存储路径可以为“内部存储/DCIM/Wexin/IMG_20190715_155430”)。As shown in FIG. 10B, the electronic device 101 may display a picture 1021 and a save control 1022. Wherein, the picture 1021 is sent by the electronic device 100 to the electronic device 101 through the WeChat application. The save control 1022 may be used to trigger the electronic device 101 to save the picture 1021 to a local folder (for example, the storage path of the picture 1021 may be "internal storage/DCIM/Wexin/IMG_20190715_155430").
电子设备101在将图片1021存储到本地后,用户可以在图库应用中查看该图片1021以以及该图片1021的相关信息。After the electronic device 101 stores the picture 1021 locally, the user can view the picture 1021 and related information of the picture 1021 in the gallery application.
示例性的,如图10C所示,电子设备101显示有图库应用界面1030。该图库应用界面 1030中可以显示包括有一个或多个相册(例如所有照片相册、视频相册、相机相册、截屏目录相册、微信相册1031、微博相册等等)。其中,上述图片1021保存在该微信相册1031中。Exemplarily, as shown in FIG. 10C, the electronic device 101 displays a gallery application interface 1030. The gallery application interface 1030 may display one or more albums (for example, all photo albums, video albums, camera albums, screenshot catalog albums, WeChat albums 1031, Weibo albums, etc.). Among them, the aforementioned picture 1021 is stored in the WeChat album 1031.
电子设备101可以接收用户针对微信相册应用1031的输入操作(例如单击),响应于该输入操作,电子设备101可以显示如图10D所示的微信相册界面1040。The electronic device 101 may receive an input operation (for example, a single click) of the user on the WeChat album application 1031, and in response to the input operation, the electronic device 101 may display a WeChat album interface 1040 as shown in FIG. 10D.
如图10D所示,该微信相册界面1040中显示包括有一个张或多张图片的缩略图(例如上述图片1021的缩略图1041等等)。As shown in FIG. 10D, the WeChat album interface 1040 displays thumbnails including one or more pictures (for example, the thumbnail 1041 of the aforementioned picture 1021, etc.).
电子设备101可以接收用户针对该缩略图1041的输入操作(例如单击),响应于该输入操作,电子设备101可以显示如图10E所示的图片浏览界面1050。The electronic device 101 can receive an input operation (for example, a click) of the thumbnail 1041 by the user, and in response to the input operation, the electronic device 101 can display a picture browsing interface 1050 as shown in FIG. 10E.
如图10E所示,该图片浏览界面1050中显示包括有图片1021、图片存入时间(例如“2019年11月15日上午8:08”)、图片详细信息控件1052、分享功能控件、收藏功能控件、编辑功能控件、删除功能控件,更多功能控件等等。As shown in FIG. 10E, the picture browsing interface 1050 displays pictures 1021, the time the picture was saved (for example, "8:08 am on November 15, 2019"), picture details control 1052, sharing function control, and collection function Controls, edit function controls, delete function controls, more function controls, etc.
电子设备101可以接收用户针对该图片详细信息控件1052的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图10F所示的图片详细信息窗口1060。The electronic device 101 may receive a user's input operation (for example, a click) on the picture detailed information control 1052, and in response to the input operation, the electronic device 100 may display a picture detailed information window 1060 as shown in FIG. 10F.
如图10F所示,该图片详细信息窗口1060中显示包括有该图片1021的详细信息。其中,该图片1021的详细信息中可以包括有存储名称、拍摄参数、存储路径等。例如,该图片1021的存储名称可以为“IMG_20190715_155430”。该图片811的拍摄参数可以为“感光度(ISO)为50,快门速度为1/3279s,对焦模式为自动对焦(AF-A),白平衡(AWB)为开启状态,曝光补偿(EV)为0,光圈(F)为1.8,闪光灯为自动模式,焦距为27mm(等效35mm胶片焦距)等等。该图片1021的存储路径为“内部存储/DCIM/Camera/IMG_20190715_155430”。其中,电子设备101无法获取到该图片1021的隐私信息(例如,拍摄地址信息、拍摄模式、拍摄时间、拍摄机型等等)。上述示例仅仅用于解释本申请,不应构成限定。As shown in FIG. 10F, detailed information including the picture 1021 is displayed in the picture detailed information window 1060. Wherein, the detailed information of the picture 1021 may include a storage name, shooting parameters, storage path, etc. For example, the storage name of the picture 1021 may be "IMG_20190715_155430". The shooting parameters of this picture 811 can be "Sensitivity (ISO) is 50, shutter speed is 1/3279s, focus mode is autofocus (AF-A), white balance (AWB) is on, and exposure compensation (EV) is 0, aperture (F) is 1.8, flash is in automatic mode, focal length is 27mm (equivalent to 35mm film focal length), etc. The storage path of this picture 1021 is "internal storage/DCIM/Camera/IMG_20190715_155430". Among them, electronic device 101 The private information of the picture 1021 (for example, shooting address information, shooting mode, shooting time, shooting model, etc.) cannot be obtained. The above examples are only used to explain the application and should not constitute a limitation.
在一些应用场景中,电子设备100上的应用可以单独获取图片的Exif数据。当电子设备100上的应用请求获取图片的Exif数据时,电子设备100可以判断该应用是否有权权限获取欧到图片的Exif数据。若该应用无权限访问电子设备100上图片文件中的隐私信息,电子设备100可以在该应用获取到图片的Exif数据之前,过滤Exif数据中的隐私信息。这样,电子设备100可以不改变手机自身存储的原始图片数据,在应用读取Exif数据时,动态删除图片数据中的隐私信息,保护了用户隐私。In some application scenarios, the application on the electronic device 100 can separately obtain the Exif data of the picture. When an application on the electronic device 100 requests to obtain the Exif data of the picture, the electronic device 100 can determine whether the application has the right to obtain the Exif data of the picture. If the application does not have permission to access the private information in the picture file on the electronic device 100, the electronic device 100 can filter the private information in the Exif data before the application obtains the Exif data of the picture. In this way, the electronic device 100 may not change the original picture data stored in the mobile phone itself, and when the application reads the Exif data, the private information in the picture data is dynamically deleted, thereby protecting user privacy.
在一些应用场景中,电子设备100上的应用可以单独获取图片的缩略图及缩略图Exif信息。当电子设备100上的应用请求获取图片的缩略图及缩略图Exif信息时,电子设备100可以判断该应用是否有权权限获取欧到图片的Exif数据。若该应用无权限访问电子设备100上图片文件中的缩略图及缩略图Exif信息时,电子设备100可以拒绝该应用的请求。这样,电子设备100可以不改变手机自身存储的原始图片数据,在无权限的应用请求获取缩略图及缩略图Exif信息时,拒绝该请求,保护了用户隐私。In some application scenarios, the application on the electronic device 100 can separately obtain the thumbnail of the picture and the thumbnail Exif information. When an application on the electronic device 100 requests to obtain the thumbnail image and thumbnail Exif information, the electronic device 100 can determine whether the application has the right to obtain the Exif data of the image. If the application does not have permission to access the thumbnail and thumbnail Exif information in the picture file on the electronic device 100, the electronic device 100 may reject the request of the application. In this way, the electronic device 100 may not change the original picture data stored in the mobile phone itself, and when an unauthorized application requests to obtain thumbnails and thumbnail Exif information, the request is rejected, thereby protecting user privacy.
在一些应用场景中,电子设备100可以将图片保存至云服务器上,并与用户A的云账户绑定。当用户A需要将云账户上的图片分享给用户B时,电子设备100可以将云服务器上用户A所选中图片(或包括有多张图片的文件)的获取地址通过指定方式发送给用户B的设备上(例如电子设备101)。用户B的设备(例如电子设备101)在接收到图片的获取地址后,可以从云服务器获取图片的缩略图并显示,或者接收用户B的操作从云服务器上下载用户A分享的图片。其中,云服务器可以将图片的Exif数据中的隐私信息进行加密,再将加密隐私信息后的图片发送给用户B的设备(例如电子设备101)上。这样,可以实现电子设备100分享图片给其他设备时,防止其他设备获取到图片中的隐私信息,保护了用户的隐私。In some application scenarios, the electronic device 100 may save the picture on a cloud server and bind it to the cloud account of the user A. When user A needs to share the picture on the cloud account with user B, the electronic device 100 can send the acquisition address of the picture (or a file containing multiple pictures) selected by user A on the cloud server to user B in a specified manner On the device (e.g., electronic device 101). After receiving the image acquisition address, the device of user B (for example, electronic device 101) may obtain the thumbnail of the image from the cloud server and display it, or receive the operation of user B to download the image shared by user A from the cloud server. The cloud server may encrypt the private information in the Exif data of the picture, and then send the encrypted private information to the user B's device (for example, the electronic device 101). In this way, when the electronic device 100 shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user.
示例性的,如图11A所示,电子设备100显示图库界面1110。其中,该图库界面1110显示包括有一个或多个相册(例如所有照片相册、收藏相册、相机相册、截屏目录相册、旅游相册1111、微博相册等等)。其中,每个相册中可以包括一张或多张图片。例如,旅游相册1111中可以包括有2张图片。Exemplarily, as shown in FIG. 11A, the electronic device 100 displays a gallery interface 1110. Wherein, the gallery interface 1110 shows that there are one or more albums (for example, all photo albums, favorite albums, camera albums, screenshot catalog albums, travel albums 1111, Weibo albums, etc.). Among them, each album can include one or more pictures. For example, the travel album 1111 may include 2 pictures.
电子设备100可以接收用户针对旅游相册1111的输入操作(例如长按),响应于该输入操作,电子设备100可以显示如图11B所示的功能窗口1120。其中,该旅游相册1111中包括的图片可以存储在云服务器上与云账户A绑定。The electronic device 100 may receive the user's input operation (for example, a long press) on the travel album 1111, and in response to the input operation, the electronic device 100 may display a function window 1120 as shown in FIG. 11B. Wherein, the pictures included in the travel album 1111 can be stored on the cloud server and bound to the cloud account A.
如图11B所示,该功能窗口1120可以显示包括有一个或多个功能选项(例如,置顶选项、删除选项、重命名选项、共享选项1121、移入其他相册选项等等)。As shown in FIG. 11B, the function window 1120 may display that it includes one or more function options (for example, a top option, a delete option, a rename option, a sharing option 1121, an option to move into another album, etc.).
电子设备100可以接收用户针对该共享选项1121的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图11C所示的相册分享界面1130。The electronic device 100 may receive an input operation (for example, a click) of the user for the sharing option 1121, and in response to the input operation, the electronic device 100 may display an album sharing interface 1130 as shown in FIG. 11C.
如图11C所示,该相册分享界面1130显示包括有可以相册成员列表、相册成员添加控件1132、待分享相册列表、相册添加控件1134、公开相册分享控件1135、相册地址发送条目1136。其中,当前只有该旅游相册1111的分享方(云账户A)可以获取,因此,该相册成员列表中显示包括有云账户A对应的标识1131。当前待分享的相册为旅游相册1111,因此,待分享相册列表中显示包括有旅游相册1111对应的标识1133。该相册成员添加控件1132可用于添加获取待分享相册的账户。该待分享相册1134可用于添加需要分享的相册。其中,每一个待分享的相册中包括有一个或多个图片。该公开分享相册控件1135可用于开启或关闭公开所选相册。当前,公开分享相册控件1135处于关闭状态。该相册地址发送控件1136可用于触发电子设备100发送所选相册的获取地址给其他设备。As shown in FIG. 11C, the album sharing interface 1130 displays a list of available album members, an album member adding control 1132, a list of albums to be shared, an album adding control 1134, a public album sharing control 1135, and an album address sending item 1136. Among them, currently only the sharing party (cloud account A) of the travel album 1111 can obtain it. Therefore, the list of members of the album includes the identifier 1131 corresponding to the cloud account A. The current album to be shared is a travel album 1111. Therefore, the list of albums to be shared includes an identifier 1133 corresponding to the travel album 1111. The album member adding control 1132 can be used to add an account for obtaining the album to be shared. The album to be shared 1134 can be used to add albums that need to be shared. Among them, each album to be shared includes one or more pictures. The publicly shared album control 1135 can be used to open or close the publicly selected album. Currently, the publicly shared album control 1135 is closed. The album address sending control 1136 can be used to trigger the electronic device 100 to send the acquisition address of the selected album to other devices.
电子设备100可以接收用户针对公开分享相册控件1135的输入操作(例如单击),响应于该操作,电子设备100可以开启公开分享相册的功能。The electronic device 100 may receive an input operation (for example, a click) of the user for the publicly shared album control 1135, and in response to this operation, the electronic device 100 may enable the function of publicly sharing the album.
如图11D所示,电子设备100已开启公开分享相册功能,该公开分享相册控件1135处于开启状态。电子设备100可以在该相册分享界面1130上显示二维码1137。该二维码1137可用于其他设备扫描,使得其他设备获取到该旅游相册1133对应的获取地址。As shown in FIG. 11D, the electronic device 100 has enabled the publicly shared album function, and the publicly shared album control 1135 is in the on state. The electronic device 100 may display a two-dimensional code 1137 on the album sharing interface 1130. The two-dimensional code 1137 can be used for scanning by other devices, so that other devices can obtain the acquisition address corresponding to the travel album 1133.
其中,电子设备100上登录的云账户A的用户名可以为“Daniel”,电子设备101上可以登录有云账户B,该云账户B的用户名可以为“MAC”。The user name of the cloud account A logged in on the electronic device 100 may be "Daniel", the electronic device 101 may log in to the cloud account B, and the user name of the cloud account B may be "MAC".
电子设备101可以通过如下方式获取到电子设备100通过云账户A分享的相册(或图片):1、电子设备101可以通过扫描上述图11D中所示的相册分享界面1130的二维码1137, 获取到电子设备100要分享的相册(例如上述旅游相册1111)的获取地址。2、电子设备100可以接收并响应针对上述图11C所示相册地址发送控件1136的输入操作,将要分享的相册(例如上述旅游相册1111)的获取地址通过社交应用等发送给电子设备101。3、电子设备100可以通过添加电子设备101对应的云账户B至相册成员列表,并将要分享的相册(例如上述旅游相册1111)的获取地址通过云服务器发送到登录有云账户B的电子设备101上。The electronic device 101 can obtain the album (or picture) shared by the electronic device 100 through the cloud account A in the following ways: 1. The electronic device 101 can scan the two-dimensional code 1137 of the album sharing interface 1130 shown in FIG. 11D to obtain Go to the acquisition address of the album to be shared by the electronic device 100 (for example, the aforementioned travel album 1111). 2. The electronic device 100 can receive and respond to the input operation of the album address sending control 1136 shown in FIG. 11C, and send the acquisition address of the album to be shared (for example, the travel album 1111) to the electronic device 101 through social applications. The electronic device 100 can add the cloud account B corresponding to the electronic device 101 to the album member list, and send the acquisition address of the album to be shared (for example, the travel album 1111 described above) to the electronic device 101 logged in to the cloud account B through the cloud server.
示例性的,如图11E所示,电子设备100可以将电子设备101对应的云账户B添加至相册成员列表中。其中,相册成员列表中可以显示包括有电子设备100上登录的云账户A对应的标识1131和电子设备101上登录的云账户B对应的标识1138。电子设备100可以将要分享的相册(例如旅游相册1111)的获取地址通过云服务器发送给登录有云账户B的电子设备101上。Exemplarily, as shown in FIG. 11E, the electronic device 100 may add the cloud account B corresponding to the electronic device 101 to the album member list. Wherein, the list of album members may display an identifier 1131 corresponding to the cloud account A logged in on the electronic device 100 and an identifier 1138 corresponding to the cloud account B logged in on the electronic device 101. The electronic device 100 may send the acquisition address of the photo album (for example, travel photo album 1111) to be shared to the electronic device 101 with the cloud account B through the cloud server.
电子设备101在接收到上述待分享相册(例如旅游相册1111)的获取地址后,可以根据该获取地址发送相册获取请求给云服务器。云服务器在接收到该待分享相册(例如旅游相册1111)的获取地址后,可以将该待分享相册(例如旅游相册1111)包括的各图片对应的缩略图发送给电子设备101。After receiving the acquisition address of the aforementioned album to be shared (for example, travel album 1111), the electronic device 101 may send an album acquisition request to the cloud server according to the acquisition address. After receiving the acquisition address of the album to be shared (for example, travel album 1111), the cloud server may send thumbnails corresponding to each picture included in the album to be shared (for example, travel album 1111) to the electronic device 101.
示例性的,如图12A所示,电子设备101可以显示有云相册界面1210。其中,该云相册界面1210显示有上述电子设备100待分享相册(例如上述旅游相册1111)所包括的图片文件的缩略图(例如缩略图1211、缩略图1212)。Exemplarily, as shown in FIG. 12A, the electronic device 101 may display a cloud album interface 1210. Wherein, the cloud album interface 1210 displays thumbnails (for example, thumbnails 1211, 1212) of picture files included in an album to be shared by the electronic device 100 (for example, the travel album 1111).
电子设备101可以接收用户针对缩略图1211的输入操作,响应于该输入操作,电子设备101可以获取到该缩略图1211对应图片文件的获取地址,并根据该图片文件的获取地址,从云服务器下载该图片文件到本地。其中,云服务器可以在对图片文件中Exif数据中的隐私信息加密后,将该图片文件发送给电子设备101。The electronic device 101 can receive the user's input operation on the thumbnail 1211. In response to the input operation, the electronic device 101 can obtain the obtaining address of the picture file corresponding to the thumbnail 1211, and download the picture file from the cloud server according to the obtaining address of the picture file The picture file to the local. The cloud server may send the picture file to the electronic device 101 after encrypting the private information in the Exif data in the picture file.
示例性的,如图12B所示,电子设备101可以接收并响应用户针对缩略图1211的输入操作(例如单击),从云服务器上获取缩略图1211对应的图片文件。在获取到该缩略图1211对应的图片文件后,电子设备101可以存到缓存中,并从该图片文件中获取主图像数据及Exif数据中的非隐私信息,显示出图片1221。Exemplarily, as shown in FIG. 12B, the electronic device 101 may receive and respond to the user's input operation (for example, clicking) on the thumbnail 1211, and obtain the image file corresponding to the thumbnail 1211 from the cloud server. After obtaining the picture file corresponding to the thumbnail 1211, the electronic device 101 may store it in the cache, and obtain the non-private information in the main image data and Exif data from the picture file, and display the picture 1221.
在一些实施例中,电子设备100可以指定让部分其他用户的设备有权限获取到分享图片中的隐私信息。具体的,电子设备100可以将有权限获取图片文件中隐私信息的设备标识(例如云账户ID)发送给云服务器。云服务器在接收到电子设备101(登录有云账户B)发送的针对图片文件A的图片获取请求后,可以根据电子设备101的设备标识(例如云账户ID)判断该电子设备101是否有权限获取图片文件中的隐私信息。若有权限,则云服务器可以将加密隐私信息后的图片文件A和加密秘钥一并发送给电子设备101。若没有权限,则云服务器可以将加密隐私信息后的图片文件A发送给电子设备101。这样,电子设备100可以让不同的接收方设置不同的图片文件获取权限,可以实现让用户指定的接收方(例如亲人、同事等)的设备能够获取到所分享图片文件中的隐私信息,其他接收方(例如陌生人)的设备无法获取到所分享图片文件中的隐私信息,保护了用户隐私。In some embodiments, the electronic device 100 may specify that the devices of some other users have the authority to obtain the private information in the shared pictures. Specifically, the electronic device 100 may send the device identification (for example, cloud account ID) that has the authority to obtain the private information in the picture file to the cloud server. After the cloud server receives the image acquisition request for the image file A sent by the electronic device 101 (logged in with the cloud account B), it can determine whether the electronic device 101 has the authority to acquire it according to the device identification of the electronic device 101 (for example, the cloud account ID) Private information in image files. If there is permission, the cloud server can send the image file A after encrypting the private information and the encryption key to the electronic device 101 together. If there is no permission, the cloud server can send the image file A with the encrypted private information to the electronic device 101. In this way, the electronic device 100 can allow different recipients to set different image file acquisition permissions, and can realize that the device of the recipient specified by the user (such as relatives, colleagues, etc.) can obtain the private information in the shared image file, and other recipients The device of a party (such as a stranger) cannot obtain the private information in the shared picture file, which protects the privacy of the user.
在一种可能的实现方式中,电子设备100可以先对本地图片中的隐私信息加密,然后 将加密隐私信息后的图片数据以及密钥发送给云服务器。当电子设备100要分享图片给其他设备时,电子设备100可以将有权限获取待分享图片中隐私信息的设备的标识发送给云服务器。云服务器在接收到其他设备(例如电子设备101)发送的获取待分享图片的请求时,云服务器可以根据其他设备(例如电子设备101)的设备标识(例如云账户)判断其他设备(例如电子设备101)是否有权限获取待分享图片的隐私信息。若其他设备(例如电子设备101)有权限获取待分享图片的隐私信息,则云服务器可以将加密隐私信息后的待分享图片以及密钥一并发送给其他设备(例如电子设备101)。若其他设备没有权限获取待分享图片的隐私信息,则云服务器可以将加密隐私信息后的待分享图片发送给其他设备(例如电子设备101)。In a possible implementation manner, the electronic device 100 may first encrypt the private information in the local picture, and then send the encrypted picture data and the key to the cloud server. When the electronic device 100 wants to share a picture with other devices, the electronic device 100 may send the identification of the device that has the authority to obtain the private information in the picture to be shared to the cloud server. When the cloud server receives a request from another device (such as electronic device 101) to obtain a picture to be shared, the cloud server can determine the other device (such as electronic device 101) according to the device identification (such as cloud account) of the other device (such as electronic device 101) 101) Is there permission to obtain the private information of the picture to be shared. If other devices (such as the electronic device 101) have permission to obtain the private information of the picture to be shared, the cloud server may send the encrypted private information to the picture to be shared and the key to the other device (such as the electronic device 101). If other devices do not have permission to obtain the private information of the picture to be shared, the cloud server may send the encrypted private information to the picture to be shared to other devices (for example, the electronic device 101).
在一些实施例中,若应用A(例如云相册应用)有权限访问电子设备100上的图片的隐私信息时,电子设备100可以在确定出待分享图片的接收设备(例如登录有云账户B的电子设备101)后,电子设备100可以判断该接收设备(电子设备101)上的账户(例如云账户B)的头像信息是否包括在待分享图片中。也就是说,电子设备100可以判断待分享图片中是否包括有接收设备上的账户设置的头像。当接收设备(例如电子设备101)上的账户对应的头像信息包含在待分享图片中时,电子设备100可以通过该应用A发送待分享图片给接收设备(例如电子设备101)。当接收设备(例如电子设备101)上的账户对应的头像信息没有包含在待分享图片中时,电子设备100可以删除待分享图片中的隐私信息,然后再通过所述应用A将删除隐私信息后的待分享图片发送给接收设备。这样,可以实现只让账户头像在该图片中的接收方获取到图片中的隐私信息,保护了用户的隐私。In some embodiments, if application A (for example, a cloud photo album application) has permission to access the private information of pictures on the electronic device 100, the electronic device 100 can determine the receiving device of the picture to be shared (for example, a cloud account B). After the electronic device 101), the electronic device 100 can determine whether the avatar information of the account (for example, cloud account B) on the receiving device (electronic device 101) is included in the picture to be shared. That is, the electronic device 100 can determine whether the picture to be shared includes an avatar set by the account on the receiving device. When the avatar information corresponding to the account on the receiving device (for example, the electronic device 101) is included in the picture to be shared, the electronic device 100 can send the picture to be shared to the receiving device (for example, the electronic device 101) through the application A. When the avatar information corresponding to the account on the receiving device (such as the electronic device 101) is not included in the picture to be shared, the electronic device 100 can delete the private information in the picture to be shared, and then delete the private information through the application A Send the picture to be shared to the receiving device. In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user.
在一种可能的实现方式中,当接收设备(例如电子设备101)上的账户对应的头像信息包含在待分享图片中时,电子设备100可以通过应用A将加密隐私信息的待分享图片以及用于解密的密钥发送给第二电子设备。当接收设备(例如电子设备101)上的账户对应的头像信息没有包含在该待分享图片中时,电子设备100可以通过应用A将加密隐私信息后的待分享图片发送给接收设备(电子设备101)。In a possible implementation, when the avatar information corresponding to the account on the receiving device (such as the electronic device 101) is included in the picture to be shared, the electronic device 100 can encrypt the private information and use the picture to be shared through the application A. The decrypted key is sent to the second electronic device. When the avatar information corresponding to the account on the receiving device (such as the electronic device 101) is not included in the picture to be shared, the electronic device 100 can send the encrypted private information to the receiving device (electronic device 101) through the application A. ).
在一些实施例中,电子设备100可以将本地的图片文件通过应用A(例如云相册应用)都上传到云服务器上存储。电子设备100可以通过在应用A上登录云账户A浏览云服务器上保存在该云账户A的存储空间中的图片文件。电子设备100可以将云服务器上用户选中的待分享图片分享给其他云账户对应的设备。其中,云服务器可以判断请求获取该待分享图片的接收设备(例如电子设备101)上登录的云账户的头像信息是否包含在该待分享图片中。若是,则云服务器可以将该待分享图片发送给接收设备(例如电子设备101)。若否,则云服务器可以删除待分享图片中的隐私信息,然后将该删除隐私信息后的待分享图片发送给接收设备(例如电子设备101)。这样,可以实现只让账户头像在该图片中的接收方获取到图片中的隐私信息,保护了用户的隐私。In some embodiments, the electronic device 100 may upload all local picture files to a cloud server for storage through application A (for example, a cloud photo album application). The electronic device 100 can browse the image files stored in the storage space of the cloud account A on the cloud server by logging into the cloud account A on the application A. The electronic device 100 can share the picture to be shared selected by the user on the cloud server to devices corresponding to other cloud accounts. The cloud server may determine whether the avatar information of the cloud account logged in on the receiving device (for example, the electronic device 101) requesting to obtain the picture to be shared is included in the picture to be shared. If yes, the cloud server can send the picture to be shared to the receiving device (for example, the electronic device 101). If not, the cloud server can delete the private information in the picture to be shared, and then send the picture to be shared with the deleted private information to the receiving device (for example, the electronic device 101). In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user.
在一些可能的实现方式中,当接收设备(例如电子设备101)上的账户对应的头像信息包含在待分享图片中时,云服务器可以将加密隐私信息的待分享图片以及用于解密的密钥发送给第二电子设备。当接收设备(例如电子设备101)上的账户对应的头像信息没有 包含在该待分享图片中时,云服务器可以将加密隐私信息后的待分享图片发送给接收设备(电子设备101)。In some possible implementations, when the avatar information corresponding to the account on the receiving device (for example, the electronic device 101) is included in the picture to be shared, the cloud server may encrypt the private information to be shared and the key for decryption Send to the second electronic device. When the avatar information corresponding to the account on the receiving device (for example, the electronic device 101) is not included in the picture to be shared, the cloud server may send the encrypted private information to the picture to be shared to the receiving device (electronic device 101).
请参照图13,图13示出了本申请实施例提供的一种图片处理方法。在本申请实施例中第一电子设备可以是上述电子设备100,第二电子设备可以是上述电子设备101。如图13所示,该方法包括:Please refer to FIG. 13, which shows a picture processing method provided by an embodiment of the present application. In the embodiment of the present application, the first electronic device may be the aforementioned electronic device 100, and the second electronic device may be the aforementioned electronic device 101. As shown in Figure 13, the method includes:
S1301、第一电子设备接收用户针对第一应用的第一输入。S1301. The first electronic device receives a user's first input for a first application.
其中,第一应用可以是上述图9A-图9G所示实施例中的微信应用,第一输入可以为上述图9F所示针对发送控件944的输入操作(例如单击)。The first application may be the WeChat application in the embodiment shown in FIGS. 9A to 9G, and the first input may be an input operation (for example, a single click) on the sending control 944 shown in FIG. 9F.
S1302、第一电子设备响应于第一输入,获取第一图片数据。S1302. The first electronic device acquires first picture data in response to the first input.
其中,第一电子设备可以先获取第一图片数据的存储路径,然后根据第一图片数据的存储路径,获取到该第一图片数据。其中,第一电子设备获取第一图片数据的具体流程可以参考图6所示实施例以及其他图示实施例,在此不再赘述。第一图片数据可以是上述图9F所示实施例中缩略图941对应的图片文件。The first electronic device may first obtain the storage path of the first picture data, and then obtain the first picture data according to the storage path of the first picture data. For the specific process of obtaining the first picture data by the first electronic device, reference may be made to the embodiment shown in FIG. 6 and other illustrated embodiments, and details are not described herein again. The first picture data may be a picture file corresponding to the thumbnail 941 in the embodiment shown in FIG. 9F.
S1303、当第一应用没有权限访问图片的隐私信息时,第一电子设备删除第一图片数据中的隐私信息。S1303: When the first application does not have permission to access the private information of the picture, the first electronic device deletes the private information in the first picture data.
其中,第一电子设备可以判断该第一应用是否有权限访问图片的隐私信息,若没有权限,则第一电子设备可以删除第一图片数据中的隐私信息。The first electronic device may determine whether the first application has the permission to access the private information of the picture, and if it does not have the permission, the first electronic device may delete the private information in the first picture data.
在本申请实施例中,隐私信息可以包括有以下一项或多项:拍摄地址信息、拍摄时间信息、拍摄设备机型信息、拍摄模式信息、人像心情信息等等。在一些可能的实现方式中,隐私信息还包括用户从Exif数据中所选定的一些其他信息。In the embodiment of the present application, the private information may include one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode information, portrait mood information, and so on. In some possible implementations, the private information also includes some other information selected by the user from the Exif data.
其中,第一电子设备删除第一图片数据中的隐私信息的过程可以有如下两种实现方式:1、第一电子设备可以先将第一图片数据进行解码,并将解码后的第一图片数据存储到指定缓存中。然后,第一电子设备删除指定缓存中的第一图片数据中的隐私信息。2、第一电子设备可以在编解码阶段,先对第一图片数据进行解码并删除第一图片数据中的隐私信息。然后,第一电子设备可以将删除隐私信息后的第一图片数据存储到指定缓存中。Wherein, the process of deleting the private information in the first picture data by the first electronic device can be implemented in the following two ways: 1. The first electronic device can decode the first picture data first, and decode the decoded first picture data Store in the designated cache. Then, the first electronic device deletes the private information in the first picture data in the designated cache. 2. The first electronic device may first decode the first picture data and delete the private information in the first picture data in the coding and decoding stage. Then, the first electronic device may store the first picture data after the private information is deleted in the designated cache.
S1304、第一电子设备将删除隐私信息后的第一图片数据发送给第二电子设备。S1304. The first electronic device sends the first picture data with the private information deleted to the second electronic device.
第一电子设备可以是上述实施例中的电子设备100,第二电子设备可以是上述实施例中的电子设备101。The first electronic device may be the electronic device 100 in the foregoing embodiment, and the second electronic device may be the electronic device 101 in the foregoing embodiment.
示例性的,如上述图9A-图9G所示实施例中,由于第一应用(例如微信应用)被设置没有权限获取图片的隐私信息,因此,第一电子设备(电子设备100)可以将缩略图941对应的图片文件在删除隐私信息后,再发送给第二电子设备(电子设备101)。Exemplarily, as in the embodiment shown in FIGS. 9A to 9G, since the first application (such as the WeChat application) is set to have no permission to obtain the private information of the picture, the first electronic device (electronic device 100) may shrink The picture file corresponding to the thumbnail 941 is sent to the second electronic device (electronic device 101) after the private information is deleted.
在一种可能的实现方式中,在该第一电子设备接收用户针对第一应用的第一输入之前,该方法还包括:第一电子设备接收用户的第二输入。响应于该第二输入,该第一电子设备开启或关闭该第一应用访问图片的隐私信息的权限。这样,用户可以给第一电子设备上的应用设置图片中隐私信息的获取权限,针对不同应用对用户的隐私进行保护。具体的,可以参考前述图7A-图7G所示实施例,在此不再赘述。In a possible implementation manner, before the first electronic device receives the user's first input for the first application, the method further includes: the first electronic device receives the user's second input. In response to the second input, the first electronic device turns on or turns off the permission of the first application to access the private information of the picture. In this way, the user can set the permission to obtain the private information in the picture for the application on the first electronic device, and protect the privacy of the user for different applications. For details, reference may be made to the embodiments shown in FIGS. 7A to 7G, which are not repeated here.
在一种可能的实现方式中,当该第一应用有权限访问图片的隐私信息时,该方法还包 括:该第一电子设备将该第一图片数据中的隐私信息进行加密。当该第二电子设备没有权限获取该第一图片数据的隐私信息时,该第一电子设备将加密隐私信息后的该第一图片数据通过该第一应用发送给该第二电子设备。这样,可以实现第一电子设备分享图片给其他设备时,防止其他设备获取到图片中的隐私信息,保护了用户的隐私。具体的,可以参考前述图11A-图11E所示实施例,在此不再赘述。In a possible implementation manner, when the first application has permission to access the private information of the picture, the method further includes: the first electronic device encrypts the private information in the first picture data. When the second electronic device does not have the authority to obtain the private information of the first picture data, the first electronic device sends the encrypted first picture data to the second electronic device through the first application. In this way, when the first electronic device shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user. Specifically, reference may be made to the embodiments shown in FIG. 11A to FIG. 11E, and details are not described herein again.
在一种可能的实现方式中,当该第一应用有权限访问图片的隐私信息时,该方法还包括:该第一电子设备将该第一图片数据中的隐私信息进行加密。当该第二电子设备有权限获取该第一图片数据的隐私信息时,该第一电子设备将加密隐私信息后的该第一图片数据和密钥通过该第一应用发送给该第二电子设备。其中,该密钥用于该第二电子设备解密该第一图片数据中已加密的隐私信息。这样,可以实现电子设备100分享图片给其他设备时,防止其他设备获取到图片中的隐私信息,保护了用户的隐私。具体内容可以参考前述图11A-图11E所示实施例,在此不再赘述。In a possible implementation manner, when the first application has permission to access the private information of the picture, the method further includes: the first electronic device encrypts the private information in the first picture data. When the second electronic device has the authority to obtain the private information of the first picture data, the first electronic device sends the encrypted first picture data and the key to the second electronic device through the first application . Wherein, the key is used for the second electronic device to decrypt the encrypted private information in the first picture data. In this way, when the electronic device 100 shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user. For specific content, reference may be made to the foregoing embodiment shown in FIG. 11A to FIG. 11E, which will not be repeated here.
在一种可能的实现方式中,当该第一应用有权限访问图片的隐私信息时,该方法还包括:当第一电子设备确定该第二电子设备上的账户对应的头像信息包含在该第一图片数据中,该第一电子设备通过该第一应用发送该第一图片数据给该第二电子设备。当第一电子设备确定该第二电子设备上的账户对应的头像信息不包含在该第一图片数据中,该第一电子设备删除该第一图片数据中的隐私信息,并将删除该隐私信息该第一图片数据通过该第一应用发送给该第二电子设备。这样,可以实现只让账户头像在该图片中的接收方获取到图片中的隐私信息,保护了用户的隐私。具体内容可以参考前述实施例,再此不再赘述。In a possible implementation, when the first application has permission to access the private information of the picture, the method further includes: when the first electronic device determines that the avatar information corresponding to the account on the second electronic device is included in the first application In a picture data, the first electronic device sends the first picture data to the second electronic device through the first application. When the first electronic device determines that the avatar information corresponding to the account on the second electronic device is not included in the first picture data, the first electronic device deletes the private information in the first picture data, and will delete the private information The first picture data is sent to the second electronic device through the first application. In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user. For specific content, please refer to the foregoing embodiment, which will not be repeated here.
在一种可能的实现方式中,在该第一电子设备将删除该隐私信息后的该第一图片数据发送给该第一应用的指定联系人后,该方法还包括:该第一电子设备从该第一图片数据的可交换图像文件格式Exif数据中获取缩略图。该第一电子设备显示该缩略图。具体内容可以参考前述图9G所示实施例,在此不再赘述。In a possible implementation, after the first electronic device sends the first picture data after deleting the private information to the designated contact of the first application, the method further includes: the first electronic device downloads The thumbnail is obtained from the exchangeable image file format Exif data of the first picture data. The first electronic device displays the thumbnail. For specific content, reference may be made to the embodiment shown in FIG. 9G, which is not repeated here.
在一种可能的实现方式中,当该第一应用有权限访问图片的隐私信息时,该方法还包括:该第一电子设备通过该第一应用发送该第一图片数据给该第二电子设备。In a possible implementation, when the first application has permission to access the private information of the picture, the method further includes: the first electronic device sends the first picture data to the second electronic device through the first application .
在本申请实施例中,该隐私信息可以包括以下一项或多项:拍摄地址信息、拍摄时间信息、拍摄设备机型信息、拍摄模式信息、人像心情信息等等。In the embodiment of the present application, the private information may include one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode information, portrait mood information, and so on.
通过本申请提供一种图片处理方法,用户可以在电子设备上设置应用程序访问Exif数据中隐私信息的权限,当某一应用或接收方没有权限访问图片的Exif数据时,电子设备可以在该应用获取图片原图或单独获取Exif数据的过程中,动态删除Exif数据中的隐私信息(例如GPS位置信息、图片拍摄时间、图片拍摄机型等等)。这样,可以实现了电子设备可以不改变手机自身存储的图片数据,在读取图片数据或者读取图片数据中的Exif数据时,动态删除Exif数据中的隐私信息,保护了用户隐私。This application provides an image processing method. The user can set the permission of the application to access the private information in the Exif data on the electronic device. When an application or the recipient does not have the permission to access the Exif data of the image, the electronic device can use the application In the process of obtaining the original picture of the picture or separately obtaining the Exif data, the private information in the Exif data (such as GPS location information, picture shooting time, picture shooting model, etc.) is dynamically deleted. In this way, it can be realized that the electronic device does not change the picture data stored in the mobile phone itself, and when reading the picture data or reading the Exif data in the picture data, the private information in the Exif data is dynamically deleted, thereby protecting user privacy.
请参见图14,图14示出了本申请提供的一种电子设备1400的功能单元示意图。其中该电子设备1400可以为上述实施例中的第一电子设备(电子设备100)。如图14所示,该电子设备1400包括:Please refer to FIG. 14, which shows a schematic diagram of functional units of an electronic device 1400 provided in the present application. The electronic device 1400 may be the first electronic device (electronic device 100) in the foregoing embodiment. As shown in FIG. 14, the electronic device 1400 includes:
输入模块1410,用于接收用户针对第一应用的第一输入。获取模块1420,用于响应于 该第一输入,获取第一图片数据。处理模块1430,用于当该第一应用没有权限访问图片的隐私信息时,删除该第一图片数据中的隐私信息。发送模块1440,用于将删除该隐私信息后的该第一图片数据通过该第一应用发送给第二电子设备。The input module 1410 is configured to receive a user's first input for the first application. The obtaining module 1420 is configured to obtain first picture data in response to the first input. The processing module 1430 is configured to delete the private information in the first picture data when the first application does not have permission to access the private information of the picture. The sending module 1440 is configured to send the first picture data after deleting the private information to the second electronic device through the first application.
在一种可能的实现方式中,该输入模块1410,还用于接收用户的第二输入。该第一电子设备还包括:设置模块,用于响应于该第二输入,开启或关闭该第一应用访问图片的隐私信息的权限。这样,用户可以给第一电子设备上的应用设置图片中隐私信息的获取权限,针对不同应用对用户的隐私进行保护。In a possible implementation, the input module 1410 is also used to receive a second input from the user. The first electronic device further includes: a setting module, configured to enable or disable the permission of the first application to access the private information of the picture in response to the second input. In this way, the user can set the permission to obtain the private information in the picture for the application on the first electronic device, and protect the privacy of the user for different applications.
在一种可能的实现方式中,该第一电子设备还包括:加密模块,用于当该第一应用有权限访问图片的隐私信息时,将该第一图片数据中的隐私信息进行加密。该发送模块1440,还用于当该第二电子设备没有权限获取该第一图片数据的隐私信息时,将加密隐私信息后的该第一图片数据通过该第一应用发送给该第二电子设备。这样,可以实现第一电子设备分享图片给其他设备时,防止其他设备获取到图片中的隐私信息,保护了用户的隐私。In a possible implementation manner, the first electronic device further includes: an encryption module configured to encrypt the private information in the first picture data when the first application has permission to access the private information of the picture. The sending module 1440 is further configured to send the first image data encrypted with the private information to the second electronic device through the first application when the second electronic device does not have the authority to obtain the private information of the first image data . In this way, when the first electronic device shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user.
在一种可能的实现方式中,该第一电子设备还包括:加密模块,用于当该第一应用有权限访问图片的隐私信息时,将该第一图片数据中的隐私信息进行加密。该发送模块1440,还用于当该第二电子设备有权限获取该第一图片数据的隐私信息时,将加密隐私信息后的该第一图片数据和密钥,通过该第一应用发送给该第二电子设备。其中,该密钥用于该第二电子设备解密该第一图片数据中已加密的隐私信息。这样,可以实现电子设备100分享图片给其他设备时,防止其他设备获取到图片中的隐私信息,保护了用户的隐私。In a possible implementation manner, the first electronic device further includes: an encryption module configured to encrypt the private information in the first picture data when the first application has permission to access the private information of the picture. The sending module 1440 is further configured to send the first image data and key after the encrypted private information to the first application through the first application when the second electronic device has the authority to obtain the private information of the first image data. The second electronic device. Wherein, the key is used for the second electronic device to decrypt the encrypted private information in the first picture data. In this way, when the electronic device 100 shares the picture with other devices, it can prevent the other devices from acquiring the private information in the picture, thereby protecting the privacy of the user.
在一种可能的实现方式中,该处理模块1430,还用于确定该第二电子设备上的账户对应的头像信息是否包含在该第一图片数据中。该发送模块1440,还用于当该处理模块确定该第二电子设备上的账户对应的头像信息包含在该第一图片数据中时,通过该第一应用发送该第一图片数据给该第二电子设备。该发送模块1440,还用于当该处理模块确定该第二电子设备上的账户对应的头像信息不包含在该第一图片数据中时,通过该第一应用发送删除隐私信息后的该第一图片数据给该第二电子设备。这样,可以实现只让账户头像在该图片中的接收方获取到图片中的隐私信息,保护了用户的隐私。In a possible implementation, the processing module 1430 is further configured to determine whether the avatar information corresponding to the account on the second electronic device is included in the first picture data. The sending module 1440 is further configured to send the first image data to the second image data through the first application when the processing module determines that the avatar information corresponding to the account on the second electronic device is included in the first image data. Electronic equipment. The sending module 1440 is further configured to, when the processing module determines that the avatar information corresponding to the account on the second electronic device is not included in the first picture data, send the first application after deleting the private information through the first application. The picture data is given to the second electronic device. In this way, it can be realized that only the recipient whose account avatar is in the picture can obtain the private information in the picture, which protects the privacy of the user.
在一种可能的实现方式中,该第一电子设备还包括:编解码模块,用于将该第一图片数据进行解码,并将解码后的第一图片数据存储到指定缓存中。该处理模块1430,具体用于删除该指定缓存中的第一图片数据中的隐私信息。这样,可以实现不改变手机自身存储的图片数据,在读取图片数据或者读取图片数据中的Exif数据时,动态删除Exif数据中的隐私信息。In a possible implementation manner, the first electronic device further includes: an encoding and decoding module, configured to decode the first picture data, and store the decoded first picture data in a designated buffer. The processing module 1430 is specifically configured to delete the private information in the first picture data in the designated cache. In this way, the picture data stored in the mobile phone itself is not changed, and the private information in the Exif data is dynamically deleted when the picture data is read or the Exif data in the picture data is read.
在一种可能的实现方式中,该第一电子设备还包括:编解码模块,用于将该第一图片数据进行解码。该处理模块,具体用于删除该第一图片数据中的隐私信息,并将删除该隐私信息后的该第一图片数据存储到指定缓存中。这样,可以实现不改变手机自身存储的图片数据,在读取图片数据或者读取图片数据中的Exif数据时,动态删除Exif数据中的隐私信息。In a possible implementation manner, the first electronic device further includes: a coding and decoding module, configured to decode the first picture data. The processing module is specifically configured to delete the private information in the first picture data, and store the first picture data after deleting the private information in a designated cache. In this way, the picture data stored in the mobile phone itself is not changed, and the private information in the Exif data is dynamically deleted when the picture data is read or the Exif data in the picture data is read.
在一种可能的实现方式中,该获取模块1420,具体用于:响应于该第一输入,获取第一图片数据的存储路径;根据该第一图片数据的存储路径,获取该第一图片数据。In a possible implementation manner, the obtaining module 1420 is specifically configured to: in response to the first input, obtain a storage path of the first picture data; obtain the first picture data according to the storage path of the first picture data .
在一种可能的实现方式中,该获取模块1420,还用于在该发送模块将删除该隐私信息 后的该第一图片数据发送给该第二电子设备后,从该第一图片数据的可交换文件格式Exif数据中获取缩略图。该第一电子设备还包括:显示模块,用于在该发送模块将删除该隐私信息后的该第一图片数据发送给该第二电子设备后,显示该缩略图。In a possible implementation, the acquiring module 1420 is further configured to: after the sending module sends the first image data after the private information has been deleted to the second electronic device, obtain data from the first image data. Get thumbnails from Exif data in interchange file format. The first electronic device further includes: a display module, configured to display the thumbnail after the sending module sends the first picture data after deleting the private information to the second electronic device.
在一种可能的实现方式中,该发送模块1440,还用于当该第一应用有权限访问图片的隐私信息时,发送该第一图片数据给该第二电子设备。In a possible implementation manner, the sending module 1440 is further configured to send the first picture data to the second electronic device when the first application has permission to access the private information of the picture.
在一种可能的实现方式中,该隐私信息包括以下一项或多项:拍摄地址信息、拍摄时间信息、拍摄设备机型信息、拍摄模式信息、人像心情信息。In a possible implementation manner, the privacy information includes one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode information, and portrait mood information.
通过本申请实施例,用户可以在第一电子设备上设置应用程序访问Exif数据中隐私信息的权限,当某一应用或接收方没有权限访问图片的Exif数据时,第一电子设备可以在该应用获取图片原图或单独获取Exif数据的过程中,动态删除Exif数据中的隐私信息(例如GPS位置信息、图片拍摄时间、图片拍摄机型等等)。这样,可以实现了第一电子设备可以不改变手机自身存储的图片数据,在读取图片数据或者读取图片数据中的Exif数据时,动态删除Exif数据中的隐私信息,保护了用户隐私。Through the embodiment of this application, the user can set the permission of the application to access the private information in the Exif data on the first electronic device. When an application or the recipient does not have the permission to access the Exif data of the picture, the first electronic device can use the application In the process of obtaining the original picture of the picture or separately obtaining the Exif data, the private information in the Exif data (such as GPS location information, picture shooting time, picture shooting model, etc.) is dynamically deleted. In this way, it can be realized that the first electronic device does not change the picture data stored in the mobile phone itself, and when reading the picture data or reading the Exif data in the picture data, the private information in the Exif data is dynamically deleted, thereby protecting user privacy.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that: The technical solutions recorded in the embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims (24)
- 一种图片处理方法,其特征在于,包括:A picture processing method, characterized by comprising:第一电子设备接收用户针对第一应用的第一输入;The first electronic device receives the user's first input for the first application;响应于所述第一输入,所述第一电子设备获取第一图片数据;In response to the first input, the first electronic device obtains first picture data;当所述第一应用没有权限访问图片的隐私信息时,所述第一电子设备删除所述第一图片数据中的隐私信息;When the first application does not have permission to access the private information of the picture, the first electronic device deletes the private information in the first picture data;所述第一电子设备将删除所述隐私信息后的所述第一图片数据通过所述第一应用发送给第二电子设备。The first electronic device sends the first picture data after the private information is deleted to the second electronic device through the first application.
- 根据权利要求1所述的方法,其特征在于,在所述第一电子设备接收用户针对第一应用的第一输入之前,所述方法还包括:The method according to claim 1, wherein before the first electronic device receives a user's first input for the first application, the method further comprises:所述第一电子设备接收用户的第二输入;The first electronic device receives the second input of the user;响应于所述第二输入,所述第一电子设备开启或关闭所述第一应用访问图片的隐私信息的权限。In response to the second input, the first electronic device enables or disables the permission of the first application to access the private information of the picture.
- 根据权利要求1所述的方法,其特征在于,当所述第一应用有权限访问图片的隐私信息时,所述方法还包括:The method according to claim 1, wherein when the first application has permission to access the private information of the picture, the method further comprises:所述第一电子设备将所述第一图片数据中的隐私信息进行加密;The first electronic device encrypts the private information in the first picture data;当所述第二电子设备没有权限获取所述第一图片数据的隐私信息时,所述第一电子设备将加密隐私信息后的所述第一图片数据通过所述第一应用发送给所述第二电子设备。When the second electronic device does not have the authority to obtain the private information of the first picture data, the first electronic device sends the first picture data encrypted with the private information to the first application through the first application. 2. Electronic equipment.
- 根据权利要求1所述的方法,其特征在于,当所述第一应用有权限访问图片的隐私信息时,所述方法还包括:The method according to claim 1, wherein when the first application has permission to access the private information of the picture, the method further comprises:所述第一电子设备将所述第一图片数据中的隐私信息进行加密;The first electronic device encrypts the private information in the first picture data;当所述第二电子设备有权限获取所述第一图片数据的隐私信息时,所述第一电子设备将加密隐私信息后的所述第一图片数据和密钥通过所述第一应用发送给所述第二电子设备;其中,所述密钥用于所述第二电子设备解密所述第一图片数据中已加密的隐私信息。When the second electronic device has the authority to obtain the private information of the first picture data, the first electronic device sends the encrypted first picture data and the key to the first application through the first application The second electronic device; wherein, the key is used for the second electronic device to decrypt the encrypted private information in the first picture data.
- 根据权利要求1所述的方法,其特征在于,当所述第一应用有权限访问图片的隐私信息时,所述方法还包括:The method according to claim 1, wherein when the first application has permission to access the private information of the picture, the method further comprises:当第一电子设备确定所述第二电子设备上的账户对应的头像信息包含在所述第一图片数据中,所述第一电子设备通过所述第一应用发送所述第一图片数据给所述第二电子设备;When the first electronic device determines that the avatar information corresponding to the account on the second electronic device is included in the first picture data, the first electronic device sends the first picture data to all of them through the first application. The second electronic device;当第一电子设备确定所述第二电子设备上的账户对应的头像信息不包含在所述第一图片数据中,所述第一电子设备删除所述第一图片数据中的隐私信息,并将删除所述隐私信息所述第一图片数据通过所述第一应用发送给所述第二电子设备。When the first electronic device determines that the avatar information corresponding to the account on the second electronic device is not included in the first picture data, the first electronic device deletes the private information in the first picture data, and sets The private information is deleted and the first picture data is sent to the second electronic device through the first application.
- 根据权利要求1所述的方法,其特征在于,所述第一电子设备删除所述第一图片数 据中的隐私信息,具体包括:The method according to claim 1, wherein the first electronic device deleting the private information in the first picture data specifically comprises:所述第一电子设备将所述第一图片数据进行解码,并将解码后的第一图片数据存储到指定缓存中;The first electronic device decodes the first picture data, and stores the decoded first picture data in a designated buffer;所述第一电子设备删除所述指定缓存中的第一图片数据中的隐私信息。The first electronic device deletes the private information in the first picture data in the designated cache.
- 根据权利要求1所述的方法,其特征在于,所述第一电子设备删除所述第一图片数据中的隐私信息,具体包括:The method according to claim 1, wherein the deletion of the private information in the first picture data by the first electronic device specifically comprises:所述第一电子设备对所述第一图片数据进行解码,并删除所述第一图片数据中的所述隐私信息;The first electronic device decodes the first picture data, and deletes the private information in the first picture data;所述第一电子设备将删除所述隐私信息后的所述第一图片数据存储到指定缓存中。The first electronic device stores the first picture data after deleting the private information in a designated cache.
- 根据权利要求1所述的方法,其特征在于,所述第一电子设备获取第一图片数据,具体包括:The method according to claim 1, wherein the acquiring first picture data by the first electronic device specifically comprises:所述第一电子设备获取第一图片数据的存储路径;The storage path of the first image data obtained by the first electronic device;所述第一电子设备根据所述第一图片数据的存储路径,获取所述第一图片数据。The first electronic device obtains the first picture data according to the storage path of the first picture data.
- 根据权利要求1所述的方法,其特征在于,在所述第一电子设备将删除所述隐私信息后的所述第一图片数据发送给所述第一应用的指定联系人后,所述方法还包括:The method according to claim 1, wherein after the first electronic device sends the first picture data after deleting the private information to a designated contact of the first application, the method Also includes:所述第一电子设备从所述第一图片数据的可交换图像文件格式Exif数据中获取缩略图;The first electronic device obtains a thumbnail image from the exchangeable image file format Exif data of the first picture data;所述第一电子设备显示所述缩略图。The first electronic device displays the thumbnail.
- 根据权利要求1所述的方法,其特征在于,当所述第一应用有权限访问图片的隐私信息时,所述方法还包括:The method according to claim 1, wherein when the first application has permission to access the private information of the picture, the method further comprises:所述第一电子设备通过所述第一应用发送所述第一图片数据给所述第二电子设备。The first electronic device sends the first picture data to the second electronic device through the first application.
- 根据权利要求1-10中任一项所述的方法,其特征在于,所述隐私信息包括以下一项或多项:拍摄地址信息、拍摄时间信息、拍摄设备机型信息、拍摄模式信息、人像心情信息。The method according to any one of claims 1-10, wherein the privacy information includes one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode information, portrait Mood information.
- 一种第一电子设备,其特征在于,包括:A first electronic device, characterized in that it comprises:输入模块,用于接收用户针对第一应用的第一输入;The input module is used to receive the user's first input for the first application;获取模块,用于响应于所述第一输入,获取第一图片数据;An obtaining module, configured to obtain first picture data in response to the first input;处理模块,用于当所述第一应用没有权限访问图片的隐私信息时,删除所述第一图片数据中的隐私信息;A processing module, configured to delete the private information in the first picture data when the first application does not have permission to access the private information of the picture;发送模块,用于将删除所述隐私信息后的所述第一图片数据通过所述第一应用发送给第二电子设备。The sending module is configured to send the first picture data after the private information is deleted to the second electronic device through the first application.
- 根据权利要求12所述的第一电子设备,其特征在于,所述输入模块,还用于接收 用户的第二输入;The first electronic device according to claim 12, wherein the input module is further configured to receive a second input from the user;所述第一电子设备还包括:设置模块,用于响应于所述第二输入,开启或关闭所述第一应用访问图片的隐私信息的权限。The first electronic device further includes: a setting module, configured to enable or disable the permission of the first application to access the private information of the picture in response to the second input.
- 根据权利要求12所述的第一电子设备,其特征在于,所述第一电子设备还包括:The first electronic device according to claim 12, wherein the first electronic device further comprises:加密模块,用于当所述第一应用有权限访问图片的隐私信息时,将所述第一图片数据中的隐私信息进行加密;An encryption module, configured to encrypt the private information in the first picture data when the first application has permission to access the private information of the picture;所述发送模块,还用于当所述第二电子设备没有权限获取所述第一图片数据的隐私信息时,将加密隐私信息后的所述第一图片数据通过所述第一应用发送给所述第二电子设备。The sending module is further configured to send the first image data encrypted with the private information to the all through the first application when the second electronic device does not have the authority to obtain the private information of the first image data. Mentioned second electronic device.
- 根据权利要求12所述的第一电子设备,其特征在于,所述第一电子设备还包括:The first electronic device according to claim 12, wherein the first electronic device further comprises:加密模块,用于当所述第一应用有权限访问图片的隐私信息时,将所述第一图片数据中的隐私信息进行加密;An encryption module, configured to encrypt the private information in the first picture data when the first application has permission to access the private information of the picture;所述发送模块,还用于当所述第二电子设备有权限获取所述第一图片数据的隐私信息时,将加密隐私信息后的所述第一图片数据和密钥,通过所述第一应用发送给所述第二电子设备;其中,所述密钥用于所述第二电子设备解密所述第一图片数据中已加密的隐私信息。The sending module is further configured to: when the second electronic device has the authority to obtain the private information of the first picture data, encrypt the first picture data and the key after the private information, through the first picture data The application is sent to the second electronic device; wherein the key is used by the second electronic device to decrypt the encrypted private information in the first picture data.
- 根据权利要求12所述的第一电子设备,其特征在于,所述处理模块,还用于确定所述第二电子设备上的账户对应的头像信息是否包含在所述第一图片数据中;The first electronic device according to claim 12, wherein the processing module is further configured to determine whether the avatar information corresponding to the account on the second electronic device is included in the first picture data;所述发送模块,还用于当所述处理模块确定所述第二电子设备上的账户对应的头像信息包含在所述第一图片数据中时,通过所述第一应用发送所述第一图片数据给所述第二电子设备;The sending module is further configured to send the first picture through the first application when the processing module determines that the avatar information corresponding to the account on the second electronic device is included in the first picture data Data to the second electronic device;所述发送模块,还用于当所述处理模块确定所述第二电子设备上的账户对应的头像信息不包含在所述第一图片数据中时,通过所述第一应用发送删除隐私信息后的所述第一图片数据给所述第二电子设备。The sending module is further configured to: when the processing module determines that the avatar information corresponding to the account on the second electronic device is not included in the first picture data, after sending the delete privacy information through the first application Of the first picture data to the second electronic device.
- 根据权利要求12所述的第一电子设备,其特征在于,所述第一电子设备还包括:编解码模块,用于将所述第一图片数据进行解码,并将解码后的第一图片数据存储到指定缓存中;The first electronic device according to claim 12, wherein the first electronic device further comprises: a codec module, configured to decode the first picture data, and convert the decoded first picture data Store in the designated cache;所述处理模块,具体用于删除所述指定缓存中的第一图片数据中的隐私信息。The processing module is specifically configured to delete the private information in the first picture data in the designated cache.
- 根据权利要求12所述的第一电子设备,其特征在于,所述第一电子设备还包括:编解码模块,用于将所述第一图片数据进行解码;The first electronic device according to claim 12, wherein the first electronic device further comprises: a coding and decoding module, configured to decode the first picture data;所述处理模块,具体用于删除所述第一图片数据中的隐私信息,并将删除所述隐私信息后的所述第一图片数据存储到指定缓存中。The processing module is specifically configured to delete the private information in the first picture data, and store the first picture data after the private information is deleted in a designated cache.
- 根据权利要求12所述的第一电子设备,其特征在于,所述获取模块,具体用于:The first electronic device according to claim 12, wherein the acquiring module is specifically configured to:响应于所述第一输入,获取第一图片数据的存储路径;In response to the first input, obtaining a storage path of the first picture data;根据所述第一图片数据的存储路径,获取所述第一图片数据。Acquire the first picture data according to the storage path of the first picture data.
- 根据权利要求12所述的第一电子设备,其特征在于,所述获取模块,还用于在所述发送模块将删除所述隐私信息后的所述第一图片数据发送给所述第二电子设备后,从所述第一图片数据的可交换文件格式Exif数据中获取缩略图;The first electronic device according to claim 12, wherein the acquiring module is further configured to send the first picture data after the private information is deleted to the second electronic device after the sending module After the device, obtain the thumbnail from the exif data of the exchangeable file format of the first picture data;所述第一电子设备还包括:显示模块,用于在所述发送模块将删除所述隐私信息后的所述第一图片数据发送给所述第二电子设备后,显示所述缩略图。The first electronic device further includes a display module, configured to display the thumbnail after the sending module sends the first picture data after the private information is deleted to the second electronic device.
- 根据权利要求12所述的第一电子设备,其特征在于,所述发送模块,还用于当所述第一应用有权限访问图片的隐私信息时,发送所述第一图片数据给所述第二电子设备。The first electronic device according to claim 12, wherein the sending module is further configured to send the first picture data to the first application when the first application has permission to access the private information of the picture 2. Electronic equipment.
- 根据权利要求12-21中任一项所述的第一电子设备,其特征在于,所述隐私信息包括以下一项或多项:拍摄地址信息、拍摄时间信息、拍摄设备机型信息、拍摄模式信息、人像心情信息。The first electronic device according to any one of claims 12-21, wherein the privacy information includes one or more of the following: shooting address information, shooting time information, shooting device model information, shooting mode Information, portrait mood information.
- 一种第一电子设备,其特征在于,包括存储器、处理器和触控屏,其中,所述存储器和所述处理器耦合;所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器执行所述计算机指令时,所述电子设备执行如权利要求1-11中任一项所述的方法。A first electronic device, characterized by comprising a memory, a processor and a touch screen, wherein the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes a computer Instruction, when the processor executes the computer instruction, the electronic device executes the method according to any one of claims 1-11.
- 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算指令在电子设备上运行时,使得所述电子设备执行如权利要求1-11中任一项所述的方法。A computer storage medium, characterized by comprising computer instructions, which when the calculation instructions run on an electronic device, cause the electronic device to execute the method according to any one of claims 1-11.
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910735943 | 2019-08-09 | ||
CN201910735943.1 | 2019-08-09 | ||
CN201911209308.6A CN111143586B (en) | 2019-08-09 | 2019-11-30 | Picture processing method and related device |
CN201911209308.6 | 2019-11-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021027633A1 true WO2021027633A1 (en) | 2021-02-18 |
Family
ID=70517473
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/106822 WO2021027633A1 (en) | 2019-08-09 | 2020-08-04 | Picture processing method and related apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111143586B (en) |
WO (1) | WO2021027633A1 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143586B (en) * | 2019-08-09 | 2023-09-08 | 华为技术有限公司 | Picture processing method and related device |
CN112163200A (en) * | 2020-09-27 | 2021-01-01 | 维沃移动通信(杭州)有限公司 | Picture processing method and device and electronic equipment |
CN114547631B (en) * | 2020-11-18 | 2023-03-28 | 成都鼎桥通信技术有限公司 | Terminal control method and device and terminal |
CN112887590B (en) * | 2021-01-11 | 2022-12-27 | 北京小米移动软件有限公司 | Image processing method, device and storage medium |
CN112887799B (en) * | 2021-03-11 | 2023-07-25 | 北京小米移动软件有限公司 | Image resource sharing method, device and medium |
CN114288500B (en) * | 2021-12-02 | 2024-03-19 | 中国科学院深圳先进技术研究院 | Man-machine ventilation asynchronous detection model and device based on fuzzy entropy feature extraction |
CN116095226B (en) * | 2022-08-03 | 2023-11-21 | 荣耀终端有限公司 | Photo processing method, electronic device, and readable storage medium |
CN115374482B (en) * | 2022-10-24 | 2023-09-22 | 荣耀终端有限公司 | Image processing method and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007088754A (en) * | 2005-09-21 | 2007-04-05 | Olympus Imaging Corp | Device and program for processing contents data |
CN101188656A (en) * | 2006-11-20 | 2008-05-28 | 佳能株式会社 | Information processing apparatus and control method thereof |
CN101656816A (en) * | 2008-08-18 | 2010-02-24 | 索尼株式会社 | Information recording apparatus, imaging apparatus, information recording method, and program |
US20120249853A1 (en) * | 2011-03-28 | 2012-10-04 | Marc Krolczyk | Digital camera for reviewing related images |
CN111143586A (en) * | 2019-08-09 | 2020-05-12 | 华为技术有限公司 | Picture processing method and related device |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5150572B2 (en) * | 2009-07-13 | 2013-02-20 | 日本電信電話株式会社 | Privacy protection system and privacy protection method |
US9571785B2 (en) * | 2014-04-11 | 2017-02-14 | International Business Machines Corporation | System and method for fine-grained control of privacy from image and video recording devices |
CN104318177A (en) * | 2014-10-29 | 2015-01-28 | 小米科技有限责任公司 | Protection method and protection device for data of terminal equipment |
CN109688145B (en) * | 2015-12-23 | 2021-07-16 | 北京奇虎科技有限公司 | Method and device for protecting privacy information |
CN106778335B (en) * | 2016-11-30 | 2019-09-24 | Oppo广东移动通信有限公司 | A kind of method for secret protection and device, mobile terminal of application installation |
CN107025410A (en) * | 2017-03-17 | 2017-08-08 | 北京珠穆朗玛移动通信有限公司 | Image display method and electronic installation |
CN107133498B (en) * | 2017-04-20 | 2020-02-14 | 北京安云世纪科技有限公司 | Privacy application management method and device and mobile terminal |
CN107889070B (en) * | 2017-11-08 | 2020-12-22 | Oppo广东移动通信有限公司 | Picture processing method, device, terminal and computer readable storage medium |
CN109815679B (en) * | 2018-12-26 | 2021-03-23 | 维沃移动通信有限公司 | Authority management method and mobile terminal |
-
2019
- 2019-11-30 CN CN201911209308.6A patent/CN111143586B/en active Active
-
2020
- 2020-08-04 WO PCT/CN2020/106822 patent/WO2021027633A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007088754A (en) * | 2005-09-21 | 2007-04-05 | Olympus Imaging Corp | Device and program for processing contents data |
CN101188656A (en) * | 2006-11-20 | 2008-05-28 | 佳能株式会社 | Information processing apparatus and control method thereof |
CN101656816A (en) * | 2008-08-18 | 2010-02-24 | 索尼株式会社 | Information recording apparatus, imaging apparatus, information recording method, and program |
US20120249853A1 (en) * | 2011-03-28 | 2012-10-04 | Marc Krolczyk | Digital camera for reviewing related images |
CN111143586A (en) * | 2019-08-09 | 2020-05-12 | 华为技术有限公司 | Picture processing method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN111143586A (en) | 2020-05-12 |
CN111143586B (en) | 2023-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021027633A1 (en) | Picture processing method and related apparatus | |
WO2020253719A1 (en) | Screen recording method and electronic device | |
WO2020155014A1 (en) | Smart home device sharing system and method, and electronic device | |
WO2020010584A1 (en) | Data recovery method for when restoring factory settings of terminal, and terminal | |
WO2021159746A1 (en) | File sharing method and system, and related device | |
US20210289075A1 (en) | Method for Presenting Video on Electronic Device When There Is Incoming Call and Electronic Device | |
WO2020224447A1 (en) | Method and system for adding smart home device to contacts | |
WO2020150917A1 (en) | Application permission management method and electronic device | |
WO2021052204A1 (en) | Address book-based device discovery method, audio and video communication method, and electronic device | |
CN111615820B (en) | Method and equipment for performing domain name resolution by sending key value to GRS server | |
WO2022037480A1 (en) | Task processing method and related electronic device | |
US12028300B2 (en) | Method, apparatus, and system for sending pictures after thumbnail selections | |
WO2023015963A1 (en) | File management method, electronic device, and computer-readable storage medium | |
EP4293997A1 (en) | Display method, electronic device, and system | |
US11470153B2 (en) | Photo sharing method and electronic device | |
CN113536374A (en) | Image privacy protection method and electronic equipment | |
CN114553814A (en) | Method and device for processing push message | |
WO2020192716A1 (en) | System language switching method and related apparatus | |
US20240303024A1 (en) | Display method, electronic device, and system | |
CN114064160A (en) | Application icon layout method and related device | |
WO2020051916A1 (en) | Method for transmitting information and electronic device | |
WO2020216144A1 (en) | Method for adding mail contact, and electronic device | |
US20230342335A1 (en) | File sharing method and electronic device | |
EP4400980A1 (en) | Media file management method and related apparatus | |
EP4345590A1 (en) | Task synchronization system and method, and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20852217 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20852217 Country of ref document: EP Kind code of ref document: A1 |