File icon generation method and electronic device
Patent Information
- Application Number
- PCT/CN2025/132107
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-02-28
- Filing Date
- 2025-11-03
- Publication Date
- 2026-09-03
Smart Images

Figure CN2025132107_03092026_PF_FP_ABST
Abstract
Description
File icon generation method and electronic devices
[0001] This application claims priority to Chinese patent application filed on February 28, 2025, with application number 202510240385.7 and entitled "Method for generating document icons and electronic device", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technology, and in particular to a method for generating file icons and an electronic device. Background Technology
[0003] With the development of the digital information age, the number of files stored on electronic devices and circulating on the Internet is increasing. When browsing or searching for files, users find it difficult to quickly identify the subject content of the files, resulting in low efficiency in finding and managing files.
[0004] For example, file icons are usually default icons, such as those for Word and PDF files, which are typically the default style of the operating system. This makes it difficult for users to quickly find the file they need among a large number of similar file icons. Users then need to identify each file name individually or open the file to view its contents to confirm if it is the file they need, making it difficult to quickly complete the file search. Summary of the Invention
[0005] To address the aforementioned technical problems, this application provides a method for generating file icons and an electronic device. The technical solution provided by this application can display richer content related to the file's contents on the file icon, thereby helping users quickly identify the required file and improving file search and management efficiency.
[0006] To achieve the above-mentioned technical objectives, this application provides the following technical solution:
[0007] Firstly, a method for generating a file icon is provided, applied to an electronic device. The method includes: detecting a first user operation, the first operation triggering the generation of a file icon for a first file; responding to the first operation, generating a file icon for the first file based on its content; wherein the file icon includes one or more of the following: background color, illustration, title, summary, and key attribute information; and displaying the file icon.
[0008] Therefore, compared to the default file icon style, the file icon generation method provided in this application allows electronic devices to generate personalized file icons related to the file content. This allows users to quickly understand the file content through the file icon, thereby improving file search and management efficiency.
[0009] According to the first aspect, the background color is determined based on one or more of the theme, mood, and theme color of the first image included in the content of the first document.
[0010] According to the first aspect, or any implementation of the first aspect above, the first image is the image in the first file that has the highest degree of matching with the theme of the content of the first file.
[0011] Alternatively, the electronic device can determine the matching degree between the image and the topic by calculating the vector similarity between the image and the topic, thereby obtaining the first image in the file content that best matches the topic.
[0012] Therefore, by setting the background color of file icons, one can effectively influence the visual effect of the icons, convey the emotions expressed in the file content, enhance the information delivery effect, and thus effectively guide the user's attention. Furthermore, different colors may have specific meanings in different cultures and contexts; setting the background color of file icons can also effectively convey these specific meanings.
[0013] According to the first aspect, or any implementation of the first aspect above, the illustration includes an image generated based on the file content of the first file, and / or, the illustration includes an image selected in the file content of the first file based on the theme of the file content of the first file.
[0014] In this way, electronic devices can not only generate illustrations based on file content, but also select appropriate images from the file content as illustrations. By setting illustrations in file icons, users' ability to recognize files can be improved, and the consistency and interactivity of the user experience can be enhanced.
[0015] According to the first aspect, or any implementation of the first aspect above, the title or abstract is determined based on the content of the first document.
[0016] According to the first aspect, or any implementation of the first aspect above, the title or abstract is determined based on one or more of the abstract, title, table header, and page signature included in the content of the first document.
[0017] In this way, by setting the title in the file icon, users can quickly identify the file's subject through concise and clear text descriptions, improving the efficiency of file searching and management. Furthermore, by setting the summary in the file icon, users can intuitively receive more detailed information related to the file content, helping them understand the main content or characteristics of the file.
[0018] According to the first aspect, or any of the above implementations of the first aspect, the key attribute information is the corresponding attribute information obtained based on the genre of the first file.
[0019] According to the first aspect, or any of the above implementations of the first aspect, the key attribute information is determined based on one or more of the following: the file content of the first file, the metadata of the first file, and the data associated with the first file.
[0020] For example, if an electronic device determines that the genre of the first document is a patent, then, based on the attributes corresponding to the patent, the attribute information obtained by the electronic device from the content of the first document includes, for example: virtual reality or deep learning corresponding to the subject attribute; substantive examination corresponding to the legal status attribute; August 1, 2024 corresponding to the publication date attribute; and US patent corresponding to the country of application attribute.
[0021] For example, an electronic device can obtain key attribute information based on the format of the first file, such as if the key attribute information is DOCX.
[0022] For example, an electronic device can extract key attribute information from the data associated with the first file. For instance, the key attribute information obtained by electronic device 100 includes file size, file format, file creation time, file modification time, file name, file type, file source, file mood, number of characters, number of images included in the file, number of recent visits, file importance, permissions and owner, file extension, version information, and file checksum.
[0023] According to the first aspect, or any of the above implementations of the first aspect, the genre includes one or more of the following: thesis, patent, exam paper, contract, instruction manual, plan, report, resume, courseware.
[0024] According to the first aspect, or any implementation of the first aspect above, the attributes corresponding to a thesis include one or more of the following: topic, keywords, research object, journal type, publication year, and impact factor. Alternatively, the attributes corresponding to a patent include one or more of the following: patent type, topic, legal status, application date, country of application, inventor, applicant, patent number, publication date, and technical field. Alternatively, the attributes corresponding to an exam paper include one or more of the following: exam paper name, exam subject, exam time, question type, difficulty, and total score. Alternatively, the attributes corresponding to a contract include one or more of the following: contract title, signatories, signing date, and contract period. Alternatively, the attributes corresponding to a manual include one or more of the following: product name, functional description, technical parameters, usage method, and precautions. Alternatively, the attributes corresponding to a solution include one or more of the following: solution name, background, objectives and purpose, implementation time, and budget and costs. Alternatively, the attributes corresponding to a report include one or more of the following: title, target audience, and purpose. Alternatively, the attributes corresponding to a resume include one or more of the following: personal information, job objective, educational background, work experience, skills and certificates, project experience, honors and awards, and hobbies. Alternatively, the attributes of the courseware may include one or more of the following: courseware title, teaching objectives, and teaching methods.
[0025] In this way, by setting key attribute information in the file icon, users can quickly understand the key attributes of the file through concise and clear text descriptions, thereby improving the efficiency of file search and management.
[0026] According to the first aspect, or any implementation of the first aspect above, the method further includes: detecting a second operation in which the user instructs the sending of a first file, and sending file-related information to the peer device, the file-related information including the first file and a file icon.
[0027] According to the first aspect, or any of the implementation methods of the first aspect above, the second operation is one or more of the following: sharing operation, sending operation, attachment addition operation, and upload operation.
[0028] For example, after generating the file icon for the first file, the electronic device detects the user's second action. Then, while sending the first file to the peer device, the electronic device can also send the file icon to the peer device. This reduces the number of steps required to generate the file icon for the peer device, improving the efficiency of file icon display. Furthermore, the transmitted file icon helps the user on the peer device understand the content of the first file.
[0029] Optionally, after receiving the file icon, the peer device can update the displayed content of the file icon based on user operation or automatically.
[0030] In this way, the electronic device sends the file icon along with the first file to the other device, allowing the user on the other device to understand the contents of the first file in advance based on the file icon before deciding whether to receive or download the first file, thereby improving the efficiency of receiving or downloading the first file and enhancing the user experience.
[0031] According to the first aspect, or any implementation of the first aspect above, the first operation is one or more of the following: download operation, receive operation, and operation to instruct the updating of the file icon.
[0032] In this way, electronic devices can display file icons associated with file content in various scenarios, improving the efficiency of users managing files.
[0033] According to the first aspect, or any implementation of the first aspect above, the method further includes: detecting a third operation by the user on a file icon; wherein the third operation is used to instruct updating target content in the file icon, the target content including one or more of the following: background color, illustration, title, summary, and key attribute information in the file icon. In response to the third operation, the target content is updated.
[0034] In this way, users can flexibly update some or all of the content in the file icon according to their own needs, thus improving the user experience.
[0035] According to the first aspect, or any implementation of the first aspect above, the number of schematic diagrams is multiple, and the display of file icons includes: displaying schematic diagrams on file icons according to a preset display method; wherein, the preset display method includes any of the following: looping playback according to a preset frequency, switching display according to user operation, or tiling.
[0036] Optionally, the electronic device can determine the display method of the diagram based on user operation.
[0037] In this way, electronic devices can flexibly display multiple illustrations, providing users with richer file icon display effects.
[0038] According to the first aspect, or any implementation of the first aspect above, the number of key attribute information is multiple, and the file icon is displayed, including: displaying all key attribute information on the file icon. Alternatively, in response to the user's collapse or expansion operation, some or all of the key attribute information is displayed on the file icon.
[0039] In this way, by flexibly displaying key attribute information, the display requirements of key attribute information of file icons are met while reducing the display space occupied by key attribute information on file icons.
[0040] Secondly, an electronic device is provided. The electronic device includes: a processor, a memory, and a display screen, the memory and display screen being coupled to the processor. The memory stores computer program code, including computer instructions. When the processor reads the computer instructions from the memory, the electronic device performs the following actions: detecting a first user operation, the first operation triggering the generation of a file icon for a first file; responding to the first operation, generating a file icon for the first file based on its content; wherein the file icon includes one or more of the following: a background color, an illustration, a title, a summary, and key attribute information; and displaying the file icon.
[0041] According to the second aspect, the background color is determined based on one or more of the theme, mood, and theme color of the first image included in the content of the first document.
[0042] According to the second aspect, or any implementation of the second aspect above, the first image is the image in the first file that has the highest degree of matching with the theme of the content of the first file.
[0043] According to the second aspect, or any implementation of the second aspect above, the illustration includes an image generated based on the file content of the first file, and / or, the illustration includes an image selected in the file content of the first file based on the theme of the file content of the first file.
[0044] According to the second aspect, or any implementation of the second aspect above, the title or abstract is determined based on the content of the first document.
[0045] According to the second aspect, or any implementation of the second aspect above, the title or abstract is determined based on one or more of the abstract, title, table header, and page signature included in the content of the first document.
[0046] According to the second aspect, or any of the implementation methods of the second aspect above, the key attribute information is the corresponding attribute information obtained based on the genre of the first file.
[0047] According to the second aspect, or any of the above implementations of the second aspect, the genre includes one or more of the following: papers, patents, exam papers, contracts, instructions, plans, reports, resumes, and courseware.
[0048] According to the second aspect, or any implementation of the second aspect above, the attributes corresponding to a thesis include one or more of the following: topic, keywords, research object, journal type, publication year, and impact factor. Alternatively, the attributes corresponding to a patent include one or more of the following: patent type, topic, legal status, application date, country of application, inventor, applicant, patent number, publication date, and technical field. Alternatively, the attributes corresponding to an exam paper include one or more of the following: exam paper name, exam subject, exam time, question type, difficulty, and total score. Alternatively, the attributes corresponding to a contract include one or more of the following: contract title, signatories, signing date, and contract period. Alternatively, the attributes corresponding to a manual include one or more of the following: product name, functional description, technical parameters, usage method, and precautions. Alternatively, the attributes corresponding to a solution include one or more of the following: solution name, background, objectives and purpose, implementation time, and budget and costs. Alternatively, the attributes corresponding to a report include one or more of the following: title, target audience, and purpose. Alternatively, the attributes corresponding to a resume include one or more of the following: personal information, job objective, educational background, work experience, skills and certificates, project experience, honors and awards, and hobbies. Alternatively, the attributes of the courseware may include one or more of the following: courseware title, teaching objectives, and teaching methods.
[0049] According to the second aspect, or any implementation of the second aspect above, the key attribute information is determined based on one or more of the following: the file content of the first file, the metadata of the first file, and the data associated with the first file.
[0050] According to the second aspect, or any implementation of the second aspect above, when the processor reads computer instructions from memory, it also causes the electronic device to perform: a second operation of detecting a user instruction to send a first file, and sending file-related information to the peer device, the file-related information including the first file and a file icon.
[0051] According to the second aspect, or any implementation of the second aspect above, the second operation is one or more of the following: sharing operation, sending operation, attachment addition operation, and upload operation.
[0052] According to the second aspect, or any implementation of the second aspect above, the first operation is one or more of the following: download operation, receive operation, and operation to instruct the file icon to be updated.
[0053] According to the second aspect, or any implementation of the second aspect above, when the processor reads computer instructions from memory, it further causes the electronic device to perform: detecting a third operation by the user on a file icon; wherein the third operation is used to instruct updating target content in the file icon, the target content including one or more of the following: background color, illustration, title, summary, and key attribute information in the file icon. In response to the third operation, the target content is updated.
[0054] According to the second aspect, or any implementation of the second aspect above, the number of schematic diagrams is multiple, and the display of file icons includes: displaying schematic diagrams on file icons according to a preset display method; wherein, the preset display method includes any of the following: looping playback according to a preset frequency, switching display according to user operation, or tiling.
[0055] According to the second aspect, or any implementation of the second aspect above, the number of key attribute information is multiple, and the file icon is displayed, including: displaying all key attribute information on the file icon. Alternatively, in response to the user's collapse or expansion operation, some or all of the key attribute information is displayed on the file icon.
[0056] Thirdly, an electronic device is provided that has the function of implementing the touch method as described in the first aspect and any of its possible implementations. This function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the described function.
[0057] Fourthly, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as instructions or code) that, when executed by an electronic device, causes the electronic device to perform the method of the first aspect or any embodiment of the first aspect.
[0058] Fifthly, a computer program product is provided that, when run on an electronic device, causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect.
[0059] In a sixth aspect, a circuit system is provided, the circuit system including processing circuitry configured to perform the method of the first aspect or any embodiment of the first aspect.
[0060] In a seventh aspect, a chip system is provided, including at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes the instructions, the at least one processor performs the method of the first aspect or any embodiment of the first aspect.
[0061] The technical effects of the aforementioned aspects can be referenced from each other, and will not be elaborated further here. Attached Figure Description
[0062] Figure 1 is a schematic diagram of a file icon display scenario provided in an embodiment of this application;
[0063] Figure 2A is a schematic diagram of a file icon display scenario provided in an embodiment of this application;
[0064] Figure 2B is a schematic diagram of a file icon display scenario provided in an embodiment of this application;
[0065] Figure 3 is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of this application;
[0066] Figure 4 is a schematic diagram of file icons provided in an embodiment of this application;
[0067] Figure 5 is a schematic diagram of a file icon display scenario provided in an embodiment of this application;
[0068] Figure 6 is a schematic diagram of the process for determining the background color of the file icon provided in an embodiment of this application;
[0069] Figure 7 is a schematic diagram of the process of determining the schematic diagram in the file icon provided in the embodiment of this application;
[0070] Figure 8 is a schematic diagram of a switching display scenario of multiple schematic diagrams in the file icon provided in the embodiment of this application;
[0071] Figure 9 is a schematic diagram of the process of determining the title and / or abstract in the file icon provided in the embodiments of this application;
[0072] Figure 10 is a schematic diagram of the process for determining key attribute information in the file icon provided in an embodiment of this application;
[0073] Figure 11 is a schematic diagram of a file icon sharing scenario provided in an embodiment of this application;
[0074] Figure 12 is a schematic diagram of a file icon sending scenario provided in an embodiment of this application;
[0075] Figure 13 is a schematic diagram of a file icon email sending scenario provided in an embodiment of this application;
[0076] Figure 14 is a schematic diagram of a file icon upload / download scenario provided in an embodiment of this application;
[0077] Figure 15 is a schematic flowchart of the file icon generation method provided in an embodiment of this application;
[0078] Figure 16 is a schematic diagram of the structure of the electronic device provided in the embodiment of this application. Detailed Implementation
[0079] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one or more (including two).
[0080] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.
[0081] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0082] In some embodiments, existing operating systems often use the default style or the first page of a file as the file icon, which is difficult to accurately represent the content of the file. Therefore, when there are many files, this increases the difficulty for users to find the files they need.
[0083] For example, as shown in Figure 1, In operating systems, file icons are typically displayed through a default icon (as shown in Figure 11) or the first page of the file content (as shown in Figure 12). However, when many files of the same type exist, users find it difficult to quickly locate the file they need from multiple similar icons, making file searching and management challenging. For example, users may need to use complex methods such as searching for the file name, renaming it, or viewing the file content to find the desired file.
[0084] The problem of difficulty in finding and managing files due to the indistinguishable file icons isn't limited to local file management scenarios. Similar issues exist in other file-related scenarios such as file sharing, sending and receiving files, file transfer, and file upload / download.
[0085] For example, in the file-sharing scenario shown in Figure 2A(a), after receiving a file-sharing request from another device, the electronic device can display a prompt card showing the icon and name of the file to be shared. It can be seen that because the file icon is a default icon and the file name may be garbled, the user cannot intuitively determine whether the shared file is the one they need. Therefore, the user can only choose to receive the file first and then confirm by viewing the file content. If the sharing fails, the user has to repeat the aforementioned steps, affecting the user experience.
[0086] For example, in the file sending and receiving scenario shown in Figure 2A(b), a user receives a file sent by another user while using a chat application. It can be seen that the received file icon is also the default icon, and the user cannot directly identify what the file is. Therefore, if the user needs to confirm whether the file is the one they need, they also need to download the file first and view its contents to confirm.
[0087] For example, in the file transfer scenario shown in Figure 2B(a), the icon displayed for the attachment file is the default icon during the email attachment process. Therefore, after receiving the email, the user still needs to download the attachment file to confirm whether the file was sent correctly.
[0088] As another example, in the file upload / download scenario shown in Figure 2B(b), merchants or developers can upload product manuals on a website, and users can download the manuals as needed. However, during web browsing, because the icons for each product manual are default icons, users cannot intuitively identify the required file, which may require them to download all files before they can identify the desired content.
[0089] It can be seen that, due to the limited content that application icons can convey, users need to go through more steps to understand the core content of a file, and thus find and manage files, which affects the user experience.
[0090] In response, this application provides a method for generating file icons, enabling electronic devices to display richer content related to the file content on the file icon, thereby helping users quickly identify the required file and improving file search and management efficiency.
[0091] Optionally, the file icon generation method provided in this application embodiment can be applied to electronic device 100. Optionally, electronic device 100 can be, for example, a mobile phone, tablet computer, personal computer (PC), augmented reality (AR), virtual reality (VR), ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), wearable device, artificial intelligence (AI) device, and other terminal devices. The operating system installed on electronic device 100 includes, but is not limited to, […]. Alternatively, other operating systems may be used. This application does not limit the specific type of electronic device 100 or the operating system installed on it.
[0092] For example, Figure 3 shows a schematic diagram of the structure of an electronic device 100.
[0093] Electronic device 100 may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a sensor module 380, buttons 390, a motor 391, an indicator 392, a camera 393, a display screen 394, and a subscriber identification module (SIM) card interface 395, etc.
[0094] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0095] Processor 310 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0096] In some embodiments, the processor 310 may include one or more interfaces. 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, etc.
[0097] The MIPI interface can be used to connect the processor 310 to peripheral devices such as the display screen 394 and the camera 393. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 310 and the camera 393 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 310 and the display screen 394 communicate via the DSI interface to enable the electronic device 100 to display images.
[0098] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0099] Electronic device 100 implements display functions through a GPU, display screen 394, and application processor. The GPU is a microprocessor for image processing, connecting the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 310 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0100] Display screen 394 is used to display images, videos, etc. Display screen 394 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 394, where N is a positive integer greater than 1.
[0101] The sensor module 380 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.
[0102] A touch sensor, also known as a "touch device," can be located on the display screen 394. The touch sensor and the display screen 394 together form a touchscreen, also known as a "touchscreen." The touch sensor detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 394. In some embodiments, the touch sensor may also be located on the surface of the electronic device 100, in a different position than the display screen 394.
[0103] The following section provides a detailed description of the file icon generation method provided in the embodiments of this application.
[0104] In some embodiments, corresponding file icons can be configured for various file types. File types include, for example, text documents and audio files. Text documents can be of various formats such as Word, Excel, PPT, PDF, TXT, Xmind, and Evernote, and can include one or more of the following: text, images, and tables.
[0105] In some embodiments, the electronic device 100 can generate display content on the file icon based on the file content, thereby helping users quickly understand the core content of the file through richer display content. In this way, users do not need to open the file, but can directly obtain the core content of the file through the file icon, simplifying user operations and improving the efficiency of users in finding and managing files.
[0106] Optionally, the file icon may include one or more of the following: background color, illustration, title, abstract, and key attribute information. The background color may reflect one or more of the following: the theme, mood, or theme color of included images. And / or, the illustration may include an image generated based on the file content, and / or, the illustration may include an image selected from the file content based on its theme. And / or, the title or abstract may be determined based on the file content, for example, related to one or more of the following: abstract, title, table header, page signature, etc. And / or, the key attribute information may be related to the corresponding attribute information of the file's genre, where file genres include, for example, papers, patents, exam papers, contracts, instructions, proposals, reports, resumes, courseware, etc. The process for determining the various display contents included in the file icon is detailed in the corresponding sections below and will not be repeated here.
[0107] For example, as shown in Figure 4, the file icon includes a background color, an illustration, a title, an abstract, and key attribute information. For instance, the background color might be a gradient green, the illustration a plant image, the title "Plant-Related Research," the abstract a summary of research questions about plants included in the file content, and the key attribute information might include the file format, genre, subject, and publication year. Thus, as shown in Figure 5, in the file manager, this file icon display method allows users to quickly identify the desired file based on the information on the file icon. Even when multiple files of the same type exist, users no longer need to check the file names or contents one by one; instead, they can directly distinguish different files by their icons, improving file search efficiency.
[0108] The following section details the process of determining the various contents that can be included in a file icon.
[0109] First, we will introduce the process of determining the background color.
[0110] In some embodiments, after acquiring a file, the electronic device 100 obtains the text content of that file. Then, the electronic device 100 can generate a background color based on the theme and / or mood of the text content. Optionally, the file can be an audio file, in which case the electronic device can convert the audio content of the audio file into text content using an audio recognition algorithm. Optionally, the file can be a plain text file, or it can include images. In the case where the file content includes images, the electronic device 100 can also generate the background color of the file icon based on the theme color of the image.
[0111] For example, as shown in Figure 6, the file acquired by the electronic device 100 can be audio, a document without images, or a document with images. The electronic device 100 can acquire the text content of the file. Optionally, the text content can be the text content converted from audio. Alternatively, the text content can be all the text content included in a document without images. Alternatively, the text content can be all the text content in a document with images except for the images. Alternatively, the text content can include all the text content in a document with images except for the images, as well as text content generated based on images in the file (such as images), such as text recognized from images using optical character recognition (OCR) technology, or image descriptions output by a model. Optionally, the model capable of outputting image descriptions based on input images can be, for example, a bootstrapping language-image pretraining (BLIP) model, BLIP 2, or other multimodal models. For another example, if the file content includes image descriptions, such as image descriptions below or at corresponding positions, the electronic device 100 can acquire these image descriptions, and the text content acquired by the electronic device 100 includes these image descriptions.
[0112] Subsequently, the electronic device 100 can send the text content to the topic extraction module and / or the sentiment analysis module. Optionally, after receiving the text content, the topic extraction module can generate a topic for the text content using a topic extraction algorithm. The topic of the text content aims to express the main content or core idea discussed or expressed in the text. For example, the topic may include plant research, love, freedom, etc. Optionally, after receiving the text content, the sentiment analysis module can generate the sentiment of the text content using a sentiment analysis algorithm. The sentiment of the text content refers to the emotion or attitude conveyed by the author through vocabulary, sentence structure, tone, etc., and can be used to reflect the emotional atmosphere in the text content. For example, the sentiment may include positive, negative, neutral, or complex and changeable.
[0113] Subsequently, the background color generation module can receive the theme output by the theme extraction module and / or the emotion output by the sentiment analysis module. Optionally, the background color generation module can generate a color based on the theme and / or emotion using a background color generation algorithm, and send the color to the background color output module. Optionally, the color can be a solid color, a gradient color, a color combination, a texture, etc. For example, the electronic device 100 may have preset colors corresponding to different combinations of themes and / or emotions. Then, after receiving the theme and / or emotion, the background color generation module can obtain the color corresponding to the theme and emotion with the highest matching degree according to the preset mapping relationship between the theme and / or emotion and color, and use this color as the output background color.
[0114] The background color output module can then receive the color output by the background color generation module. Optionally, the background color output module may use this color as the background color of the file icon.
[0115] Optionally, as shown in Figure 6, the file can also be a document containing images, such as a Word document or a PPT document. Then, the electronic device 100 can acquire the image content included in the file and send it to the image recognition module. The image content includes at least one image. After acquiring the image content, the image recognition module can determine the similarity between the image content and the theme of the file content using a key schematic diagram recognition algorithm. For example, the image recognition module converts each image into a corresponding embedding vector and obtains the theme embedding vector based on the file content. Then, the image recognition module calculates the similarity between the embedding vectors of each image and the theme embedding vector. Optionally, the image recognition module can obtain the corresponding embedding vector by directly inputting the image into an image embedding vector model (such as a clip model); or, the image recognition module can use OCR technology to extract text from the image to obtain the text embedding vector; or, the image recognition module can input the image into a multimodal model to obtain the image caption output by the multimodal model, and then calculate the corresponding embedding vector based on the caption. An embedding vector is a mathematical object widely used in natural language processing, machine learning, and deep learning. Vector embeddings can map high-dimensional, complex, and unstructured data (such as words, sentences, and images) into a low-dimensional, dense vector space, enabling efficient processing of this data within mathematical models. The mapped vectors are typically related to the semantics or features of the object.
[0116] Subsequently, if the highest similarity score meets the similarity criteria, such as being greater than or equal to the similarity threshold, the image recognition module can obtain the image corresponding to that highest similarity score and send it to the background color selection module.
[0117] Subsequently, the background color selection module receives the image output by the image recognition module. Optionally, the background color selection module can obtain the theme color of the image through a background color selection algorithm and process the theme color. Optionally, the background color selection module can perform blurring processing on the received image using the averaging method, color sampling method, etc., and output the color. Optionally, the color can be a solid color, gradient color, color combination, texture, etc. Afterwards, the background color selection module can output the processed color to the background color output module.
[0118] The background color output module can then receive the color output by the main background color selection module. Optionally, the background color output module may select this color as the background color of the file icon.
[0119] Optionally, if the highest similarity score does not meet the similarity condition, such as being lower than the similarity threshold, then the image recognition module can determine that the image background color selection has failed, and send an image background color selection failure indication to the background color output module through the theme color selection module, or directly send an image background color selection failure indication to the background color output module. Optionally, in response to the image background color selection failure indication, the background color output module can determine the color output by the background color generation module as the background color of the file icon.
[0120] Optionally, the electronic device 100 may use a color generated based on the text content as the background color of the file icon. Alternatively, the electronic device 100 may use the theme color of the image in the file content that has the highest similarity to the theme of the file content as the background color of the file icon. Or, if the background color of the image in the file content that has the highest similarity to the theme of the file content cannot be obtained, the electronic device 100 may use a color generated based on the text content as the background color of the file icon.
[0121] In some embodiments, the electronic device 100 may have preset default background colors corresponding to different types of files. Then, after acquiring a file, the electronic device 100 can set the background color of the file icon to the corresponding default background color based on the file type. Alternatively, if the generation of the file icon background color fails, the electronic device 100 can then set the background color of the file icon to the corresponding default background color based on the file type. Or, based on user settings, the electronic device 100 may not generate a background color for the file icon and instead directly use the default background color.
[0122] In some embodiments, the electronic device 100 may also set the background color of the file icon according to user operations. For example, in response to a user long-pressing the background color of the file icon, the background color of the file icon may be changed. Alternatively, in response to a user right-clicking to indicate editing the file icon, the background color of the file icon may be changed. Alternatively, the electronic device 100 may also change the background color of the file icon in response to other user operations (such as voice, remote control, etc.).
[0123] Thus, by setting the background color of file icons, the visual effect of the icons can be effectively influenced, and the emotions expressed in the file content can be conveyed, enhancing the information delivery effect and effectively guiding the user's attention. Furthermore, different colors may have specific meanings in different cultures and contexts; setting the background color of file icons can also effectively convey these specific meanings. For example, as shown in Figure 4, the background color of the file icon is a gradient green. Green can be used to convey meanings such as nature and freshness, effectively matching the plant-themed content included in the file, making it easier for users to quickly identify the file.
[0124] The above text introduced the process of determining the background color of the file icon. The following text will provide a detailed explanation of the process of determining the schematic diagram in the file icon.
[0125] In some embodiments, after acquiring a file, the electronic device 100 acquires the text content of that file. Then, the electronic device 100 can generate a schematic diagram included in the file icon based on the text content, and / or select appropriate images from the file content as schematic diagrams based on the theme of the file content. For example, the electronic device 100 can select images with high relevance to the theme from the images included in the file content as schematic diagrams. Optionally, the number of schematic diagrams in the file icon is at least one.
[0126] For example, as shown in Figure 7, the file acquired by the electronic device 100 can be audio, a document without accompanying images, or a document with accompanying images. The electronic device 100 can acquire the text content of the file. Optionally, the text content can be the text content converted from audio. Alternatively, the text content can be all the text content included in a document without accompanying images. Alternatively, the text content can be all the text content in a document with accompanying images except for the accompanying images. Alternatively, the text content can include all the text content in a document with accompanying images except for the accompanying images, as well as text content generated based on images (such as accompanying images) in the file, such as text recognized from images using OCR technology, or image descriptions output by a model. For another example, if the file content includes descriptions of images, such as image descriptions marked below or at corresponding positions, the electronic device 100 can acquire these image descriptions, and the text content acquired by the electronic device 100 includes these image descriptions.
[0127] Subsequently, the electronic device 100 can send the text content to the schematic diagram generation module. Optionally, the schematic diagram generation module can generate a summary of the text content using a summary extraction algorithm or by utilizing large language models (LLM). Alternatively, the schematic diagram generation module can directly receive the text content summary generated by the electronic device 100 through other modules. Then, based on the summary, the schematic diagram generation module can generate an image related to the summary using artificial intelligence generated content (AIGC) or a preset algorithm, and send the image to the schematic diagram output module.
[0128] Subsequently, the schematic diagram output module receives the image output by the schematic diagram generation module. Optionally, the schematic diagram output module identifies this image as the schematic diagram in the file icon. The text summary is a concise summary and overview of the corresponding file's content, reflecting its core points. Therefore, the image generated from the summary can concisely convey the important information of the file's content to the user.
[0129] Optionally, as shown in Figure 7, the file can also be a document containing images, such as a Word document or a PPT document. Then, the electronic device 100 can acquire the image content included in the file and send it to the schematic diagram recognition module. The image content includes at least one image. After acquiring the image content, the schematic diagram recognition module can determine the similarity between the image content and the theme of the document content using a key schematic diagram recognition algorithm. For example, the schematic diagram recognition module converts each image into a corresponding embedding vector and obtains the theme embedding vector based on the document content. Then, the schematic diagram recognition module calculates the similarity between the embedding vectors of each image and the theme embedding vector. Optionally, the schematic diagram recognition module can obtain the corresponding embedding vector by directly inputting the image into an image embedding vector model (such as a clip model); or, the schematic diagram recognition module can use OCR technology to extract the text within the image and obtain the embedding vector of the text within the image; or, the schematic diagram recognition module can input the image into a multimodal model to obtain the image caption output by the multimodal model, and then the schematic diagram recognition module calculates the corresponding embedding vector based on the caption.
[0130] Subsequently, the schematic diagram recognition module can send images that meet the similarity criteria to the schematic diagram output module. For example, the schematic diagram recognition module can send images whose similarity to the topic is greater than or equal to a similarity threshold to the schematic diagram output module. Optionally, the schematic diagram recognition module can also send a preset number of images with high similarity among the images that meet the similarity criteria to the schematic diagram output module.
[0131] Subsequently, the schematic diagram output module can receive the image output by the schematic diagram recognition module. Optionally, the schematic diagram output module identifies the image as a schematic diagram in a file icon.
[0132] Optionally, if the similarity between all images included in the file content and the topic does not meet the similarity condition (e.g., less than the similarity threshold), then the schematic recognition module can determine that the image selection has failed and send an image selection failure indication to the schematic output module. Optionally, in response to the image selection failure indication, the schematic output module can output the image output by the schematic generation module as the schematic in the determined file icon.
[0133] Optionally, the electronic device 100 may use an image generated from the text content as a schematic diagram in the file icon. Alternatively, the electronic device 100 may use an image from the file content that has a similarity to the subject of the file content greater than or equal to a similarity threshold as a schematic diagram in the file icon. Alternatively, if it is impossible to obtain an image from the file content that is similar to the subject of the file content, the electronic device 100 may use an image generated from the text content as a schematic diagram in the file icon.
[0134] In some embodiments, the electronic device 100 may have pre-set default illustrations corresponding to different types of files. Then, after acquiring a file, the electronic device 100 can set the illustration in the file icon as the corresponding default illustration based on the file type. Alternatively, if the electronic device 100 fails to generate an illustration in the file icon, it can again set the illustration in the file icon as the corresponding default illustration based on the file type. Or, based on user settings, the electronic device 100 may not generate an illustration in the file icon and instead directly use the default illustration.
[0135] In some embodiments, the electronic device 100 may also set the illustration in the file icon according to user operation. For example, in response to a user's long-press operation on the illustration of the file icon, the illustration in the file icon may be changed. Alternatively, in response to a user's right-click indicating that the file icon should be edited, the illustration in the file icon may be changed. Alternatively, the electronic device 100 may also respond to other user operations (such as voice, remote control, etc.) to change the illustration in the file icon.
[0136] In this way, by setting the illustrations in the file icons, not only can users' ability to identify files be improved, but the consistency and interactivity of the user experience can also be enhanced. For example, as shown in Figure 4, if the illustration in the current file icon is several plants, then after seeing the file icon, the user can judge that the content of the file corresponding to the current file icon should be related to plants. In this way, the user does not need to open the file to quickly understand the general direction of the file content, improving the efficiency of the user in finding files.
[0137] In some embodiments, the number of illustrations in the file icon is one or more. Optionally, when there are multiple illustrations, the electronic device 100 can display multiple illustrations through a preset display method. For example, the electronic device 100 can cycle through multiple illustrations at a certain frequency in the illustration display area of the file icon, and / or switch between displaying different illustrations according to user operations. Alternatively, the electronic device 100 can display multiple illustrations on the file icon in a tiled manner. Optionally, the electronic device 100 starts cycling through multiple illustrations at a certain frequency in the illustration display area of the file icon after detecting that the cursor is on the file icon.
[0138] For example, as shown in Figure 8(a), the file icon includes a schematic diagram display area 81, and the electronic device 100 cycles through multiple schematic diagrams at a certain frequency. And / or, the electronic device 100 can switch to the next undisplayed schematic diagram on the right side by detecting a user's swipe left in the schematic diagram display area 81 as indicated by the arrow. Alternatively, as shown by reference numeral 82 in Figure 8(b), the electronic device 100 can also tile multiple schematic diagrams on the file icon.
[0139] Optionally, the electronic device 100 may determine the display method of the schematic diagram based on user operation.
[0140] In this way, the electronic device 100 can flexibly display multiple schematic diagrams, providing users with richer file icon display effects.
[0141] The above text introduced the process of determining the illustration in the file icon. The following text will provide a detailed explanation of the process of determining the title and abstract in the file icon.
[0142] In some embodiments, after acquiring a file, the electronic device 100 acquires the text content of that file. Then, the electronic device 100 can generate a title and / or summary included in the file icon based on the text content. For example, the electronic device 100 can generate the title and / or summary included in the file icon based on one or more of the following: title, summary, header, page tabs, etc., included in the text content.
[0143] For example, as shown in FIG9, the file acquired by the electronic device 100 can be audio, an untitled document, or a document with a title. The electronic device 100 is able to acquire the text content of the file. Optionally, the text content can be the text content converted from audio. Alternatively, the text content can be all the text content included in the document. Alternatively, the file content can also include images, and the text content can also include text content generated based on the images.
[0144] Subsequently, the electronic device 100 can send the text content to the title and / or summary recognition module. Optionally, the title and / or summary recognition module can obtain the title included in the text content through a title recognition algorithm. For example, the title and / or summary recognition module can obtain the topic vector similarity and / or title format likelihood of the text content through a title recognition algorithm, thereby outputting the title included in the document content.
[0145] Optionally, topic vector similarity is used to identify titles in text content. For example, by calculating whether the similarity (such as cosine similarity) between the embedding vector of a sentence in the text content and the embedding vector of the whole text is greater than a threshold, it can be determined whether the sentence is a title included in the text content.
[0146] Optionally, titles within the text content typically have a pre-defined format. The title and / or summary recognition module can then identify whether a sentence in the text content is a title by calculating its likelihood compared to the pre-defined title format. Likelihood is a statistical term typically used to describe the probability of observed data occurring under a given assumption or model. Simply put, likelihood represents the probability of data occurrence given a model and parameters.
[0147] Optionally, if the title and / or summary recognition module obtains a title included in the text content based on the text content, then the title and / or summary recognition module can send the title included in the text content to the title and / or summary processing module. If the title and / or summary recognition module does not obtain a title included in the text content based on the text content, then the title and / or summary recognition module can obtain a summary of the text content through a summary recognition algorithm and send the summary of the text content to the title and / or summary processing module. Optionally, if the file type is a table, then the title and / or summary recognition module can also obtain information such as the table header and page signature corresponding to the text content and send this information to the title and / or summary processing module.
[0148] Optionally, after receiving the content sent by the title and / or summary recognition module, the title and / or summary processing module can process this content to output the title and / or summary in the file icon. For example, the content output by the title and / or summary recognition module includes the title in the text content. This title is generally a long title, and the display space on the file icon is limited, so it may not be possible to display the entire content of the long title. In this case, the title and / or summary processing module can convert the long title into a short title according to a preset word count requirement and send the converted short title to the title and / or summary output module. Similarly, the content output by the title and / or summary recognition module includes the summary corresponding to the text content. If the summary is a long summary, the title and / or summary processing module can also convert the long summary into a short summary before outputting it to the title and / or summary output module. Optionally, the title and / or summary processing module can use models such as LLM to process long titles and / or long summaries to output short titles and / or short summaries of appropriate length. For example, the content output by the title and / or summary recognition module includes information such as table headers and page signatures corresponding to the text content. The title and / or summary processing module can also output appropriate topics and / or summaries to the title and / or summary output module through models such as LLM.
[0149] Subsequently, the title and / or summary output module may receive the title and / or summary output by the title and / or summary processing module. Optionally, the title and / or summary output module may identify the title and / or summary as the title and / or summary in the file icon.
[0150] In some embodiments, the electronic device 100 may also set the title and / or summary in the file icon according to user operations. For example, in response to a user's long-press operation on the file icon to edit the title and / or summary, editing of the title and / or summary in the file icon may be triggered. Alternatively, in response to a user's right-click indicating that the file icon should be edited, editing of the title and / or summary in the file icon may be triggered. Alternatively, the electronic device 100 may also trigger editing of the title and / or summary in the file icon in response to other user operations (such as voice, remote control, etc.).
[0151] In some embodiments, when the file content includes a title, the format of the title in the file icon is the same as the format of the title in the file content. Optionally, the electronic device 100 can also determine the format of the summary in the file icon based on the format of the title in the file content, such as using the same font but a relatively smaller font size. In other embodiments, the electronic device 100 may also have preset default formats corresponding to different types of files. Then, after acquiring a file, the electronic device 100 can set the format of the title and / or summary in the file icon to the corresponding default format according to the file type.
[0152] In this way, by setting the title in the file icon, users can quickly identify the file topic through concise and clear text descriptions, improving the efficiency of file search and management. For example, as shown in Figure 4, the title in the file icon is "Plant-related Research," which helps users intuitively understand the topic of the file corresponding to the current file icon. Users do not need to open the file to determine whether the current file is the one they need.
[0153] Furthermore, by displaying summaries in the file icons, users can intuitively access more detailed information related to the file content, helping them understand the main points or characteristics of the file. For example, as shown in Figure 4, the summary in the file icon helps users understand which specific research questions the file corresponding to that file addresses regarding plants. In this way, even among multiple files with similar themes, users can quickly identify the file they need by viewing the summaries in the file icons, improving file search efficiency.
[0154] The above section introduced the process of determining the title and summary in the file icon. The following section will provide a detailed explanation of the process of determining the key attribute information in the file icon.
[0155] In some embodiments, after acquiring a file, the electronic device 100 can determine the file's genre. Optionally, genres may include, for example, academic papers, patents, exam papers, contracts, and specifications. Optionally, different genres may correspond to different attributes. Therefore, the electronic device 100 can generate key attribute information in the file icon based on the file's genre. For example, attributes for an academic paper may include: topic, keywords, research subject, journal type, publication year, and impact factor. Attributes for a patent may include: patent type, topic, legal status, publication date, and country of application.
[0156] Optionally, the attribute information corresponding to the genre includes internal attribute information and / or external attribute information. Optionally, the internal attribute information is generated by the electronic device 100 based on relevant information about the file, such as file content and format. For example, if the electronic device 100 determines that the file's genre is a thesis, the internal attribute information generated based on the file content includes information extracted from the file content such as the topic, research subject, journal type, publication year, and impact factor. Optionally, the external attribute information is information obtained by the electronic device 100 from sources other than the file. For example, external attribute information includes file size, file format, file creation time, file modification time, file name, file type, file source, file sentiment, number of words, number of images included in the file, number of recent visits, file importance, permissions and owner, file extension, version information, and file checksum.
[0157] For example, as shown in Figure 10, the file acquired by the electronic device 100 can be audio, a document, etc. The electronic device 100 can acquire the text content of the file. Optionally, the text content can be the text content converted from audio. Alternatively, the text content can be all the text content included in the document. Or, the file content can also include images, and the text content can also include text content generated based on the images. Optionally, the text content determined by the electronic device 100 may also include a document feature vector corresponding to the file, which may be, for example, the semantics, position, etc., of the text content. Optionally, different semantics and positions may correspond to different genres; therefore, based on the document feature vector, the file genre can be determined.
[0158] Subsequently, the electronic device 100 can send the text content to the genre recognition module. Optionally, the genre recognition module can obtain the genre corresponding to the text content through a genre recognition algorithm. For example, the genre recognition module inputs the text content into a trained genre recognition model to obtain the document genre output by the genre recognition model.
[0159] Subsequently, the genre identification module can send the identified genre to the internal and external attribute generation modules. Optionally, after acquiring the genre, the internal and external attribute generation modules can determine the possible attributes corresponding to that genre. Then, the internal and external attribute generation modules can generate internal attribute information corresponding to the possible attributes based on the text content and / or file metadata using models such as LLM. Optionally, the internal and external attribute generation modules can also obtain external attribute information corresponding to the possible attributes based on data associated with the file. Then, the internal and external attribute generation modules can send the obtained key attribute information to the key attribute information output module. For example, if the genre acquired by the internal and external attribute generation modules is a patent, and the attributes of this patent genre include subject matter, legal status, publication date, and country of application, then the internal and external attribute generation modules can match the possible internal attribute information corresponding to these attributes in the acquired text content. For example, the internal attribute information acquired by the internal and external attribute generation modules includes: subject matter: virtual reality and deep learning; legal status: substantive examination; publication date: August 1, 2024.
[0160] Subsequently, the key attribute information output module can receive key attribute information output by the internal attribute and external attribute generation modules. Optionally, the key attribute information output module can identify this key attribute information as the key attribute information in the file icon.
[0161] In some embodiments, after acquiring a file, the electronic device 100 may not be able to identify the file's genre. In such cases, the electronic device 100 can directly obtain internal attribute information based on the file's content. For example, the electronic device 100 can obtain information such as the topic category and keywords corresponding to the file content and use this information as internal attribute information. Optionally, the electronic device 100 can also obtain internal attribute information based on the file's metadata. Optionally, the electronic device 100 can also obtain external attribute information of the file based on data associated with the file, thereby determining key attribute information that includes both internal and external attribute information.
[0162] In some embodiments, the electronic device 100 may also set key attribute information in the file icon according to user operations. For example, in response to a user's long-press operation on the file icon to edit the key attribute information, the key attribute information in the file icon may be edited. Alternatively, in response to a user's right-click indicating that the file icon should be edited, the key attribute information in the file icon may be edited. Alternatively, the electronic device 100 may also respond to other user operations (such as voice, remote control, etc.) to edit the key attribute information in the file icon.
[0163] In this way, by setting key attribute information in the file icon, users can quickly understand the key attributes of a file through concise and clear text descriptions, improving the efficiency of file search and management. For example, as shown in Figure 4, the key attribute information in the file icon includes DOCX, paper, plant, and 2024. This allows users to determine whether the current file is the one they need based on the key attribute information without having to open the file.
[0164] In some embodiments, the electronic device 100 may acquire a large amount of key attribute information. Due to limited display space on the file icon, the electronic device 100 may not be able to display all the key attribute information on the file icon. Therefore, the electronic device 100 can hide some of the key attribute information and only display a portion of the total key attribute information on the file icon. Subsequently, in response to user actions, the electronic device 100 can then display all the key attribute information, effectively saving display space on the file icon. For example, a preset number of key attribute information pieces can be displayed on the file icon. Subsequently, in response to user actions such as moving the cursor to the file icon, clicking the key attribute information display area on the file icon, or clicking a preset expand / collapse control, the electronic device 100 can then display all the key attribute information.
[0165] In this way, by flexibly displaying key attribute information, the display requirements of key attribute information of file icons are met while reducing the display space occupied by key attribute information on file icons.
[0166] The above text introduced the process of generating the various contents included in the file icon. The following text will introduce the display scenarios of the file icon in detail.
[0167] In some embodiments, the electronic device 100 may generate a file icon after detecting that a user has triggered an operation to generate a file icon. Optionally, the operation may be one or more of the following: a download operation, a receiving operation, or an operation to instruct the updating of the file icon.
[0168] For example, electronic device 100 responds to a user's operation and determines to download a file. Optionally, electronic device 100 determines that the file icon is a default icon, or does not include one or more of the following: background color, illustration, title, summary, key attribute information, etc. Then, electronic device 100 can trigger the generation of one or more of the following of the file icon's background color, illustration, title, summary, key attribute information, etc., so that a more detailed file icon can be displayed later.
[0169] For example, electronic device 100 responds to a user operation and confirms receipt of a file. Optionally, electronic device 100 determines that the file icon is a default icon, or does not include one or more of the following: background color, illustration, title, summary, key attribute information, etc. Then, electronic device 100 can trigger the generation of one or more of the following: background color, illustration, title, summary, key attribute information, etc., of the file icon, so that a more detailed file icon can be displayed later.
[0170] For example, if the electronic device 100 detects a user's instruction to update a file icon, it can trigger the generation of one or more of the following: background color, illustration, title, summary, and key attribute information of the file icon. Optionally, the current file icon can be a default icon or an icon that includes one or more of the following: background color, illustration, title, summary, and key attribute information. The electronic device 100 can update the displayed content of the file icon according to the user's operation, thereby displaying a file icon that better meets the user's needs.
[0171] In this way, in various scenarios, the electronic device 100 can display file icons associated with the file content, improving the efficiency of users managing files.
[0172] In some embodiments, after generating a file icon, the electronic device 100 detects a user's instruction to send a file and can send the file icon along with the file to a peer device (such as another electronic device or a server). In this way, after receiving the file-related information, the peer device can save the file-related information and, based on the received file-related information, display a file icon associated with the file content, facilitating quick file retrieval and management for the user on the peer device.
[0173] Optionally, the file-related information sent by the electronic device 100 to the peer device includes the file and the file icon.
[0174] In some examples, the file icon sent by electronic device 100 to the peer device is an editable file icon. For example, the file icon sent by electronic device 100 to the peer device includes relevant information about the file icon. Optionally, this relevant information includes the file icon itself (such as a file icon thumbnail) and one or more of the following: background color, illustration, title, summary, key attribute information, etc. This way, after receiving the file-related information, the peer device can not only display the file icon but also edit the content on the file icon based on this data. Optionally, the plain text information in the file icon's relevant information can be embedded in the file's metadata (such as EXIF, XMP, or custom metadata), while the icon itself or illustration data can be stored separately, with the relative path of the icon itself or illustration data embedded in the metadata. Alternatively, the plain text information in the file icon's relevant information can be stored separately in a structured file (such as JSON or XML), while the icon itself or illustration data can be stored separately, with the relative path of the icon itself or illustration data embedded in the structured file. Optionally, when the electronic device 100 sends file-related information to the peer device, all auxiliary files of the file are sent along with the original file. The peer device can choose whether to receive the auxiliary files. The original file may include, for example, a file corresponding to the file's metadata, or a file corresponding to metadata after embedding plain text information and relative paths. Auxiliary files may include, for example, files containing separately stored data such as icons or illustrations, or the aforementioned structured files.
[0175] In other examples, the file icon sent by electronic device 100 to the peer device is a non-editable file icon. For example, the file icon sent by electronic device 100 is image information used to display the file icon. After receiving the file-related information, the peer device can display the file icon, but cannot edit the content on the file icon. Optionally, electronic device 100 can package the file icon into a file and send it to the peer device together, or electronic device 100 can send the file and file icon to the peer device separately.
[0176] Optionally, after receiving file-related information, if the file-related information does not include a file icon, the peer device can generate and display a file icon using the methods described in the above embodiments. Alternatively, if the file-related information includes a file icon, the peer device can directly display that file icon; or ignore the file icon and generate and display a new file icon using the methods described in the above embodiments. Optionally, the peer device can also edit one or more of the following elements of the file icon: background color, schematic diagram, title, summary, and key attribute information, according to user operations.
[0177] For example, as shown in Figure 11, electronic device 100 generates a file icon and shares the file corresponding to that file icon to the peer device. Correspondingly, in response to this sharing operation, the peer device can display a file icon 111 on the displayed sharing card. In this way, the user can quickly confirm the content of the file shared by electronic device 100 through the content displayed on the file icon 111, thereby confirming whether to receive the file. This eliminates the need to open the file after receiving it to confirm whether the shared file is the desired file, effectively improving file sharing efficiency.
[0178] As another example, as shown in Figure 12, electronic device 100 generates a file icon and sends the file corresponding to that file icon to the user on the other device via a chat application. Correspondingly, in response to this sending operation, the other device can display the file icon 121 in the displayed chat content. In this way, the user can quickly confirm the relevant content of the file through the content displayed on the file icon 121, thereby confirming whether to receive the file. This eliminates the need to open the file after receiving it to confirm whether the shared file is the desired file, effectively improving file sharing efficiency.
[0179] For example, as shown in Figure 13, electronic device 100 generates a file icon. While displaying the sending interface of an email application, electronic device 100 detects a user instruction to add an email attachment. Electronic device 100 confirms that the file currently indicated as an email attachment already includes the corresponding file icon. Therefore, as shown by reference numeral 131 in the figure, electronic device 100 can send the file icon as part of the email attachment along with the email. In this way, after receiving the email, the receiving device can intuitively confirm whether the attachment file has been sent correctly, the subject content of the file, etc., through the file icon, helping the user quickly understand the attachment content.
[0180] As another example, as shown in Figure 14, electronic device 100 generates a file icon and uploads the file information corresponding to that icon to the server. Subsequently, when other electronic devices browse the files uploaded by electronic device 100 through a webpage, as shown by reference numeral 141 in the figure, the browser displays the file icon in the interface. In this way, users can quickly understand the main content of each file through the file icon, thus confirming whether the corresponding file needs to be downloaded. This avoids the problem of users having to download each file individually and then open it to confirm whether the file was downloaded correctly.
[0181] In this way, the electronic device 100 sends the file icon along with the file content to the other device, allowing the user on the other device to understand the file content in advance based on the file icon before deciding whether to receive or download the file, thereby improving the efficiency of file reception or download and enhancing the user experience.
[0182] Figure 15 is a flowchart illustrating a file icon generation method provided in an embodiment of this application. It should be noted that this method is not limited to the specific order shown in Figure 15 and below. It should be understood that in other embodiments, the order of some steps in this method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:
[0183] S1501, Electronic device 100 detects a first operation by the user, which triggers the file icon for generating a first file.
[0184] The first operation is one or more of the following: download operation, receive operation, and operation to indicate updating the file icon.
[0185] For example, if electronic device 100 detects a user's instruction to download a first file and determines that the icon for the first file is the default icon, then electronic device 100 can determine which file icon will trigger the generation of the first file.
[0186] For example, if electronic device 100 detects a user's instruction to receive a first file and determines that the icon for the first file is the default icon, then electronic device 100 can determine which file icon will trigger the generation of the first file.
[0187] For example, electronic device 100 detects a user's instruction to update the icon of a first file and determines that the icon of the first file is the default icon. Alternatively, the icon of the first file may not be the default icon; for example, the icon of the first file may include one or more of the following: background color, illustration, title, summary, and key attribute information. In this case, electronic device 100 can determine that updating the file icon of the first file is triggered. Optionally, in response to the instruction to update the file icon, electronic device 100 may update some or all of the content in the file icon, such as updating one or more of the following: background color, illustration, title, summary, and key attribute information.
[0188] In this way, in various scenarios, the electronic device 100 can display file icons associated with the file content, improving the efficiency of users managing files.
[0189] S1502. In response to the first operation, the electronic device 100 generates a file icon for the first file based on the file content of the first file; wherein the file icon includes one or more of the following: background color, schematic diagram, title, summary, and key attribute information.
[0190] In some embodiments, the background color is determined based on one or more of the theme, mood, and theme color of the included first image of the first document's content.
[0191] Optionally, the first image is the image in the first file that has the highest degree of matching with the theme of the content of the first file.
[0192] For example, the content of the first file may or may not include images. For instance, as shown in Figure 6, the electronic device 100 can obtain the text content corresponding to the content of the first file. Optionally, the text content may include text in the file content, text converted from audio content, text generated from images in the text content, text recognized from images in the text content, etc. For example, if the content of the first file includes text, the text content is that text. Or, if the content of the first file is audio content, the text content is the text content obtained after converting the audio content. Or, if the content of the first file also includes images, the text content includes text content generated from the images. Then, the electronic device 100 can obtain the theme and / or mood of the text content and generate a background color based on the theme and / or mood.
[0193] For example, the content of the first file may include images. For instance, as shown in Figure 6, the electronic device 100 can obtain the text content of the first file and generate the theme of the first file based on that text content. Then, the electronic device 100 can obtain the matching degree between the images in the first file and the theme of the first file to obtain the first image with the highest matching degree. That is, it obtains the first image that best matches the file theme. Optionally, the electronic device 100 can obtain the matching degree between the image and the theme by calculating vector similarity. For example, the electronic device 100 can convert each image in the first file into a corresponding embedded vector, and can also convert the theme into a corresponding embedded vector. Then, the electronic device 100 can calculate the similarity between the embedded vector corresponding to each image and the embedded vector corresponding to the theme, and determine the image with the highest vector similarity as the first image. Then, the electronic device 100 can obtain the theme color of the first image and process the theme color to obtain the background color of the file image in the first file.
[0194] Therefore, by setting the background color of file icons, one can effectively influence the visual effect of the icons, convey the emotions expressed in the file content, enhance the information delivery effect, and thus effectively guide the user's attention. Furthermore, different colors may have specific meanings in different cultures and contexts; setting the background color of file icons can also effectively convey these specific meanings.
[0195] In some embodiments, the illustration includes an image generated based on the file content of the first file, and / or, the illustration includes an image selected from the file content of the first file based on the theme of the file content of the first file.
[0196] For example, the content of the first file may or may not include images. For instance, as shown in Figure 7, the electronic device 100 can obtain the text content corresponding to the content of the first file. Optionally, the text content may include text in the file content, text converted from audio content, text generated from images in the text content, text recognized from images in the text content, etc. For example, if the content of the first file includes text, the text content is that text. Or, if the content of the first file is audio content, the text content is the text content obtained after converting the audio content. Or, if the content of the first file also includes images, the text content includes text generated from the images. Then, the electronic device 100 can generate a summary of the text content using a summary extraction algorithm or by using LLM, etc. Afterwards, the electronic device 100 can generate a schematic diagram related to the summary using AIGC or a preset algorithm based on the summary.
[0197] For example, the content of the first file may include images. For instance, as shown in Figure 7, the electronic device 100 can obtain the text content of the first file and generate a theme for the first file based on that text content. Then, the electronic device 100 can obtain the matching degree between the images in the first file and the theme of the first file to obtain the first image with the highest matching degree. Optionally, the electronic device 100 can obtain the matching degree between the image and the theme by calculating vector similarity. Then, the electronic device 100 can use this first image as an illustration.
[0198] In this way, electronic devices can not only generate illustrations based on file content, but also select appropriate images from the file content as illustrations. By setting illustrations in file icons, users' ability to recognize files can be improved, and the consistency and interactivity of the user experience can be enhanced.
[0199] In some embodiments, the title or summary is determined based on the file content of the first file.
[0200] Optionally, the title or abstract is determined based on one or more of the abstract, title, table header, and page signature included in the content of the first document.
[0201] For example, as shown in Figure 9, the electronic device 100 obtains the file content of the first file and can generate text content of that file content. This text content may or may not include a title. Optionally, the text content may include text from the file content, text converted from audio content, text generated from images in the text content, text recognized from images in the text content, etc. Then, the electronic device 100 uses a title recognition algorithm to obtain the topic vector similarity and / or title format likelihood of the text content, thereby obtaining the title included in the text content. Optionally, the electronic device 100 can also obtain a summary of the text content using a summary recognition algorithm. Optionally, if the file type is a table, the electronic device 100 can also obtain information such as the table header and page signature corresponding to the text content, and generate a title and / or summary based on this information.
[0202] Optionally, the title and / or summary generated by the electronic device 100 based on the text content may be a long title and / or long summary. Due to the limited display area of the file icon, the electronic device 100 also needs to process the long title and / or long summary to generate a title and / or summary of appropriate length.
[0203] In this way, by setting the title in the file icon, users can quickly identify the file's subject through concise and clear text descriptions, improving the efficiency of file searching and management. Furthermore, by setting the summary in the file icon, users can intuitively receive more detailed information related to the file content, helping them understand the main content or characteristics of the file.
[0204] In some embodiments, the key attribute information is the corresponding attribute information obtained based on the genre of the first file.
[0205] Optionally, the attribute corresponding to a genre can be, for example, a pre-configured attribute name for various genres. Different attribute names may include corresponding attribute values, such as attribute information.
[0206] Optionally, the genre may include one or more of the following: thesis, patent, exam paper, contract, instruction manual, proposal, report, resume, courseware.
[0207] Optionally, the attributes corresponding to the paper include one or more of the following: topic (such as the core research direction or problem of the paper), keywords (such as important terms related to the research content), research object (such as the object or field of the paper's research), journal type (such as academic journal, professional journal, etc.), publication year (such as the year the paper was published), and impact factor (such as indicating the academic influence of the journal).
[0208] Alternatively, the attributes corresponding to a patent may include one or more of the following: patent type (such as invention patent, utility model patent, design patent, etc.), subject matter (such as the name of the patent), legal status (such as substantive examination, authorization, etc.), application date (such as the date of patent application), country of application, inventors (such as the persons involved in the invention), applicant (such as the applicant of the patent), patent number (such as the unique identifier of the patent), publication date (such as the date of patent publication), and technical field (such as the technical field involved in the patent).
[0209] Alternatively, the attributes of the exam paper may include one or more of the following: exam paper name (such as the exam paper's title or name), exam subject (such as the subject or course to which the exam paper belongs), exam time (such as the time limit for the exam paper), question type (such as multiple choice, fill-in-the-blank, short answer, etc.), difficulty (such as the difficulty level of the exam paper), and total score (such as the total score of the exam paper).
[0210] Alternatively, the attributes of a contract may include one or more of the following: contract title (such as the name or title of the contract), signatories (such as the parties to the contract), signing date (such as the date the contract was signed), and contract period (such as the effective period of the contract).
[0211] Alternatively, the attributes corresponding to the instruction manual may include one or more of the following: product name (such as the product name described in the instruction manual), functional description (such as the main functions and uses of the product), technical parameters (such as the technical specifications of the product), usage method (such as how to use the product correctly), and precautions (such as precautions to be taken during use).
[0212] Alternatively, the attributes corresponding to the solution may include one or more of the following: solution name (such as the title or name of the solution), background (such as the background and requirements analysis of the solution), objectives and purpose (such as the main objectives and objectives of the solution), implementation time (such as the implementation time of the solution), and budget and cost (such as the budget and cost required for the solution).
[0213] Alternatively, the report's attributes may include one or more of the following: title (such as the report's name), target audience (such as the report's audience or readers), and purpose (such as the report's purpose and significance).
[0214] Alternatively, the attributes of a resume may include one or more of the following: personal information (such as name, contact information, address, etc.), job objective (such as personal career goals or the position applied for), educational background (such as education, school, major, etc.), work experience (such as relevant work experience, including company, position, job content, etc.), skills and certifications (such as personal skills, tools mastered, and certifications obtained), project experience (such as projects participated in and personal contributions), honors and awards (such as awards and honors received), and hobbies (such as personal interests or hobbies).
[0215] Alternatively, the attributes of the courseware may include one or more of the following: courseware title (such as the theme or title of the courseware), teaching objectives (such as the teaching objectives to be achieved by this courseware), and teaching methods (such as the teaching methods or strategies used in the teaching).
[0216] Optionally, the key attribute information is determined based on one or more of the following: the file content of the first file, the metadata of the first file, and the data associated with the first file. For example, the electronic device 100 can generate key attribute information based on the file content of the first file. Alternatively, the electronic device 100 can extract key attribute information from the metadata of the first file and the data associated with the first file.
[0217] For example, the electronic device 100 can obtain the aforementioned key attribute information corresponding to the genre of the first document based on the document content. For instance, the electronic device 100 determines that the genre of the first document is a patent. Then, based on the attributes corresponding to the patent, the attribute information obtained by the electronic device 100 based on the document content of the first document includes, for example: virtual reality and deep learning corresponding to the subject attribute; substantive examination corresponding to the legal status attribute; August 1, 2024 corresponding to the publication date attribute; and US patent corresponding to the country of application attribute.
[0218] For example, the electronic device 100 can obtain the aforementioned key attribute information corresponding to the genre of the first file based on the metadata of the first file. For instance, the electronic device 100 can obtain key attribute information based on the format of the first file, such as the key attribute information being DOCX.
[0219] For example, the electronic device 100 can extract key attribute information from the data associated with the first file. For instance, the key attribute information obtained by the electronic device 100 includes file size, file format, file creation time, file modification time, file name, file type, file source, file mood, number of characters, number of images included in the file, number of recent visits, file importance, permissions and owner, file extension, version information, and file checksum. Optionally, the electronic device 100 can also obtain the aforementioned information from data sources other than the file content and metadata of the first file. For example, in the aforementioned example information, the number of images included in the file can also be determined based on the file content of the first file. Similarly, in the aforementioned example information, the file size and file format can also be determined based on the metadata of the first file.
[0220] In this way, by setting key attribute information in the file icon, users can quickly understand the key attributes of the file through concise and clear text descriptions, thereby improving the efficiency of file search and management.
[0221] S1503, Electronic device 100 displays a file icon.
[0222] In some embodiments, the electronic device 100 may display the file icon after generating the file icon of the first file.
[0223] In this way, by displaying richer content related to the file on the file icon, users can quickly identify the files they need, thus improving the efficiency of file search and management.
[0224] In some embodiments, the electronic device 100 detects a third operation by the user on a file icon. The third operation instructs the updating of target content within the file icon. This target content includes one or more of the following: background color, illustration, title, summary, and key attribute information of the file icon. Subsequently, in response to the third operation, the electronic device 100 updates the target content.
[0225] For example, a user can instruct the electronic device 100 to update part or all of the content displayed on the file icon of the first file, as needed. For instance, a user can instruct the electronic device 100 to update the title displayed on the file icon. Or, a user can instruct the electronic device 100 to update both the title and the illustration displayed on the file icon.
[0226] Optionally, in response to a third operation, the electronic device 100 can update the target content in the file icon based on the file content of the first file. Alternatively, in response to a third operation where the user edits the content in the file icon, the electronic device 100 can update the display of the file icon to allow the user to customize the displayed content on the file icon.
[0227] In this way, users can flexibly update some or all of the content in the file icon according to their own needs, thus improving the user experience.
[0228] In some embodiments, the number of illustrations is multiple. Therefore, displaying a file icon on the electronic device 100 includes: displaying an illustration on the file icon according to a preset display method. The preset display method includes any of the following: looping playback at a preset frequency, switching display based on user operation, or tiling.
[0229] For example, as shown in Figure 8(a), the file icon includes a schematic diagram display area 81, and the electronic device 100 cycles through multiple schematic diagrams at a certain frequency. And / or, the electronic device 100 can switch to the next undisplayed schematic diagram on the right side by detecting a user's swipe left in the schematic diagram display area 81 as indicated by the arrow. Alternatively, as shown by reference numeral 82 in Figure 8(b), the electronic device 100 can also tile multiple schematic diagrams on the file icon.
[0230] Optionally, the electronic device 100 may determine the display method of the schematic diagram based on user operation.
[0231] In this way, the electronic device 100 can flexibly display multiple schematic diagrams, providing users with richer file icon display effects.
[0232] In some embodiments, the number of key attribute information is multiple. Therefore, displaying a file icon on the electronic device 100 includes: the electronic device 100 displaying all key attribute information on the file icon; or, in response to a user's collapse or expansion operation, displaying some or all of the key attribute information on the file icon.
[0233] For example, a key attribute information display area is preset on the file icon. Due to limitations in the display space on the file icon, the size of this key attribute information display area is limited. Therefore, after acquiring multiple key attribute information, if the key attribute information display area can display all of the key attribute information, the electronic device 100 can display all of the key attribute information in that area. If the key attribute information display area is insufficient to display all of the key attribute information, the electronic device 100 can display some of the key attribute information and hide the remaining key attribute information. Subsequently, in response to user operations, the electronic device 100 can then display all of the key attribute information, thereby effectively saving display space on the file icon. Optionally, the electronic device 100 can display hidden key attribute information that covers the original display content on the file icon or extends beyond the display area of the file icon.
[0234] Optionally, the size of the key attribute information display area is related to the size of the file icon. Optionally, the size of the key attribute information display area can also be adaptively adjusted based on the display space occupied by other content on the file icon.
[0235] In this way, by flexibly displaying key attribute information, the display requirements of key attribute information of file icons are met while reducing the display space occupied by key attribute information on file icons.
[0236] In some embodiments, the electronic device 100 detects a second operation in which the user instructs it to send a first file, and sends file-related information to the peer device. The file-related information includes the first file and a file icon.
[0237] Optionally, the second operation can be one or more of the following: sharing operation, sending operation, adding attachment operation, and uploading operation.
[0238] For example, after generating the file icon for the first file, the electronic device 100 detects the user's second operation. Then, while sending the first file to the peer device, the electronic device 100 can also send the file icon to the peer device. This reduces the number of steps required to generate the file icon for the peer device, improving the efficiency of file icon display. Furthermore, the transmitted file icon helps the user on the peer device understand the content of the first file.
[0239] Optionally, after receiving the file icon, the peer device can update the displayed content of the file icon based on user operation or automatically.
[0240] In this way, the electronic device 100 sends the file icon along with the first file to the other device, so that the user of the other device can understand the contents of the first file in advance based on the file icon, and then decide whether to receive or download the first file, thereby improving the efficiency of receiving or downloading the first file and enhancing the user experience.
[0241] In some solutions, multiple embodiments of this application can be combined, and the combined solution can be implemented. Optionally, some operations in the processes of each method embodiment may be combined, and / or the order of some operations may be changed. Furthermore, the execution order between the steps of each process is merely exemplary and does not constitute a limitation on the execution order between steps; other execution orders are also possible. It is not intended to indicate that the execution order is the only possible order in which these operations can be performed. Those skilled in the art will conceive of various ways to reorder the operations described herein. In addition, it should be noted that the process details involved in one embodiment of this document are similarly applicable to other embodiments, or different embodiments may be combined.
[0242] Furthermore, some steps in the method embodiments can be equivalently replaced with other possible steps. Alternatively, some steps in the method embodiments may be optional and can be deleted in certain use cases. Or, other possible steps may be added to the method embodiments.
[0243] Furthermore, the various method embodiments can be implemented individually or in combination.
[0244] The file icon generation method provided by the embodiments of this application has been described in detail above with reference to Figures 4-15. The electronic device provided by the embodiments of this application is described in detail below with reference to Figure 16.
[0245] In one possible design, FIG16 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. As shown in FIG16, the electronic device 1600 may include: a transceiver unit 1601, a processing unit 1602, and a display unit 1603. The electronic device 1600 can be used to implement the functions of the electronic device 100 involved in the above method embodiments.
[0246] Optionally, the transceiver unit 1601 is used to support the electronic device 1600 in performing S1501 in FIG15.
[0247] Optionally, the processing unit 1602 is used to support the electronic device 1600 in executing S1502 in FIG15.
[0248] Optionally, the display unit 1603 is used to support the electronic device 1600 in performing S1503 in FIG15.
[0249] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the electronic device 1600 are respectively to implement the corresponding process of the file icon generation method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, it will not be repeated here.
[0250] Optionally, the electronic device 1600 shown in FIG16 may further include a storage unit (not shown in FIG16) storing a program or instructions. When the transceiver unit 1601, the processing unit 1602, and the display unit 1603 execute the program or instructions, the electronic device 1600 shown in FIG16 can execute the file icon generation method described in the above method embodiments.
[0251] The technical effect of the electronic device 1600 shown in Figure 16 can be referred to the technical effect of the file icon generation method described in the above method embodiments, and will not be repeated here.
[0252] In addition to being in the form of electronic device 1600, the technical solution provided in this application can also be a functional unit or chip in an electronic device, or a device used in conjunction with an electronic device.
[0253] This application also provides a chip system, including: a processor coupled to a memory, the memory being used to store programs or instructions, wherein when the program or instructions are executed by the processor, the chip system implements the methods in any of the above method embodiments.
[0254] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0255] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.
[0256] For example, the chip system may be a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a system-on-chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0257] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0258] This application also provides a computer-readable storage medium storing a computer program. When the computer program is run on a computer, it causes the computer to perform the aforementioned steps to implement the file icon generation method described in the above embodiments.
[0259] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the file icon generation method described above.
[0260] In addition, this application also provides an apparatus. This apparatus may specifically be a component or module, and may include one or more processors and a memory connected together. The memory is used to store a computer program. When the computer program is executed by one or more processors, the apparatus performs the file icon generation method described in the above method embodiments.
[0261] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0262] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC).
[0263] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the division of the above functional modules is only used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0264] In the several embodiments provided in this application, it should be understood that the disclosed methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of modules or units may be electrical, mechanical or other forms.
[0265] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0266] Computer-readable storage media include, but are not limited to, any of the following: USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media capable of storing program code.
[0267] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for generating file icons, characterized in that, The method is applied to an electronic device, and the method includes: The user's first action is detected, which triggers the creation of the file icon for the first file. In response to the first operation, a file icon for the first file is generated based on the file content of the first file; wherein the file icon includes one or more of the following: background color, schematic diagram, title, summary, and key attribute information; The file icon is displayed.
2. The method according to claim 1, characterized in that, The background color is determined based on one or more of the following: the theme and mood of the first file's content, and the theme color of the included first image.
3. The method according to claim 2, characterized in that, The first image is the image in the first file that has the highest degree of matching with the theme of the content of the first file.
4. The method according to any one of claims 1-3, characterized in that, The schematic diagram includes an image generated based on the file content of the first file, and / or the schematic diagram includes an image selected from the file content of the first file based on the theme of the file content of the first file.
5. The method according to any one of claims 1-4, characterized in that, The title or abstract is determined based on the content of the first document.
6. The method according to claim 5, characterized in that, The title or abstract is determined based on one or more of the following: abstract, title, header, and page signature included in the content of the first document.
7. The method according to any one of claims 1-6, characterized in that, The key attribute information is the corresponding attribute information obtained based on the genre of the first file.
8. The method according to claim 7, characterized in that, The genres include one or more of the following: papers, patents, exam papers, contracts, instructions, plans, reports, resumes, and courseware.
9. The method according to claim 8, characterized in that, The attributes corresponding to the paper include one or more of the following: topic, keywords, research object, journal type, publication year, and impact factor; or, The attributes corresponding to the patent include one or more of the following: patent type, subject matter, legal status, application date, country of application, inventor, applicant, patent number, publication date, and technical field; or, The attributes corresponding to the test paper include one or more of the following: test paper name, test subject, test time, question type, difficulty, and total score; or, The attributes corresponding to the contract include one or more of the following: contract title, signatories, signing date, and contract duration; or, The attributes corresponding to the instruction manual include one or more of the following: product name, function description, technical parameters, usage method, and precautions; or, The attributes corresponding to the solution include one or more of the following: solution name, background, objectives and purpose, implementation time, budget and cost; or, The report's attributes include one or more of the following: title, target, and purpose; or, The attributes corresponding to the resume include one or more of the following: personal information, job objective, educational background, work experience, skills and certificates, project experience, honors and awards, and hobbies; or, The attributes corresponding to the courseware include one or more of the following: courseware title, teaching objectives, and teaching methods.
10. The method according to any one of claims 1-9, characterized in that, The key attribute information is determined based on one or more of the following: the file content of the first file, the metadata of the first file, and the data associated with the first file.
11. The method according to any one of claims 1-10, characterized in that, The method further includes: Upon detecting a second operation instructing the user to send the first file, file-related information is sent to the peer device, including the first file and the file icon.
12. The method according to claim 11, characterized in that, The second operation is one or more of the following: sharing operation, sending operation, adding attachment operation, and uploading operation.
13. The method according to any one of claims 1-12, characterized in that, The first operation is one or more of the following: download operation, receive operation, and operation to instruct the file icon to be updated.
14. The method according to any one of claims 1-13, characterized in that, The method further includes: A third operation by the user on the file icon is detected; wherein the third operation is used to instruct the updating of the target content in the file icon, and the target content includes one or more of the following: background color, illustration, title, summary, and key attribute information in the file icon; In response to the third operation, the target content is updated.
15. The method according to any one of claims 1-14, characterized in that, The number of illustrations is multiple, and the display of the file icons includes: The schematic diagram is displayed on the file icon according to a preset display mode; wherein the preset display mode includes any of the following: looping playback at a preset frequency, switching display according to user operation, or tiling.
16. The method according to any one of claims 1-15, characterized in that, The number of key attribute information items is multiple, and the display of the file icon includes: Display all key attribute information on the file icon; or, In response to a user's collapse or expansion operation, some or all of the key attribute information is displayed on the file icon.
17. An electronic device, characterized in that, include: The electronic device includes a processor, a memory, and a display screen, wherein the memory and the display screen are coupled to the processor, the memory being used to store computer program code, the computer program code including computer instructions, and the electronic device performing the method as described in any one of claims 1-16 when the processor reads the computer instructions from the memory.
18. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1-16.
19. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-16.