WO2021088881A1 - 一种选择图片的方法和电子设备 - Google Patents

一种选择图片的方法和电子设备 Download PDF

Info

Publication number
WO2021088881A1
WO2021088881A1 PCT/CN2020/126524 CN2020126524W WO2021088881A1 WO 2021088881 A1 WO2021088881 A1 WO 2021088881A1 CN 2020126524 W CN2020126524 W CN 2020126524W WO 2021088881 A1 WO2021088881 A1 WO 2021088881A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
pictures
application
identification information
interface
Prior art date
Application number
PCT/CN2020/126524
Other languages
English (en)
French (fr)
Inventor
王曼舒
张永明
李自然
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20885642.7A priority Critical patent/EP4044013A4/en
Priority to US17/774,119 priority patent/US11972096B2/en
Publication of WO2021088881A1 publication Critical patent/WO2021088881A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • This application relates to the field of terminals, and in particular to a method and electronic device for selecting pictures.
  • apps can upload or edit pictures.
  • some apps such as wealth management apps, banking apps, etc.
  • Some apps require users to upload images of the front/back of their ID cards for review to ensure that the current service object is the user
  • some apps such as cloud disk apps, etc.
  • Some apps can upload the user’s upload
  • the pictures are saved in the cloud to save device memory
  • some apps chat apps, etc.
  • Some apps can publish photos uploaded by users (for example, in Moments), which can meet the social needs of users, and some apps (for example, photo editing apps) You can edit the photos in the gallery (for example, beautify or crop, etc.).
  • the embodiment of the present application provides a method and electronic device for selecting a picture, which can save the user's time for selecting a picture in an application and improve user experience.
  • an embodiment of the present application provides a method for selecting a picture, applied to an electronic device, including: displaying a first interface in an interaction scenario of a first application, the first interface including a picture selection button; In the first operation of triggering the picture selection button, the target album interface is displayed.
  • the target album interface includes: thumbnails of at least two pictures carrying different identification information or at least two sets of pictures carrying different identification information; the identification information is based on at least two
  • the identification information is generated by an interaction scene of an application program, and the identification information includes at least one of the application name of the application program, the time of the interaction scene, or the number of interaction scenes.
  • the target album interface includes at least two thumbnails of pictures carrying different identification information, or at least two A collection of pictures that carry different identification information.
  • the above-mentioned identification information is generated based on the interaction scenarios of at least two applications, so that users can select pictures across applications, without having to choose from the massive pictures in the system album, so that users can more quickly Targeted selection of pictures saves users the time to choose pictures, which can improve user experience.
  • the interactive scene includes a scene of picture uploading, picture editing, or picture downloading.
  • the editing scene of the picture may include the beautifying scene of the picture, for example, scenes such as adding filters, makeup, and cropping.
  • the identification information further includes at least one of the content classification of the picture, the geographic location of the picture, the source of the picture, the purpose of the picture, the collection information of the picture, or the preference information of the picture.
  • users can select pictures from the target album in a more intuitive and targeted manner according to the picture content classification, picture location, picture source, picture purpose, picture collection information or picture preference information, which saves users the time to select pictures, thereby Can improve user experience.
  • the picture or picture collection that includes the application name of the first application in the identification information is before the picture or picture set that includes the application names of other applications in the identification information.
  • displaying the target album interface includes: in response to the user's first operation for triggering the picture selection button, popping up a pop-up box on the first interface ,
  • the pop-up frame includes a target album button; in response to the user's second operation for selecting the target album button, the target album interface is displayed.
  • the method further includes: in response to a third operation of the user selecting at least one picture on the target album interface, displaying the time, geographic location, and information associated with the at least one picture. At least one of the pictures, so that the user can clearly select the time and geographic location of at least one picture. Or, the user can find the desired picture faster from the associated pictures, saving the user the time to select the picture.
  • the method further includes: uploading at least one image; if the image upload is successful, the electronic device displays a first prompt for prompting that the image upload is successful; if the image upload fails, the electronic device displays a second prompt , Used to prompt that the image upload failed; the second prompt includes one or more of the image format is not supported, the image size exceeds the first threshold, or the number of uploaded images exceeds the second threshold.
  • the user can learn the reason for the failure of the image upload according to the prompt information, so that the problem of the failure of the image upload can be solved in a targeted manner.
  • the method further includes: updating the identification information of the successfully uploaded image, and prompting the user with the updated identification information through the first prompt.
  • the user can learn the usage status of the picture according to the updated identification information of the picture, which provides the user with rich reference information of the picture, which helps the user to more easily select the desired picture in the future.
  • the method further includes: re-determining the display mode of the thumbnails of the at least two pictures or the collection of at least two pictures on the interface of the target album according to the updated identification information. In this way, the user can learn the recent use of pictures according to the re-determined display mode, which helps the user to more easily select the desired picture.
  • the at least two applications belong to the same application type.
  • the user selects a picture in the interaction scene of the first application, he can choose from pictures corresponding to the same type of application as the first application. Since the interaction scene of the same type of application is more similar, the user can choose from the same type of application. The probability of selecting the desired picture from the pictures corresponding to the type of application is greater, which can improve the user experience.
  • the at least two applications belong to a group of applications that are jointly developed or jointly registered or merged and packaged or deployed or bound to each other.
  • the interaction scenarios of such a group of applications are usually related (for example, a group of jointly developed applications usually require the user to input the same or similar information when verifying user identity information), so that the user can learn from the pictures corresponding to such a group of applications
  • the probability of selecting the desired picture is greater, which can improve the user experience.
  • the at least two application programs have performed the preset logic processing within the preset time period. In this way, the user can select a picture from pictures uploaded, edited or downloaded in a more reasonable time period, which helps the user to select the desired picture more conveniently and quickly, and improves the user experience.
  • displaying the target album interface includes: controlling the Activity corresponding to the first interface to start the intent, passing the uniform resource identifier (URI) of the target album in the intent; accessing multimedia according to the URI of the target album Database, the multimedia database stores the path of at least two pictures carrying different identification information or the path of each picture in at least two picture sets carrying different identification information; at least two are obtained according to the path of at least two pictures carrying different identification information Pictures carrying different identification information, or acquiring each picture in at least two picture sets carrying different identification information according to the path of each picture in at least two picture sets carrying different identification information; carrying different identification information for at least two pictures Perform thumbnail processing and display of the pictures, or perform thumbnail processing and display on the cover pictures of at least two picture collections carrying different identification information.
  • URI uniform resource identifier
  • the method further includes: in the interactive scene of each of the at least two applications, writing the path of the picture that has performed the logical processing of picture uploading, picture editing, or picture downloading Multimedia database.
  • an embodiment of the present application provides an electronic device, including a display unit, configured to display a first interface in an interaction scenario of a first application program, the first interface including a picture selection button; the display unit is also used to respond In the first operation used by the user to trigger the picture selection button, the target album interface is displayed.
  • the target album interface includes: thumbnails of at least two pictures carrying different identification information or at least two collections of pictures carrying different identification information; the identification information is Generated according to the interaction scenarios of at least two application programs, the identification information includes at least one of the application name of the application program, the time of the interaction scene, or the number of interaction scenes.
  • the interactive scene includes a scene of picture uploading, picture editing, or picture downloading.
  • the identification information further includes at least one of the content classification of the picture, the geographic location of the picture, the source of the picture, the purpose of the picture, the collection information of the picture, or the preference information of the picture.
  • the picture or picture collection that includes the application name of the first application in the identification information is before the picture or picture set that includes the application names of other applications in the identification information.
  • the display screen is used to respond to the user's first operation for triggering the picture selection button to pop up a pop-up box on the first interface, the pop-up box includes a target album button; in response to the user's use to select the target album The second operation of the button displays the target album interface.
  • the display screen is also used to display the time, geographic location, and information associated with the at least one picture in response to the user's third operation of selecting at least one picture on the target album interface. At least one of the pictures.
  • it further includes a processing unit for uploading at least one picture; the display unit is also used for: if the picture upload is successful, display a first prompt for prompting that the picture upload is successful; if the picture upload fails, A second prompt is displayed to prompt that the image upload fails; the second prompt includes one or more of the image format is not supported, the image size exceeds the first threshold, or the number of uploaded images exceeds the second threshold.
  • the processing unit is further used to update the identification information of the successfully uploaded picture, and the display screen is also used to prompt the user with the updated identification information through the first prompt.
  • the processing unit is further configured to re-determine the display mode of the thumbnails of the at least two pictures or the set of at least two pictures on the interface of the target album according to the updated identification information.
  • At least two applications belong to the same application type; or, at least two applications belong to a group of applications that are jointly developed or jointly registered or merged and packaged or deployed or bound to each other; Or, at least two application programs have performed the preset logic processing within the preset time period.
  • the processing unit is used to: control the Activity corresponding to the first interface to start the Intent, and transfer the URI of the target album in the intent; access the multimedia database according to the URI of the target album, and the multimedia database stores at least two pieces carrying different identifiers The path of the picture of the information or the path of each picture in at least two picture sets carrying different identification information; at least two pictures carrying different identification information are acquired according to the path of at least two pictures carrying different identification information, or at least two pictures carrying different identification information are obtained according to the path of at least two pictures carrying different identification information.
  • each picture in a picture set carrying different identification information Obtain each picture in at least two picture sets carrying different identification information; at least two pictures carrying different identification information are abbreviated and displayed on the display screen , Or abbreviate the cover pictures of at least two picture sets carrying different identification information and display them on the display screen.
  • the processing unit is also used to write the path of the picture that has performed the logical processing of picture upload, picture editing, or picture download in the interactive scene of each of the at least two applications Multimedia database.
  • embodiments of the present application provide a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute any of the methods provided in the first aspect.
  • embodiments of the present application provide a computer program product containing instructions, which when run on a computer, cause the computer to execute any one of the methods provided in the first aspect.
  • an embodiment of the present application provides a chip system, which includes a processor and may also include a memory, configured to implement any one of the methods provided in the above-mentioned first aspect.
  • the chip system can be composed of chips, or it can include chips and other discrete devices.
  • an embodiment of the present application also provides a picture selection device, which may be a processing device, an electronic device, or a chip.
  • the device includes a processor, which is used to implement any one of the methods provided in the first aspect.
  • the device may also include a memory for storing program instructions and data.
  • the memory may be a memory integrated in the device or an off-chip memory provided outside the device.
  • the memory is coupled with the processor, and the processor can call and execute the program instructions stored in the memory to implement any one of the methods provided in the first aspect.
  • the device may also include a communication interface, which is used for the device to communicate with other devices.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 2 is a schematic flowchart of a method for selecting pictures according to an embodiment of the application
  • FIG. 3 is a schematic diagram of a display of an electronic device provided by an embodiment of the application.
  • FIG. 4 is a schematic display diagram of another electronic device provided by an embodiment of the application.
  • FIG. 5 is a schematic display diagram of still another electronic device provided by an embodiment of this application.
  • FIG. 6 is a schematic display diagram of still another electronic device provided by an embodiment of the application.
  • FIG. 7 is a schematic display diagram of still another electronic device provided by an embodiment of this application.
  • FIG. 8 is a schematic display diagram of still another electronic device provided by an embodiment of this application.
  • FIG. 9 is a schematic display diagram of still another electronic device provided by an embodiment of this application.
  • FIG. 10 is a schematic display diagram of still another electronic device provided by an embodiment of the application.
  • FIG. 11 is a schematic diagram of a display of still another electronic device provided by an embodiment of this application.
  • FIG. 12 is a schematic display diagram of still another electronic device provided by an embodiment of this application.
  • FIG. 13 is a schematic display diagram of still another electronic device provided by an embodiment of this application.
  • FIG. 14 is a schematic display diagram of still another electronic device provided by an embodiment of the application.
  • FIG. 14A is a schematic display diagram of still another electronic device provided by an embodiment of this application.
  • FIG. 15 is a schematic display diagram of still another electronic device provided by an embodiment of the application.
  • FIG. 16 is a schematic display diagram of still another electronic device provided by an embodiment of this application.
  • FIG. 16A is a schematic display diagram of still another electronic device provided by an embodiment of this application.
  • FIG. 17 is a schematic display diagram of still another electronic device provided by an embodiment of the application.
  • FIG. 19 is a schematic structural diagram of a chip system provided by an embodiment of the application.
  • the user can only select from the pictures recently operated by the current application, the selection range is small, and cross-application access is not possible. For example, if a user recently uploaded an ID photo in a bank app, when the user wants to upload an ID photo in the Alipay app, the user can only access the folder created by the bank app to store pictures through the Alipay app. Can search for ID card photos from a large number of pictures in the system album. For another example, suppose the user recently updated a set of carefully typeset pictures through the chat application. If the user wants to share the same typeset photos in the blog application, but because the blog application cannot access the folder created by the chat application for storing pictures, The user can only choose from the system album again, which consumes a lot of unnecessary time and is not efficient and convenient.
  • the embodiment of the present application provides a method for selecting pictures.
  • a target album interface can be displayed.
  • the target album interface includes at least two thumbnails or thumbnails of pictures carrying different identification information. At least two picture collections carrying different identification information.
  • the picture identification information or the picture collection identification information is generated in at least two application interaction scenarios.
  • the interaction scenes include picture upload, picture editing, or picture download scenarios.
  • the electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone.
  • PDAs personal digital assistants
  • AR augmented reality
  • VR virtual reality
  • the embodiments of this application do not impose special restrictions on the specific form of the electronic device.
  • FIG. 1 is a schematic structural diagram of an electronic device 100 provided by an embodiment of this application.
  • the electronic device 100 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, and a battery 442 , Antenna 1, antenna 2, mobile communication module 450, wireless communication module 460, audio module 470, speaker 470A, receiver 470B, microphone 470C, earphone interface 470D, sensor module 480, buttons 490, motor 491, indicator 492, camera 493 , The display screen 494, and the subscriber identification module (SIM) card interface 495, etc.
  • SIM subscriber identification module
  • the sensor module 480 may include pressure sensor 480A, gyroscope sensor 480B, air pressure sensor 480C, magnetic sensor 480D, acceleration sensor 480E, distance sensor 480F, proximity light sensor 480G, fingerprint sensor 480H, temperature sensor 480J, touch sensor 480K, environment Light sensor 480L, bone conduction sensor 480M, etc.
  • the structure illustrated in this embodiment 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 410 may include one or more processing units.
  • the processor 410 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.
  • a memory may also be provided in the processor 410 for storing instructions and data.
  • the memory in the processor 410 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 410. If the processor 410 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 410 is reduced, and the efficiency of the system is improved.
  • the processor 410 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/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the interface connection relationship between the modules illustrated in this embodiment is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the above-mentioned embodiments, or a combination of multiple interface connection modes.
  • the charging management module 440 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 440 may receive the charging input of the wired charger through the USB interface 430.
  • the charging management module 440 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 440 charges the battery 442, it can also supply power to the electronic device through the power management module 441.
  • the power management module 441 is used to connect the battery 442, the charging management module 440 and the processor 410.
  • the power management module 441 receives input from the battery 442 and/or the charging management module 440, and supplies power to the processor 410, the internal memory 421, the external memory, the display screen 494, the camera 493, and the wireless communication module 460.
  • the power management module 441 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 441 may also be provided in the processor 410.
  • the power management module 441 and the charging management module 440 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 450, the wireless communication module 460, 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 450 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 450 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 450 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 450 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 450 may be provided in the processor 410.
  • at least part of the functional modules of the mobile communication module 450 and at least part of the modules of the processor 410 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. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 470A, the receiver 470B, etc.), or displays an image or video through the display screen 494.
  • the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 410 and be provided in the same device as the mobile communication module 450 or other functional modules.
  • the wireless communication module 460 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 (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 460 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 460 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 410.
  • the wireless communication module 460 may also receive a signal to be sent from the processor 410, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 450, and the antenna 2 is coupled with the wireless communication module 460, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology 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).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 494, an application processor, and the like.
  • the GPU is a microprocessor for image processing, which is connected to the display screen 494 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 410 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 494 is used to display images, videos, and the like.
  • the display screen 494 includes a display panel.
  • the display panel can use 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
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode.
  • emitting diode AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 493, a video codec, a GPU, a display screen 494, and an application processor.
  • the ISP is used to process the data fed back from the camera 493. 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 transmits 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 493.
  • the camera 493 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected 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 transfers 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 of image signals.
  • the electronic device 100 may include 1 or N cameras 493, 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 a 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 multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 420 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 410 through the external memory interface 420 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • an external memory card for example, a Micro SD card
  • the Micro SD card is usually open to users, and users can freely delete and access pictures in the system album.
  • the internal memory 421 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 410 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 421.
  • the processor 410 may display corresponding display content on the display screen 494 in response to the user's operation on the display screen 494 by executing instructions stored in the internal memory 421.
  • the internal memory 421 may include a program storage area and a data storage 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.
  • the internal memory 421 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), and a read-only memory (read-only memory). memory, ROM) etc.
  • the path and identification information of the picture in the target album interface (including the identification information of the picture or the identification information of the picture collection) can be stored in the internal memory, and the picture can be obtained from the external memory by reading the path of the picture And loaded into the internal memory, and can display pictures or picture collections in corresponding rules or ways according to the identification information.
  • the electronic device 100 can implement audio functions through an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, a headphone interface 470D, and an application processor. For example, music playback, recording, etc.
  • the audio module 470 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 470 can also be used to encode and decode audio signals.
  • the audio module 470 may be disposed in the processor 410, or part of the functional modules of the audio module 470 may be disposed in the processor 410.
  • the speaker 470A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 470A, or listen to a hands-free call.
  • the receiver 470B also called “earpiece”, is used to convert audio electrical signals into sound signals.
  • Microphone 470C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can approach the microphone 470C through the mouth to make a sound, and input the sound signal into the microphone 470C.
  • the electronic device 100 may be provided with at least one microphone 470C. In other embodiments, the electronic device 100 may be provided with two microphones 470C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 470C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 470D is used to connect wired earphones.
  • the earphone interface 470D may be a USB interface 430, 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 pressure sensor 480A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 480A may be provided on the display screen 494.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 480A, 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 494, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 480A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 480A.
  • 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 of the touch operation 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.
  • the gyro sensor 480B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 480B can be used for image stabilization.
  • the gyroscope sensor 480B 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 gyroscope sensor 480B can also be used for navigation and somatosensory game scenes.
  • the display screen 494 of the electronic device 100 can be folded to form multiple screens.
  • Each screen may include a gyroscope sensor 480B for measuring the orientation of the corresponding screen (ie, the direction vector of the orientation).
  • the electronic device 100 can determine the angle between adjacent screens according to the measured angle change of the orientation of each screen.
  • the air pressure sensor 480C 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 480C to assist positioning and navigation.
  • the magnetic sensor 480D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 480D to detect the opening and closing of the flip holster.
  • the electronic device 100 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 480D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 480E 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 apply to applications such as horizontal and vertical screen switching, pedometers and so on. It should be noted that in this embodiment of the present application, the display screen 494 of the electronic device 100 can be folded to form multiple screens. Each screen may include an acceleration sensor 480E for measuring the orientation of the corresponding screen (that is, the direction vector of the orientation).
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 480F to measure the distance to achieve fast focusing.
  • the proximity light sensor 480G 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 480G 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 480G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 480L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 494 according to the perceived brightness of the ambient light.
  • the ambient light sensor 480L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 480L can also cooperate with the proximity light sensor 480G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 480H 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, and so on.
  • the temperature sensor 480J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 480J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 480J exceeds a threshold value, the electronic device 100 executes to reduce the performance of the processor located near the temperature sensor 480J, 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 442 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 442 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 480K also called “touch panel”.
  • the touch sensor 480K can be arranged on the display screen 494, and the touch screen is composed of the touch sensor 480K and the display screen 494, which is also called a “touch screen”.
  • the touch sensor 480K 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 494.
  • the touch sensor 480K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 494.
  • the bone conduction sensor 480M can acquire vibration signals.
  • the bone conduction sensor 480M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 480M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 480M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 470 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 480M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 480M, and realize the heart rate detection function.
  • the button 490 includes a power-on button, a volume button, and so on.
  • the button 490 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 491 can generate vibration prompts.
  • the motor 491 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations that act on different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 494, the motor 491 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 492 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications and so on.
  • the SIM card interface 495 is used to connect to the SIM card.
  • the SIM card can be connected to and separated from the electronic device 100 by inserting into the SIM card interface 495 or pulling out from the SIM card interface 495.
  • 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 495 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 495 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 495 can also be compatible with different types of SIM cards.
  • the SIM card interface 495 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.
  • an embodiment of the present application provides a method for selecting a picture, which is described by taking the electronic device as a mobile phone as an example, including:
  • the mobile phone displays a first interface, and the first interface includes a picture selection button.
  • the interactive scenes may include interactive scenes such as picture uploading, picture editing (beautification and/or cropping, etc.), or picture downloading.
  • the logical processing of image upload can be performed on the image selected by the user.
  • the logical processing of picture editing can be performed on the picture selected by the user.
  • the logic processing of picture download can be executed.
  • the interactive scene may refer to application recording data or operation recording data.
  • the first interface may be an interface of various applications capable of uploading or editing pictures (for example, chat application, blog application, cloud disk application, game application, wealth management application, banking application, etc.), and the interface may include a picture selection button .
  • the function of the picture selection button is for picture selection.
  • the picture selection button can also be a picture sending button, a file selection button, a picture sharing button, a picture upload button, a picture editing button, etc., buttons or controls that can call the target album interface, which is not limited by this application.
  • the user can click on the icon 302 of the mobile phone's wealth management app on the interface 301, and when the mobile phone detects that the user has clicked the icon 302 of the wealth management app on the interface 301, the wealth management app can be started.
  • the user logs in to the wealth management APP for the first time, he needs to register his personal information.
  • the user can register personal information, such as name, age, etc., on the personal information registration interface 401 (the first interface).
  • a picture can be selected through the picture selection button 402, such as a picture on the front and back of the user's ID card.
  • the user can open a webpage or applet interface (H5 page) through an APP (for example, a browser APP), and select and upload pictures on the webpage or H5 page.
  • the first interface may be an application program interface, a web page interface or an applet interface, which is not limited in this application.
  • the mobile phone displays the target album interface in response to the user's first operation for triggering the picture selection button.
  • the mobile phone can directly display the target album interface.
  • a pop-up box may pop up on the first interface.
  • the pop-up box includes a target album button, and the target album button is a function button that triggers to open the target album.
  • the mobile phone displays the target album interface on the display screen.
  • the second operation on the target album button may include a click operation, a sliding operation, a long press operation, and so on.
  • the click operation may include a single click operation, a double click operation, etc., which is not limited in this application.
  • the pop-up frame also includes a system album button and/or a photo button.
  • the user can click on the picture selection button 402.
  • the mobile phone can pop up a pop-up box (Dialog box) 403.
  • the bullet frame 403 includes a target album button 404, a system album button 405, and a photo button 406.
  • the system album includes various pictures stored in the memory of the mobile phone, such as pictures taken through a camera, downloaded pictures, and pictures obtained by screenshots.
  • the target album includes pictures uploaded, edited or downloaded in at least two applications, and the target album can be considered as a sub-album of the system album.
  • each album for example, system album, target album
  • system album can also be called a normal album, a native album, all pictures, etc.
  • target album can also be called For historical upload albums, historical record albums, historical download albums, etc., this application is not limited.
  • the mobile phone can turn on the camera and jump from the current application (for example, the financial management app) to the camera application.
  • the user can directly take a photo or scan the front and back of the ID card. After the shooting, the camera can return to the financial management application.
  • the mobile phone can display a target album interface.
  • the target album interface includes thumbnails of at least two pictures carrying different identification information or at least two collections of pictures carrying different identification information.
  • the identification information of the at least two pictures or the identification information of the at least two picture collections is generated according to the interaction scenes of at least two applications, that is, the identification information of the pictures or the picture collections is generated according to the interaction scenes.
  • the interaction scene of each of the at least two applications may include interaction scenes such as picture uploading, picture editing, or picture downloading.
  • corresponding logic processing may be executed. Refer to the related description of step 201.
  • the mobile phone can generate identification information for pictures that have been subjected to logical processing such as uploading, editing, or downloading.
  • the identification information may include at least one of the application name of the application, the time of the interactive scene, or the number of times of the interactive scene. Take the first picture as an example.
  • the first picture is one of at least two differently-identified pictures.
  • the identification information of the first picture may include the application name of the application on which the logic processing of the first picture is executed. At least one of the time when the corresponding logic processing is executed in the interactive scene (the time of the interactive scene) or the number of times the logic processing is executed in the interactive scene (the number of interactive scenes).
  • the number of times that the picture has been logically processed can include the number of times that the picture has been logically processed in all application interaction scenarios (for example, the picture has been uploaded twice in a chat application and edited once in a photo editing application. , After uploading once in the blog application, the picture is executed logically for a total of 4 times), or including the number of times that the picture was executed logically in the interactive scene of each application, or including the picture in the same The number of times that the corresponding logic processing is executed in each interactive scene of an application (for example, the picture has been uploaded twice in the chat application and edited once).
  • the identification information of the first picture set includes the application name of the application that executes logic processing on all pictures in the first picture set, the time when the logic processing is executed in the interactive scene or the number of times the logic processing is executed in the interactive scene at least one.
  • the first picture set may be one of at least two differently identified picture sets.
  • the thumbnails (or picture collections) of at least two pictures carrying different identification information may include thumbnails (or picture collections) of pictures that do not carry any identification information and thumbnails (or picture collections) of pictures that carry identification information.
  • not carrying any identification information is carrying a special kind of identification information, or carrying a kind of empty identification information.
  • the mobile phone can display thumbnails or collections of pictures on the target album interface according to the identification information.
  • the mobile phone may display thumbnails of one or more pictures or one or more picture collections on the display screen according to the application name.
  • the mobile phone can display a target album interface 501.
  • the mobile phone can respectively display image collections corresponding to applications such as chat applications, blog applications, game applications, payment applications, wealth management applications, and management applications.
  • the application name corresponding to each image collection is the image collection carried Identification information.
  • the cover picture corresponding to each application program may be the latest or earliest picture uploaded/edited/downloaded by the user in the application program.
  • users can select pictures to be uploaded across applications (that is, when accessing pictures processed by other applications in the current application), without having to choose from a large number of pictures in the system album, users can select pictures faster and more pertinently, saving users choose the time of the picture, which can improve the user experience.
  • the mobile phone can also display the number of pictures in each picture collection.
  • the number of pictures that have executed corresponding logical processing (including uploading, editing, or downloading, etc.) in the interactive scene of the chat application is 4448
  • the number of pictures that have executed corresponding logic processing in the interactive scene of the game application is 75
  • the number of pictures that have executed the corresponding logic processing in the interactive scene of the payment application is 153
  • the number of pictures that have been executed in the interactive scene of the financial management application
  • the number of corresponding logically processed pictures is 23, and the number of corresponding logically processed pictures in the interactive scene of the management application is 15.
  • the mobile phone displays a picture collection according to the application name
  • the pictures can also be viewed in the order of the time when the pictures are executed logically in the interactive scene of the application. ; Or, view the picture according to the number of times the picture is executed logically in the interactive scene of the application.
  • the mobile phone can display thumbnails or collections of pictures according to the time of the interaction scene.
  • the mobile phone may display one or more thumbnails of pictures, or one or more picture collections on the display screen according to the sequence of the time (for example, upload time) when the pictures are executed logically in the interactive scene.
  • the mobile phone can display thumbnails of one or more pictures or one or more picture collections on the display screen according to the order of upload time of the pictures.
  • the mobile phone may not distinguish the types of logical processing. As long as a picture has been logically processed (for example, uploaded, edited, or downloaded) in an application interaction scene, the mobile phone can identify the corresponding processing time for the picture, and according to The processing time shows the picture. Wherein, each picture in the picture set is executed logically at the same time (for example, the date is the same, that is, logically processed on the same day).
  • the mobile phone may display the target album interface 601.
  • the mobile phone can display thumbnails of multiple pictures that have been logically processed on different dates starting from the processing time (for example, September 13) of the picture that has been logically processed last time.
  • the mobile phone can Display thumbnails of multiple pictures that have been logically processed on September 13, September 6, August 21, and other dates.
  • the user can view more pictures uploaded on that date by clicking the control to the right of the date.
  • the user can click control 602 to view more pictures uploaded on August 21.
  • the mobile phone can also display more detailed time information, such as year, morning, afternoon, hour, minute, or second, which is not limited here.
  • the picture set corresponding to each date may include pictures that have been logically processed by one or more applications.
  • the collection of pictures corresponding to September 13 may include pictures uploaded (published) in a chat application and pictures edited in a photo editing application.
  • the picture collection corresponding to September 6 may only include pictures uploaded in the cloud disk application.
  • the user can further view the application name corresponding to each picture.
  • users can select pictures to be uploaded across applications according to the sequence of the time when the pictures are executed logically (that is, access pictures processed by other applications in the current application), without having to choose from a large number of pictures in the system album, which can save the user's choice Picture time, which can improve user experience.
  • a certain picture has been logically processed at different times (it can be logical processing performed in the same application, or logical processing can be performed in different applications), for example, on September 13 Uploaded on September 6th and September 6th, you can just put the picture into the picture collection corresponding to the most recent upload date (September 13th) to avoid repeated display of the same picture and save the processing power consumption of the mobile phone. Or, the pictures can be put into picture collections corresponding to different dates (September 13 and September 6) to remind the user that the picture has been uploaded multiple times.
  • the mobile phone may display thumbnails of one or more pictures, or one or more picture collections, on the display screen according to the number of interactive scenes (the number of times the pictures are processed logically in the interactive scene). For example, the mobile phone can display pictures or picture collections on the display screen according to the number of uploads/edits/downloads of the pictures. Alternatively, the mobile phone may not distinguish the types of logical processing. As long as a picture has been logically processed (for example, uploaded, edited, or downloaded) in an application interaction scene, the mobile phone can identify the corresponding processing times for the picture, and according to The picture is displayed for the processing times.
  • the mobile phone may display the target album interface 701.
  • the target album interface 701 may start with the picture that has been uploaded the most times (for example, picture 702, which has been uploaded 10 times), and display thumbnails of different pictures according to the number of times of uploading.
  • the target album interface 703 may start from the picture with the most uploaded times, and display thumbnails of different pictures according to the number of uploads from more to less.
  • pictures with the same number of uploads can be put into the same picture collection. For example, pictures with the number of uploads 2 times can be displayed in the picture collection 704, and pictures with the number of uploads 1 time can be displayed in the picture collection 705.
  • a picture collection may also include only one picture.
  • it can be considered that the picture 702 is the only picture in the picture collection that has been uploaded 10 times.
  • users can select pictures to be uploaded across applications according to the number of times the pictures have been executed logically. For example, pictures with a large number of uploads are more likely to be uploaded again, and users can select pictures faster and more targeted, saving users choice Picture time, which can improve user experience.
  • the identification information also includes at least one of the content classification of the image, the geographic location of the image, the source of the image, the purpose of the image, the collection information of the image, or the preference information of the image.
  • the use of pictures includes changing images, sending to Moments, verifying personal identity information, uploading to the cloud for storage, and so on.
  • the collection information of the picture includes the application name, time, location and other information of the corresponding application when the picture is saved.
  • the preference information of a picture can be determined based on the number of times the picture has been collected, uploaded, downloaded, or edited.
  • a picture that meets a preset condition can be regarded as a picture that the user likes.
  • the preset condition may be, for example, It has been favorited 2 times or edited 3 times.
  • the mobile phone when the user selects a picture from the picture set corresponding to an application, the mobile phone can also receive the user's corresponding operation (the fourth operation), and the fourth operation is used to The content of the picture is classified to view the picture that the application has executed logical processing; or the fourth operation is used to view the picture that has been logically processed by the application according to the geographic location of the picture; or the fourth operation is used to view the picture according to the source of the picture.
  • the picture that the application has executed logic processing.
  • the fourth operation is used to view the picture that the application has executed logical processing according to the purpose of the picture.
  • the mobile phone in response to the user's operation of clicking the picture 502, as shown in (a) of FIG. 8, the mobile phone may display the interface 1101 corresponding to the chat application, and in response to the user's operation of clicking the control 1102, such as As shown in (b) of FIG. 8, the mobile phone can pop up a pop-up box 1103 that includes multiple function items, such as upload time, number of uploads, content classification, geographic location, source, and upload purpose.
  • multiple function items such as upload time, number of uploads, content classification, geographic location, source, and upload purpose.
  • the user may display an interface 1201 corresponding to the upload purpose.
  • the upload purpose may include "My Moments” (that is, pictures posted by the user in Moments). ), "My avatar” (a chat avatar used by the user), and “My Moments cover” (a Moments cover/theme used by the user), etc. Users can select pictures from pictures corresponding to different upload purposes. It is convenient for users to choose pictures.
  • the mobile phone may display a content classification interface 801, and the content classification interface 801 may display pictures according to content classification.
  • the content classification of pictures can include at least one of ID pictures, character pictures, landscape pictures, food pictures, cute pet pictures, home pictures, building pictures, car pictures, and file pictures (only part of the content classification is shown in FIG. 10).
  • the certificate picture can include the front and back pictures of the ID card, the front and back pictures of the bank card, the Beijing entry permit picture, the license plate number picture, etc.
  • the document picture may include various contract signing pictures, book cover pictures or content pictures, documents (for example, word Documents, pdf documents) screenshots and so on.
  • the mobile phone can also display the number of pictures in each content category.
  • the number of ID-type pictures is 12
  • the number of landscape-type pictures is 52
  • the number of person-type pictures is 85
  • the number of food-type pictures is 75
  • the number of cute pet pictures The number of pictures of is 78
  • the number of pictures of car type is 45.
  • the content classification of documents, scenery, people, food, cute pets, and cars can also include sub-types.
  • the image of the document type can also include ID card pictures, bank card pictures, Beijing entry permit pictures, and license plate number pictures.
  • Pictures of landscape type can also include subtypes such as mountains, rivers, grass, sky, etc.
  • Pictures of character type can be divided into different subtypes according to different face information (one type of face information can correspond to one subtype) )
  • food type pictures can include hot pot, cake, seafood, etc.
  • cute pet type pictures can include dogs, cats, rabbits, tortoises, birds, etc.
  • car type pictures can include cars, sports cars, vans, and off-road vehicles, etc. Wait.
  • the user can view the sub-types of this type of picture by clicking on the corresponding type of picture.
  • the user can click on the landscape type picture 802.
  • the mobile phone can display The landscape interface 803.
  • the landscape interface 803 may include sub-type pictures such as mountains, rivers, grass, and sky.
  • the mobile phone can also display the number of pictures of various subtypes. For example, the number of pictures of the mountain subtype is 12, the number of pictures of the river subtype is 5, the number of pictures of the grass subtype is 3, and the number of pictures of the sky subtype is 3.
  • the number of types of pictures is 8.
  • the user can more intuitively select the picture to be uploaded according to the content classification of the picture, which saves the user the time for selecting the picture, thereby improving the user experience.
  • the mobile phone may display a geographic location interface 901.
  • the geographic location interface 901 may include pictures taken in Yanta District, Xi'an City and Chang'an District, Xi'an City. , Pictures taken in Beilin District, Xi’an, etc.
  • the user can click the control on the right of the geographic location to view more pictures corresponding to the geographic location.
  • the user can click the control 902 to view more pictures corresponding to the Chang'an District of Xi'an.
  • the user can select a picture from the target album faster and more pertinently, which saves the user the time for selecting pictures, thereby improving user experience.
  • the mobile phone may display pictures on the display screen according to the source of the picture, where the picture source may include from camera shooting, from download, from screenshot/screenshot, or from local application ( For example, the picture has been processed by the local retouching software on the mobile phone).
  • the source interface 1001 may include pictures taken by the camera, downloaded pictures, pictures obtained by taking screenshots (screenshots), and so on.
  • the user can click the control on the right of the picture source to view more pictures corresponding to the picture source.
  • the user can click the control 1002 to view more downloaded pictures.
  • the user wants to manipulate pictures from a specific source (for example, want to upload pictures taken by the camera), the user can select the pictures to be uploaded faster and more targeted according to the picture source, which saves the user the time to select pictures, which can improve the user Experience.
  • a specific source for example, want to upload pictures taken by the camera
  • the picture or picture collection whose identification information includes the application name of the first application is located in the identification information and includes other applications Before the picture or picture collection of the application name of the program. It is understandable that when the user selects a picture in the first application, he hopes that the probability of finding it from the pictures processed by the first application is greater, and the application name of the first application is displayed in the first place, so that the user can give priority to the first application. Searching for pictures to be uploaded among pictures processed by an application can improve user experience.
  • the first application is a wealth management application, as shown in (b) in FIG. 4, in response to the user's operation of the target album button 404 displayed on the personal information registration interface 401 of the wealth management application, as shown in FIG.
  • the application name of the wealth management application is before the application names of other applications (for example, chat application, blog application, etc.), which is convenient for users to find the pictures to be uploaded in the pictures uploaded by the wealth management application first, which can improve the user experience .
  • the mobile phone can receive a fifth operation for the user to move the application names of at least two applications; in response to the fifth operation, according to the user’s move The sequence of application names shows the collection of pictures on the display.
  • the mobile phone can display the picture collection in the order of the application name after the user moves.
  • the mobile phone can add the arrangement information of the application name to the corresponding identification information.
  • the identification information carried in Picture 1 is the application name of the A application, and the arrangement order of the A application after moving is the first, and the mobile phone can use this order The information is added to the identification information of Picture 1.
  • the user can design the sorting method of application names (that is, the sorting method of the pictures or picture collections corresponding to the applications) according to their own preferences or needs, which can improve the user experience.
  • At least two applications corresponding to the pictures or picture collections in the target album interface (in the interactive scene of the at least two applications, the pictures or picture collections included in the target album interface can be generated) Identification information) belong to the same application type.
  • the at least two applications may belong to the same shopping application, information application, wealth management application, game application, etc.
  • the user selects a picture in the interaction scene of the first application, he can choose from pictures corresponding to the same type of application as the first application. Since the interaction scene of the same type of application is more similar, the user can choose from the same type of application. The probability of selecting the desired picture from the pictures corresponding to the type of application is greater, which can improve the user experience.
  • the at least two applications belong to a group of applications that are jointly developed or jointly registered or merged and packaged or deployed or bound to each other.
  • the interaction scenarios of such a group of applications are usually related (for example, a group of jointly developed applications usually require the user to input the same or similar information when verifying user identity information), so that the user can learn from the pictures corresponding to such a group of applications The probability of selecting the desired picture is greater, which can improve the user experience.
  • the at least two application programs have performed the preset logic processing within the preset time period.
  • the preset time period may refer to a period of time (for example, one week, one month, three months, etc.) before the time point when the user selects a picture in the interaction scene of the first application.
  • the preset time period is one month before the time point when the user performs the picture selection operation.
  • the user uploads, edits, or downloads pictures in apps 1 to 5, then the at least two apps
  • the program includes application 1-application 5.
  • the user can select a picture from pictures uploaded, edited or downloaded in a more reasonable time period, which helps the user to select the desired picture more conveniently and quickly, and improves the user experience.
  • the mobile phone receives an operation used by the user to select at least one picture on the target album interface.
  • the user can select one or more pictures on the target album interface. For example, as shown in (a) of FIG. 14, the user can select a picture in the interface 1101 (for example, the picture 1103, the user can long press the picture 1103 to select the picture). For another example, as shown in (a) of FIG. 15, the user can select multiple pictures in the interface 1101 (for example, picture 1103, picture 1111, and picture 1112).
  • the mobile phone In response to the user's operation of selecting at least one picture on the target album interface (third operation), the mobile phone displays at least one of the time, geographic location, and pictures associated with the at least one picture.
  • the picture associated with at least one picture may be a picture uploaded or edited at the same time, or a picture whose similarity with the selected picture exceeds a preset threshold.
  • a prompt box 1201 can be displayed to remind the user of the time, location, and associated pictures of the picture 1103 currently selected. The user can update the associated pictures from the picture 1103. Find the picture you need quickly, saving users the time to choose a picture.
  • the mobile phone may receive an operation used by the user to edit one or more pictures in at least one picture, such as cropping, graffiti, or adding a filter.
  • the mobile phone may display the one or more pictures. Editing results of pictures.
  • the user can select a picture 1103 in the interface 1101 and click the Finish button 1104, in response to the user clicking the Finish button 1104, as shown in Figure 14 (b)
  • the mobile phone can display an interface 1101a.
  • the interface 1101a includes a picture 1103 to be uploaded, an upload button 1105 and a control 1106 for adding more pictures to be uploaded.
  • the user can click or long-press the picture 1103 on the interface 1101a.
  • the mobile phone can display the interface 1101b, and the interface 1101b can display the picture 1103 (thumbnail )
  • the corresponding original image, the image 1103a may also include some operation options, including cropping, graffiti, filters, stickers, and text. If the user selects the cropping option 1107, in response to the user clicking on the cropping option 1107, as shown in Figure 14 (d), the mobile phone can display an interface 1101c, and the user can crop the picture 1103a on the interface 1101c.
  • the interface 1101c can also include Controls used to adjust the aspect ratio of the picture (such as "free", "1:1” and "3:4", the default aspect ratio of the picture is free, that is, the picture is displayed in the dotted frame 1108 according to the original picture's aspect ratio 1103a) and mirror control and rotation control for editing pictures.
  • Controls used to adjust the aspect ratio of the picture such as "free", "1:1” and "3:4", the default aspect ratio of the picture is free, that is, the picture is displayed in the dotted frame 1108 according to the original picture's aspect ratio 1103a
  • mirror control and rotation control for editing pictures As shown in (e) in Figure 14, the user can crop the picture 1103a along the trajectory 1109, and then the user can click on the control 1110 to confirm that the cropping is completed, in response to the user clicking on the control 1110, as shown in Figure 14 ( As shown in f), the mobile phone can return to the interface 1101a, and display the thumbnail 1103b of the cropped picture on the interface 11
  • the mobile phone may receive an operation used by the user to sort at least one picture, and in response to the sorting operation, display the sorting result of the at least one picture.
  • the mobile phone can display interface 1101a, interface 1101a includes pictures 1103, pictures 1111 and 1112 to be uploaded, as well as upload button 1105 and for adding more pictures to be uploaded Control 1106.
  • the user can drag the picture 1112 along the track 1113.
  • the foregoing method may further include step 204:
  • the mobile phone can obtain the image to be uploaded stored in the disk according to the path of at least one image (image to be uploaded) selected (selected) by the user, import the image to be uploaded into the memory, and upload the image imported into the memory to the current application
  • the server corresponding to the program for example, the financial management APP. Then you can delete the pictures to be uploaded stored in the memory to save memory space.
  • the mobile phone may display an upload progress prompt.
  • the mobile phone uploads the above three pictures to the server corresponding to the current application (for example, a wealth management APP), and can pass the progress Bar 1114 shows the upload progress of the picture.
  • the current application for example, a wealth management APP
  • the electronic device can display a first prompt to prompt that the image upload is successful; if the image upload fails, the electronic device displays a second prompt to prompt that the image upload failed.
  • the second prompt includes one or more of the picture format is not supported, the picture size exceeds the first threshold, or the number of uploaded pictures exceeds the second threshold.
  • the mobile phone can update the identification information of the successfully uploaded picture, and prompt the user with the updated identification information through the first prompt.
  • the user can learn the usage status of the picture according to the updated identification information of the picture, which provides the user with rich reference information of the picture, which helps the user to more easily select the desired picture in the future.
  • the mobile phone may prompt that the picture has been successfully uploaded for the nth time, n may indicate the number of times the picture has been successfully uploaded in the current application, or n may indicate the number of times the picture has been successfully uploaded in all applications.
  • the mobile phone can display the number of successful uploads of multiple successfully uploaded pictures through the prompt box 1601.
  • the user can confirm that the picture 1112 has been uploaded successfully for the third time, the picture 1111 has been uploaded successfully for the second time, and the picture 1103 has been uploaded successfully.
  • the 4th upload was successful.
  • the mobile phone may prompt the user that the picture has been successfully uploaded in X applications.
  • the mobile phone can also display the specific application name.
  • the mobile phone can prompt the user that the picture has been uploaded successfully in X applications such as chat application, blog application, financial management application, etc.
  • the mobile phone can display that the picture was uploaded successfully at ⁇ year ⁇ month ⁇ day ⁇ hour ⁇ minute, etc.
  • X and n are integers greater than or equal to 1.
  • the mobile phone can re-determine the thumbnails of at least two pictures according to the updated identification information Or the display mode of at least two picture collections on the target album interface. In this way, the user can learn the recent use of pictures according to the re-determined display mode, which helps the user to more easily select the desired picture. For example, the mobile phone can re-sort and display the pictures or picture collections according to the number of uploads or edits after the picture is updated. The mobile phone can also prompt the use frequency of the pictures through text, symbols, animations, etc. (for example, the number of uploads, the number of edits, etc.) .
  • the mobile phone can also superimpose different identification information to indicate the usage of the picture (for example, not only the identification information such as the number of uploads and the number of edits, but also the application name, such as uploading 2 times in the chat application, and editing 3 times in the photo editing application Etc.), or the mobile phone can change the identification information according to the usage of the picture, for example, replace the identification information generated in the interaction scene with a long time according to the identification information generated in the latest interaction scene.
  • different identification information for example, not only the identification information such as the number of uploads and the number of edits, but also the application name, such as uploading 2 times in the chat application, and editing 3 times in the photo editing application Etc.
  • the target album interface includes at least two thumbnails of pictures carrying different identification information, or at least two A collection of pictures that carry different identification information.
  • the above-mentioned identification information is generated based on the interaction scenarios of at least two applications, so that users can select pictures across applications. Choose from a large number of pictures in the system album, enabling users to select pictures faster and more pertinently, saving users the time to select pictures, thereby improving user experience.
  • FIG. 17 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present invention.
  • 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 illustrate the software structure of the electronic device 100 by way of example.
  • 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 Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • 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 videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the content provider may call the multimedia database (MediaStore) to obtain the picture information of the target album, so as to display the target album interface according to the picture information of the target album.
  • the pictures in the target album may include each of at least two applications installed on the mobile phone, which are read from and/or written to the multimedia database during operations such as uploading, editing, or downloading pictures.
  • This method can define the picture information of the target album, which is equivalent to extending MediaStore.
  • the target album corresponds to a URI. By passing the URI of the target album to the MediaStore, the picture information of the target album can be queried from the MediaStore.
  • the current Activity (the Activity corresponding to the picture selection interface of the current application) can provide an acquisition for the target album through its corresponding xml configuration file
  • the user chooses whether to enable the permission of photo information. If the user chooses to enable the permission, he can pass the URI and other information of the picture selected by the user to the MediaStore through the special data transfer function written in the album of the mobile phone system to update the picture information of the target album.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • 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, and so on.
  • 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.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • 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 a 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.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • 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 surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • 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 a variety of 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 kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the software workflow of the electronic device 100 is exemplified below in conjunction with a picture uploading scene.
  • a pop-up box 403 may pop up in the interface 401.
  • the Activity corresponding to the interface 401 can obtain the picture information in the target album through the Intent.
  • the activity corresponding to the current interface can call the ContentProvider of the framework layer through the intent, query the multimedia database (MediaStore) in the system library through the ContentProvider, and pass the URI of the target album (for example, MediaStore.Images.Media) to the MediaStore.
  • the Intent may include at least one of the following parameters: the URI of the target album, the package name of the current application (for example, a financial management application), the permission parameters for the current application to authorize the use of the target album, and for requesting pictures in the target album
  • the user can click the system album button 405 to select a picture in the system album interface.
  • MediaStore for example, MediaStore.Images.Media.EXTERNAL_CONTENT_URI
  • the Webview control can provide a callback method to the current application, and the current application can return the URI of the picture selected by the user to the Webview control , So that you can upload the picture selected by the user on the web page.
  • inventions of the present application also provide an apparatus for selecting pictures, and the apparatus can be applied to the above-mentioned electronic equipment.
  • the device is used to execute various functions or steps performed by the mobile phone in the above method embodiments.
  • FIG. 18 shows a possible structural schematic diagram of the electronic device 18 involved in the foregoing embodiment, and the electronic device is used to implement the methods described in each of the foregoing method embodiments.
  • the method specifically includes: a display unit 1801 and a processing unit 1802.
  • the display unit 1801 is used to support the electronic device to execute the processes 201 and 202 shown in FIG. 2; the processing unit 1802 is used to support the electronic device to execute the processes 203 and 204 shown in FIG. 2.
  • the processing unit 1802 is used to support the electronic device to execute the processes 203 and 204 shown in FIG. 2.
  • all relevant content of the steps involved in the above method embodiments can be cited in the functional description of the corresponding functional module, which will not be repeated here.
  • the chip system includes at least one processor 1901 and at least one interface circuit 1902.
  • the processor 1901 and the interface circuit 1902 may be interconnected by wires.
  • the interface circuit 1902 may be used to receive signals from other devices (such as the memory of an electronic device).
  • the interface circuit 1902 may be used to send signals to other devices (such as the processor 1901).
  • the interface circuit 1902 can read an instruction stored in the memory, and send the instruction to the processor 1901.
  • the electronic device can execute the steps in the foregoing embodiments.
  • the chip system may also include other discrete devices, which are not specifically limited in the embodiment of the present application.
  • the embodiments of the present application also provide a computer storage medium, the computer storage medium includes computer instructions, when the computer instructions run on the above-mentioned electronic device, the electronic device is caused to perform each function or step performed by the mobile phone in the above-mentioned method embodiment .
  • the embodiments of the present application also provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute each function or step performed by the mobile phone in the above method embodiment.
  • the disclosed device and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be divided. It can be combined or integrated into another device, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate parts may or may not be physically separate.
  • the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, and the software product is stored in a storage medium. It includes several instructions to make a device (may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the foregoing storage media include: U disk, mobile hard disk, ROM, random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种选择图片的方法和电子设备,涉及终端领域,可以节省用户在应用程序中选择图片的时间,提高用户体验。其方法为:在第一应用程序的交互场景下,显示第一界面,第一界面包括图片选择按钮;响应于用户用于触发图片选择按钮的第一操作,显示目标相册界面,目标相册界面包括:至少两张携带不同标识信息的图片的缩略图或至少两个携带不同标识信息的图片集合;标识信息是根据至少两个应用程序的交互场景生成的,标识信息包括应用程序的应用名称,交互场景的时间或者交互场景的次数中的至少一个。

Description

一种选择图片的方法和电子设备
本申请要求于2019年11月04日提交国家知识产权局、申请号为201911067532.6、申请名称为“一种选择图片的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端领域,尤其涉及一种选择图片的方法和电子设备。
背景技术
目前,许多应用程序(application,APP)都可以上传或编辑图片。例如,一些APP(例如,理财APP、银行APP等)需要用户上传身份证正/反面图片进行审核,以确保当前服务对象是用户本人;一些APP(例如,云盘APP等)可以将用户上传的图片保存在云端,以节省设备内存;一些APP(聊天APP等)可以将用户上传的照片发表出来(例如,发表在朋友圈),可以满足用户的社交需求,一些APP(例如,修图APP)可以对图库中的照片进行编辑(例如,美化或剪裁等)。
用户在相应的APP选择待上传或待编辑的图片时,可以在系统相册中查找图片。但是,系统相册中可能存储几千张甚至上万张图片,在如此多的图片中查找用户所需图片会耗费很多不必要的时间。
发明内容
本申请实施例提供一种选择图片的方法和电子设备,可以节省用户在应用程序选择图片的时间,提高用户体验。
第一方面,本申请实施例提供一种选择图片的方法,应用于电子设备,包括:在第一应用程序的交互场景下,显示第一界面,第一界面包括图片选择按钮;响应于用户用于触发图片选择按钮的第一操作,显示目标相册界面,目标相册界面包括:至少两张携带不同标识信息的图片的缩略图或至少两个携带不同标识信息的图片集合;标识信息是根据至少两个应用程序的交互场景生成的,标识信息包括应用程序的应用名称,交互场景的时间或者交互场景的次数中的至少一个。
基于本申请实施例提供的方法,在第一应用程序的交互场景下,用户从目标相册界面中选择图片时,由于目标相册界面包括至少两张携带不同标识信息的图片的缩略图,或至少两个携带不同标识信息的图片集合,上述标识信息是根据至少两个应用程序的交互场景生成的,这样用户可以跨应用选择图片,无需从系统相册的海量图片中选择,使用户能够更快更有针对性的选择图片,节省用户选择图片的时间,从而可以提高用户体验。
在一种可能的实现方式中,交互场景包括图片上传、图片编辑或图片下载的场景。其中,图片的编辑场景可以包括图片的美化场景,例如,加滤镜,化妆、裁剪等场景。
在一种可能的实现方式中,标识信息还包括图片的内容分类、图片的地理位置、图片来源、图片用途、图片的收藏信息或图片的喜好信息中的至少一个。
这样,用户可以根据图片的内容分类、图片的地理位置、图片来源、图片用途、图片的收藏信息或图片的喜好信息更直观更有针对性从目标相册选择图片,节省用户选择图 片的时间,从而可以提高用户体验。
在一种可能的实现方式中,在目标相册界面中,标识信息中包括第一应用程序的应用名称的图片或图片集合位于标识信息中包括其他应用程序的应用名称的图片或图片集合之前。
可以理解的是,当用户在第一应用程序选择图片时,希望从第一应用程序处理过的图片中查找的机率较大,将第一应用程序的应用名称显示在首位,方便用户优先在第一应用程序处理过的图片中查找待上传的图片,可以提高用户的使用体验。
在一种可能的实现方式中,响应于用户用于触发图片选择按钮的第一操作,显示目标相册界面包括:响应于用户用于触发图片选择按钮的第一操作,在第一界面弹出弹框,弹框包括目标相册按钮;响应于用户用于选择目标相册按钮的第二操作,显示目标相册界面。
在一种可能的实现方式中,该方法还包括:响应于用户在目标相册界面选中至少一张图片的第三操作,显示选中至少一张图片的时间、地理位置以及与至少一张图片关联的图片中的至少一种,这样,用户可以明确选中至少一张图片的时间、地理位置。或者,用户可以从关联图片中更快找到需要的图片,节省用户选择图片的时间。
在一种可能的实现方式中,该方法还包括:上传至少一张图片;若图片上传成功,电子设备显示第一提示,用于提示图片上传成功;若图片上传失败,电子设备显示第二提示,用于提示图片上传失败;第二提示包括图片格式不支持、图片大小超过第一阈值或者上传图片数量超过第二阈值中的一种或多种。这样,用户可以根据提示信息获知图片上传失败的原因,从而可以有针对性的解决图片上传失败的问题。
在一种可能的实现方式中,图片上传成功后,该方法还包括:更新上传成功的图片的标识信息,并通过第一提示向用户提示更新后的标识信息。这样,用户可以根据图片更新后的标识信息获知图片的使用情况,为用户提供了图片丰富的参考信息,有助于用户以后更简便地选出需要的图片。
在一种可能的实现方式中,该方法还包括:根据更新后的标识信息重新确定至少两张图片的缩略图或至少两个图片集合在目标相册界面的显示方式。这样,用户可以根据重新确定后的显示方式获知近期图片的使用情况,有助于用户更简便地选出需要的图片。
在一种可能的设计中,该至少两个应用程序属于同一种应用程序类型。这样,用户在第一应用程序的交互场景下选择图片的时候,可以从与第一应用程序同类型的应用程序对应的图片中选择,由于同一类型的应用程序的交互场景更加类似,用户从同类型的应用程序对应的图片中选择到所需图片的概率更大,可以提高用户体验。或者,该至少两个应用程序属于联合开发或联合注册或合并打包或合并部署或相互绑定的一组应用程序。这样一组应用程序的交互场景通常具有关联性(例如,联合开发的一组应用在验证用户身份信息时通常需要用户输入相同或相近的信息),如此用户从这样一组应用程序对应的图片中选择到所需图片的概率更大,可以提高用户体验。或者,该至少两个应用程序在预设时间段内执行了预设逻辑处理。这样,用户可以从更加合理的时间段内上传、编辑或下载过的图片中选择图片,有助于用户更加方便快捷的选出所需的图片,提高用户体验。
在一种可能的实现方式中,显示目标相册界面包括:控制第一界面对应的Activity启动Intent,在intent传递目标相册的通用资源标识符(uniform resource identifier,URI);根据目标相册的URI访问多媒体数据库,多媒体数据库存储至少两张携带不同标识信息的图 片的路径或至少两个携带不同标识信息的图片集合中每张图片的路径;根据至少两张携带不同标识信息的图片的路径获取至少两张携带不同标识信息的图片,或根据至少两个携带不同标识信息的图片集合中每张图片的路径获取至少两个携带不同标识信息的图片集合中的每张图片;对至少两张携带不同标识信息的图片进行缩略处理并显示,或者对至少两个携带不同标识信息的图片集合的封面图片进行缩略处理并显示。
在一种可能的实现方式中,该方法还包括:在至少两个应用程序的每个应用程序的交互场景中,将执行了图片上传、图片编辑或图片下载的逻辑处理的图片的路径写入多媒体数据库。
第二方面,本申请实施例提供一种电子设备,包括显示单元,用于在第一应用程序的交互场景下,显示第一界面,第一界面包括图片选择按钮;该显示单元还用于响应于用户用于触发图片选择按钮的第一操作,显示目标相册界面,目标相册界面包括:至少两张携带不同标识信息的图片的缩略图或至少两个携带不同标识信息的图片集合;标识信息是根据至少两个应用程序的交互场景生成的,标识信息包括应用程序的应用名称,交互场景的时间或者交互场景的次数中的至少一个。
在一种可能的实现方式中,交互场景包括图片上传、图片编辑或图片下载的场景。
在一种可能的实现方式中,标识信息还包括图片的内容分类、图片的地理位置、图片来源、图片用途、图片的收藏信息或图片的喜好信息中的至少一个。
在一种可能的实现方式中,在目标相册界面中,标识信息中包括第一应用程序的应用名称的图片或图片集合位于标识信息中包括其他应用程序的应用名称的图片或图片集合之前。
在一种可能的实现方式中,显示屏用于响应于用户用于触发图片选择按钮的第一操作,在第一界面弹出弹框,弹框包括目标相册按钮;响应于用户用于选择目标相册按钮的第二操作,显示目标相册界面。
在一种可能的实现方式中,显示屏还用于响应于用户在目标相册界面选中至少一张图片的第三操作,显示选中至少一张图片的时间、地理位置以及与至少一张图片关联的图片中的至少一种。
在一种可能的实现方式中,还包括处理单元,用于上传至少一张图片;显示单元还用于:若图片上传成功,显示第一提示,用于提示图片上传成功;若图片上传失败,显示第二提示,用于提示图片上传失败;第二提示包括图片格式不支持、图片大小超过第一阈值或者上传图片数量超过第二阈值中的一种或多种。
在一种可能的实现方式中,图片上传成功后,处理单元还用于更新上传成功的图片的标识信息,显示屏还用于通过第一提示向用户提示更新后的标识信息。
在一种可能的实现方式中,处理单元还用于根据更新后的标识信息重新确定至少两张图片的缩略图或至少两个图片集合在目标相册界面的显示方式。
在一种可能的实现方式中,至少两个应用程序属于同一种应用程序类型;或者,至少两个应用程序属于联合开发或联合注册或合并打包或合并部署或相互绑定的一组应用程序;或者,至少两个应用程序在预设时间段内执行了预设逻辑处理。
在一种可能的实现方式中,处理单元用于:控制第一界面对应的Activity启动Intent,在intent传递目标相册的URI;根据目标相册的URI访问多媒体数据库,多媒体数据库存 储至少两张携带不同标识信息的图片的路径或至少两个携带不同标识信息的图片集合中每张图片的路径;根据至少两张携带不同标识信息的图片的路径获取至少两张携带不同标识信息的图片,或根据至少两个携带不同标识信息的图片集合中每张图片的路径获取至少两个携带不同标识信息的图片集合中的每张图片;对至少两张携带不同标识信息的图片进行缩略处理并通过显示屏显示,或者对至少两个携带不同标识信息的图片集合的封面图片进行缩略处理并通过显示屏显示。
在一种可能的实现方式中,处理单元还用于在至少两个应用程序的每个应用程序的交互场景中,将执行了图片上传、图片编辑或图片下载的逻辑处理的图片的路径写入多媒体数据库。
第三方面,本申请实施例提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述第一方面提供的任意一种方法。
第四方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面提供的任意一种方法。
第五方面,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现上述第一方面提供的任意一种方法。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
第六方面,本申请实施例还提供了一种图片选择装置,该装置可以是处理设备、电子设备或芯片。该装置包括处理器,用于实现上述第一方面提供的任意一种方法。该装置还可以包括存储器,用于存储程序指令和数据,存储器可以是集成在该装置内的存储器,或设置在该装置外的片外存储器。该存储器与该处理器耦合,该处理器可以调用并执行该存储器中存储的程序指令,用于实现上述第一方面提供的任意一种方法。该装置还可以包括通信接口,该通信接口用于该装置与其它设备进行通信。
附图说明
图1为本申请实施例提供的一种电子设备的结构示意图;
图2为本申请实施例提供的一种选择图片的方法的流程示意图;
图3为本申请实施例提供的一种电子设备的显示示意图;
图4为本申请实施例提供的又一种电子设备的显示示意图;
图5为本申请实施例提供的再一种电子设备的显示示意图;
图6为本申请实施例提供的再一种电子设备的显示示意图;
图7为本申请实施例提供的再一种电子设备的显示示意图;
图8为本申请实施例提供的再一种电子设备的显示示意图;
图9为本申请实施例提供的再一种电子设备的显示示意图;
图10为本申请实施例提供的再一种电子设备的显示示意图;
图11为本申请实施例提供的再一种电子设备的显示示意图;
图12为本申请实施例提供的再一种电子设备的显示示意图;
图13为本申请实施例提供的再一种电子设备的显示示意图;
图14为本申请实施例提供的再一种电子设备的显示示意图;
图14A为本申请实施例提供的再一种电子设备的显示示意图;
图15为本申请实施例提供的再一种电子设备的显示示意图;
图16为本申请实施例提供的再一种电子设备的显示示意图;
图16A为本申请实施例提供的再一种电子设备的显示示意图;
图17为本申请实施例提供的再一种电子设备的显示示意图;
图18为本申请实施例提供的又一种电子设备的结构示意图;
图19为本申请实施例提供的一种芯片系统的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“至少一个”是指一个或多个,“至少两个”是指多个,“多个”是指两个或多于两个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
目前,用户需要在APP(下文也可以称为应用或应用程序)上传或编辑图片时,可以在系统相册(图库)中选择(查找)图片。但是,系统相册中可能存储几千张甚至上万张图片,在如此多的图片中查找用户所需图片会耗费很多不必要的时间,不够高效和便捷。因此,一些APP可以通过文件夹存储用户近期操作过的图片,当用户需要在当前APP再次选择图片时,可以从存储图片的文件夹中寻找图片,避免用户再次从系统相册的海量图片中选择图片。但是,用户仅能从当前应用近期操作过的图片中选择,选择范围小,且无法做到跨应用访问。例如,若用户近期在银行APP中上传了身份证照,当用户希望在支付宝APP中上传身份证照时,由于无法通过支付宝APP中访问银行APP的建立的用于存储图片的文件夹,用户只能从系统相册的海量图片中寻找身份证照。再例如,假设用户近期通过聊天应用更新了一组精心排版的图片,若用户希望在博客应用分享同样排版的照片,但由于无法在博客应用中访问聊天应用建立的用于存储图片的文件夹,用户只能再次从系统相册中选择,耗费很多不必要的时间,不够高效和便捷。
本申请实施例提供一种选择图片的方法,用户在第一应用程序的交互场景下选择图片时,可以显示目标相册界面,该目标相册界面包括至少两张携带不同标识信息的图片的缩略图或至少两个携带不同标识信息的图片集合,图片的标识信息或图片集合的标识信息是在至少两个应用程序的交互场景中生成的,交互场景包括图片上传、图片编辑或图片下载的场景。这样,用户可以跨应用选择图片(即在当前应用的交互场景访问在其他应用的交互场景中处理过的图片),可以使用户更快更有针对性的选择图片,无需从系统相册的海量图片中选择,节省用户选择图片的时间,从而可以提高用户体验。
示例性的,本申请实施例中的电子设备可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等设备,本申请实施例对该电子设备的具体形态不作特殊限制。
下面将结合附图对本申请实施例的实施方式进行详细描述。
请参考图1,为本申请实施例提供的一种电子设备100的结构示意图。如图1所示,电子设备100可以包括处理器410,外部存储器接口420,内部存储器421,通用串行总线 (universal serial bus,USB)接口430,充电管理模块440,电源管理模块441,电池442,天线1,天线2,移动通信模块450,无线通信模块460,音频模块470,扬声器470A,受话器470B,麦克风470C,耳机接口470D,传感器模块480,按键490,马达491,指示器492,摄像头493,显示屏494,以及用户标识模块(subscriber identification module,SIM)卡接口495等。其中,传感器模块480可以包括压力传感器480A,陀螺仪传感器480B,气压传感器480C,磁传感器480D,加速度传感器480E,距离传感器480F,接近光传感器480G,指纹传感器480H,温度传感器480J,触摸传感器480K,环境光传感器480L,骨传导传感器480M等。
可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器410可以包括一个或多个处理单元,例如:处理器410可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器410中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器410中的存储器为高速缓冲存储器。该存储器可以保存处理器410刚用过或循环使用的指令或数据。如果处理器410需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减小了处理器410的等待时间,因而提高了系统的效率。
在一些实施例中,处理器410可以包括一个或多个接口。接口可以包括集成电路(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)接口等。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块440用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块440可以通过USB接口430接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块440可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块440为电池442充电的同时,还可以通过电源管理模块441为电子设备供电。
电源管理模块441用于连接电池442,充电管理模块440与处理器410。电源管理模块441接收电池442和/或充电管理模块440的输入,为处理器410,内部存储器421,外部存储器,显示屏494,摄像头493,和无线通信模块460等供电。电源管理模块441还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块441也可以设置于处理器410中。在另一些实施例中,电源管理模块441和充电管理模块440也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块450,无线通信模块460,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块450可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块450可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块450可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块450还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块450的至少部分功能模块可以被设置于处理器410中。在一些实施例中,移动通信模块450的至少部分功能模块可以与处理器410的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器470A,受话器470B等)输出声音信号,或通过显示屏494显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器410,与移动通信模块450或其他功能模块设置在同一个器件中。
无线通信模块460可以提供应用在电子设备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)等无线通信的解决方案。无线通信模块460可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块460经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器410。无线通信模块460还可以从处理器410接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块450耦合,天线2和无线通信模块460耦合,使得电子设备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)。
电子设备100通过GPU,显示屏494,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏494和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器410可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏494用于显示图像,视频等。
显示屏494包括显示面板。显示面板可以采用液晶显示屏(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可以通过ISP,摄像头493,视频编解码器,GPU,显示屏494以及应用处理器等实现拍摄功能。
ISP用于处理摄像头493反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头493中。
摄像头493用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头493,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口420可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备 100的存储能力。外部存储卡通过外部存储器接口420与处理器410通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。本申请实施例中,外部存储卡(例如,Micro SD卡)可以用于存储系统相册中的全部图片,Micro SD卡通常是对用户开放的,用户可以自由删除和存取系统相册中的图片。
内部存储器421可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器410通过运行存储在内部存储器421的指令,从而执行电子设备100的各种功能应用以及数据处理。例如,在本申请实施例中,处理器410可以通过执行存储在内部存储器421中的指令,响应于用户在显示屏494的操作,在显示屏494显示对应的显示内容。内部存储器421可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器421可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS),只读存储器(read-only memory,ROM)等。本申请实施例中,目标相册界面中的图片的路径和标识信息(包括图片的标识信息或图片集合的标识信息)可以保存在内部存储器中,通过读取图片的路径,可以从外部存储器获取图片并加载到内部存储器中,并可以根据标识信息以相应的规则或方式显示图片或图片集合。
电子设备100可以通过音频模块470,扬声器470A,受话器470B,麦克风470C,耳机接口470D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块470用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块470还可以用于对音频信号编码和解码。在一些实施例中,音频模块470可以设置于处理器410中,或将音频模块470的部分功能模块设置于处理器410中。扬声器470A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器470A收听音乐,或收听免提通话。受话器470B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器470B靠近人耳接听语音。麦克风470C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息或需要通过语音助手触发电子设备100执行某些功能时,用户可以通过人嘴靠近麦克风470C发声,将声音信号输入到麦克风470C。电子设备100可以设置至少一个麦克风470C。在另一些实施例中,电子设备100可以设置两个麦克风470C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风470C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口470D用于连接有线耳机。耳机接口470D可以是USB接口430,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器480A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器480A可以设置于显示屏494。压力传感器480A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少 两个具有导电材料的平行板。当有力作用于压力传感器480A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏494,电子设备100根据压力传感器480A检测所述触摸操作强度。电子设备100也可以根据压力传感器480A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器480B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器480B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器480B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器480B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器480B还可以用于导航,体感游戏场景。本申请实施例中,电子设备100的显示屏494可折叠形成多个屏。每个屏中可以包括陀螺仪传感器480B,用于测量对应屏的朝向(即朝向的方向向量)。电子设备100根据测量得到的每个屏的朝向的角度变化,可以确定出相邻屏的夹角。
气压传感器480C用于测量气压。在一些实施例中,电子设备100通过气压传感器480C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器480D包括霍尔传感器。电子设备100可以利用磁传感器480D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器480D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器480E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。需要注意的是,在本申请实施例中,电子设备100的显示屏494可折叠形成多个屏。每个屏中可以包括加速度传感器480E,用于测量对应屏的朝向(即朝向的方向向量)。
距离传感器480F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器480F测距以实现快速对焦。
接近光传感器480G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器480G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器480G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器480L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏494亮度。环境光传感器480L也可用于拍照时自动调节白平衡。环境光传感器480L还可以与接近光传感器480G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器480H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器480J用于检测温度。在一些实施例中,电子设备100利用温度传感器480J检测的温度,执行温度处理策略。例如,当温度传感器480J上报的温度超过阈值,电子设备100执行降低位于温度传感器480J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池442加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池442的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器480K,也称“触控面板”。触摸传感器480K可以设置于显示屏494,由触摸传感器480K与显示屏494组成触摸屏,也称“触控屏”。触摸传感器480K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏494提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器480K也可以设置于电子设备100的表面,与显示屏494所处的位置不同。
骨传导传感器480M可以获取振动信号。在一些实施例中,骨传导传感器480M可以获取人体声部振动骨块的振动信号。骨传导传感器480M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器480M也可以设置于耳机中,结合成骨传导耳机。音频模块470可以基于所述骨传导传感器480M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器480M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键490包括开机键,音量键等。按键490可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达491可以产生振动提示。马达491可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏494不同区域的触摸操作,马达491也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器492可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口495用于连接SIM卡。SIM卡可以通过插入SIM卡接口495,或从SIM卡接口495拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口495可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口495可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口495也可以兼容不同类型的SIM卡。SIM卡接口495也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
以下实施例中的方法均可以在具有上述硬件结构的电子设备100中实现。
为了便于理解,以下结合附图对本申请实施例提供的选择图片的方法进行具体介绍。
如图2所示,本申请实施例提供一种选择图片的方法,以电子设备为手机为例进行说明,包括:
201、在第一应用程序的交互场景下,手机显示第一界面,第一界面包括图片选择按钮。
其中,交互场景可以包括图片上传、图片编辑(美化和/或裁剪等)或图片下载等交互场景。在图片上传的交互场景中,可以对用户选择的图片执行图片上传的逻辑处理。在图片编辑的交互场景中,可以对用户选择的图片执行图片编辑的逻辑处理。在图片下载的交互场景中,可以执行图片下载的逻辑处理。其中,交互场景可以是指应用记录数据或操作记录数据。
其中,第一界面可以是各种能够上传或编辑图片的应用(例如,聊天应用、博客应用、云盘应用、游戏应用、理财应用、银行应用等)的一个界面,该界面可以包括图片选择按钮,图片选择按钮的功能是用于进行图片选择。当然,该图片选择按钮也可以是图片发送按钮、文件选择按钮、图片分享按钮、图片上传按钮、图片编辑按钮等可以调用出目标相册界面的按钮或控件,本申请不做限定。
示例性的,如图3所示,用户可以在界面301上点击手机的理财APP的图标302,当手机检测到用户点击界面301上的理财APP的图标302的操作后,可以启动理财APP。用户初次登陆理财APP时,需要进行个人信息登记,如图4中的(a)所示,用户可以在个人信息登记界面401(即第一界面)登记个人信息,例如姓名、年龄等,用户还可以通过图片选择按钮402选择图片,例如用户本人的身份证正反面的图片。
可选的,用户可以通过APP(例如,浏览器APP)打开网页或小程序界面(H5页面),在网页或H5页面选择和上传图片。即,第一界面既可以是应用程序界面,也可以是网页界面或小程序界面,本申请不做限定。
202、手机响应于用户用于触发图片选择按钮的第一操作,显示目标相册界面。
手机响应于用户用于触发图片选择按钮的第一操作,可以直接显示目标相册界面。或者,手机显示目标相册界面之前,可以在第一界面弹出弹框,弹框包括目标相册按钮,目标相册按钮是触发打开目标相册的功能按钮。手机响应于用户用于选择目标相册按钮的第二操作,在显示屏显示目标相册界面。其中,对目标相册按钮的第二操作可以包括点击操作、滑动操作、长按操作等。其中,点击操作可以包括单击操作、连击操作等,本申请不做限定。可选的,弹框还包括系统相册按钮和/或拍照按钮。
举例来说,如图4中的(a)所示,用户可以点击图片选择按钮402,响应于用户点击图片选择按钮402的操作,如图4中的(b)所示,手机可以弹出弹框(对话框)403,弹框403包括目标相册按钮404、系统相册按钮405和拍照按钮406。其中,系统相册中包括手机内存中存储的各种图片,例如通过摄像头拍摄的照片,下载的图片以及截屏得到的图片等等。目标相册中包括在至少两个应用程序中上传、编辑或下载过的图片,可以认为目标相册是系统相册的子相册。可以理解的是,本申请实施例中各相册的名称(例如,系统相册,目标相册)仅仅是一个示例,系统相册也可以称为普通相册、原生相册、所有图片等等,目标相册也可以称为历史上传相册,历史记录相册,历史下载相册等等,本申请不做限定。
若用户选择系统相册按钮405,用户可以在系统图库中选择图片。若用户选择拍照按 钮406,手机可以打开摄像头,从当前应用(例如,理财APP)跳转到拍照应用,用户可以直接拍摄或扫描身份证正反面,拍摄完毕后可以从拍照应用返回理财应用。
若用户选择目标相册按钮404,手机可以显示目标相册界面,目标相册界面包括至少两张携带不同标识信息的图片的缩略图或至少两个携带不同标识信息的图片集合。
其中,至少两张图片的标识信息或至少两个图片集合的标识信息是根据至少两个应用程序的交互场景生成的,即图片或图片集合的标识信息是根据交互场景生成的。该至少两个应用程序的每个应用程序的交互场景可以包括图片上传、图片编辑或图片下载等交互场景,在相应的交互场景中,可以执行相应的逻辑处理,参考步骤201的相关描述。在相应的交互场景中,手机可以为被执行过上传、编辑或下载等逻辑处理的图片生成标识信息。
其中,标识信息可以包括应用程序的应用名称,交互场景的时间或者交互场景的次数中的至少一个。以第一图片为例,第一图片是至少两张不同标识的图片中的一张,第一图片的标识信息可以包括第一图片被执行逻辑处理的应用程序的应用名称,在相应的交互场景中被执行相应的逻辑处理的时间(交互场景的时间)或者在交互场景中被执行逻辑处理的次数(交互场景的次数)中的至少一个。其中,图片被执行逻辑处理的次数可以包括该图片在所有应用程序的交互场景中被执行逻辑处理的次数(例如,该图片在聊天应用中上传过2次,在修图应用中编辑过1次,在博客应用中上传过1次,则该图片被执行逻辑处理的次数共4次),或者包括该图片分别在各个应用程序的交互场景中被执行逻辑处理的次数,或者包括该图片在同一个应用程序的各个交互场景中被执行相应逻辑处理的次数(例如,该图片在聊天应用中上传过2次,编辑过1次)。
第一图片集合的标识信息包括第一图片集合中的全部图片被执行逻辑处理的应用程序的应用名称,在交互场景中被执行逻辑处理的时间或者在交互场景中被执行逻辑处理的次数中的至少一个。其中,第一图片集合可以是至少两个不同标识的图片集合中的一个。
另外,至少两张携带不同标识信息的图片的缩略图(或图片集合)可以包括不携带任何标识信息的图片的缩略图(或图片集合)和携带标识信息的图片的缩略图(或图片集合),也就是说,可以认为不携带任何标识信息是携带了一种特殊的标识信息,或者说携带了一种为空的标识信息。
手机可以根据标识信息在目标相册界面显示图片的缩略图或图片集合。例如,在一些实施例中,手机可以根据应用名称在显示屏显示一张或多张图片的缩略图,或者一个或多个图片集合。
以手机显示图片集合为例,如图5所示,手机可以显示目标相册界面501。在目标相册界面501中,手机可以分别显示聊天应用、博客应用、游戏应用、支付应用、理财应用和管理应用等应用程序对应的图片集合,每个图片集合对应的应用名称即该图片集合携带的标识信息。其中,每个应用程序对应的封面图片可以是用户在该应用程序最晚或最早上传/编辑/下载的一张图片。
这样,用户可以跨应用选择待上传的图片(即在当前应用访问其他应用处理过的图片),无需从系统相册的海量图片中选择,可以使用户更快更有针对性的选择图片,节省用户选择图片的时间,从而可以提高用户体验。
可选的,手机还可以显示每个图片集合中图片的数量。如图5所示,在聊天应用的交互场景中执行过相应逻辑处理(包括上传、编辑或下载等)的图片的数量为4448,在博客 应用的交互场景中执行过相应逻辑处理的图片的数量为52,在游戏应用的交互场景中执行过相应逻辑处理的图片的数量为75,在支付应用的交互场景中执行过相应逻辑处理的图片的数量为153,在理财应用的交互场景中执行过相应逻辑处理的图片的数量为23,在管理应用的交互场景中执行过相应逻辑处理的图片的数量为15。
可选的,手机若根据应用名称显示图片集合,当用户在一个应用程序对应的图片集合中选择图片时,还可以根据图片在该应用程序的交互场景中被执行逻辑处理的时间先后顺序查看图片;或者,根据图片在该应用程序的交互场景中被执行逻辑处理的次数查看图片。
在一些实施例中,手机可以根据交互场景的时间显示图片的缩略图或者图片集合。例如,手机可以根据图片在交互场景中被执行逻辑处理的时间(例如,上传时间)的先后顺序在显示屏显示一张或多张图片的缩略图,或者一个或多个图片集合。例如,手机可以根据图片的上传时间的先后顺序在显示屏显示一张或多张图片的缩略图,或者一个或多个图片集合。或者,手机可以不区分逻辑处理的类型,只要一张图片在一个应用程序的交互场景中被逻辑处理(例如,上传、编辑或下载)过,手机可以为该图片标识相应的处理时间,并根据该处理时间显示该图片。其中,图片集合中的每张图片被执行逻辑处理的时间相同(例如,日期相同,即同一天被执行逻辑处理)。
示例性的,如图6所示,手机可以显示目标相册界面601。在目标相册界面601中,手机可以从最近一次被执行过逻辑处理的图片的处理时间(例如,9月13日)开始,显示不同日期执行过逻辑处理的多张图片的缩略图,例如手机可以分别显示9月13日、9月6日、8月21日等日期执行过逻辑处理的多张图片的缩略图。用户可以通过点击日期右边的控件查看该日期上传过的更多图片,例如,用户可以点击控件602,查看8月21日上传过的更多图片。可选的,手机还可以显示更详细的时间信息,例如年、上午、下午、小时、分或秒等信息,在此不做限定。
其中,每个日期对应的图片集合可以包括一个或多个应用程序执行过逻辑处理的图片。例如,9月13日对应的图片集合可以包括在聊天应用中上传(发表)过的图片以及在修图应用中编辑过的图片。又例如,9月6日对应的图片集合可以仅包括在云盘应用上传过的图片。可选的,用户可以进一步查看每张图片对应的应用名称。
这样,用户可以根据图片被执行逻辑处理的时间的先后顺序跨应用选择待上传的图片(即在当前应用访问其他应用处理过的图片),无需从系统相册的海量图片中选择,可以节省用户选择图片的时间,从而可以提高用户体验。
可选的,若某张图片分别在不同时间被执行过逻辑处理(可以是在同一个应用程序中执行过逻辑处理,或者可以是在不同应用执行过逻辑处理),例如,分别在9月13日和9月6日上传过,可以仅将该图片放入最近一次上传的日期(9月13日)对应的图片集合中,避免重复显示相同的图片,节省手机的处理功耗。或者,可以将该图片分别放入不同日期(9月13日和9月6日)对应的图片集合中,以提示用户该图片多次上传过。
在一些实施例中,手机可以根据交互场景的次数(图片在交互场景中被执行逻辑处理的次数)在显示屏显示一张或多张图片的缩略图,或者一个或多个图片集合。例如,手机可以根据图片的上传次数/编辑次数/下载次数在显示屏显示图片或图片集合。或者,手机可以不区分逻辑处理的类型,只要一张图片在一个应用程序的交互场景中被逻辑处理(例如,上传、编辑或下载)过,手机可以为该图片标识相应的处理次数,并根据该处理次数 显示该图片。
示例性的,如图7中的(a)所示,手机可以显示目标相册界面701。目标相册界面701可以从上传次数最多的图片(例如,图片702,上传过10次)开始,根据上传次数由多到少显示不同图片的缩略图。或者,如图7中的(b)所示,目标相册界面703可以从上传次数最多的图片开始,根据上传次数由多到少显示不同图片的缩略图。并且,上传次数相同的图片可以放入同一个图片集合,例如,上传次数为2次的图片可以在图片集合704中显示,上传次数为1次的图片可以在图片集合705中显示。需要说明的是,一个图片集合也可以仅包括一张图片,例如可以认为图片702是上传次数为10次的图片集合中的唯一一张图片。
这样,用户可以根据图片被执行逻辑处理的次数跨应用选择待上传的图片,例如,上传次数多的图片再次上传的可能性更大,用户可以更快更有针对性的选择图片,节省用户选择图片的时间,从而可以提高用户体验。
在一种可能的设计中,标识信息还包括图片的内容分类、图片的地理位置、图片来源、图片用途、图片的收藏信息或图片的喜好信息中的至少一个。其中,图片用途包括用于更换图像,用于发朋友圈、用于校验个人身份信息,用于上传到云端保存等等。图片的收藏信息包括图片被收藏时对应的应用程序的应用名称、时间、地点等信息。图片的喜好信息可以是根据图片被收藏的次数、被上传的次数、被下载的次数或被编辑的次数确定的,满足预设条件的图片可以认为是用户喜欢的图片,预设条件例如可以是被收藏过2次或被编辑过3次。
示例性的,手机若根据应用名称显示图片或图片集合,当用户在一个应用程序对应的图片集合中选择图片时,手机还可以接收用户的相应操作(第四操作),第四操作用于根据图片的内容分类查看该应用程序执行过逻辑处理的图片;或者,第四操作用于根据图片的地理位置查看该应用程序执行过逻辑处理的图片;或者,第四操作用于根据图片来源查看该应用程序执行过逻辑处理的图片。或者,第四操作用于根据图片用途查看该应用程序执行过逻辑处理的图片。
示例性的,如图5所示,响应于用户点击图片502的操作,如图8中的(a)所示,手机可以显示聊天应用对应的界面1101,响应于用户点击控件1102的操作,如图8中的(b)所示,手机可以弹出弹框1103,该弹框1103中包括多个功能条目,例如上传时间、上传次数、内容分类、地理位置、来源和上传用途等。
示例性的,响应于用户点击上传用途条目的操作,如图9所示,用户可以显示上传用途对应的界面1201,上传用途可以包括“我的朋友圈”(即用户在朋友圈发布过的图片)、“我的头像”(用户使用过的聊天头像)和“我的朋友圈封面”(用户使用过的朋友圈封面/主题)等等,用户可以从不同上传用途对应的图片中选择图片,方便用户选择图片。
示例性的,响应于用户点击内容分类条目的操作,如图10中的(a)所示,手机可以显示内容分类界面801,内容分类界面801可以根据内容分类显示图片。其中,图片的内容分类可以包括证件图片、人物图片、风景图片、美食图片、萌宠图片、家居图片、建筑图片、汽车图片、文件图片中的至少一种(图10中仅示出部分内容分类)。其中,证件图片可以包括身份证正反面图片、银行卡正反面图片、进京证图片、车牌号图片等,文件图片可以包括各类合同签约照、书籍封面图片或内容图片、文档(例如,word文档、pdf文 档)截图等等。
可选的,手机还可以显示每种内容分类下的图片的数量。如图10中的(a)所示,证件类型的图片的数量为12,风景类型的图片的数量为52,人物类型的图片的数量为85,美食类型的图片的数量为75,萌宠类型的图片的数量为78,汽车类型的图片的数量为45。
可选的,证件、风景、人物、美食、萌宠和汽车等内容分类还可以包括子类型,例如,证件类型的图片还可以包括身份证图片、银行卡图片、进京证图片、车牌号图片等子类型,风景类型的图片还可以包括山川、河流、草地、天空等子类型,人物类型的图片可以根据不同的人脸信息分为不同的子类型(一种人脸信息可以对应一个子类型),美食类型的图片可以包括火锅、蛋糕、海鲜等等,萌宠类型的图片可以包括狗、猫、兔子、乌龟、鸟等等,汽车类型的图片可以包括轿车、跑车、面包车和越野车等等。用户可以通过点击相应类型的图片查看该类型图片的子类型,例如,用户可以点击风景类型的图片802,响应于用户点击图片802的操作,如图10中的(b)所示,手机可以显示风景界面803。风景界面803可以包括山川、河流、草地、天空等子类型的图片。可选的,手机还可以显示各种子类型的图片的数量,例如山川子类型的图片的数量为12,河流子类型的图片的数量为5,草地子类型的图片的数量为3,天空子类型的图片的数量为8。
这样,用户可以根据图片的内容分类更直观地选择待上传的图片,节省用户选择图片的时间,从而可以提高用户体验。
示例性的,响应于用户点击地理位置条目的操作,如图11所示,手机可以显示地理位置界面901,地理位置界面901可以包括在西安市雁塔区拍摄的图片、在西安市长安区拍摄的图片、西安市碑林区拍摄的图片等。用户可以通过点击地理位置右边的控件查看该地理位置对应的更多图片,例如,用户可以点击控件902,查看西安市长安区对应的更多图片。
这样,若用户需要上传某一地理位置的图片,用户可以更快更有针对性从目标相册选择图片,节省用户选择图片的时间,从而可以提高用户体验。
示例性的,响应于用户点击来源条目的操作,手机可以根据图片来源在显示屏显示图片,其中,图片来源可以包括来源于相机拍摄、来源于下载、来源于截图/截屏或来源于本地应用(例如通过手机上的本地修图软件处理过图片)。如图12所示,来源界面1001可以包括相机拍摄的图片、下载的图片、截屏(截图)得到的图片等。用户可以通过点击图片来源右边的控件查看该图片来源对应的更多图片,例如,用户可以点击控件1002,查看下载的更多图片。
这样,若用户希望操作特定来源的图片(例如,希望上传相机拍摄的图片),用户可以根据图片来源更快更有针对性的选择待上传的图片,节省用户选择图片的时间,从而可以提高用户体验。
在一种可能的设计中,若根据应用名称在显示屏显示图片或图片集合,在目标相册界面中,标识信息中包括第一应用程序的应用名称的图片或图片集合位于标识信息中包括其他应用程序的应用名称的图片或图片集合之前。可以理解的是,当用户在第一应用程序选择图片时,希望从第一应用程序处理过的图片中查找的机率较大,将第一应用程序的应用名称显示在首位,方便用户优先在第一应用程序处理过的图片中查找待上传的图片,可以提高用户的使用体验。
举例来说,假设的第一应用程序为理财应用,如图4中的(b)所示,响应于用户在理财应用的个人信息登记界面401上显示的目标相册按钮404的操作,如图13所示,理财应用的应用名称位于其他应用程序的应用名称(例如,聊天应用、博客应用等)之前,方便用户优先在理财应用上传过的图片中查找待上传的图片,可以提高用户的使用体验。
在一种可能的设计中,若根据应用名称在显示屏显示图片集合,手机可以接收用户用于移动至少两个应用程序的应用名称的第五操作;响应于第五操作,根据用户移动后的应用名称的顺序在显示屏显示图片集合。后续用户在选择图片时,手机可以根据用户移动后的应用名称的顺序显示图片集合。手机可以将应用名称的排列信息添加到对应的标识信息中,例如,图片1携带的标识信息是A应用的应用名称,A应用移动后的排列顺序是排在第一个,手机可以将该顺序信息添加到图片1的标识信息中。这样,用户可以根据自己的喜好或需求设计应用程序名称的排序方式(即应用程序对应的图片或图片集合的排序方式),可以提高用户的使用体验。
在一种可能的设计中,目标相册界面中的图片或图片集合对应的至少两个应用程序(在该至少两个应用程序的交互场景中,可以生成目标相册界面中包括的图片或图片集合的标识信息)属于同一种应用程序类型。示例性的,该至少两个应用程序可以同属于购物类应用程序、资讯类应用程序、理财类应用程序、游戏类应用程序等。这样,用户在第一应用程序的交互场景下选择图片的时候,可以从与第一应用程序同类型的应用程序对应的图片中选择,由于同一类型的应用程序的交互场景更加类似,用户从同类型的应用程序对应的图片中选择到所需图片的概率更大,可以提高用户体验。或者,该至少两个应用程序属于联合开发或联合注册或合并打包或合并部署或相互绑定的一组应用程序。这样一组应用程序的交互场景通常具有关联性(例如,联合开发的一组应用在验证用户身份信息时通常需要用户输入相同或相近的信息),如此用户从这样一组应用程序对应的图片中选择到所需图片的概率更大,可以提高用户体验。或者,该至少两个应用程序在预设时间段内执行了预设逻辑处理。其中,该预设时间段可以是指用户在第一应用的交互场景中选择图片的时间点之前的一段时间(例如,一周,一月,三个月等)。例如,假设该预设时间段为用户进行图片选择操作的时间点之前的一个月,在这个月里,用户在应用1-应用5中上传、编辑或下载过的图片,则该至少两个应用程序包括应用1-应用5。这样,用户可以从更加合理的时间段内上传、编辑或下载过的图片中选择图片,有助于用户更加方便快捷的选出所需的图片,提高用户体验。
203、手机接收用户用于在目标相册界面选中至少一张图片的操作。
用户可以在目标相册界面选择一张或多张图片。例如,如图14中的(a)所示,用户可以在界面1101中选择一张图片(例如,图片1103,用户可以长按图片1103选中该图片)。又例如,如图15中的(a)所示,用户可以在界面1101中选择多张图片(例如,图片1103,图片1111和图片1112)。
手机响应于用户在目标相册界面选中至少一张图片的操作(第三操作),显示选中至少一张图片的时间、地理位置以及与至少一张图片关联的图片中的至少一种。其中,与至少一张图片关联的图片可以是同一时间上传或编辑过,或者和所选中的图片相似度超过预设阈值的图片。举例来说,如图14A,当用户选中图片1103时,可以显示提示框1201,以提示用户当前选中图片1103的时间、地点、以及图片1103的关联图片,用户可以从图 片1103的关联图片中更快找到需要的图片,节省用户选择图片的时间。
可选的,手机可以接收用户用于编辑至少一张图片中的一张或多张图片的操作,例如裁剪、涂鸦或添加滤镜等,响应于上述编辑操作,手机可以显示该一张或多张图片的编辑结果。
示例性的,如图14中的(a)所示,用户可以在界面1101中选择图片1103,并点击完成按钮1104,响应于用户点击完成按钮1104的操作,如图14中的(b)所示,手机可以显示界面1101a,界面1101a包括待上传的图片1103,以及上传按钮1105和用于添加更多待上传图片的控件1106。用户可以在界面1101a点击或长按图片1103,响应于用户点击或长按图片1103的操作,如图14中的(c)所示,手机可以显示界面1101b,界面1101b可以显示图片1103(缩略图)对应的原图,即图片1103a,还可以包括一些操作选项,包括裁剪、涂鸦、滤镜、贴纸和文字等。若用户选择裁剪选项1107,响应于用户点击裁剪选项1107的操作,如图14中的(d)所示,手机可以显示界面1101c,用户可以在界面1101c对图片1103a进行裁剪,界面1101c还可以包括用于调整图片宽高比的控件(例如“自由”、“1:1”和“3:4”,默认图片的宽高比为自由,即按照原图的宽高比在虚线框1108显示图片1103a)以及用于编辑图片的镜像控件和旋转控件。如图14中的(e)所示,用户可以沿着轨迹1109对图片1103a进行裁剪,而后,用户可以点击控件1110,确定裁剪完成,响应于用户点击控件1110的操作,如图14中的(f)所示,手机可以返回界面1101a,并在界面1101a显示裁剪后的图片的缩略图1103b。用户可以点击上传按钮1105上传图片1103b。
可选的,手机可以接收用户用于对至少一张图片进行排序的操作,响应于该排序操作,显示至少一张图片排序结果。
示例性的,如图15中的(a)所示,若用户在界面1101中选择了多张图片,分别为图片1103、图片1111和图片1112,并点击完成按钮1104,响应于用户点击完成按钮1104的操作,如图15中的(b)所示,手机可以显示界面1101a,界面1101a包括待上传的图片1103、图片1111和图片1112,以及上传按钮1105和用于添加更多待上传图片的控件1106。如图15中的(b)和(c)所示,用户可以沿着轨迹1113拖动图片1112,用户的拖动操作结束后(例如,用户放开手指后),如图15中的(d)所示,图片1103的位置和图片1112的位置互换,即图片1103和图片1112的顺序改变。
可选的,上述方法还可以包括步骤204:
204、向服务器上传用户选中的至少一张图片。
手机可以根据用户选择(选中)的至少一张图片(待上传图片)的路径获取存储在磁盘中的待上传图片,将待上传图片导入内存中,并将导入至内存中的图片上传至当前应用程序(例如,理财APP)对应的服务器。而后可以删除存储在内存中的待上传图片,以节省内存空间。
可选的,手机在上传至少一张图片的过程中,可以显示上传进度提示。如图16所示,若用户选择上传图片1103、图片1111和图片1112,响应于用户点击上传按钮1105,手机向当前应用(例如,理财APP)对应的服务器上传上述三张图片,并可以通过进度条1114显示图片的上传进度。
若图片上传成功,电子设备可以显示第一提示,用于提示图片上传成功;若图片上传 失败,电子设备显示第二提示,用于提示图片上传失败。其中,第二提示包括图片格式不支持、图片大小超过第一阈值或者上传图片数量超过第二阈值中的一种或多种。这样,用户可以根据提示信息获知图片上传失败的原因,从而可以有针对性的解决图片上传失败的问题。
图片上传成功后,手机可以更新上传成功的图片的标识信息,并通过第一提示向所述用户提示更新后的标识信息。这样,用户可以根据图片更新后的标识信息获知图片的使用情况,为用户提供了图片丰富的参考信息,有助于用户以后更简便地选出需要的图片。例如,手机可以提示图片已第n次上传成功,n可以表示本图片在当前应用程序成功上传的次数,或者n可以表示本图片在全部应用程序成功上传的次数。如图16A所示,手机可以通过提示框1601分别显示上传成功的多张图片分别成功上传的次数,用户可以确定图片1112已第3次上传成功,图片1111已第2次上传成功,图片1103已第4次上传成功。或者,手机可以向用户提示图片已在X个应用程序中上传成功。手机还可以显示具体的应用名称,例如,手机可以向用户提示本图片已在聊天应用、博客应用、理财应用......等X个应用程序中上传成功。或者,手机可以显示本图片于×年×月×日×时×分上传成功等。其中,X、n分别为大于等于1的整数。
进一步的,图片在交互场景中被处理后,例如在图片上传场景中被上传成功后,或者在图片编辑场景中编辑完成后,手机可以根据更新后的标识信息重新确定至少两张图片的缩略图或至少两个图片集合在目标相册界面的显示方式。这样,用户可以根据重新确定后的显示方式获知近期图片的使用情况,有助于用户更简便地选出需要的图片。例如,手机可以根据图片更新后的上传次数或编辑次数重新对图片或图片集合进行排序并显示,手机还可以通过文字、符号、动画等提示图片的使用频率(例如,上传次数、编辑次数等)。手机还可以叠加不同的标识信息提示图片的使用情况(例如,不仅包括上传次数、编辑次数等标识信息,还可以包括应用名称,例如在聊天应用中上传2次,在修图应用中编辑3次等),或者手机可以根据图片的使用情况变更标识信息,例如,根据在最近的交互场景中生成的标识信息替换在时间较久的交互场景中生成的标识信息。
基于本申请实施例提供的方法,用户在第一应用程序的交互场景下,从目标相册界面中选择图片时,由于目标相册界面包括至少两张携带不同标识信息的图片的缩略图,或至少两个携带不同标识信息的图片集合,上述标识信息是根据至少两个应用程序的交互场景生成的,这样用户可以跨应用选择图片,不限定于仅从本应用的历史记录中选择图片,也无需从系统相册的海量图片中选择,使用户能够更快更有针对性的选择图片,节省用户选择图片的时间,从而可以提高用户体验。
图17是本发明实施例的电子设备100的软件结构框图。电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图17所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN, 蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图17所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
本申请实施例中,内容提供器可以调用多媒体数据库(MediaStore),以获取目标相册的图片信息,以便根据目标相册的图片信息显示目标相册界面。其中,目标相册中的图片可以包括安装在手机上的至少两个应用程序中每个应用程序,在执行图片上传、编辑或下载等操作的过程中从多媒体数据库读取和/或向多媒体数据库写入的图片。具体的,可以在MediaStore中的MediaStore.Images.Media(用于定义图片信息的类)中扩展一个MediaStore.Images.Media.HISITORY_EXTERNAL_CONTENT_URI方法,该方法可以定义目标相册的图片信息,相当于在MediaStore扩展了一个用于管理目标相册的子数据库。目标相册对应一个URI,通过向MediaStore传递目标相册的URI,可以从MediaStore查询到目标相册的图片信息。
需要说明的是,用户在应用程序中选择图片时,若用户从系统相册中选择图片,当前Activity(当前应用的图片选择界面对应的Activity)可以通过其对应的xml配置文件为目标相册提供一个获取照片信息的权限,由用户选择是否开启,若用户选择开启该权限,可以通过手机系统相册中编写专用传数据函数将用户选定图片的URI等信息传递给MediaStore,以便更新目标相册的图片信息。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架 层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合图片上传场景,示例性说明电子设备100的软件工作流程。
示例性的,如图4中的(a)所示,用户点击图片选择按钮402时,界面401中可以弹出弹框403,若用户点击目标相册按钮404,响应于用户用于选择目标相册按钮404的操作(第二操作),界面401对应的Activity可以通过Intent获取目标相册中的图片信息。具体的,当前界面(界面401)对应的activity可以通过intent调用框架层的ContentProvider,通过ContentProvider查询系统库里的多媒体数据库(MediaStore),通过向MediaStore传递目标相册的URI(例如,MediaStore.Images.Media.HISITORY_EXTERNAL_CONTENT_U RI),可以从MediaStore查询到各个应用上传过的图片的路径和标识信息,然后根据各个应用上传过的图片的路径把图片加载到内存,最后,根据标识信息将内存中的图片显示出来,例如,可以通过Gridview控件将内存中的图片显示出来。
其中,Intent中可以包括如下参数中的至少一种:目标相册的URI,当前应用(例如,理财应用)的包名,当前应用授权使用目标相册的权限参数,以及用于请求目标相册中的图片的上传时间、上传次数、内容分类、地理位置的参数。
若用户在目标相册界面没找到需要的图片,如图4中的(b)所示,用户可以点击系统相册按钮405,以便在系统相册界面中选择图片,当前界面(界面401)对应的activity可以通过向MediaStore传递系统相册的URI(例如,MediaStore.Images.Media.EXTERNAL_CONTENT_URI),以便用户可以从系统相册界面中选择图片,当前activity还可以将选定图片的URI(例如,URI=content://media/external/images/media/1393)和当前应用等信息传递给MediaStore中用于管理目标相册的子数据库,以便更新(增加)目标相册中的图片信息。
另外,用户在应用中打开网页(网页通常为Webview控件类型)并通过该网页上传图片时,Webview控件可以向当前应用提供一个回调方法,当前应用可以将用户选中的图片的URI回传到Webview控件,从而可以在网页上传用户选中的图片。
本申请另一些实施例还提供一种选择图片的装置,该装置可以应用于上述电子设备。该装置用于执行上述方法实施例中手机执行的各个功能或者步骤。
在采用对应各个功能划分各个功能模块的情况下,图18示出了上述实施例中所涉及的电子设备18的一种可能的结构示意图,该电子设备用于实现以上各个方法实施例中记 载的方法,其具体包括:显示单元1801和处理单元1802。
其中,显示单元1801,用于支持电子设备执行图2所示的过程201和202;处理单元1802,用于支持电子设备执行图2所示的过程203和204。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本申请实施例还提供一种芯片系统,如图19所示,该芯片系统包括至少一个处理器1901和至少一个接口电路1902。处理器1901和接口电路1902可通过线路互联。例如,接口电路1902可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路1902可用于向其它装置(例如处理器1901)发送信号。示例性的,接口电路1902可读取存储器中存储的指令,并将该指令发送给处理器1901。当所述指令被处理器1901执行时,可使得电子设备执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。
本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中手机执行的各个功能或者步骤。
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机执行的各个功能或者步骤。
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (16)

  1. 一种选择图片的方法,其特征在于,应用于电子设备,包括:
    在第一应用程序的交互场景下,显示第一界面,所述第一界面包括图片选择按钮;
    响应于用户用于触发所述图片选择按钮的第一操作,显示目标相册界面,所述目标相册界面包括:
    至少两张携带不同标识信息的图片的缩略图;或
    至少两个携带不同标识信息的图片集合;
    所述标识信息是根据至少两个应用程序的交互场景生成的,所述标识信息包括应用程序的应用名称,交互场景的时间或者交互场景的次数中的至少一个。
  2. 根据权利要求1所述的选择图片的方法,其特征在于,
    所述交互场景包括图片上传、图片编辑或图片下载的场景。
  3. 根据权利要求1或2所述的选择图片的方法,其特征在于,
    所述标识信息还包括图片的内容分类、图片的地理位置、图片来源、图片用途、图片的收藏信息或图片的喜好信息中的至少一个。
  4. 根据权利要求1-3任一项所述的选择图片的方法,其特征在于,
    在所述目标相册界面中,标识信息中包括所述第一应用程序的应用名称的图片或图片集合位于标识信息中包括其他应用程序的应用名称的图片或图片集合之前。
  5. 根据权利要求1-4任一项所述的选择图片的方法,其特征在于,所述响应于用户用于触发图片选择按钮的第一操作,显示目标相册界面包括:
    响应于用户用于触发所述图片选择按钮的第一操作,在所述第一界面弹出弹框,所述弹框包括目标相册按钮;
    响应于所述用户用于选择所述目标相册按钮的第二操作,显示所述目标相册界面。
  6. 如权利要求1-5任一项所述的选择图片的方法,其特征在于,所述方法还包括:
    响应于所述用户在所述目标相册界面选中至少一张图片的第三操作,显示选中所述至少一张图片的时间、地理位置以及与所述至少一张图片关联的图片中的至少一种。
  7. 根据权利要求6所述的选择图片的方法,其特征在于,所述方法还包括:
    上传所述至少一张图片;
    若图片上传成功,所述电子设备显示第一提示,用于提示图片上传成功;
    若图片上传失败,所述电子设备显示第二提示,用于提示图片上传失败;
    所述第二提示包括图片格式不支持、图片大小超过第一阈值或者上传图片数量超过第二阈值中的一种或多种。
  8. 根据权利要求7所述的选择图片的方法,其特征在于,图片上传成功后,所述方法还包括:
    更新所述上传成功的图片的标识信息,并通过所述第一提示向所述用户提示更新后的标识信息。
  9. 根据权利要求8所述的选择图片的方法,其特征在于,所述方法还包括:
    根据更新后的标识信息重新确定所述至少两张图片的缩略图或所述至少两个图片集合在所述目标相册界面的显示方式。
  10. 根据权利要求1-9任一项所述的选择图片的方法,其特征在于,
    所述至少两个应用程序属于同一种应用程序类型;或者
    所述至少两个应用程序属于联合开发或联合注册或合并打包或合并部署或相互绑定的一组应用程序;或者
    所述至少两个应用程序在预设时间段内执行了预设逻辑处理。
  11. 根据权利要求1-10任一项所述的选择图片的方法,其特征在于,显示目标相册界面包括:
    控制所述第一界面对应的Activity启动Intent,在所述Intent传递目标相册的通用资源标志符URI;
    根据所述目标相册的URI访问多媒体数据库,所述多媒体数据库存储至少两张携带不同标识信息的图片的路径或至少两个携带不同标识信息的图片集合中每张图片的路径;
    根据所述至少两张携带不同标识信息的图片的路径获取所述至少两张携带不同标识信息的图片,或根据所述至少两个携带不同标识信息的图片集合中每张图片的路径获取所述至少两个携带不同标识信息的图片集合中的每张图片;
    对所述至少两张携带不同标识信息的图片进行缩略处理并显示,或者对所述至少两个携带不同标识信息的图片集合的封面图片进行缩略处理并显示。
  12. 根据权利要求11所述的选择图片的方法,其特征在于,所述方法还包括:
    在所述至少两个应用程序的每个应用程序的交互场景中,将执行了图片上传、图片编辑或图片下载的逻辑处理的图片的路径写入所述多媒体数据库。
  13. 一种显示应用的装置,其特征在于,应用于电子设备,所述装置用于执行如权利要求1-12中任一项所述的选择图片的方法。
  14. 一种芯片系统,其特征在于,所述芯片系统应用于电子设备;所述芯片系统包括一个或多个接口电路和一个或多个处理器;所述接口电路和所述处理器通过线路互联;所述接口电路用于从所述电子设备的存储器接收信号,并向所述处理器发送所述信号,所述信号包括所述存储器中存储的计算机指令;当所述处理器执行所述计算机指令时,所述电子设备执行如权利要求1-12中任一项所述的选择图片的方法。
  15. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-12中任一项所述的选择图片的方法。
  16. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-12中任一项所述的选择图片的方法。
PCT/CN2020/126524 2019-11-04 2020-11-04 一种选择图片的方法和电子设备 WO2021088881A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20885642.7A EP4044013A4 (en) 2019-11-04 2020-11-04 IMAGE SELECTION METHOD AND ELECTRONIC DEVICE
US17/774,119 US11972096B2 (en) 2019-11-04 2020-11-04 Picture selection method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911067532.6A CN112783379B (zh) 2019-11-04 2019-11-04 一种选择图片的方法和电子设备
CN201911067532.6 2019-11-04

Publications (1)

Publication Number Publication Date
WO2021088881A1 true WO2021088881A1 (zh) 2021-05-14

Family

ID=75748714

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/126524 WO2021088881A1 (zh) 2019-11-04 2020-11-04 一种选择图片的方法和电子设备

Country Status (4)

Country Link
US (1) US11972096B2 (zh)
EP (1) EP4044013A4 (zh)
CN (2) CN117032527A (zh)
WO (1) WO2021088881A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538997A (zh) * 2020-03-31 2020-08-14 宇龙计算机通信科技(深圳)有限公司 图像处理方法、装置、存储介质以及终端
CN114780003A (zh) * 2022-05-23 2022-07-22 北京达佳互联信息技术有限公司 素材上传方法及相关设备
CN114911990A (zh) * 2022-05-27 2022-08-16 北京天域北斗文化科技集团有限公司 基于虚拟现实和智能交互的地图浏览系统

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694975B (zh) * 2020-06-09 2023-08-11 维沃移动通信(杭州)有限公司 图像显示方法、装置、电子设备和可读存储介质
CN113504853A (zh) * 2021-07-08 2021-10-15 维沃移动通信(杭州)有限公司 评论生成方法和装置
CN113792174B (zh) * 2021-09-17 2023-10-13 展讯通信(天津)有限公司 图片显示方法、装置、终端设备以及存储介质
CN113852540B (zh) * 2021-09-24 2023-07-28 维沃移动通信有限公司 信息发送方法、信息发送装置和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104820683A (zh) * 2015-04-17 2015-08-05 深圳市金立通信设备有限公司 一种终端
US20170038922A1 (en) * 2015-08-03 2017-02-09 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN109145142A (zh) * 2018-07-24 2019-01-04 维沃移动通信有限公司 一种图片的分享信息的管理方法及终端
CN110377772A (zh) * 2019-06-26 2019-10-25 华为技术有限公司 一种内容查找方法、相关设备及计算机可读存储介质

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000069421A (ja) * 1998-08-26 2000-03-03 Olympus Optical Co Ltd 電子アルバム
US9049243B2 (en) * 2005-09-28 2015-06-02 Photobucket Corporation System and method for allowing a user to opt for automatic or selectively sending of media
US9503526B2 (en) * 2008-05-19 2016-11-22 Tandem Diabetes Care, Inc. Therapy management system
US9360997B2 (en) * 2012-08-29 2016-06-07 Apple Inc. Content presentation and interaction across multiple displays
US11488241B2 (en) * 2013-07-26 2022-11-01 U-Haul International, Inc. Method and apparatus for mobile rental of vehicles
US9727752B2 (en) * 2013-09-25 2017-08-08 Kairos Social Solutions, Inc. Device, system, and method of identifying a specific user from a profile image containing multiple people
CN103530114B (zh) * 2013-09-27 2017-01-18 贝壳网际(北京)安全技术有限公司 一种图片管理方法和装置
CN104820675B (zh) * 2015-04-08 2018-11-06 小米科技有限责任公司 相册显示方法及装置
CN104834687B (zh) * 2015-04-17 2019-04-30 深圳市金立通信设备有限公司 一种图片显示方法
CN107133352B (zh) * 2017-05-24 2022-02-22 北京小米移动软件有限公司 照片显示方法及装置
US11030574B1 (en) * 2018-08-29 2021-06-08 Blue Yonder Group, Inc. System and method for retail planning with smart product attributes
US11430051B1 (en) * 2018-11-28 2022-08-30 Walgreen Co. System and method for automatically reordering consumer products
CN111833247A (zh) * 2020-06-11 2020-10-27 维沃移动通信有限公司 图片处理方法、装置及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104820683A (zh) * 2015-04-17 2015-08-05 深圳市金立通信设备有限公司 一种终端
US20170038922A1 (en) * 2015-08-03 2017-02-09 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN109145142A (zh) * 2018-07-24 2019-01-04 维沃移动通信有限公司 一种图片的分享信息的管理方法及终端
CN110377772A (zh) * 2019-06-26 2019-10-25 华为技术有限公司 一种内容查找方法、相关设备及计算机可读存储介质

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538997A (zh) * 2020-03-31 2020-08-14 宇龙计算机通信科技(深圳)有限公司 图像处理方法、装置、存储介质以及终端
CN114780003A (zh) * 2022-05-23 2022-07-22 北京达佳互联信息技术有限公司 素材上传方法及相关设备
CN114911990A (zh) * 2022-05-27 2022-08-16 北京天域北斗文化科技集团有限公司 基于虚拟现实和智能交互的地图浏览系统

Also Published As

Publication number Publication date
EP4044013A1 (en) 2022-08-17
US20220391071A1 (en) 2022-12-08
CN112783379B (zh) 2023-07-28
US11972096B2 (en) 2024-04-30
EP4044013A4 (en) 2022-12-21
CN117032527A (zh) 2023-11-10
CN112783379A (zh) 2021-05-11

Similar Documents

Publication Publication Date Title
WO2021088881A1 (zh) 一种选择图片的方法和电子设备
JP7142783B2 (ja) 音声制御方法及び電子装置
WO2020238356A1 (zh) 界面显示方法、装置、终端及存储介质
WO2021082835A1 (zh) 启动功能的方法及电子设备
WO2021000841A1 (zh) 一种生成用户头像的方法及电子设备
WO2021159746A1 (zh) 文件共享方法、系统及相关设备
CN112130714B (zh) 可进行学习的关键词搜索方法和电子设备
US20220343648A1 (en) Image selection method and electronic device
CN111835904A (zh) 一种基于情景感知和用户画像开启应用的方法及电子设备
WO2020073317A1 (zh) 文件管理方法及电子设备
WO2021104117A1 (zh) 一种构建应用程序资源包的方法、构建装置及终端设备
WO2023138305A1 (zh) 卡片显示方法、电子设备及计算机可读存储介质
CN115525783B (zh) 图片显示方法及电子设备
WO2021196980A1 (zh) 多屏交互方法、电子设备及计算机可读存储介质
CN114594882A (zh) 一种反馈方法、装置及系统
WO2023207890A1 (zh) 一种界面显示方法及电子设备
WO2023072241A1 (zh) 一种媒体文件管理方法及相关装置
WO2023174200A1 (zh) 界面显示方法及相关装置
WO2023246666A1 (zh) 一种搜索方法及电子设备
WO2023160455A1 (zh) 删除对象的方法及电子设备
CN114244951B (zh) 应用程序打开页面的方法及其介质和电子设备
WO2024037346A1 (zh) 页面管理方法及电子设备
EP4336357A1 (en) Message processing method and related apparatus
CN116414280A (zh) 图片显示方法及电子设备
CN114518965A (zh) 一种剪贴内容处理方法及其装置

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: 20885642

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020885642

Country of ref document: EP

Effective date: 20220511

NENP Non-entry into the national phase

Ref country code: DE