Cloud album synchronization method and related apparatus
Through intelligent analysis and user interaction, important images are screened and uploaded first, which solves the problem of resource waste and important images not being synchronized in time during cloud album synchronization, and improves synchronization efficiency and resource utilization.
Patent Information
- Application Number
- PCT/CN2024/078615
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2024-02-26
- Publication Date
- 2024-09-06
AI Technical Summary
Existing cloud photo album synchronization methods waste resources during the synchronization process, including excessive occupation of time, data traffic, and cloud storage space, and important image data is not synchronized in time, resulting in low efficiency.
Through intelligent analysis of local image data, important and unimportant images are screened out based on image content and user operating habits, and different strategies are used for uploading. Important images are uploaded first, and the upload strategy for unimportant images is adjusted under user interaction.
It improves the efficiency of synchronizing image data to the cloud, reduces resource usage, ensures timely synchronization of important images, and optimizes the cloud album synchronization process.
Smart Images

Figure CN2024078615_06092024_PF_FP
Abstract
Description
A cloud photo album synchronization method and related device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on February 28, 2023, with application number 202310225010.4 and application name “A Cloud Album Synchronization Method and Related Devices”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of electronic technology, and in particular to a cloud album synchronization method and related devices. Background Art
[0003] When using mobile phones and other electronic devices to take photos, record videos, take screenshots, or chat, users generate a large number of local photos and videos. To ensure data security, users can choose to save these photos or videos to cloud albums, that is, synchronize them to the cloud for backup. Electronic device manufacturers all provide photo or video synchronization capabilities to help users store personal data in the cloud.
[0004] After the user turns on the cloud album synchronization switch of the electronic device, the electronic device can scan local image data such as photos and videos, and synchronize them to the cloud in the order of the creation time of the image data. In order to save the power consumption and data traffic of the electronic device, the electronic device may limit the amount of data synchronized to the cloud each time. For example, if there is a lot of image data, it may take two days or longer for the electronic device to synchronize all the image data on the electronic device to the cloud album in the cloud. And after the electronic device synchronizes some unimportant image data to the cloud album in the cloud according to the creation time of the image data, the user may delete these unimportant image data from both the local and cloud, and some important image data are not synchronized to the cloud in time. In this way, the electronic device wastes too many resources (for example, time, data traffic, cloud storage space, etc.) during the cloud album synchronization process.
[0005] Summary of the Invention
[0006] The present application provides a cloud album synchronization method and related devices, which can filter out images that are important and unimportant to the user from local image data, give priority to uploading important images, and select different strategies to upload unimportant images according to user operations, thereby improving the efficiency of synchronizing image data to the cloud and reducing resource usage.
[0007] In a first aspect, the present application provides a cloud album synchronization method, comprising: an electronic device obtains multiple image data stored locally; the electronic device identifies the image content of the multiple image data and records the user's operating habits on the multiple image data; the electronic device divides important images and unimportant images from the multiple image data based on the image content of the multiple image data and the user's operating habits on the multiple image data; the electronic device uploads the important images to a cloud server and puts the unimportant images into a designated album; the electronic device receives a first input from the user to open the designated album; in response to the first input, the electronic device displays a first interface of the designated album, wherein the first interface includes a first image, which is the unimportant image; the electronic device receives a second input from the user to choose to synchronize the first image; in response to the second input, the electronic device uploads the first image to the cloud server.
[0008] Through the cloud album synchronization method provided by this application, an electronic device can intelligently analyze local image data and the user's operating habits on the image data. Based on the content of the local image data and / or the user's operating habits on the image data, the electronic device can filter out images that are important to the user and images that are not important to the user from the local image data, giving priority to uploading important images, while unimportant images are uploaded using different strategies based on the user's operations. This can improve the efficiency of synchronizing image data to the cloud and reduce resource usage.
[0009] In one possible implementation, the electronic device screens out important images and non-important images from the plurality of image data based on image content of the plurality of image data and a user's operating habits on the plurality of image data, including:
[0010] If the user deletes the image data of the specified content type within the specified time period, the electronic device determines the image data of the specified content type among the multiple image data as the unimportant image.
[0011] In one possible implementation, the electronic device filters out important images and unimportant images from the multiple image data based on the image content of the multiple image data and the user's operating habits on the multiple image data, including: if the user deletes image data of a specified content type exceeding a specified number threshold within a specified time period, the electronic device determines the image data of the specified content type in the multiple image data as unimportant images.
[0012] In one possible implementation, the electronic device filters out important images and unimportant images from the multiple image data based on the image content of the multiple image data and the user's operating habits on the multiple image data, including: if the user deletes image data of a specified content type exceeding a specified number threshold within a specified time period and the image data originates from a specified source operation, the electronic device determines the image data in the multiple image data that has the specified content type and originates from the specified source operation as unimportant images.
[0013] In this way, the electronic device performs intelligent analysis on the local image data and the user's operating habits on the image data, and based on the content of the local image data and / or the user's operating habits on the image data, filters out temporary images of a specified type (for example, a QR code type) from the local image data, and places the temporary images into a specified album (for example, a temporary image album). The user views and adjusts the upload policy of the temporary image from the temporary image album, and the electronic device can upload the temporary image to the cloud server based on the synchronization policy. In this way, the efficiency of synchronizing image data to the cloud can be improved and the resource usage can be reduced.
[0014] In one possible implementation, the electronic device filters out important images and unimportant images from the multiple image data based on the image content of the multiple image data and the user's operating habits on the multiple image data, including: the electronic device determines one or more groups of similar images from the multiple image data based on the image content of the multiple image data, wherein the one or more groups of similar images include a first group of similar images; the electronic device determines at least one best similar image and at least one non-best similar image in the first group of similar images; if the user deletes at least one non-best similar image in the first group of similar images within a specified time period, the electronic device determines the remaining non-best similar images in the first group of similar images as the unimportant images, and determines the best similar image in the first group of similar images as the important image; and / or, if the user does not delete the non-best similar image in the first group of similar images within the specified time period, the electronic device determines both the best similar image and the non-best similar image in the first group of similar images as the important image.
[0015] In one possible implementation, the electronic device screens out important images and unimportant images from the multiple image data based on the image content of the multiple image data and the user's operating habits on the multiple image data, including: the electronic device determines one or more groups of similar images from the multiple image data based on the image content of the multiple image data, wherein the one or more groups of similar images include a first group of similar images; the electronic device determines at least one best similar image and at least one non-best similar image in the first group of similar images; if the user deletes more than a preset number of non-best similar images in the first group of similar images within a specified time period, the electronic device determines the remaining non-best similar images in the first group of similar images as the unimportant images, and determines the best similar image in the first group of similar images as the important image; and / or, if the user does not delete more than the preset number of non-best similar images in the first group of similar images within the specified time period, the electronic device determines both the remaining best similar image and the non-best similar image in the first group of similar images as the important image.
[0016] In this way, the electronic device can perform intelligent analysis on local image data and the user's operating habits on the image data, and identify one or more groups of similar images, as well as the best similar images and non-best similar images in each group of similar images. The electronic device can upload the best similar image to the cloud server by default. The electronic device can choose whether to put it into a designated album (for example, a similar image album) based on the operating habits of the non-best similar image. The user views and adjusts the synchronization strategy of the non-best similar image from the similar image album, and the electronic device can upload the non-best similar image to the cloud server based on the synchronization strategy. In this way, the efficiency of synchronizing image data to the cloud can be improved and the resource usage can be reduced.
[0017] In one possible implementation, the electronic device screens out important images and unimportant images from the multiple image data based on the image content of the multiple image data and the user's operating habits with respect to the multiple image data, including: the electronic device determines the grade scores of the multiple image data based on the image content of the multiple image data and the user's operating habits with respect to the multiple image data; the electronic device determines, based on the grade scores of the multiple image data, image data in the image data whose grade score is greater than or equal to a specified score as the important image, and determines image data in the image data whose grade score is less than the specified score as the unimportant image.
[0018] In one possible implementation, the multiple image data include image type labels and operation habit labels, the image type labels are related to the image types of the multiple image data, and the operation habits are related to the user's operation habits; the electronic device determines the grade scores of the multiple image data based on the image content of the multiple image data and the user's operation habits for the multiple image data, including: the electronic device determines the grade scores of the multiple image data based on the image type labels and operation habit labels of the multiple image data, the scores corresponding to each image type label, and the scores corresponding to each operation habit label.
[0019] In one possible implementation, the weight corresponding to the image type label and the weight corresponding to the operation habit label are the same or different; the electronic device determines the grade scores of the multiple image data based on the image type labels and operation habit labels of the multiple image data, the scores corresponding to each image type label, and the scores corresponding to each operation habit label, including: the electronic device determines the grade scores of the multiple image data based on the image type labels and operation habit labels of the multiple image data, the scores corresponding to each image type label, the scores corresponding to each operation habit label, the weight corresponding to the image type label, and the weight corresponding to the operation habit label.
[0020] In one possible implementation, the weight corresponding to the image type label and the weight corresponding to the operation habit label are the same or different; the electronic device determines the grade scores of the multiple image data based on the image type labels and operation habit labels of the multiple image data, the scores corresponding to each image type label, and the scores corresponding to each operation habit label, including: the electronic device determines the grade scores of the multiple image data based on the image type labels and operation habit labels of the multiple image data, the scores corresponding to each image type label, the scores corresponding to each operation habit label, the weight corresponding to the image type label, and the weight corresponding to the operation habit label.
[0021] In this way, the electronic device can intelligently analyze local image data and the user's operating habits on the image data. Based on the image type and / or the user's operating habits, it can determine the importance of the image data (i.e., the grade score) and select different synchronization strategies based on the importance of the image data. This can improve the efficiency of synchronizing image data to the cloud and reduce resource usage.
[0022] In a possible implementation, the specified content type is a QR code type.
[0023] In a second aspect, the present application provides an electronic device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, wherein the computer program code comprises computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the cloud album synchronization method in any possible implementation of any of the above aspects.
[0024] In a third aspect, an embodiment of the present application provides a computer storage medium comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute the cloud album synchronization method in any possible implementation of any of the above aspects.
[0025] In a fourth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, enables the computer to execute the cloud album synchronization method in any possible implementation of any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0027] FIG2 is a schematic diagram of a synchronization process of a cloud photo album provided in an embodiment of the present application;
[0028] FIG3 is a schematic diagram of a synchronization principle of a cloud photo album provided in an embodiment of the present application;
[0029] FIG4 is a schematic diagram of a software system architecture of an electronic device provided in an embodiment of the present application;
[0030] FIG5 is a flow chart of a cloud album synchronization method provided in an embodiment of the present application;
[0031] 6A-6D are a set of interface schematic diagrams provided in an embodiment of the present application;
[0032] FIG7 is a flowchart of a cloud album synchronization method provided in another embodiment of the present application;
[0033] 8A-8C are a set of interface schematic diagrams provided by another embodiment of the present application;
[0034] FIG9 is a flow chart of a cloud album synchronization method provided in another embodiment of the present application. DETAILED DESCRIPTION
[0035] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0036] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0037] FIG1 shows a schematic diagram of the hardware structure of an electronic device 100 .
[0038] The following embodiments are described in detail using electronic device 100 as an example. It should be understood that the electronic device 100 shown in FIG1 is merely an example, and that electronic device 100 may have more or fewer components than shown in FIG1 , may combine two or more components, or may have a different component configuration. The various components shown in the figure may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.
[0039] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0040] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0041] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0042] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0043] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0044] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0045] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0046] The charging management module 140 is configured to receive charging input from a charger, which may be a wireless charger or a wired charger.
[0047] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.
[0048] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0049] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
[0050] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1.
[0051] The modem processor includes a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a medium- or high-frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is passed to the application processor.
[0052] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0053] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include 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, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0054] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0055] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel.
[0056] The electronic device 100 can realize the shooting function through the ISP, camera 193, video codec, GPU, display screen 194 and application processor. The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture static images or videos. The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. The NPU is a neural network (NN) computing processor that quickly processes input information by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, and can also continuously self-learn.
[0057] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage. The internal memory 121 can be used to store computer-executable program code, which includes instructions. The processor 110 executes the instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100.
[0058] The electronic device 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, and an application processor. The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. The speaker 170A, also known as a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A. The receiver 170B, also known as a "handset", is used to convert audio electrical signals into sound signals. The microphone 170C, also known as a "microphone" or "microphone", is used to convert sound signals into electrical signals. The headphone jack 170D is used to connect wired headphones. The headphone interface 170D may be a USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0059] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor 180A can be located on the display screen 194. The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall effect sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. The proximity light sensor 180G can include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The electronic device 100 can use the proximity light sensor 180G to detect when a user holds the electronic device 100 close to their ear to talk, thereby automatically turning off the screen to save power. The ambient light sensor 180L is used to sense ambient light brightness. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect temperature. Touch sensor 180K, also known as a "touch panel." The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also known as a "touch screen." The touch sensor 180K is used to detect touch operations acting on or near it. The bone conduction sensor 180M can obtain vibration signals. The buttons 190 include a power button, a volume button, etc. The motor 191 can generate vibration prompts. The indicator 192 can be an indicator light that can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card.
[0060] FIG2 shows a synchronization process of a cloud photo album provided in an embodiment of the present application.
[0061] As shown in Figure 2, the electronic device 100 can scan local image data. The local image data includes pictures and videos stored locally in the electronic device 100. The pictures can include static pictures and dynamic pictures (such as live pictures, GIFs, etc.).
[0062] After the electronic device 100 scans the local image data, the electronic device 100 can sort the image data according to the creation time, and add the image data to the upload queue based on the creation time sorting, and upload it to the cloud server 200 for storage.
[0063] However, the image data scanned locally by the electronic device 100 may contain temporary images that were created while the user was using the electronic device 100, such as screenshots of courier pickup codes, similar images, or images of lower quality. Since temporary images are not highly demanded by users, after the electronic device 100 uploads these temporary images to the cloud server 200 for storage, the user will likely delete these temporary images from the local electronic device 100 and cloud albums on the cloud server 200 when the electronic device 100 organizes the image data, resulting in a waste of resources such as data traffic for the electronic device 100 and storage space on the cloud server 200. Furthermore, if the amount of image data to be uploaded in the upload queue is large, the electronic device 100 will upload the image data in batches over multiple time periods. Therefore, it takes a long time for the electronic device 100 to upload all the image data in the upload queue to the cloud server 200 for storage. If the image data is uploaded in chronological order of file creation time, some temporary images that are not important to the user will often be synchronized first, resulting in image data that is more important to the user not being successfully uploaded to the cloud server 200 for storage in a timely manner, resulting in the loss of these important image data.
[0064] Therefore, as shown in FIG3 , an embodiment of the present application provides a cloud album synchronization method that can achieve the following: the electronic device 100 performs intelligent analysis on local image data and the user's operating habits on the image data, and based on the content of the local image data and / or the user's operating habits on the image data, screens out images that are important to the user and images that are not important from the local image data, prioritizes uploading important images, and selects different strategies for uploading unimportant images based on the user's operations. In this way, the efficiency of synchronizing image data to the cloud can be improved, and resource usage can be reduced.
[0065] FIG4 shows a schematic diagram of a software system architecture of an electronic device provided in an embodiment of the present application.
[0066] As shown in Figure 4, the software system architecture of electronic device 100 may include: a user operation layer, an intelligent analysis layer, a synchronization policy control layer, and a network upload control layer. The user operation layer may include a virtual album module 410 and a manual policy adjustment module 420. The intelligent analysis layer may include an image intelligent analysis module 430 and an operation habit analysis module 440. The synchronization policy control layer may include a classification automatic decision module 450 and a synchronization policy control module 460.
[0067] In the intelligent analysis layer, the image intelligent analysis module 430 can be used to analyze the content of image data locally on the electronic device 100 and identify the type of image data. The operation habit analysis module 440 can be used to analyze the user's operation habits on the electronic device 100 and can also receive feedback on the user's operation habits in the virtual album detected by the virtual album module 410.
[0068] In the synchronization policy control layer, the automatic classification decision module 450 can be used to determine the screening method and synchronization policy for temporary images in the virtual album based on the analysis results of the intelligent image analysis module 430 and the analysis results of the operation habit analysis module 440. The synchronization policy control module 460 can be used to upload image data to the cloud server 200 according to the default synchronization policy or the synchronization policy manually adjusted by the user.
[0069] In the user operation layer, the electronic device 100 can receive user operations to generate a large amount of local image data. For example, local image data will be generated when the user takes photos, records videos, takes screenshots, chats, browses the web, etc. Among them, image data includes pictures and videos, and pictures can include static pictures and dynamic pictures (such as live pictures, gif animations, etc.). The virtual album module 410 can be used to search for temporary images in the local image data based on the screening method of temporary images in the virtual album provided by the classification automatic decision module 450, and display them to the user through the virtual album. The manual policy adjustment module 420 can receive and record the user's operations on temporary images in the virtual album, and adjust the synchronization policy of the temporary images.
[0070] The network upload control layer can upload local image data to the cloud server 200 for storage based on the synchronization strategy of local image data.
[0071] FIG5 shows a flow chart of a cloud album synchronization method provided in an embodiment of the present application.
[0072] As shown in FIG5 , the method may include:
[0073] S501. The electronic device 100 may generate image data based on a user operation.
[0074] Among them, the user can use the electronic device 100 to take photos and / or videos. Therefore, the electronic device 100 can receive and generate photos and / or videos in response to the user's operation of using the camera application on the electronic device 100.
[0075] In one example, the user can also use the electronic device 100 to take a screenshot or record the content displayed on the display screen of the electronic device 100 (referred to as screenshot). Therefore, the electronic device 100 can receive and respond to the user's screenshot or recording operation to generate a screenshot image or a recorded video.
[0076] In one example, the user can also use the electronic device 100 to browse a web page or a page in an application, and save the network image (including a network picture or a network video) displayed on the web page or the page in the application locally. Therefore, the electronic device 100 can receive and generate a network image locally in response to the user's operation of saving the network image.
[0077] In one example, the user can also use the electronic device 100 to receive images (including pictures or videos) shared by other electronic devices. Therefore, the electronic device 100 can receive and generate the shared image locally in response to the user's operation of receiving the image shared by other electronic devices.
[0078] In the embodiment of the present application, the image data generated by the electronic device 100 is not limited to the above-mentioned photos taken by the user, videos taken by the user, screenshots, screen recordings, network pictures, network videos, shared pictures or shared videos, etc., and can also be generated locally on the electronic device 100 by other means, which is not limited here.
[0079] After the electronic device 100 generates image data, it can also receive user operations on the image data and organize the image data. Organizing the image data includes browsing, deleting, and sharing the image data. For example, after a user shares a QR code screenshot with another electronic device via the electronic device 100, the electronic device 100 can receive and delete the QR code screenshot in response to the user's operation.
[0080] S502: The electronic device 100 may identify the content type of the image data and, based on the content type of the image data, tag the image data with a content type label.
[0081] The content types of the image data may include landscape, portrait, document, QR code and other content types.
[0082] For example, the content type tag of image data can be as shown in Table 1 below:
[0083] Table 1
[0084] As can be seen from Table 1 above, the content type label of image data "IMG_1111", "IMG_1112", and "IMG_1113" is "landscape", the content type label of image data "IMG_1114", "IMG_1115", and "IMG_1116" is "portrait", the content type label of image data "IMG_1117" and "IMG_1118" is "document", and the content type label of image data "IMG_1119", "IMG_1120", and "IMG_1121" is "QR code". Table 1 above is only used to explain this application and should not be construed as limiting.
[0085] S503 : The electronic device 100 records the user's operating habits on the image data, and marks the image data with an operating habit label based on the operating habits.
[0086] The operation habit tag may also include the time when the user operates on the image data.
[0087] The user's operation habits on image data may include image data source operations, image data sorting operations, and image data synchronization strategy adjustment operations.
[0088] The source operation of the image data may include a user's shooting operation, a screenshot operation, a receiving and sharing operation, an editing and creating operation, a downloading operation, and the like.
[0089] For example, when the source operation of the image data is a shooting operation, the electronic device 100 can label the image data as "2023-1-30 Photographed". When the source operation of the image data is a screenshot operation, the electronic device 100 can label the image data as "2023-1-30 Screenshot". When the source operation of the image data is a receiving and sharing operation, the electronic device 100 can label the image data as "2023-1-30 Shared". When the source operation of the image data is an operation of creating after editing, the electronic device 100 can label the image data as "2023-1-30 Created after editing". When the source operation of the image data is a downloading operation, the electronic device 100 can label the image data as "2023-1-30 Downloaded".
[0090] The image data organization operations may include user browsing operations, deletion operations, sharing operations, and the like.
[0091] For example, when the image data organization operation is a browsing operation, the electronic device 100 may tag the image data with "2023-1-30 Browsed". When the image data organization operation is a deletion operation, the electronic device 100 may tag the image data with "2023-1-30 Deleted", retain the "2023-1-30 Deleted" tag, and then delete the image data. When the image data organization operation is a sharing operation, the electronic device 100 may tag the image data with "2023-1-30 Shared".
[0092] The synchronization policy adjustment operation of the image data may include an operation of immediately synchronizing the temporary images in the temporary image album, an operation of prohibiting synchronization, etc. The description of the temporary image album can refer to the subsequent steps S505 to S507, which will not be repeated here.
[0093] For example, when the image data synchronization policy adjustment operation is an operation to immediately synchronize a temporary image in the temporary image album, the electronic device 100 may label the temporary image as "Temporary image 2023-1-30 uploaded immediately." When the image data synchronization policy adjustment operation is an operation to prohibit synchronization of a temporary photo in the temporary image album, the electronic device 100 may label the temporary image as "Temporary image 2023-1-30 prohibited from uploading."
[0094] S504: The electronic device 100 determines whether the image data is a temporary image based on the content type tag and the operation habit tag of the image data.
[0095] For example, the content type label and operation habit label of the image data may be as shown in Table 2 below:
[0096] Table 2
[0097] As can be seen from Table 2 above, the content type label of the image data "IMG_1111" can be "scenery", and the operation habit labels can include "photographed on 2023-1-30" and "browsed on 2023-1-31". The content type label of the image data "IMG_1112" can be "scenery", and the operation habit labels can include "photographed on 2023-1-30" and "shared on 2023-1-31". The content type label of the image data "IMG_1113" can be "scenery", and the operation habit labels can include "downloaded on 2023-1-30" and "browsed on 2023-1-31". The content type label of the image data "IMG_1114" can be "portrait", and the operation habit labels can include "photographed on 2023-1-30" and "browsed on 2023-1-31". The content type label of the image data "IMG_1115" can be "portrait", and the operation habit labels can include "shared on 2023-1-30" and "deleted on 2023-1-31". The content type label of the image data "IMG_1116" may be "portrait", and the operation habit label may include "2023-1-30 Edited and Created". The content type label of the image data "IMG_1117" may be "document", and the operation habit label may include "2023-1-30 Screenshot", "2023-1-31 Browse". The content type label of the image data "IMG_1118" may be "document", and the operation habit label may include "2023-1-30 Download", "2023-1-31 Browse". The content type label of the image data "IMG_1119" may be "QR code", and the operation habit label may include "2023-1-30 Screenshot", "2023-1-31 Delete". The content type label of the image data "IMG_1120" may be "QR code", and the operation habit label may include "2023-1-30 Screenshot", "2023-1-31 Delete". The content type tag of the image data "IMG_1121" may be "QR code", and the operation habit tag may include "2023-1-30 screenshot". The above Table 2 is only used to explain this application and should not be construed as limiting.
[0098] In one example, when the electronic device 100 determines from the content type tag and operation habit tag of the image data that image data with a certain content type tag (for example, a "QR code" content type tag) has been deleted within a specified time period (for example, within the last 2 days), the electronic device 100 can determine the locally stored image data with the content type tag as a temporary image.
[0099] For example, the current time is February 1, 2023, and the image data "IMG_1119" and image data "IMG_1120" of the "QR code" content type were found to have been deleted in the past two days. Therefore, the electronic device 100 will determine the image data "IMG_1121" of the same "QR code" content type as a temporary image.
[0100] In another example, when the electronic device 100 determines from the content type tag and operation habit tag of the image data that the number of image data with a certain content type tag (for example, a "QR code" content type tag) deleted within a specified time period (for example, within the last 2 days) exceeds a specified number threshold, the electronic device 100 may determine the locally stored image data with the content type tag as a temporary image.
[0101] For example, the current time is February 1, 2023, and it is found that more than or equal to two image data of the "QR code" content type have been deleted in the past two days, namely, image data "IMG_1119" and image data "IMG_1120". Therefore, the electronic device 100 will determine the image data "IMG_1121" of the same "QR code" content type as a temporary image.
[0102] In another example, when the electronic device 100 determines from the content type tag and operation habit tag of the image data that the number of image data with a certain content type tag (for example, a "QR code" content type tag) and originating from a specified source operation (for example, a screenshot) deleted in a recent period exceeds a specified number threshold, the electronic device 100 may determine the locally stored image data with the content type tag and originating from a specified source operation (for example, a screenshot) as a temporary image.
[0103] For example, the current time is February 1, 2023, and it is found that more than or equal to two image data with the "QR code" content type tag and the "screenshot" operation habit tag have been deleted in the past two days, namely, image data "IMG_1119" and image data "IMG_1120". Therefore, the electronic device 100 will determine the image data "IMG_1121" with the "QR code" content type tag and the "screenshot" operation habit tag as a temporary image.
[0104] The example of the electronic device 100 determining whether image data is a temporary image based on the content type label and operation habit label of the image data is only used to explain this application and should not constitute a limitation. In specific implementations, there may be more examples and no limitation is made.
[0105] In some embodiments, when the image data is a non-temporary image, the electronic device 100 may add the image data to an upload queue and upload it to the cloud server 200 .
[0106] In some embodiments, the electronic device 100 may periodically (for example, every 3 days) perform the above step S504, and the image data that is screened as non-temporary images is uploaded to the cloud server 200 at the upload time specified by the electronic device 100 (for example, when the electronic device 100 can connect to the cloud server 200 via Wi-Fi and the time period is between 2 am and 4 am). For some newly acquired image data that has not been screened to see whether it is a temporary image, it will not be uploaded to the cloud server 200 temporarily. When the above step S504 is performed next time, these newly acquired image data will be screened to see whether they are temporary images. If they are temporary images, the subsequent step S505 will be performed. If they are non-temporary images, they will be uploaded to the cloud server 200 at the upload time specified by the electronic device 100 (for example, when the electronic device 100 can connect to the cloud server 200 via Wi-Fi and the time period is between 2 am and 4 am).
[0107] S505: When the image data is a temporary image, the electronic device 100 may put the temporary image into a temporary image album.
[0108] Among them, the image data in the temporary image album will not be automatically synchronized to the cloud server 200 by default.
[0109] When the image data is determined to be a temporary image, the image data will be displayed in both the temporary image album and the original album of the image data.
[0110] For example, the electronic device 100 may display the image data A in all photo albums. After determining the image data A as a temporary image, the electronic device 100 may display the image data A in all photo albums and the temporary image album.
[0111] For another example, electronic device 100 may display image data A in all photo albums, where all photo albums are used to display all image data stored locally on electronic device 100. Since image data A was captured by electronic device 100, image data A may also be displayed in the camera album. After image data A is determined as a temporary image, electronic device 100 may display image data A in all photo albums, the camera album, and the temporary image album.
[0112] S506: The electronic device 100 may display a temporary image album.
[0113] Exemplarily, as shown in Figure 6A, the electronic device 100 can display a desktop 610. Among them, a page with application icons is displayed in the desktop 610, and the page includes multiple application icons (for example, a weather application icon, a stock application icon, a calculator application icon, a settings application icon, an email application icon, a gallery application icon 611, a music application icon, a video application icon, a browser application icon, etc.). A page indicator is also displayed below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages. There are multiple tray icons (for example, a dial application icon, a message application icon, a contact application icon, a camera application icon) below the page indicator, and the tray icon remains displayed when the page is switched. In some embodiments, the above-mentioned page may also include multiple application icons and a page indicator. The page indicator may not be part of the page and may exist separately. The above-mentioned tray icon is also optional, and the embodiments of the present application are not limited to this.
[0114] The electronic device 100 may receive user input on the gallery application icon 611 . In response to the input, the electronic device 100 may display a gallery application interface 620 as shown in FIG. 6B .
[0115] As shown in FIG. 6B , the gallery application interface 620 may display one or more albums (eg, all photo albums, video albums, camera albums, portrait albums, cloud albums 622 , temporary image albums 621 , etc.).
[0116] The electronic device 100 may receive a user input (eg, a single click) with respect to the temporary image album 621 . In response to the input, the electronic device 100 may display an interface 630 of the temporary image album 621 as shown in FIG. 6C .
[0117] As shown in FIG6C , the interface 630 of the temporary image album 621 displays thumbnails (eg, thumbnail 631 , thumbnail 632 , etc.) of one or more temporary images.
[0118] In some other embodiments, the above method may further include the following steps:
[0119] S507: The electronic device 100 may receive a request from the user to adjust a synchronization strategy for temporary images in the temporary image album.
[0120] S508 . After receiving the user's synchronization policy for the temporary image, the electronic device 100 uploads the temporary image to the cloud server 200 .
[0121] In particular, since the temporary image screening process described above indicates that temporary images are not important to the user and are likely to be deleted, the electronic device 100 does not synchronize the temporary images in the temporary image album with the cloud server 200 for storage by default. After the electronic device 100 displays the temporary image album interface, the user can select whether to upload the temporary images to the cloud server 200 in the temporary image album interface. After the user confirms that the temporary images are to be uploaded to the cloud server 200, the electronic device 100 can upload the temporary images to the cloud server 200.
[0122] For example, as shown in FIG6C , the electronic device 100 may receive an input operation (eg, a single click) from a user on the thumbnail 631 . In response to the input operation, the electronic device 100 may display a picture browsing interface 640 as shown in FIG6D .
[0123] As shown in Figure 6D, the picture browsing interface 640 may include a QR code image 641 corresponding to the thumbnail 631, the name of the QR code image 641 (for example, "IMG_1121"), and a cloud control 642 and a menu 643. The sync to cloud control 642 can be used to trigger the immediate synchronization of the QR code image 641 to the cloud server 200 for storage. The menu 643 may include a share button 644, a favorite button 645, an edit button 646, a delete button 647, and a more button 648. The share button 644 can be used to trigger the sharing of the QR code image 641. The favorite button 645 can be used to trigger the collection of the QR code image 641 to the picture collection folder. The edit button 646 can be used to trigger editing functions such as rotating, cropping, adding filters, blurring, etc. of the QR code image 641. The delete button 647 can be used to trigger the deletion of the QR code image 641. The more button 648 can be used to trigger the opening of more functions related to the QR code image 641.
[0124] The electronic device 100 can receive a user input (e.g., a single click) on the synchronize to cloud control 642. In response to the input, the electronic device 100 can upload the QR code image 641 to the cloud server 200 for storage. After the QR code image 641 is uploaded to the cloud server 200 for storage, the electronic device 100 can add the QR code image 641 to the cloud album 622. The user can view the image data that the electronic device 100 has synchronized with the cloud server 200 and saved in the cloud album 622.
[0125] S509 : The electronic device 100 uses the synchronization strategy of the temporary image to learn the operation habits.
[0126] If the electronic device 100 determines that the number or proportion of images selected by the user from temporary images of a first content type (e.g., a QR code) that are uploaded to the cloud server 200 exceeds a certain threshold, the electronic device 100 may increase the priority of uploading the image data of the first content type to the cloud server 200. For example, the electronic device 100 may determine that the image data of the first content type is a non-temporary image and upload the image data of the first content type to the cloud server 200 by default.
[0127] In one example, the electronic device 100 can add the image data of the first category together with the image data of other categories to the upload queue according to the order of creation of the image data, and then upload the image data in the upload queue to the cloud server 200 in sequence according to the upload order of the upload queue.
[0128] In another example, the electronic device 100 may add image data of a first content type and image data of other content types to an upload queue according to the content type priority of the image data, and then upload the image data in the upload queue to the cloud server 200 in the upload order of the upload queue. Image data with a higher category priority is uploaded first, and among image data of the same category, the earlier the creation time, the earlier the image data is uploaded.
[0129] In an embodiment of the present application, if the method steps shown in FIG5 are executed based on the software architecture shown in FIG4, the image intelligent analysis module 430 may execute step S502, the operation habit analysis module 440 may execute step S503, the classification automatic decision module 450 may execute steps S504 and S505, the virtual album module 410 may execute step S506, the operation strategy adjustment module 420 may execute steps S507 and S509, and the synchronization strategy control module 460 may execute step S508. The above examples are merely for explaining the present application and should not be construed as limiting.
[0130] By providing a cloud album synchronization method in an embodiment of the present application, it is possible to achieve the following: the electronic device 100 performs intelligent analysis on local image data and the user's operating habits on the image data, filters out temporary images from the local image data based on the content of the local image data and / or the user's operating habits on the image data, and places the temporary images into a temporary image album. The user views and adjusts the upload policy of the temporary images from the temporary image album, and the electronic device 100 can upload the temporary images to the cloud server 200 based on the synchronization policy. In this way, the efficiency of synchronizing image data to the cloud can be improved and resource usage can be reduced.
[0131] FIG7 shows a flow chart of a cloud album synchronization method provided in another embodiment of the present application.
[0132] As shown in FIG7 , the method may include:
[0133] S701. The electronic device 100 may generate image data based on a user operation.
[0134] Among them, the user can use the electronic device 100 to take photos and / or videos. Therefore, the electronic device 100 can receive and generate photos and / or videos in response to the user's operation using the camera application on the electronic device 100. When the user uses the electronic device 100 to take images, the user may take multiple images of the same scene for selection. Therefore, the electronic device 100 will locally store multiple similar images of the same scene or the same captured content.
[0135] In one example, the user can also use the electronic device 100 to take a screenshot or record the content displayed on the display screen of the electronic device 100 (hereinafter referred to as "screenshot"). Therefore, the electronic device 100 can receive and generate a screenshot image (including a screenshot picture or a screen recording video) in response to the user's screenshot operation. Since the electronic device 100 takes screenshots in the same screenshot scene, the electronic device 100 will locally store multiple similar images of the same screenshot content.
[0136] In one example, the user can also use the electronic device 100 to browse a web page or a page in an application, and save the network image (including a network picture or a network video) displayed on the web page or the page in the application locally. Therefore, the electronic device 100 can receive and generate a network image locally in response to the user's operation of saving the network image. Since there may be multiple similar images with the same image content on the web page, when the user uses the electronic device 100 to browse a web page or a page in an application, multiple similar images with the same content on the network may also be saved on the electronic device 100.
[0137] In one example, a user may also use electronic device 100 to receive images (including pictures or videos) shared by other electronic devices. Therefore, electronic device 100 may receive and generate a shared image locally in response to the user's operation of receiving the image shared by other electronic devices. Among the shared images, there may be multiple similar images containing the same content.
[0138] After the electronic device 100 generates image data, it can also receive user actions on the image data and organize the image data. This includes browsing, deleting, and sharing the image data. For example, a user can browse through multiple similar photos taken on the electronic device 100, keep the best one, and delete the other similar photos.
[0139] S702: The electronic device 100 may identify one or more groups of similar images in the image data, and determine the best similar image and the non-best similar image in each group of similar images.
[0140] The electronic device 100 may upload the best similar image to the cloud server 200 by default. The non-best similar images determine whether to be uploaded to the cloud server 200 or how to upload them to the cloud server 200 according to subsequent steps.
[0141] In one example, electronic device 100 can detect image content included in image data. Electronic device 100 can identify images with the same image content as a group of similar images. For example, if there are 10 images in the image data locally stored on electronic device 100, all of which are portraits of person A, electronic device 100 can identify these 10 images including person A as a group of similar images.
[0142] In another example, the electronic device 100 may perform similarity detection on different images in the image data, and may determine multiple images with similarities greater than a preset value as a group of similar images. For example, if there are 10 images in the image data locally stored by the electronic device 100 with similarities greater than 80%, the electronic device 100 may determine these 10 images with similarities greater than 80% as a group of similar images.
[0143] After identifying one or more groups of similar images in the image data, the electronic device 100 may identify the best similar image and the non-best similar image in each group of similar images. The best similar image has better image quality than the non-best similar images. Image quality may include resolution, color depth, image distortion, and the like. For example, if a group of similar images includes 10 images, and one image has the best image quality, then that image is the best similar image, and the other nine images in the 10 images are non-best similar images.
[0144] In some embodiments, after determining the best similar image in a group of similar images, the electronic device 100 may mark the best similar image in the group of similar images in the gallery application. The electronic device 100 may receive user input to change the best similar image in the group of similar images.
[0145] After determining the best similar image and the non-best similar image in each group of similar images, the electronic device 100 may label the one or more groups of similar images with similarity type tags. The similarity type tags are used to indicate the group name and the role name of the similar images. The role names include the best similar image and the non-best similar image. The best similar image and the non-best similar image in the same group of similar images may have different similarity type tags. Different non-best similar images in the same group of similar images may have the same similarity type. Similarity type tags may be different for different groups of similar images.
[0146] For example, the electronic device 100 may identify two groups of similar images from the locally stored image data. The similarity type labels of the two groups of similar images may be as shown in Table 3 below:
[0147] Table 3
[0148] As can be seen from Table 3 above, the image data "IMG_1111", "IMG_1112", "IMG_1113", "IMG_1114", "IMG_1115", "IMG_1116", "IMG_1117", "IMG_1118", "IMG_1119", and "IMG_1120" are a group of similar images whose image content is portrait 1. Among them, "IMG_1117" is the best similar image in the group of similar images, and the similarity type label of "IMG_1117" can be "portrait 1_best similar image". The image data "IMG_1111", "IMG_1112", "IMG_1113", "IMG_1114", "IMG_1115", "IMG_1116", "IMG_1118", "IMG_1119", and "IMG_1120" are all non-best similar images. Therefore, the similarity type labels of these 9 similar images can be "Portrait 1_Non-best similar image".
[0149] The image data "IMG_1121," "IMG_1122," "IMG_1123," "IMG_1124," "IMG_1125," "IMG_1126," "IMG_1127," "IMG_1128," "IMG_1129," and "IMG_1130" are a group of similar images whose image content is object 1. Among them, "IMG_1122" is the best similar image in this group of similar images, and the similarity type label of "IMG_1122" can be "object 1_best similar image." The image data "IMG_1121," "IMG_1123," "IMG_1124," "IMG_1125," "IMG_1126," "IMG_1127," "IMG_1128," "IMG_1129," and "IMG_1130" are all non-best similar images. Therefore, the similarity type label of these nine similar images can be "object 1_non-best similar image."
[0150] The above Table 3 is only used to explain this application and should not be construed as limiting.
[0151] S703: The electronic device 100 records the user's operating habits on the image data, and marks the image data with an operating habit label based on the operating habits.
[0152] The operation habit tag may also include the time when the user operates on the image data.
[0153] The user's operation habits on image data may include image data source operations, image data sorting operations, and image data synchronization strategy adjustment operations.
[0154] The source operation of the image data may include a user's shooting operation, a screenshot operation, a receiving and sharing operation, an editing and creating operation, a downloading operation, and the like.
[0155] For example, when the source operation of the image data is a shooting operation, the electronic device 100 can label the image data as "2023-1-30 Photographed". When the source operation of the image data is a screenshot operation, the electronic device 100 can label the image data as "2023-1-30 Screenshot". When the source operation of the image data is a receiving and sharing operation, the electronic device 100 can label the image data as "2023-1-30 Shared". When the source operation of the image data is an operation of creating after editing, the electronic device 100 can label the image data as "2023-1-30 Created after editing". When the source operation of the image data is a downloading operation, the electronic device 100 can label the image data as "2023-1-30 Downloaded".
[0156] The image data organization operations may include user browsing operations, deletion operations, sharing operations, and the like.
[0157] For example, when the image data organization operation is a browsing operation, the electronic device 100 may tag the image data with "2023-1-30 Browsed". When the image data organization operation is a deletion operation, the electronic device 100 may tag the image data with "2023-1-30 Deleted", retain the "2023-1-30 Deleted" tag, and then delete the image data. When the image data organization operation is a sharing operation, the electronic device 100 may tag the image data with "2023-1-30 Shared".
[0158] The synchronization strategy adjustment operation of the image data may include immediate synchronization of non-optimal similar images in the similar image album, prohibition of synchronization, etc. The description of the similar image album can refer to the subsequent steps S705 to S707, which will not be repeated here.
[0159] For example, when the image data synchronization policy adjustment operation is an operation to immediately synchronize a non-best similar image in the similar image album, the electronic device 100 may label the non-best similar image as "Similar image 2023-1-30 Upload Immediately." When the image data synchronization policy adjustment operation is an operation to prohibit synchronization of a non-best similar image in the similar image album, the electronic device 100 may label the non-best similar image as "Similar image 2023-1-30 Upload Prohibited."
[0160] S704: The electronic device 100 determines whether to put the non-best similar image into a similar photo album based on the non-best similar images in one or more groups of similar images and the operation habit tags.
[0161] For example, similar type labels and operation habit labels of similar images can be shown in Table 4 below:
[0162] Table 4
[0163] As can be seen from Table 4 above, the similarity type label of the image data “IMG_1111” may be “Portrait 1_Non-best similar image”, and the operation habit label may include “Photographed on 2023-1-30” and “Browsed on 2023-1-31”. The similarity type label of the image data “IMG_1112” may be “Portrait 1_Non-best similar image”, and the operation habit label may include “Photographed on 2023-1-30” and “Browsed on 2023-1-31”. The similarity type label of the image data “IMG_1113” may be “Portrait 1_Non-best similar image”, and the operation habit label may include “Photographed on 2023-1-30”. The similarity type label of the image data “IMG_1114” may be “Portrait 1_Non-best similar image”, and the operation habit label may include “Photographed on 2023-1-30”. The similarity type label of the image data “IMG_1115” may be “Portrait 1_Non-best similar image”, and the operation habit label may include “Photographed on 2023-1-30”. The similarity type label of the image data "IMG_1116" may be "Portrait 1_Non-best similar image", and the operating habit label may include "Photographed on 2023-1-30". The similarity type label of the image data "IMG_1117" may be "Portrait 1_Non-best similar image", and the operating habit label may include "Edited and created on 2023-1-30". The similarity type label of the image data "IMG_1118" may be "Portrait 1_Non-best similar image", and the operating habit label may include "Photographed on 2023-1-30", "Deleted on 2023-1-31". The similarity type label of the image data "IMG_1119" may be "Portrait 1_Non-best similar image", and the operating habit label may include "Photographed on 2023-1-30", "Deleted on 2023-1-31". The similarity type label of the image data “IMG_1120” may be “Portrait 1_Non-best similar image”, and the operation habit label may include “Photographed on 2023-1-30” and “Deleted on 2023-1-31”.
[0164] The similarity type label of the image data "IMG_1121" may be "object 1_non-best similar image", and the operation habit labels may include "taken on 2023-1-30" and "shared on 2023-1-31". The similarity type label of the image data "IMG_1122" may be "object 1_best similar image", and the operation habit labels may include "taken on 2023-1-30" and "shared on 2023-1-31". The similarity type label of the image data "IMG_1123" may be "object 1_non-best similar image", and the operation habit labels may include "taken on 2023-1-30" and "browsed on 2023-1-31". The similarity type label of the image data "IMG_11243" may be "object 1_non-best similar image", and the operation habit labels may include "taken on 2023-1-30" and "browsed on 2023-1-31". The similarity type label of the image data "IMG_1125" may be "object 1_non-best similar image", and the operation habit labels may include "photographed on 2023-1-30" and "browsed on 2023-1-31". The similarity type label of the image data "IMG_1126" may be "object 1_non-best similar image", and the operation habit labels may include "photographed on 2023-1-30" and "browsed on 2023-1-31". The similarity type label of the image data "IMG_1127" may be "object 1_non-best similar image", and the operation habit labels may include "photographed on 2023-1-30" and "browsed on 2023-1-31". The similarity type label of the image data "IMG_1128" may be "object 1_non-best similar image", and the operation habit labels may include "photographed on 2023-1-30" and "browsed on 2023-1-31". The similarity type tag for image data "IMG_1129" may be "Object 1_Non-Best Similar Image," and the operation habit tag may include "Edited and Created on 2023-1-30." The similarity type tag for image data "IMG_1130" may be "Object 1_Non-Best Similar Image," and the operation habit tags may include "Photographed on 2023-1-30" and "Viewed on 2023-1-31."
[0165] Table 4 above is only used to explain the present application and should not be construed as limiting.
[0166] In one example, when the electronic device 100 determines that non-optimal images in a group of similar images have been deleted in the recent period, the electronic device 100 may put the remaining non-optimal similar images in the group of similar images into a similar image album.
[0167] For example, the current time is February 1, 2023. Within the past two days, it was discovered that non-best similar images "IMG_1118," "IMG_1119," and "IMG_1120" in a group of similar images "IMG_1111" to "IMG_1120" in the "Portrait A" category had been deleted. Among them, "IMG_1117" was the best similar image. Therefore, electronic device 100 may place the remaining non-best similar images "IMG_1111" to "IMG_1116" in the group of similar images "IMG_1111" to "IMG_1120" into the similar image album.
[0168] In one example, when the electronic device 100 determines that more than a preset number (e.g., 2) of non-best similar images in a group of similar images have been deleted in a recent period of time, the electronic device 100 can put the remaining non-best similar images in this group of similar images into a similar image album.
[0169] For example, the current time is February 1, 2023. In the past two days, it was found that three non-best similar images "IMG_1118", "IMG_1119", and "IMG_1120" in the group of similar images "IMG_1111" to "IMG_1120" of the "Portrait A" category were deleted. Among them, "IMG_1117" is the best similar image, and the number of non-best similar images exceeds the preset number (2). Therefore, the electronic device 100 can put the remaining non-best similar images "IMG_1111" to "IMG_1116" in this group of similar images "IMG_1111" to "IMG_1120" into the similar image album.
[0170] The example in which the electronic device 100 determines whether to put a non-optimal image into a similar image album based on non-optimal similar images and operation habit labels of one or more groups of similar images is only used to explain this application and should not constitute a limitation. In specific implementations, there may be more examples without limitation.
[0171] S705: When the electronic device 100 determines to put the non-best similar image into the similar image album, the electronic device 100 may put the non-best similar image in one or more groups of similar images into the similar image album.
[0172] The electronic device 100 may upload non-optimal similar images that do not need to be included in the similar image album to the cloud server 200 by default.
[0173] S706: The electronic device 100 may display an album of similar images.
[0174] As shown in FIG8A , the gallery application interface 810 may display one or more albums (eg, all photo albums, video albums, camera albums, portrait albums, cloud albums 812 , similar image albums 811 , etc.).
[0175] The electronic device 100 may receive a user input (eg, a single click) with respect to the similar image album 811 . In response to the input, the electronic device 100 may display an interface 820 of the similar image album 811 as shown in FIG. 8B .
[0176] As shown in FIG8B , the interface 820 of the similar image album 811 displays one or more thumbnails (eg, thumbnail 821 , thumbnail 822 , etc.) that are not the best similar images.
[0177] In some other embodiments, the above method may further include the following steps:
[0178] S707: The electronic device 100 receives a synchronization strategy for adjusting non-optimal similar images in the similar image album from the user.
[0179] S708 . After receiving the user's synchronization strategy for the non-best similar image, the electronic device 100 uploads the non-best similar image to the cloud server 200 based on the synchronization strategy.
[0180] Among them, non-optimal similar images in the similar image album will not be automatically synchronized to the cloud server 200 by default.
[0181] In one example, the electronic device 100 may, by default, delay uploading the non-best similar images in the similar image album to the cloud server 200. For example, the electronic device 100 may upload the non-best similar images in the similar image album to the cloud server 200 after uploading other images to the cloud server 200.
[0182] In one example, the electronic device 100 may output a synchronization prompt after placing a non-best similar image in a group of similar images into a similar album. The synchronization prompt is used to prompt the user to manually confirm uploading the non-best similar image to the cloud server 200 .
[0183] Since the above-described screening process for non-best similar images indicates that non-best similar images are not important to the user and are likely to be deleted, the electronic device 100, by default, does not synchronize non-best similar images in the similar image album with the cloud server 200 for storage. After the electronic device 100 displays the interface for the similar image album, the user can select whether to upload the non-best similar images to the cloud server 200 in the interface for the similar image album. After the user confirms that the non-best similar images are to be uploaded to the cloud server 200, the electronic device 100 can upload the non-best similar images to the cloud server 200.
[0184] For example, as shown in FIG8B , the electronic device 100 may receive an input operation (eg, a single click) from a user on the thumbnail 821 . In response to the input operation, the electronic device 100 may display a picture browsing interface 830 as shown in FIG8C .
[0185] As shown in FIG8C , the image browsing interface 830 may include a non-best similar image 831 corresponding to the thumbnail 821, a sync to cloud control 832 for the name of the non-best similar image 831 (e.g., "IMG_1121"), and a menu 833. The sync to cloud control 832 may be used to trigger immediate synchronization of the non-best similar image 831 to the cloud server 200 for storage. The menu 833 may include a share button 834, a favorite button 835, an edit button 836, a delete button 837, and a more button 838. The share button 834 may be used to trigger sharing of the non-best similar image 831. The favorite button 835 may be used to trigger adding the non-best similar image 831 to a favorites folder. The edit button 836 may be used to trigger editing functions such as rotating, cropping, adding filters, blurring, etc. on the non-best similar image 831. The delete button 837 may be used to trigger deletion of the non-best similar image 831. The more button 838 may be used to trigger access to more functions related to the non-best similar image 831.
[0186] The electronic device 100 may receive a user input (e.g., a single click) on the synchronize to cloud control 832. In response to the input, the electronic device 100 may upload the non-best similar image 831 to the cloud server 200 for storage. After the non-best similar image 831 is uploaded to the cloud server 200 for storage, the electronic device 100 may add the non-best similar image 831 to the aforementioned cloud album 812. The user may view the image data that the electronic device 100 has synchronized with the cloud server 200 and stored in the aforementioned cloud album 812.
[0187] In some embodiments, since different types of images have different importance to the user, the synchronization strategies for different types of similar images may be set differently. In addition, the following synchronization strategies may be pre-set or may be set and modified by the user as needed.
[0188] For example, for a group of similar images of selfie or portrait type, if the user only deletes some non-best similar images in this group of similar images, the electronic device 100 can choose to upload the best similar image in this group of similar images of selfie or portrait type, and put the remaining non-best similar images in the similarity map of this group of similar images of selfie or portrait type into the similar image album, and output a synchronization prompt to prompt the user to manually confirm uploading the non-best similar images to the cloud server 200.
[0189] For another example, for a group of similar images of the landscape type, if the user only deletes some non-best similar images in this group of similar images, the electronic device 100 may choose to upload the remaining best similar images and non-best similar images in this group of similar images of the landscape type.
[0190] For another example, for a group of similar macro images, if the user does not delete any image in the group of similar macro images, the electronic device 100 may default to not uploading all images in the group of similar macro images.
[0191] In some embodiments, after a preset time, when the electronic device 100 deletes non-best similar images that are part of a group of similar images in the similar image album according to the user's operation, the electronic device 100 can upload all the remaining non-best similar images of this group of similar images in the similar image album to the cloud server 200.
[0192] For example, the similar image album includes 9 non-best similar images in a group of similar images. Two days after the user deleted 4 of the 9 non-best similar images in the similar image album, the user uploaded the remaining 5 non-best similar images of the 9 non-best similar images to the cloud server 200.
[0193] S709 : The electronic device 100 uses the synchronization strategy of the non-optimal similar images to learn the operation habits.
[0194] If the electronic device 100 determines that the number or proportion of non-optimal similar images selected by the user from a group of similar images for uploading to the cloud server 200 exceeds a certain threshold, the electronic device 100 may increase the priority of uploading the group of similar images to the cloud server 200. For example, the electronic device 100 may then upload all images in the group of similar images to the cloud server 200 by default.
[0195] In one example, the electronic device 100 can add this group of similar images together with other image data to the upload queue according to the creation time of the image data, and then upload the image data in the upload queue to the cloud server 200 in sequence according to the upload order of the upload queue.
[0196] In another example, if the same group of similar images are of the same type (e.g., portraits), the electronic device 100 can add this group of similar images and other types of image data to an upload queue based on the priority of the image data's content category, and then upload the image data in the upload queue to the cloud server 200 in the upload order of the upload queue. Image data with a higher category priority will be uploaded first, and for image data of the same category, the earlier the creation time, the earlier it will be uploaded.
[0197] In an embodiment of the present application, if the method steps shown in FIG7 are executed based on the software architecture shown in FIG4 , the image intelligent analysis module 430 may execute step S702, the operation habit analysis module 440 may execute step S703, the classification automatic decision module 450 may execute steps S704 and S705, the virtual album module 410 may execute step S706, the operation strategy adjustment module 420 may execute steps S707 and S709, and the synchronization strategy control module 460 may execute step S708. The above examples are merely for explaining the present application and should not be construed as limiting.
[0198] By providing a cloud album synchronization method in an embodiment of the present application, it is possible to achieve: the electronic device 100 performs intelligent analysis on local image data and the user's operating habits on the image data, and identifies one or more groups of similar images, as well as the best similar images and non-best similar images in each group of similar images. The electronic device 100 can upload the best similar image to the cloud server 200 by default. The electronic device 100 can choose whether to put it into the similar image album based on the operating habits of the non-best similar image. The user views and adjusts the synchronization strategy of the non-best similar image from the similar image album, and the electronic device 100 can upload the non-best similar image to the cloud server 200 based on the synchronization strategy. In this way, the efficiency of synchronizing image data to the cloud can be improved and the resource usage can be reduced.
[0199] FIG9 shows a flow chart of a cloud album synchronization method provided in another embodiment of the present application.
[0200] As shown in FIG9 , the method may include:
[0201] S901. The electronic device 100 may generate image data based on a user operation.
[0202] Among them, the user can use the electronic device 100 to take photos and / or videos. Therefore, the electronic device 100 can receive and generate photos and / or videos in response to the user's operation of using the camera application on the electronic device 100.
[0203] In one example, the user can also use the electronic device 100 to take a screenshot or record the content displayed on the display screen of the electronic device 100 (referred to as screenshot). Therefore, the electronic device 100 can receive and respond to the user's screenshot or recording operation to generate a screenshot image or a recorded video.
[0204] In one example, the user can also use the electronic device 100 to browse a web page or a page in an application, and save the network image (including a network picture or a network video) displayed on the web page or the page in the application locally. Therefore, the electronic device 100 can receive and generate a network image locally in response to the user's operation of saving the network image.
[0205] In one example, the user can also use the electronic device 100 to receive images (including pictures or videos) shared by other electronic devices. Therefore, the electronic device 100 can receive and generate the shared image locally in response to the user's operation of receiving the image shared by other electronic devices.
[0206] In the embodiment of the present application, the image data generated by the electronic device 100 is not limited to the above-mentioned photos taken by the user, videos taken by the user, screenshots, screen recordings, network pictures, network videos, shared pictures or shared videos, etc., and can also be generated locally on the electronic device 100 by other means, which is not limited here.
[0207] S902: The electronic device 100 may identify the image type of the image data, and mark the image data with an image type label based on the image type of the image data.
[0208] The image type includes one or more of content type, similarity type, and quality type. The content type includes any of landscape, portrait, document, QR code, object, macro, and the like. The similarity type includes best similar image or non-best similar image. The quality type includes any one or more of normal, overexposed, dark, and blurred.
[0209] For example, the image type label of the image data may be as shown in Table 5 below:
[0210] Table 5
[0211] As can be seen from Table 5 above, the image type label of the image data “IMG_1111” may include “landscape” and “overexposed”. The image type label of the image data “IMG_1112” may include “landscape” and “normal”. The image type label of the image data “IMG_1113” may include “landscape” and “dark”. The image type label of the image data “IMG_1114” may include “landscape” and “blurred”. The image type label of the image data “IMG_1115” may include “document” and “blurred”. The image type label of the image data “IMG_1116” may include “document” and “normal”. The image type label of the image data “IMG_1117” may include “QR code” and “blurred”. The image type label of the image data “IMG_1118” may include “QR code” and “normal”. The image type label of the image data “IMG_1119” may include “portrait” and “blurred” and “portrait 1_non-best similar image”. The image type label of the image data “IMG_1120” may include “portrait” and “normal” and “portrait 1_non-best similar image”. Image type tags of image data “IMG_1121” may include “portrait”, “normal”, and “portrait1_best similar image”. Image type tags of image data “IMG_1122” may include “portrait”, “normal”, and “portrait1_non-best similar image”.
[0212] The examples shown in Table 5 above are only used to explain the present application and should not be construed as limiting.
[0213] S903 , the electronic device 100 records the user's operating habits on the image data, and marks the image data with an operating habit label based on the operating habits.
[0214] The operation habit tag may also include the time when the user operates on the image data.
[0215] The user's operation habits on image data may include image data source operations, image data sorting operations, and image data synchronization strategy adjustment operations.
[0216] The source operation of the image data may include a user's shooting operation, a screenshot operation, a receiving and sharing operation, an editing and creating operation, a downloading operation, and the like.
[0217] For example, when the source operation of the image data is a shooting operation, the electronic device 100 can label the image data as "2023-1-30 Photographed". When the source operation of the image data is a screenshot operation, the electronic device 100 can label the image data as "2023-1-30 Screenshot". When the source operation of the image data is a receiving and sharing operation, the electronic device 100 can label the image data as "2023-1-30 Shared". When the source operation of the image data is an operation of creating after editing, the electronic device 100 can label the image data as "2023-1-30 Created after editing". When the source operation of the image data is a downloading operation, the electronic device 100 can label the image data as "2023-1-30 Downloaded".
[0218] The image data organization operations may include user browsing operations, deletion operations, sharing operations, and the like.
[0219] For example, when the image data organization operation is a browsing operation, the electronic device 100 may tag the image data with "2023-1-30 Browsed". When the image data organization operation is a deletion operation, the electronic device 100 may tag the image data with "2023-1-30 Deleted", retain the "2023-1-30 Deleted" tag, and then delete the image data. When the image data organization operation is a sharing operation, the electronic device 100 may tag the image data with "2023-1-30 Shared".
[0220] The synchronization policy adjustment operation of the image data may include immediate synchronization of the image data in the virtual album, synchronization prohibition, etc. The description of the temporary image album can refer to the subsequent steps S505 to S507, which will not be repeated here.
[0221] For example, when the image data synchronization policy adjustment operation is an operation to immediately synchronize the image data in the virtual album, the electronic device 100 may label the image data as "Upload immediately on 2023-1-30." When the image data synchronization policy adjustment operation is an operation to prohibit synchronization of the image data in the virtual album, the electronic device 100 may label the image data as "Temporary image 2023-1-30, prohibit upload."
[0222] For example, the image type label and operation habit label of the image data may be as shown in Table 6 below:
[0223] Table 6
[0224] It can be seen from Table 6 above that the image type tags of the image data "IMG_1111" may include "scenery" and "overexposure", and the operation habit tags may include "photographed on 2023-1-30", "viewed 1 time on 2023-1-31". The image type tags of the image data "IMG_1112" may include "scenery" and "normal", and the operation habit tags may include "photographed on 2023-1-30", "shared on 2023-1-31". The image type tags of the image data "IMG_1113" may include "scenery" and "dark", and the operation habit tags may include "photographed on 2023-1-30", "viewed 3 times on 2023-1-31". The image type tags of the image data "IMG_1114" may include "scenery" and "blurred", and the operation habit tags may include "downloaded on 2023-1-30", "viewed 1 time on 2023-1-31". The image type tags of the image data "IMG_1115" may include "document" and "blur", and the operation habit tags may include "screenshot 2023-1-30" and "delete 2023-1-31". The image type tags of the image data "IMG_1116" may include "document" and "normal", and the operation habit tags may include "download 2023-1-30" and "viewed 2 times 2023-1-31". The image type tags of the image data "IMG_1117" may include "QR code" and "blur", and the operation habit tags may include "screenshot 2023-1-30" and "delete 2023-1-31". The image type tags of the image data "IMG_1118" may include "QR code" and "normal", and the operation habit tags may include "screenshot 2023-1-30". The image type tags of the image data "IMG_1119" may include "portrait", "blur", "portrait 1_non-best similar image", and the operating habit tags may include "photographed on 2023-1-30", "viewed 2 times on 2023-1-31". The image type tags of the image data "IMG_1120" may include "portrait", "blur", "portrait 1_non-best similar image", and the operating habit tags may include "photographed on 2023-1-30", "shared on 2023-1-31". The image type tags of the image data "IMG_1121" may include "portrait", "normal", "portrait 1_best similar image", and the operating habit tags may include "created after editing on 2023-1-30", "viewed 1 time on 2023-1-31". The image type tags of the image data "IMG_1122" may include "portrait", "normal", "portrait 1_non-best similar image", and the operating habit tags may include "photographed on 2023-1-30", "viewed 2 times on 2023-1-31".
[0225] The examples shown in Table 6 above are only used to explain this application and should not be construed as limiting.
[0226] S904: The electronic device 100 determines a grade score of the image data based on the image type label and the operation habit label of the image data.
[0227] Different image type labels can have different or identical scores, and different operation habit labels can also have different or identical scores. Image type labels and operation habit labels can also have different or identical weights. The image data's rank score indicates its importance to the user. A lower rank score indicates less importance to the user, while a higher rank score indicates more importance to the user.
[0228] The electronic device 100 can determine the grade score of the image data based on the image type label and operation habit label of the image data, the score corresponding to the image type label, the score corresponding to the operation habit label, the weight of the image type label, and the weight of the operation habit label.
[0229] The electronic device 100 can determine the grade score of the image data by the following formula (1): S = a*(A1+A2+…+An)+b*(B1+B2+…+Bm) Formula (1)
[0230] Among them, S is the grade score of the image data, a is the weight corresponding to the image type label, b is the weight corresponding to the operation habit label, An is the score of the nth image type label possessed by the image data, and Bm is the score of the mth operation habit label possessed by the image data.
[0231] For example, in the content type label, the scores corresponding to "macro", "document", and "QR code" can be negative values, and the scores corresponding to "landscape" and "portrait" can be positive values. In the similarity type label, the score corresponding to "best similar image" is a positive value, and the score of "non-best similar image" is a negative value. In the quality type label, the score corresponding to "normal" can be a positive value, and the scores corresponding to "overexposed", "dark", and "blurred" can be negative values. In the operation habit label, the weights corresponding to labels such as "screenshot", "download", and "delete" can be negative values, and the weights corresponding to other operation habit labels can be positive values. Among them, the weight corresponding to the image type label can be 0.3, and the weight corresponding to the operation habit label can be 0.7.
[0232] S905: The electronic device 100 determines whether the grade score of the image data is less than a specified score.
[0233] S906 . When the grade score of the image data is not less than the specified score, the electronic device 100 may upload the image data to the cloud server 200 .
[0234] For example, as shown in Table 6 above, the image type tags of the image data "IMG_1121" may include: "Portrait", "Normal", "Portrait 1_Best Similar Image", and the operation type tags may include "Edited and created on 2023-1-30", "Viewed 1 time on 2023-1-31". Among them, the score of the "Portrait" tag is 2, the score of the "Normal" tag is 3, the score of "Best Similar Image" is 2, the score of "Edited and created on 2023-1-30" is 3, and the score of "Viewed 1 time on 2023-1-31" is 1. The weight corresponding to the image type tag can be 0.3, and the weight corresponding to the operation habit tag can be 0.7. Therefore, the grade score of the image data "IMG_1121" is 4.9. Among them, the specified score can be 4, so the electronic device 100 can add the image data "IMG_1121" to the upload queue and upload it to the cloud server 200.
[0235] For another example, the image type tags of the image data "IMG_1119" shown in Table 6 above may include "portrait", "blurred", "portrait 1_non-best similar image", and the operation habit tags may include "photographed on 2023-1-30", "viewed 2 times on 2023-1-31". The image type tags of the image data "IMG_1122" may include "portrait", "normal", "portrait 1_non-best similar image", and the operation habit tags may include "photographed on 2023-1-30", "viewed 2 times on 2023-1-31". Among them, the operation habit tags of the image data "IMG_1119" are the same as the operation habit tags of the image data "IMG_1122". The quality type tag ("blurred") in the image type tag of the image data "IMG_1119" is different from the quality type tag ("normal") in the image data "IMG_1122". Among them, the score of the "portrait" label is 2, the score of "non-best similar image" is 1, the score of the "normal" label is 3, the score of the "blurred" label is -1, the score of "photographed on 2023-1-30" is 3, and the score of "viewed 2 times on 2023-1-31" is 1. The weight corresponding to the image type label can be 0.3, and the weight corresponding to the operation habit label can be 0.7. Therefore, the score of the image data "IMG_1119" is 3.4, and the score of the image data "IMG_1122" is 4.6. Among them, the specified score can be 4, so the electronic device 100 can add the image data "IMG_1122" to the upload queue, upload it to the cloud server 200, and put the image data "IMG_1119" into the virtual album.
[0236] For another example, the image type tags of the image data "IMG_1119" shown in Table 6 above may include "portrait", "blur", "portrait 1_non-best similar image", and the operation habit tags may include "photographed on 2023-1-30", "viewed 2 times on 2023-1-31". The image type tags of the image data "IMG_1120" may include "portrait", "blur", "portrait 1_non-best similar image", and the operation habit tags may include "photographed on 2023-1-30", "shared on 2023-1-31". The image type tag of the image data "IMG_1119" is the same as the image type tag of the image data "IMG_1120". The operation type tag of the image data "IMG_1119" is different from the operation type tag of the image data "IMG_1122". Among them, the score of the "portrait" tag is 2, the score of "non-best similar image" is 1, the score of the "blurred" tag is -1, the score of the "photographed on 2023-1-30" tag is 3, the score of the "viewed 2 times on 2023-1-31" tag is 1, and the score of the "shared on 2023-1-31" tag is 2. The weight corresponding to the image type tag can be 0.3, and the weight corresponding to the operation habit tag can be 0.7. Therefore, the score of the image data "IMG_1119" is 3.4, and the score of the image data "IMG_1120" is 4.1. Among them, the specified score can be 4, so the electronic device 100 can add the image data "IMG_1120" to the upload queue, upload it to the cloud server 200, and put the image data "IMG_1119" into the virtual album.
[0237] The above examples are only used to explain the present application and should not be construed as limiting.
[0238] S907: When the grade score of the image data is less than the specified score, the electronic device 100 may put the image data into a virtual album.
[0239] S908. The electronic device 100 may display a virtual photo album.
[0240] In one example, the display interface of the virtual album may refer to the temporary image album interface 630 in the embodiment shown in FIG. 6C or the similar image album interface 820 in the embodiment shown in FIG. 8B , which will not be described in detail here.
[0241] In another example, the electronic device 100 may divide the image data into multiple virtual albums according to the content type, and the electronic device 100 may classify the image data with a rating score less than a specified threshold into the multiple virtual albums according to the content type.
[0242] In some other embodiments, the above method may further include the following steps:
[0243] S909 . The electronic device 100 may receive a synchronization strategy for adjusting image data in a virtual album from the user.
[0244] S910 , after receiving the user's synchronization policy for the image data in the virtual album, the electronic device 100 uploads the image data in the virtual album to the cloud server 200 based on the synchronization policy.
[0245] Because the image data in the virtual album is not important to the user and is likely to be deleted, the electronic device 100 does not synchronize the image data in the virtual album with the cloud server 200 by default. After the electronic device 100 displays the virtual album interface, the user can choose whether to upload a certain image data to the cloud server 200. After the user confirms that the image data in the virtual album is to be uploaded to the cloud server 200, the electronic device 100 can upload the image data to the cloud server 200.
[0246] S911. The electronic device 100 uses the synchronization strategy to learn operating habits.
[0247] If the electronic device 100 determines that the number or proportion of images selected for upload to the cloud server 200 by the user from the virtual album for the first content type (e.g., QR code) exceeds a certain threshold, the electronic device 100 may increase the score corresponding to the first content type. If the electronic device 100 determines that the number or proportion of images selected for deletion by the user from the virtual album for the first content type (e.g., QR code) exceeds a certain threshold, the electronic device 100 may decrease the score corresponding to the first content type.
[0248] In an embodiment of the present application, if the method steps shown in FIG5 are executed based on the software architecture shown in FIG4, the image intelligent analysis module 430 may execute step S902, the operation habit analysis module 440 may execute step S903, the classification automatic decision module 450 may execute steps S904, S905, and S907, the virtual album module 410 may execute step S908, the operation strategy adjustment module 420 may execute steps S909 and S911, and the synchronization strategy control module 460 may execute steps S906 and S910. The above examples are merely for explaining the present application and should not be construed as limiting.
[0249] By providing a cloud album synchronization method in an embodiment of the present application, it is possible to achieve: the electronic device 100 performs intelligent analysis of local image data and the user's operating habits on the image data, determines the importance of the image data (i.e., the grade score) based on the image type of the image data and / or the user's operating habits on the image data, and selects different synchronization strategies based on the importance of the image data. In this way, the efficiency of synchronizing image data to the cloud can be improved and resource usage can be reduced.
[0250] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A cloud album synchronization method, characterized in that: include: The electronic device acquires a plurality of image data stored locally; The electronic device identifies image contents of the plurality of image data and records the user's operation habits on the plurality of image data; The electronic device divides the plurality of image data into important images and non-important images based on image contents of the plurality of image data and a user's operation habits on the plurality of image data; The electronic device uploads the important images to a cloud server and puts the unimportant images into a designated album; The electronic device receives a first input from a user to open the designated album; In response to the first input, the electronic device displays a first interface of the designated album, wherein the first interface includes a first image, and the first image is the non-important image; The electronic device receives a second input from a user selecting to synchronize the first image; In response to the second input, the electronic device uploads the first image to the cloud server.
2. The method according to claim 1, characterized in that The electronic device selects important images and unimportant images from the plurality of image data based on image contents of the plurality of image data and a user's operation habits on the plurality of image data, including: If the user has an operation of deleting image data of a specified content type within a specified time period, the electronic device determines the image data of the specified content type among the multiple image data as the unimportant image.
3. The method according to claim 1, characterized in that The electronic device selects important images and unimportant images from the plurality of image data based on image contents of the plurality of image data and a user's operation habits on the plurality of image data, including: If the number of image data of a specified content type deleted by the user exceeds a specified threshold within a specified time period, the electronic device determines the image data of the specified content type among the multiple image data as unimportant images.
4. The method according to claim 1, characterized in that: The electronic device selects important images and unimportant images from the plurality of image data based on image contents of the plurality of image data and a user's operation habits on the plurality of image data, including: If the user deletes more than a specified number of image data of a specified content type within a specified time period and the image data originates from a specified source operation, the electronic device determines the image data of the multiple image data whose content type is the specified content type and originates from the specified source operation as non-important images.
5. The method according to any one of claims 1 to 4, characterized in that The electronic device selects important images and unimportant images from the plurality of image data based on image contents of the plurality of image data and a user's operation habits on the plurality of image data, including: The electronic device determines one or more groups of similar images from the plurality of image data based on image contents of the plurality of image data, wherein the one or more groups of similar images include a first group of similar images; The electronic device determines at least one best similar image and at least one non-best similar image in the first group of similar images; If the user deletes at least one non-best similar image in the first group of similar images within a specified time period, the electronic device determines the remaining non-best similar images in the first group of similar images as the non-important images, and determines the best similar image in the first group of similar images as the important image; and / or If the user does not delete the non-best similar image in the first group of similar images within a specified time period, the electronic device determines both the best similar image and the non-best similar image in the first group of similar images as the important images.
6. The method according to any one of claims 1 to 4, characterized in that The electronic device selects important images and unimportant images from the plurality of image data based on image contents of the plurality of image data and a user's operation habits on the plurality of image data, including: The electronic device determines one or more groups of similar images from the plurality of image data based on image contents of the plurality of image data, wherein the one or more groups of similar images include a first group of similar images; The electronic device determines at least one best similar image and at least one non-best similar image in the first group of similar images; If the number of non-best similar images deleted by the user in the first group of similar images exceeds a preset number within a specified time period, the electronic device determines the remaining non-best similar images in the first group of similar images as the non-important images, and determines the best similar image in the first group of similar images as the important image; and / or If the user does not delete the non-best similar images in the first group of similar images within the specified time period and the number exceeds the preset number, the The electronic device determines both the best similar images and the non-best similar images remaining in the first group of similar images as the important images.
7. The method according to any one of claims 1 to 6, characterized in that The electronic device selects important images and unimportant images from the plurality of image data based on image contents of the plurality of image data and a user's operation habits on the plurality of image data, including: The electronic device determines the grade scores of the plurality of image data based on the image contents of the plurality of image data and the operation habits of the user on the plurality of image data; Based on the grade scores of the multiple image data, the electronic device determines the image data whose grade scores are greater than or equal to a specified score as the important image, and determines the image data whose grade scores are less than the specified score as the unimportant image.
8. The method according to claim 7, characterized in that The plurality of image data include image type labels and operation habit labels, wherein the image type labels are related to the image types of the plurality of image data, and the operation habit is related to the operation habit of the user; The electronic device determines the grade scores of the plurality of image data based on the image contents of the plurality of image data and the operation habits of the user on the plurality of image data, including: The electronic device determines the grade scores of the plurality of image data based on the image type labels and the operation habit labels of the plurality of image data, the scores corresponding to the image type labels, and the scores corresponding to the operation habit labels.
9. The method according to claim 8, characterized in that The weight corresponding to the image type label is the same as or different from the weight corresponding to the operation habit label; The electronic device determines the grade scores of the plurality of image data based on the image type labels and the operation habit labels of the plurality of image data, the scores corresponding to the image type labels, and the scores corresponding to the operation habit labels, including: The electronic device determines the grade scores of the multiple image data based on the image type labels and operation habit labels of the multiple image data, the scores corresponding to each image type label, the scores corresponding to each operation habit label, the weights corresponding to the image type labels and the weights corresponding to the operation habit labels.
10. The method according to claim 8 or 9, characterized in that: The image type label includes one or more labels of content type, similarity type, and quality type, wherein the content type label includes any label of landscape, portrait, document, QR code, object, and macro; the similarity type includes the best similar image or the non-best similar image; and the quality type includes any one or more of normal, overexposed, dark, and blurred.
11. The method according to any one of claims 2 to 4, characterized in that: The specified content type is a QR code type.
12. An electronic device, characterized in that: The electronic device comprises one or more processors, one or more memories and a transceiver; wherein the transceiver and the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 1-11.
13. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Automated selective upload of images
CN106165386A
Systems and methods for identifying unwanted photos stored on a device
CN107408212A
Picture processing method and device and electronic equipment
CN108804653A
A system that identifies and deletes unimportant photos.
TR201920055A2
Cited By
Photo album synchronization method, system and equipment based on swan Mongolia cloud mobile phone and medium
CN121037069A
