WO2020224140A1 - Information file processing method and device, electronic device and storage medium - Google Patents
Information file processing method and device, electronic device and storage medium Download PDFInfo
- Publication number
- WO2020224140A1 WO2020224140A1 PCT/CN2019/104575 CN2019104575W WO2020224140A1 WO 2020224140 A1 WO2020224140 A1 WO 2020224140A1 CN 2019104575 W CN2019104575 W CN 2019104575W WO 2020224140 A1 WO2020224140 A1 WO 2020224140A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- files
- target
- content
- file
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
Definitions
- This application relates to the field of information processing technology, and in particular to an information file processing method, device, electronic equipment, and computer readable storage medium.
- Various types of files can be stored in the folder, such as: documents, pictures, albums, music, music collections, etc.
- the contents of a folder are usually summarized in the form of thumbnails, and the contents of a folder are summarized in a fixed way To display thumbnails.
- the current problem is that the thumbnails used to summarize the contents of the folder lack the main body, which makes it difficult for users to quickly identify the contents of the folder, and the user experience deteriorates; in addition, the display speed of the thumbnails is displayed through a fixed split method. Slow, resulting in low system operation efficiency.
- the purpose of this application is to solve one of the above technical problems at least to a certain extent.
- the first purpose of this application is to propose a processing method for information files.
- This method can intelligently identify the most representative files from the folder, and use the thumbnails corresponding to these files as the cover of the folder, so that users can quickly learn the content of the information files in the folder, which improves efficiency and thereby Improve the user experience.
- the second purpose of this application is to propose another information file processing method.
- the third purpose of this application is to propose an information file processing device.
- the fourth purpose of this application is to propose another information file processing device.
- the fifth purpose of this application is to propose an electronic device.
- the sixth purpose of this application is to provide a computer-readable storage medium.
- the seventh purpose of this application is to propose another electronic device.
- the eighth purpose of this application is to propose another computer-readable storage medium.
- the embodiment of the first aspect of the present application proposes an information file processing method, including: obtaining all information files in a target folder; according to the size of the information contained in the file content, from all the information files Select N target information files in, where N is a positive integer; generate N thumbnails of the N target information files; and use the N thumbnails as cover information of the target folder.
- the information file processing method of the embodiment of the application can obtain all the information files in the target folder; afterwards, all the information files in the target folder are obtained; according to the size of the information contained in the file content, all the information files Select N target information files in, where N is a positive integer; generate N thumbnails of the N target information files; and use the N thumbnails as cover information of the target folder. Therefore, through the artificial intelligence picture recognition technology, the most representative files are intelligently identified from the folder, and the thumbnails corresponding to these files are used as the cover of the folder, so that the cover of the folder has the subjectivity and makes the user You can quickly learn the content of the information files in the folder by viewing the folder cover, which improves efficiency and improves user experience.
- the selecting N target information files from all the information files according to the size of the amount of information contained in the file content includes: determining the number of files of all the information files; determining the Whether the number of files is greater than or equal to a preset threshold; if so, select the preset threshold information files from all the information files according to the amount of information contained in the file content, and set the preset threshold information Files as the N target information files; if not, use all the information files as the N target information files.
- the selecting N target information files from all the information files according to the size of the amount of information contained in the file content includes: identifying all the information files separately to obtain the The amount of information contained in the respective file contents of all information files; sort all the information files in descending order of the amount of information contained in the file contents; select the top N files from all the information files Information files; determine the top N information files as the N target information files.
- all the information files are identified separately to obtain the amount of information contained in the file content of all the information files, including: extracting the information in all the pictures Pixel information; calculate the variance value of the gray scale of all the pictures according to the pixel information in all the pictures; determine the variance value of all the pictures as the amount of information contained in the respective file content of all the pictures .
- the recognition processing is performed on all the information files to obtain the amount of information contained in the file content of all the information files, including: based on text recognition technology Perform text recognition on the contents of all the text files to obtain the respective content information of all the text files; calculate the total number of characters contained in all the text files according to the respective content information of all the text files; The total number of characters contained in all text files is determined as the amount of information contained in the respective file contents of all text files.
- generating N thumbnails of the N target information files includes: determining the respective content information of the N target text files; generating all the N thumbnails according to the respective content information of the N target text files The summary information of each of the N target text files; based on the text-to-picture technology, the summary information of the N target text files are converted into corresponding pictures; the converted pictures of the N target text files are processed Compress to obtain N thumbnails of the N target text files.
- generating the N thumbnails of the N target information files includes: determining the sequence of the N target information files according to the amount of information contained in the file content; The arrangement order of the N target information files determines the compression size corresponding to the N target information files; based on the compression size corresponding to the N target information files, the N target information files are compressed to generate the corresponding N thumbnails.
- using the N thumbnails as cover information of the target folder includes: based on a preset multi-level thumbnail strategy, typesetting and combining the N thumbnails to generate a composite Thumbnail; the composite thumbnail is determined as the cover information of the target folder.
- the method further includes: upon receiving a view instruction for the directory where the target folder is located, determining the size of the display area of the target folder; and based on the size of the display area, The cover information of the target folder is presented in the corresponding display area.
- the embodiment of the second aspect of the present application proposes an information file processing method, including: determining a target file, wherein the target file contains at least one page of information content; and according to the size of the information content contained in the information content , Selecting N pages of information content from the at least one page of information content as N target information contents, where N is a positive integer; generating N thumbnails of the N target information contents; and converting the N thumbnails As the cover information of the target file.
- a target file is first determined, wherein the target file contains at least one page of information content; then, according to the amount of information contained in the information content, from the at least one page of information content Select N pages of information content as N target information contents, where N is a positive integer; finally, generate N thumbnails of the N target information contents; use the N thumbnails as cover information of the target file . Therefore, through artificial intelligence recognition technology, the most representative file information content is intelligently identified from the file, and the thumbnails corresponding to these file information content are used as the file cover, so that the cover of the file has the subjectivity and makes the user You can quickly learn the content of the information file by viewing the file cover, which improves efficiency and improves user experience.
- the selecting N pages of information content from the at least one page of information content as the N target information content according to the amount of information contained in the information content includes: The content is separately identified to obtain the amount of information contained in the respective information content in the at least one page of information content; the information content of the at least one page is sorted according to the order of the amount of information contained in the information content ; Select the top N information content from the at least one page of information content, and determine the top N information content as the N target information content.
- generating the N thumbnails of the N target information contents includes: determining the order of the N target information contents according to the amount of information contained in the information contents; The arrangement order of the N target information contents is determined, and the compression size corresponding to the N target information contents is determined; the N target information contents are compressed based on the compression size corresponding to the N target information contents, and the N target information contents are generated correspondingly. Thumbnails.
- using the N thumbnails as cover information of the target file includes: based on a preset multi-level thumbnail strategy, typesetting and combining the N thumbnails to generate a composite thumbnail Thumbnail; the composite thumbnail is determined as the cover information of the target file.
- the third aspect of the present application provides an information file processing device, including: a file acquisition module, used to obtain all information files in the target folder; The size of the information volume, select N target information files from all the information files, where N is a positive integer; thumbnail generation module, used to generate N thumbnails of the N target information files; cover information generation The module is used to use the N thumbnails as cover information of the target folder.
- the information file processing device of the embodiment of the application can obtain all the information files under the target folder; afterwards, all the information files under the target folder are obtained; according to the size of the information contained in the file content, all the information files Select N target information files in, where N is a positive integer; generate N thumbnails of the N target information files; and use the N thumbnails as cover information of the target folder. Therefore, through the artificial intelligence picture recognition technology, the most representative files are intelligently identified from the folder, and the thumbnails corresponding to these files are used as the cover of the folder, so that the cover of the folder has the subjectivity and makes the user You can quickly learn the content of the information files in the folder by viewing the folder cover, which improves efficiency and improves user experience.
- the selection module is specifically configured to: determine the number of files of all the information files; determine whether the number of files is greater than or equal to a preset threshold; if so, according to the information contained in the file content Select the preset threshold number of information files from all the information files, and use the preset threshold number of information files as the N target information files; if not, select all the information files As the N target information files.
- the selection module includes: an identification processing unit, configured to perform identification processing on all the information files to obtain the amount of information contained in the respective file contents of all the information files; a sorting unit, In order to sort all the information files in descending order of the amount of information contained in the content of the files; a selection unit for selecting the top N information files from all the information files, and combining all the information files
- the top N information files are determined as the N target information files.
- the recognition processing unit is specifically configured to: extract pixel information in all pictures; and calculate all pixel information in all pictures according to the pixel information in all pictures.
- the variance value of the gray scale of the picture; the variance value of all the pictures is determined as the amount of information contained in the respective file content of all the pictures.
- the recognition processing unit is specifically configured to: perform text recognition on the content of all the text files based on the text recognition technology to obtain the respective According to the content information of all text files, calculate the total number of characters contained in all text files; determine the total number of characters contained in all text files as the respective content information of all text files The amount of information contained in the content of the file.
- the thumbnail generating module is specifically configured to: determine the content information of each of the N target text files; generate the N target text files according to the content information of each of the N target text files Respective summary information; based on the text-to-picture technology, convert the respective summary information of the N target text files into corresponding pictures; compress the respective pictures of the N target text files obtained by the conversion to obtain the N N thumbnails of target text files.
- the thumbnail generation module is specifically configured to: determine the sequence of the N target information files according to the amount of information contained in the file content; Arranging the order, determining the compression size corresponding to the N target information files; based on the compression size corresponding to the N target information files, compressing the N target information files, and correspondingly generating the N thumbnails.
- the cover information generation module is specifically configured to: based on a preset multi-level thumbnail strategy, typeset and combine the N thumbnails to generate a composite thumbnail; Determined as the cover information of the target folder.
- the device further includes: a determining module, configured to determine the size of the display area of the target folder when receiving a view instruction for the directory where the target folder is located; Based on the size of the display area, the cover information of the target folder is presented in the corresponding display area.
- the embodiment of the fourth aspect of the present application proposes another information file processing device, which includes: a determining module for determining a target file, wherein the target file contains at least one page of information content; and a selection module, It is used to select N pages of information content from the at least one page of information content as N target information content according to the amount of information contained in the information content, where N is a positive integer; the thumbnail generation module is used to generate the N thumbnails of the N target information content; a cover information generating module for using the N thumbnails as cover information of the target file.
- a target file is first determined, wherein the target file contains at least one page of information content; then, according to the size of the information content contained in the information content, from the at least one page of information content Select N pages of information content as N target information contents, where N is a positive integer; finally, generate N thumbnails of the N target information contents; use the N thumbnails as cover information of the target file . Therefore, through artificial intelligence recognition technology, the most representative file information content is intelligently identified from the file, and the thumbnails corresponding to these file information content are used as the file cover, so that the cover of the file has the subjectivity and makes the user You can quickly learn the content of the information file by viewing the file cover, which improves efficiency and improves user experience.
- an embodiment of the fifth aspect of the present application proposes an electronic device, including a memory, a processor, and a computer program stored on the memory and running on the processor; wherein, the processor The program corresponding to the executable program code is run by reading the executable program code stored in the memory to implement the information file processing method described in the embodiment of the first aspect of the present application.
- an embodiment of the sixth aspect of the present application proposes a computer-readable storage medium on which a computer program is stored.
- the computer program is executed by a processor, the information file described in the embodiment of the first aspect of the present application is realized. ⁇ Treatment methods.
- the embodiment of the seventh aspect of the present application proposes another electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor; wherein, the processing The processor reads the executable program code stored in the memory to run the program corresponding to the executable program code, so as to implement the information file processing method described in the embodiment of the second aspect of the present application.
- the embodiment of the eighth aspect of the present application proposes another computer-readable storage medium on which a computer program is stored.
- the computer program is executed by a processor, the information described in the embodiment of the second aspect of the present application is realized.
- File processing method When the computer program is executed by a processor, the information described in the embodiment of the second aspect of the present application is realized.
- Fig. 1 is a flowchart of a method for processing an information file according to an embodiment of the present application.
- Fig. 2(a) is a schematic diagram of a composite thumbnail as the cover information of a target folder according to an embodiment of the present application.
- Figure 2(b) is a schematic diagram of a composite thumbnail as the cover information of the target folder according to another embodiment of the present application.
- Fig. 2(c) is a schematic diagram of a composite thumbnail as the cover information of the target folder according to another embodiment of the present application.
- Figure 2(d) is a schematic diagram of a composite thumbnail as the cover information of the target folder according to another embodiment of the present application.
- Fig. 3 is a flowchart of a method for processing an information file according to another specific embodiment of the present application.
- Fig. 4 is a flowchart of a method for processing an information file according to another specific embodiment of the present application.
- Fig. 5 is a flowchart of a method for processing an information file according to another embodiment of the present application.
- Fig. 6 is a schematic structural diagram of an information file processing apparatus according to an embodiment of the present application.
- Fig. 7 is a schematic structural diagram of an information file processing apparatus according to another specific embodiment of the present application.
- Fig. 8 is a schematic structural diagram of an information file processing apparatus according to another specific embodiment of the present application.
- Fig. 9 is a schematic structural diagram of an information file processing device according to another embodiment of the present application.
- Fig. 10 shows a block diagram of an exemplary electronic device suitable for implementing the embodiments of the present application.
- Fig. 1 is a flowchart of a method for processing an information file according to an embodiment of the present application.
- the processing method of the information file includes the following steps:
- Step 101 Obtain all information files in the target folder.
- the information file is a file containing the amount of information, and may be a picture file, a text file, and the like.
- the folder can store the same type of information files at the same time, and can also store different types of files. For example, the folder only stores picture files, or only text files, etc., and the folder can also store picture files and text files, etc. Store at the same time. It should be noted that the embodiments of the present application are described by taking the same type of information files stored in a folder as an example.
- the information file processing method of the embodiment of the present application when the user opens the folder list of the mobile terminal, the absolute path of each folder in the folder list can be obtained first, and the The absolute path to get the files stored in each folder from the storage.
- Step 102 Select N target information files from all the information files according to the size of the information contained in the file content, where N is a positive integer.
- all the information files in the target folder when all the information files in the target folder are obtained, all the information files in the target folder can be identified separately to obtain the amount of information contained in the respective file contents of all the information files. After that, sort all information files according to the order of the amount of information contained in the file content, and select the top N information files from all the information files, and determine the selected top N information files as N target information files.
- file types use different methods for obtaining the amount of information contained in the file content.
- image recognition technology can be used to obtain the amount of information contained in the file content
- text recognition technology can be used to obtain the amount of information contained in the file content.
- all the information files can be determined first The number of files; determine whether the number of files is greater than or equal to the preset threshold; if so, select the preset threshold information files from all the information files according to the size of the information contained in the file content, and set the preset threshold information Files are regarded as N target information files; if not, all information files are regarded as N target information files.
- the preset threshold can be set to 5, that is, the maximum value of N can be 5.
- the maximum number of compressed pictures that can be used to generate the cover of the target folder is five, so the maximum number of target information files can be set to 5.
- N information files can be randomly selected from these information files as the target information files, or, N information files can also be selected based on certain preset rules. For example, based on the creation time of the file, N information files with the first creation time are selected as the target files.
- Step 103 Generate N thumbnails of N target information files.
- the sequence of the N target information files can be determined according to the size of the information contained in the file content, and the compression size corresponding to the N target information files can be determined according to the sequence of the N target information files , Based on the compression size corresponding to the N target information files, compress the N target information files to generate N thumbnails correspondingly.
- the sequence of the N target information files can be arranged such that the compressed size of the target information file arranged in the front is larger than the compressed size of the target information file arranged in the back.
- the target information file arranged in the first corresponds to
- the sizes of the thumbnails are all larger than the sizes of the thumbnails corresponding to the remaining target information files, and the sizes of the thumbnails corresponding to the remaining target information files are all the same.
- the method used when generating the thumbnail of the target information file will also be different.
- the compression size corresponding to each picture can be directly determined, and then the corresponding picture is compressed based on each compression size to obtain the corresponding thumbnail; and when the target information file is a text file, you need to first After converting text to image, image compression is performed.
- image compression is performed.
- Step 104 Use N thumbnails as cover information of the target folder.
- N thumbnails are typeset and combined to generate a composite thumbnail
- the composite thumbnail is determined as the cover information of the target folder.
- the multi-level thumbnail strategy may be preset, and the multi-level thumbnail strategy can be understood as combining multiple thumbnails into a composite thumbnail in a hierarchical manner.
- the composite thumbnail to be generated can be divided into two parts, such as left and right parts, where the left part occupies a larger proportion than the right part, and the thumbnail with the largest amount of information among the N thumbnails
- the remaining N-1 thumbnails are arranged in the right part in order of the amount of information contained, so that the composite thumbnail can be composed.
- N 1
- the unique thumbnail can be used as the cover information of the target folder.
- the maximum value of N may be 5, that is, a composite thumbnail composed of up to 5 thumbnails can be used as the cover information of the target folder.
- each Folder you can get all the information files in each folder, and according to the size of the information contained in the file content, select 5 target information files from all the information files in each folder, among which, if the folder is When the number of information files is less than 5, all information files in the folder can be used as target information files. After that, thumbnails of the target information file can be generated, and the thumbnails with a large amount of information contained in these thumbnails are used as the main body of the folder cover, and they are arranged on the left part of the folder cover, and the remaining thumbnails are divided equally Right space. For example, as shown in Figure 2(a), there are more than 5 information files stored in this folder.
- the amount of information contained in the two thumbnails can be The largest thumbnail occupies the left side of the cover, and the smaller thumbnail occupies the space on the right side of the cover; as shown in Figure 2(c), if only one information file is stored in the folder, the thumbnail of the information file can be As the cover of the folder directly, the thumbnail occupies the entire space of the cover of the folder; as shown in Figure 2(d), the folder stores 4 information files, which can be used as target information files , Compose its thumbnails into composite thumbnails as the cover of the folder. Among them, the thumbnail with the largest amount of information among the 4 thumbnails can occupy the left side of the cover, and the remaining 3 thumbnails can evenly divide the right side of the cover space. As a result, performance can be optimized through multi-level thumbnails, so that composite thumbnails composed of multiple thumbnails can be quickly presented, ensuring system operating efficiency.
- the default icon of the folder can be used as the cover of the target folder.
- all information files in the target folder can be obtained; afterwards, all information files in the target folder are obtained; according to the size of the information contained in the file content, all information files Select N target information files, where N is a positive integer; generate N thumbnails of N target information files; and use N thumbnails as cover information of the target folder. Therefore, through the artificial intelligence picture recognition technology, the most representative files are intelligently identified from the folder, and the thumbnails corresponding to these files are used as the cover of the folder, so that the cover of the folder has the subjectivity and makes the user You can quickly learn the content of the information files in the folder by viewing the folder cover, which improves efficiency and improves user experience.
- the size of the display area of the target folder may be determined , And based on the size of the display area, present the cover information of the target folder in the corresponding display area. For example, when a user opens the directory where the target folder is located, all target folders under this directory are displayed on the interface. It is understandable that each target folder occupies a certain interface area for display. According to the size of the display area, The cover information of the target folder is displayed in this area.
- Fig. 3 is a flowchart of a method for processing an information file according to a specific embodiment of the present application. It should be noted that the processing method of the information file in the embodiment of the application is described with the information file as a picture, that is, the processing method of the information file in the embodiment of the application is applied to the picture folder scene, where, The target folder can be a picture folder. As shown in Figure 3, the processing method of the information file may include:
- Step 301 Obtain all pictures in the picture folder.
- Step 302 Obtain N target pictures from all pictures according to the size of the information contained in the file content, where N is a positive integer.
- extract pixel information in all pictures calculate the variance value of the gray values of all pictures according to the pixel information in all pictures, and determine the variance value of all pictures as their respective files The amount of information contained in the content. After that, all pictures can be sorted according to the order of the amount of information contained in the file content, and the top N pictures are selected from all pictures, and the top N pictures are sorted The picture is determined to be N target pictures.
- Step 303 Determine the sequence of N target pictures according to the size of the information contained in the file content.
- Step 304 Determine the compression size corresponding to the N target pictures according to the sequence of the N target pictures.
- Step 305 Compress the N target pictures based on the compression size corresponding to the N target pictures to generate N thumbnails.
- Step 306 Use N thumbnails as cover information of the picture folder.
- N thumbnails are typeset and combined to generate a composite thumbnail, and the composite thumbnail is determined as the cover information of the picture folder.
- all the pictures in the picture folder can be acquired, and then, according to the size of the information contained in the file content, N target pictures are selected from all pictures to generate N target pictures N thumbnails, and N thumbnails are used as the cover information of the picture folder.
- N target pictures are selected from all pictures to generate N target pictures N thumbnails
- N thumbnails are used as the cover information of the picture folder.
- Fig. 4 is a flowchart of a method for processing an information file according to another specific embodiment of the present application. It should be noted that the processing method of the information file in the embodiment of the application is described in the case that the information file is a text file, that is, the processing method of the information file in the embodiment of the application is applied to the folder where the text is stored. , Where the target folder is a text folder. As shown in Figure 4, the processing method of the information file may include:
- Step 401 Obtain all text files in the text folder.
- Step 402 Select N target text files from all text files according to the amount of information contained in the file content, where N is a positive integer.
- Step 403 Determine the content information of each of the N target text files.
- Step 404 Generate summary information of each of the N target text files according to the content information of each of the N target text files.
- the TextRank algorithm can be used to generate the summary information of each of the N target text files. For example, when the TextRank algorithm is used for summary generation, first obtain all the text contained in the text file, and then split the text into a single sentence. Each sentence is represented by a vector, and then the similarity between the sentence vectors is calculated, and the sentence similarity is sorted by size, and finally the sentences with the highest similarity ranking form summary information. It should be noted that the above-mentioned algorithm for generating summary information can be but not limited to the TextRank algorithm.
- Step 405 Based on the text-to-picture technology, convert the respective summary information of the N target text files into corresponding pictures.
- Step 406 Compress the respective pictures of the N target text files obtained by the conversion to obtain N thumbnail images of the N target text files.
- Step 407 Use N thumbnails as cover information of the target folder.
- the N thumbnails are typeset and combined to generate a composite thumbnail, and the composite thumbnail is determined as the cover information of the target folder.
- all the text files in the text folder can be obtained; then, according to the size of the information contained in the file content, N target text files are selected from all the text files to generate N N thumbnails of the target text file, and use the N thumbnails as cover information of the text folder. Therefore, through artificial intelligence recognition technology, the most representative text files are intelligently recognized from the text folder, and the thumbnails corresponding to these text files are used as the cover of the folder, so that the cover of the folder has the subjectivity. This allows users to quickly learn the content of the text files in the folder by viewing the cover of the folder, which improves efficiency and improves user experience.
- This application also provides another information file processing method.
- This method is suitable for processing the information content recorded in the file to generate the cover information of the file, so that the user can quickly learn the information content in the file by viewing the file cover (such as the icon of the file).
- the icon of a file in WORD, PDF and other formats can understand the information recorded in the file.
- FIG. 5 is a schematic flowchart of another information file processing method provided by an embodiment of the application.
- the processing method of the information file includes the following steps:
- Step 501 Determine a target file, where the target file contains at least one page of information content.
- the target file may be a file in a format such as WORD, PDF, etc., and at the same time, the file must contain at least one page of information content.
- Step 502 Select N pages of information content from at least one page of information content as N target information content according to the amount of information contained in the information content, where N is a positive integer.
- At least one page of information content is separately identified to obtain the amount of information contained in the respective information content of the at least one page of information content. Sort at least one page of information content according to the order of the amount of information contained in the information content, select the top N information content from the at least one page of information content, and determine the top N information content as N target information content.
- the information content of each page of the target file can be identified separately to obtain the amount of information contained in each page of the information content of the target file. After that, sort the information content of all pages according to the order of the information content contained in the information content, and select the top N information content from all the information content of the page number, and arrange the selected information content in the top N The information content of is determined as N target information content.
- the method of obtaining the amount of information contained in the file content will also be different.
- the information content is a picture
- image recognition technology can be used to obtain the information content contained in the information content
- text recognition technology can be used to obtain the information content contained in the information content.
- Step 503 Generate N thumbnails of N target information content.
- the order of the N target information contents can be determined according to the amount of information contained in the information content, and the compression size corresponding to the N target information contents may be determined according to the order of the N target information contents.
- the compression size corresponding to the N target information contents compress the N target information contents to generate N thumbnails correspondingly.
- the sequence of the N target information content can be arranged such that the compressed size of the target information content arranged in the front is larger than the compressed size of the target information content arranged in the back.
- Step 504 Use N thumbnails as cover information of the target file.
- N thumbnails are typeset and combined to generate a composite thumbnail, and the composite thumbnail is determined as the cover information of the target file.
- the multi-level thumbnail strategy may be preset, and the multi-level thumbnail strategy can be understood as combining multiple thumbnails into a composite thumbnail in a hierarchical manner.
- the composite thumbnail to be generated can be divided into two parts, such as left and right parts, where the left part occupies a larger proportion than the right part, and the thumbnail with the largest amount of information among the N thumbnails
- the remaining N-1 thumbnails are arranged in the right part in order of the amount of information contained, so that the composite thumbnail can be composed.
- the default icon in the file format can be used as the cover of the target file.
- the default icon of WORD can be used as the cover of the file.
- a target file is first determined, where the target file contains at least one page of information content; then, according to the amount of information contained in the information content, N pages of information are selected from at least one page of information content
- the content is regarded as N target information contents, where N is a positive integer; finally, N thumbnails of the N target information contents are generated; N thumbnails are regarded as the cover information of the target file.
- the most representative file information content is intelligently identified from the file, and the thumbnails corresponding to these file information content are used as the file cover, so that the cover of the file has the subjectivity and makes the user You can quickly learn the content of the information file by viewing the file cover, which improves efficiency and improves user experience.
- FIG. 6 is a schematic structural diagram of an information file processing apparatus provided by an embodiment of this application.
- the information file processing device 600 includes: a file acquisition module 610, a selection module 620, a thumbnail generation module 630, and a cover information generation module 640.
- the file obtaining module 610 is used to obtain all information files in the target folder.
- the selection module 620 is configured to select N target information files from all the information files according to the size of the information contained in the file content, where N is a positive integer.
- the selection module 620 is specifically configured to: determine the number of files of all information files; determine whether the number of files is greater than or equal to a preset threshold; if so, according to the information contained in the file content For the size of the quantity, select a preset threshold number of information files from all information files, and use the preset threshold number of information files as N target information files; if not, use all the information files as N target information files.
- the thumbnail generating module 630 is used to generate N thumbnails of N target information files.
- the thumbnail generation module 630 is specifically configured to: determine the order of the N target information files according to the amount of information contained in the file content; determine the order of the N target information files according to the order of the N target information files
- Corresponding compression size Based on the compression size corresponding to the N target information files, the N target information files are compressed, and N thumbnails are generated correspondingly.
- the cover information generating module 640 is configured to use N thumbnails as cover information of the target folder.
- the cover information generating module 640 is specifically configured to: based on a preset multi-level thumbnail strategy, typesetting and combining N thumbnails to generate a composite thumbnail; determining the composite thumbnail as the cover information of the target folder .
- the selection module 620 includes:
- the identification processing unit 621 is configured to perform identification processing on all the information files respectively, and obtain the amount of information contained in the respective file contents of all the information files;
- the sorting unit 622 is configured to sort all the information files in descending order of the amount of information contained in the file content
- the selecting unit 623 is configured to select the top N information files from all the information files, and determine the top N information files as N target information files.
- the recognition processing unit 621 is specifically configured to: extract pixel information in all pictures; and calculate the gray levels of all pictures based on the pixel information in all pictures The variance value of all pictures; the variance value of all pictures is determined as the amount of information contained in the respective file content of all pictures.
- the recognition processing unit 621 is specifically configured to: perform text recognition on the content of all text files based on text recognition technology to obtain the respective content of all text files Information; Calculate the total number of characters contained in all text files according to the respective content information of all text files; determine the total number of characters contained in all text files as the amount of information contained in the respective file contents of all text files.
- the thumbnail generating module 630 is specifically configured to: determine the content information of each of the N target text files; generate N pieces of information according to the content information of each of the N target text files The respective summary information of the target text file; based on the text-to-picture technology, the summary information of the N target text files are converted into corresponding pictures; the respective pictures of the N target text files obtained by the conversion are compressed to obtain N target texts N thumbnails of the file.
- the information file processing apparatus 600 may include: a determination module 650 and a presentation module 660.
- the determining module 650 is used for determining the size of the display area of the target folder when receiving a viewing instruction for the directory where the target folder is located;
- the presentation module 660 is used for storing the cover information of the target folder in the corresponding Present within the display area.
- all information files under the target folder can be obtained; afterwards, all information files under the target folder are obtained; according to the size of the information contained in the file content, all information files Select N target information files, where N is a positive integer; generate N thumbnails of N target information files; and use N thumbnails as cover information of the target folder. Therefore, through the artificial intelligence picture recognition technology, the most representative files are intelligently identified from the folder, and the thumbnails corresponding to these files are used as the cover of the folder, so that the cover of the folder has the subjectivity and makes the user You can quickly learn the content of the information files in the folder by viewing the folder cover, which improves efficiency and improves user experience.
- FIG. 9 is a schematic structural diagram of an information file processing apparatus provided by an embodiment of the application.
- the information file processing device 900 includes: a determination module 910, a selection module 920, a thumbnail generation module 930, and a cover information generation module 940.
- the determining module 910 is configured to determine a target file, where the target file contains at least one page of information content.
- the selection module 920 is configured to select N pages of information content from at least one page of information content as N target information content according to the amount of information contained in the information content, where N is a positive integer.
- the selection module 920 is specifically configured to: separately identify at least one page of information content to obtain the amount of information contained in the respective information content of the at least one page of information content; according to the amount of information contained in the information content from large to small In order to sort at least one page of information content; select the top N information content from at least one page of information content, and determine the top N information content as N target information content.
- the thumbnail generating module 930 is used to generate N thumbnails of N target information contents.
- the thumbnail generation module 930 is specifically configured to: determine the order of the N target information contents according to the amount of information contained in the information content; and determine the N target information contents according to the order of the N target information contents Corresponding compression size; based on the compression size corresponding to the N target information contents, compress the N target information contents and generate N thumbnails correspondingly.
- the cover information generating module 940 is configured to use N thumbnails as cover information of the target file.
- the cover information generating module 940 is specifically configured to: based on a preset multi-level thumbnail strategy, typeset and combine N thumbnails to generate a composite thumbnail; and determine the composite thumbnail as the cover information of the target file.
- the information file processing device of the embodiment of the present application first determines the target file, where the target file contains at least one page of information content; then, according to the amount of information contained in the information content, select N pages of information from the at least one page of information content
- the content is regarded as N target information contents, where N is a positive integer; finally, N thumbnails of the N target information contents are generated; N thumbnails are regarded as the cover information of the target file. Therefore, through artificial intelligence recognition technology, the most representative file information content is intelligently identified from the file, and the thumbnails corresponding to these file information content are used as the file cover, so that the cover of the file has the subjectivity and makes the user You can quickly learn the content of the information file by viewing the file cover, which improves efficiency and improves user experience.
- the embodiments of the present application also propose an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor; wherein the processor reads the memory stored in the memory
- the program code is executed to run a program corresponding to the executable program code, so as to implement the information file processing method described in any one of the embodiments shown in FIG. 1 to FIG. 4 of the present application.
- Fig. 10 shows a block diagram of an exemplary electronic device suitable for implementing the embodiments of the present application.
- the electronic device 12 shown in FIG. 10 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present application.
- the electronic device 12 is represented in the form of a general-purpose computing device.
- the components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
- the bus 18 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure among multiple bus structures.
- these architectures include but are not limited to industry standard architecture (Industry Standard Architecture; hereinafter referred to as: ISA) bus, Micro Channel Architecture (hereinafter referred to as: MAC) bus, enhanced ISA bus, video electronics Standards Association (Video Electronics Standards Association; hereinafter referred to as VESA) local bus and Peripheral Component Interconnection (hereinafter referred to as PCI) bus.
- Industry Standard Architecture hereinafter referred to as: ISA
- MAC Micro Channel Architecture
- VESA Video Electronics Standards Association
- PCI Peripheral Component Interconnection
- the electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
- the memory 28 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (Random Access Memory; hereinafter referred to as RAM) 30 and/or a cache memory 29.
- RAM Random Access Memory
- the electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media.
- the storage system 44 can be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 10, and generally referred to as a "hard drive").
- a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk”) and a removable non-volatile optical disk (such as a compact disk read-only memory) can be provided.
- Disc Read Only Memory hereinafter referred to as CD-ROM
- DVD-ROM Digital Video Disc Read Only Memory
- each drive can be connected to the bus 18 through one or more data media interfaces.
- the memory 28 may include at least one program product, the program product having a set (for example, at least one) program modules, and these program modules are configured to perform the functions of the embodiments of the present application.
- a program/utility tool 40 having a set of (at least one) program module 42 may be stored in, for example, the memory 28.
- Such program module 42 includes but is not limited to an operating system, one or more application programs, other program modules, and program data Each of these examples or some combination may include the implementation of a network environment.
- the program module 42 usually executes the functions and/or methods in the embodiments described in this application.
- the electronic device 12 may also communicate with one or more external devices 14 (such as keyboards, pointing devices, displays 24, etc.), and may also communicate with one or more devices that enable users to interact with the electronic device 12, and/or communicate with Any device (such as a network card, modem, etc.) that enables the electronic device 12 to communicate with one or more other computing devices. This communication can be performed through an input/output (I/O) interface 22.
- the electronic device 12 may also connect to one or more networks (for example, a local area network (Local Area Network; hereinafter referred to as: LAN), a wide area network (hereinafter referred to as WAN)) and/or a public network, such as the Internet ) Communication. As shown in FIG.
- the network adapter 20 communicates with other modules of the electronic device 12 through the bus 18. It should be understood that although not shown in Figure 8, other hardware and/or software modules can be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tapes Drives and data backup storage systems, etc.
- the processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the foregoing embodiments.
- the embodiment of the present application also proposes a computer-readable storage medium on which a computer program is stored.
- the program is executed by a processor, the information described in the embodiment shown in FIGS. 1 to 4 is realized.
- File processing method When the program is executed by a processor, the information described in the embodiment shown in FIGS. 1 to 4 is realized. File processing method.
- the embodiments of the present application also propose another electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor; wherein the processor reads the stored in the memory
- the executable program code runs a program corresponding to the executable program code, so as to implement the information file processing method described in the embodiment shown in FIG. 5.
- the embodiment of the present application also proposes another non-transitory computer-readable storage medium on which a computer program is stored.
- the program is executed by a processor, the information file of the embodiment shown in FIG. method.
- first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the present application, "a plurality of” means at least two, such as two, three, etc., unless specifically defined otherwise.
Abstract
Description
Claims (30)
- 一种信息文件的处理方法,其特征在于,包括以下步骤:An information file processing method, characterized in that it comprises the following steps:获取目标文件夹下的所有信息文件;Obtain all information files in the target folder;按照文件内容所含信息量的大小,从所述所有信息文件中选取N个目标信息文件,其中,N为正整数;Select N target information files from all the information files according to the amount of information contained in the file content, where N is a positive integer;生成所述N个目标信息文件的N个缩略图;Generating N thumbnails of the N target information files;将所述N个缩略图作为所述目标文件夹的封面信息。The N thumbnails are used as cover information of the target folder.
- 根据权利要求1所述的方法,其特征在于,所述按照文件内容所含信息量的大小,从所述所有信息文件中选取N个目标信息文件,包括:The method according to claim 1, wherein the selecting N target information files from all the information files according to the size of the information contained in the file content comprises:确定所述所有信息文件的文件个数;Determine the number of files of all the information files;判断所述文件个数是否大于或等于预设阈值;Judging whether the number of files is greater than or equal to a preset threshold;若是,则按照文件内容所含信息量的大小,从所述所有信息文件中选取所述预设阈值个信息文件,并将所述预设阈值个信息文件作为所述N个目标信息文件;If yes, select the preset threshold number of information files from all the information files according to the size of the amount of information contained in the file content, and use the preset threshold number of information files as the N target information files;若否,则将所述所有信息文件作为所述N个目标信息文件。If not, use all the information files as the N target information files.
- 根据权利要求1所述的方法,其特征在于,所述按照文件内容所含信息量的大小,从所述所有信息文件中选取N个目标信息文件,包括:The method according to claim 1, wherein the selecting N target information files from all the information files according to the size of the information contained in the file content comprises:对所述所有信息文件分别进行识别处理,得到所述所有信息文件各自的文件内容所含信息量;Recognition processing is performed on all the information files to obtain the amount of information contained in the respective file contents of all the information files;按照所述文件内容所含信息量从大到小的顺序,对所述所有信息文件进行排序;Sort all the information files in descending order of the amount of information contained in the file content;从所述所有信息文件中选取排列在前N的信息文件;Selecting the top N information files from all the information files;将所述排列在前N的信息文件确定为所述N个目标信息文件。The top N information files are determined as the N target information files.
- 根据权利要求3所述的方法,其特征在于,当所述信息文件为图片时,对所述所有信息文件分别进行识别处理,得到所述所有信息文件各自的文件内容所含信息量,包括:The method according to claim 3, wherein when the information file is a picture, performing identification processing on all the information files respectively to obtain the amount of information contained in the respective file contents of all the information files includes:提取所有图片中的像素点信息;Extract pixel information in all pictures;根据所述所有图片中的像素点信息,计算所述所有图片灰度的方差值;Calculating the variance values of the gray levels of all the pictures according to the pixel point information in all the pictures;将所述所有图片的方差值确定为所述所有图片各自的文件内容所含信息量。The variance value of all the pictures is determined as the amount of information contained in the respective file content of all the pictures.
- 根据权利要求3所述的方法,其特征在于,当所述信息文件为文本文件时,对所述所有信息文件分别进行识别处理,得到所述所有信息文件各自的文件内容所含信息量,包括:The method according to claim 3, wherein when the information file is a text file, all the information files are identified separately to obtain the amount of information contained in the file content of all the information files, including :基于文字识别技术对所述所有文本文件的内容进行文字识别,得到所述所有文本文件各自的内容信息;Performing text recognition on the content of all text files based on text recognition technology to obtain respective content information of all text files;根据所述所有文本文件各自的内容信息,计算所述所有文本文件各自所包含的字符总数;Calculating the total number of characters contained in all the text files according to the respective content information of all the text files;将所述所有文本文件各自所包含的字符总数,确定为所述所有文本文件各自的文件内容所含信息量。The total number of characters contained in all the text files is determined as the amount of information contained in the file content of all the text files.
- 根据权利要求5所述方法,其特征在于,生成所述N个目标信息文件的N个缩略图,包括:The method according to claim 5, wherein generating N thumbnails of the N target information files comprises:确定N个目标文本文件各自的内容信息;Determine the content information of each of the N target text files;根据所述N个目标文本文件各自的内容信息,生成所述N个目标文本文件各自的摘要信息;Generating summary information of each of the N target text files according to the content information of each of the N target text files;基于文字转图片技术,将所述N个目标文本文件各自的摘要信息转换成对应的图片;Based on the text-to-picture technology, converting the respective summary information of the N target text files into corresponding pictures;将转换得到的所述N个目标文本文件各自的图片进行压缩,得到所述N个目标文本文件的N个缩略图。The respective pictures of the N target text files obtained by the conversion are compressed to obtain N thumbnail images of the N target text files.
- 根据权利要求1所述的方法,其特征在于,生成所述N个目标信息文件的N个缩略图,包括:The method according to claim 1, wherein generating N thumbnails of the N target information files comprises:按照文件内容所含信息量的大小,确定所述N个目标信息文件的排列顺序;Determine the sequence of the N target information files according to the size of the information contained in the file content;根据所述N个目标信息文件的排列顺序,确定所述N个目标信息文件对应的压缩尺寸;Determine the compression size corresponding to the N target information files according to the sequence of the N target information files;基于所述N个目标信息文件对应的压缩尺寸,对所述N个目标信息文件进行压缩,对应生成所述N个缩略图。Based on the compression sizes corresponding to the N target information files, the N target information files are compressed, and the N thumbnail images are correspondingly generated.
- 根据权利要求1至7中任一项所述的方法,其特征在于,将所述N个缩略图作为所述目标文件夹的封面信息,包括:8. The method according to any one of claims 1 to 7, wherein using the N thumbnails as cover information of the target folder comprises:基于预设的多级缩略图策略,对所述N个缩略图进行排版组合以生成复合缩略图;Based on a preset multi-level thumbnail strategy, typesetting and combining the N thumbnails to generate a composite thumbnail;将所述复合缩略图确定为所述目标文件夹的封面信息。The composite thumbnail is determined as the cover information of the target folder.
- 根据权利要求1至8中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 8, further comprising:在接收到针对所述目标文件夹所在目录的查看指令时,确定所述目标文件夹的显示区域大小;Determining the size of the display area of the target folder when receiving a viewing instruction for the directory where the target folder is located;基于所述显示区域大小,将所述目标文件夹的封面信息在对应的显示区域内进行呈现。Based on the size of the display area, the cover information of the target folder is presented in the corresponding display area.
- 一种信息文件的处理方法,其特征在于,包括:A processing method for information files, characterized in that it comprises:确定目标文件,其中,所述目标文件包含至少一页信息内容;Determining a target file, where the target file contains at least one page of information content;按照信息内容所含信息量的大小,从所述至少一页信息内容中选取N页信息内容作为N个目标信息内容,其中,N为正整数;Select N pages of information content from the at least one page of information content as N target information content according to the amount of information contained in the information content, where N is a positive integer;生成所述N个目标信息内容的N个缩略图;Generating N thumbnails of the N target information contents;将所述N个缩略图作为所述目标文件的封面信息。Use the N thumbnails as cover information of the target file.
- 根据权利要求10所述的方法,其特征在于,所述按照信息内容所含信息量的大小,从所述至少一页信息内容中选取N页信息内容作为N个目标信息内容,包括:The method according to claim 10, wherein the selecting N pages of information content from the at least one page of information content as the N target information content according to the amount of information contained in the information content comprises:对所述至少一页信息内容分别进行识别处理,得到所述至少一页信息内容中各自的信息内容所含信息量;Performing identification processing on the at least one page of information content, respectively, to obtain the amount of information contained in the respective information content in the at least one page of information content;按照所述信息内容所含信息量从大到小的顺序,对所述至少一页信息内容进行排序;Sorting the at least one page of information content in descending order of the amount of information contained in the information content;从所述至少一页信息内容中选取排列在前N的信息内容,并将所述排列在前N的信息内容确定为所述N个目标信息内容。Select the top N information content from the at least one page of information content, and determine the top N information content as the N target information content.
- 根据权利要求10所述的方法,其特征在于,生成所述N个目标信息内容的N个缩略图,包括:The method according to claim 10, wherein generating N thumbnails of the N target information contents comprises:按照信息内容所含信息量的大小,确定所述N个目标信息内容的排列顺序;Determine the sequence of the N target information contents according to the amount of information contained in the information contents;根据所述N个目标信息内容的排列顺序,确定所述N个目标信息内容对应的压缩尺寸;Determine the compression size corresponding to the N target information contents according to the arrangement order of the N target information contents;基于所述N个目标信息内容对应的压缩尺寸,对所述N个目标信息内容进行压缩,对应生成所述N个缩略图。Based on the compression size corresponding to the N target information contents, compress the N target information contents, and correspondingly generate the N thumbnail images.
- 根据权利要求10至12中任一项所述的方法,其特征在于,将所述N个缩略图作为所述目标文件的封面信息,包括:The method according to any one of claims 10 to 12, wherein using the N thumbnails as cover information of the target file comprises:基于预设的多级缩略图策略,对所述N个缩略图进行排版组合以生成复合缩略图;Based on a preset multi-level thumbnail strategy, typesetting and combining the N thumbnails to generate a composite thumbnail;将所述复合缩略图确定为所述目标文件的封面信息。The composite thumbnail is determined as the cover information of the target file.
- 一种信息文件的处理装置,其特征在于,包括:An information file processing device, characterized in that it comprises:文件获取模块,用于获取目标文件夹下的所有信息文件;File acquisition module, used to acquire all information files in the target folder;选取模块,用于按照文件内容所含信息量的大小,从所述所有信息文件中选取N个目标信息文件,其中,N为正整数;The selection module is used to select N target information files from all the information files according to the amount of information contained in the file content, where N is a positive integer;缩略图生成模块,用于生成所述N个目标信息文件的N个缩略图;A thumbnail generating module for generating N thumbnails of the N target information files;封面信息生成模块,用于将所述N个缩略图作为所述目标文件夹的封面信息。The cover information generating module is configured to use the N thumbnails as cover information of the target folder.
- 根据权利要求14所述的装置,其特征在于,所述选取模块具体用于:The device according to claim 14, wherein the selection module is specifically configured to:确定所述所有信息文件的文件个数;Determine the number of files of all the information files;判断所述文件个数是否大于或等于预设阈值;Judging whether the number of files is greater than or equal to a preset threshold;若是,则按照文件内容所含信息量的大小,从所述所有信息文件中选取所述预设阈值个信息文件,并将所述预设阈值个信息文件作为所述N个目标信息文件;If yes, select the preset threshold number of information files from all the information files according to the size of the amount of information contained in the file content, and use the preset threshold number of information files as the N target information files;若否,则将所述所有信息文件作为所述N个目标信息文件。If not, use all the information files as the N target information files.
- 根据权利要求14所述的装置,其特征在于,所述选取模块包括:The device according to claim 14, wherein the selection module comprises:识别处理单元,用于对所述所有信息文件分别进行识别处理,得到所述所有信息文件各自的文件内容所含信息量;An identification processing unit, configured to perform identification processing on all the information files to obtain the amount of information contained in the respective file contents of all the information files;排序单元,用于按照所述文件内容所含信息量从大到小的顺序,对所述所有信息文件进行排序;The sorting unit is used to sort all the information files in descending order of the amount of information contained in the file content;选取单元,用于从所述所有信息文件中选取排列在前N的信息文件,并将所述排列在前N的信息文件确定为所述N个目标信息文件。The selecting unit is configured to select the top N information files from all the information files, and determine the top N information files as the N target information files.
- 根据权利要求16所述的装置,其特征在于,当所述信息文件为图片时,所述识别处理单元具体用于:The device according to claim 16, wherein when the information file is a picture, the recognition processing unit is specifically configured to:提取所有图片中的像素点信息;Extract pixel information in all pictures;根据所述所有图片中的像素点信息,计算所述所有图片灰度的方差值;Calculating the variance values of the gray levels of all the pictures according to the pixel point information in all the pictures;将所述所有图片的方差值确定为所述所有图片各自的文件内容所含信息量。The variance value of all the pictures is determined as the amount of information contained in the respective file content of all the pictures.
- 根据权利要求16所述的装置,其特征在于,当所述信息文件为文本文件时,所述识别处理单元具体用于:The device according to claim 16, wherein when the information file is a text file, the recognition processing unit is specifically configured to:基于文字识别技术对所述所有文本文件的内容进行文字识别,得到所述所有文本文件各自的内容信息;Performing text recognition on the content of all text files based on text recognition technology to obtain respective content information of all text files;根据所述所有文本文件各自的内容信息,计算所述所有文本文件各自所包含的字符总数;Calculating the total number of characters contained in all the text files according to the respective content information of all the text files;将所述所有文本文件各自所包含的字符总数,确定为所述所有文本文件各自的文件内容所含信息量。The total number of characters contained in all the text files is determined as the amount of information contained in the file content of all the text files.
- 根据权利要求18所述的装置,其特征在于,所述缩略图生成模块具体用于:The device according to claim 18, wherein the thumbnail generating module is specifically configured to:确定N个目标文本文件各自的内容信息;Determine the content information of each of the N target text files;根据所述N个目标文本文件各自的内容信息,生成所述N个目标文本文件各自的摘要信息;Generating summary information of each of the N target text files according to the content information of each of the N target text files;基于文字转图片技术,将所述N个目标文本文件各自的摘要信息转换成对应的图片;Based on the text-to-picture technology, converting the respective summary information of the N target text files into corresponding pictures;将转换得到的所述N个目标文本文件各自的图片进行压缩,得到所述N个目标文本文件的N个缩略图。The respective pictures of the N target text files obtained by the conversion are compressed to obtain N thumbnail images of the N target text files.
- 根据权利要求14所述的装置,其特征在于,所述缩略图生成模块具体用于:The device according to claim 14, wherein the thumbnail generating module is specifically configured to:按照文件内容所含信息量的大小,确定所述N个目标信息文件的排列顺序;Determine the sequence of the N target information files according to the size of the information contained in the file content;根据所述N个目标信息文件的排列顺序,确定所述N个目标信息文件对应的压缩尺寸;Determine the compression size corresponding to the N target information files according to the sequence of the N target information files;基于所述N个目标信息文件对应的压缩尺寸,对所述N个目标信息文件进行压缩,对应生成所述N个缩略图。Based on the compression sizes corresponding to the N target information files, the N target information files are compressed, and the N thumbnail images are correspondingly generated.
- 根据权利要求14至20中任一项所述的装置,其特征在于,所述封面信息生成模块具体用于:The device according to any one of claims 14 to 20, wherein the cover information generating module is specifically configured to:基于预设的多级缩略图策略,对所述N个缩略图进行排版组合以生成复合缩略图;Based on a preset multi-level thumbnail strategy, typesetting and combining the N thumbnails to generate a composite thumbnail;将所述复合缩略图确定为所述目标文件夹的封面信息。The composite thumbnail is determined as the cover information of the target folder.
- 根据权利要求14至21中任一项所述的装置,其特征在于,还包括:The device according to any one of claims 14 to 21, further comprising:确定模块,用于在接收到针对所述目标文件夹所在目录的查看指令时,确定所述目标文件夹的显示区域大小;The determining module is configured to determine the size of the display area of the target folder when receiving a view instruction for the directory where the target folder is located;呈现模块,用于基于所述显示区域大小,将所述目标文件夹的封面信息在对应的显示区域内进行呈现。The presentation module is configured to present the cover information of the target folder in the corresponding display area based on the size of the display area.
- 一种信息文件的处理装置,其特征在于,包括:An information file processing device, characterized in that it comprises:确定模块,用于确定目标文件,其中,所述目标文件包含至少一页信息内容;The determining module is used to determine a target file, where the target file contains at least one page of information content;选取模块,用于按照信息内容所含信息量的大小,从所述至少一页信息内容中选取N页信息内容作为N个目标信息内容,其中,N为正整数;The selection module is configured to select N pages of information content from the at least one page of information content as N target information content according to the amount of information contained in the information content, where N is a positive integer;缩略图生成模块,用于生成所述N个目标信息内容的N个缩略图;A thumbnail generating module, configured to generate N thumbnails of the N target information contents;封面信息生成模块,用于将所述N个缩略图作为所述目标文件的封面信息。The cover information generating module is configured to use the N thumbnails as cover information of the target file.
- 根据权利要求23所述的装置,其特征在于,所述选取模块具体用于:The device according to claim 23, wherein the selection module is specifically configured to:对所述至少一页信息内容分别进行识别处理,得到所述至少一页信息内容中各自的信息内容所含信息量;Performing identification processing on the at least one page of information content, respectively, to obtain the amount of information contained in the respective information content in the at least one page of information content;按照所述信息内容所含信息量从大到小的顺序,对所述至少一页信息内容进行排序;Sorting the at least one page of information content in descending order of the amount of information contained in the information content;从所述至少一页信息内容中选取排列在前N的信息内容,并将所述排列在前N的信息内容确定为所述N个目标信息内容。Select the top N information content from the at least one page of information content, and determine the top N information content as the N target information content.
- 根据权利要求23所述的装置,其特征在于,所述缩略图生成模块具体用于:The device according to claim 23, wherein the thumbnail generating module is specifically configured to:按照信息内容所含信息量的大小,确定所述N个目标信息内容的排列顺序;Determine the sequence of the N target information contents according to the amount of information contained in the information contents;根据所述N个目标信息内容的排列顺序,确定所述N个目标信息内容对应的压缩尺寸;Determine the compression size corresponding to the N target information contents according to the arrangement order of the N target information contents;基于所述N个目标信息内容对应的压缩尺寸,对所述N个目标信息内容进行压缩,对应生成所述N个缩略图。Based on the compression size corresponding to the N target information contents, compress the N target information contents, and correspondingly generate the N thumbnail images.
- 根据权利要求23至25中任一项所述的装置,其特征在于,所述封面信息生成模块具体用于:The device according to any one of claims 23 to 25, wherein the cover information generating module is specifically configured to:基于预设的多级缩略图策略,对所述N个缩略图进行排版组合以生成复合缩略图;Based on a preset multi-level thumbnail strategy, typesetting and combining the N thumbnails to generate a composite thumbnail;将所述复合缩略图确定为所述目标文件的封面信息。The composite thumbnail is determined as the cover information of the target file.
- 一种电子设备,其特征在于,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求1至9中任一项所述的信息文件的处理方法。An electronic device, characterized by comprising: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and when the processor executes the computer program, the following The information file processing method described in any one of 1 to 9.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至9中任一项所述的信息文件的处理方法。A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the information file processing method according to any one of claims 1 to 9 when the computer program is executed by a processor.
- 一种电子设备,其特征在于,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求10至13中任一项所述的信息文件的处理方法。An electronic device, characterized by comprising: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and when the processor executes the computer program, the following The information file processing method described in any one of 10 to 13.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求10至13中任一项所述的信息文件的处理方法。A computer-readable storage medium with a computer program stored thereon, wherein the computer program implements the information file processing method according to any one of claims 10 to 13 when the computer program is executed by a processor.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910384885.2A CN110134651B (en) | 2019-05-09 | 2019-05-09 | Information file processing method and device, electronic equipment and storage medium |
CN201910384885.2 | 2019-05-09 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020224140A1 true WO2020224140A1 (en) | 2020-11-12 |
Family
ID=67577004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/104575 WO2020224140A1 (en) | 2019-05-09 | 2019-09-05 | Information file processing method and device, electronic device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110134651B (en) |
WO (1) | WO2020224140A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134651B (en) * | 2019-05-09 | 2021-10-26 | 北京金山安全软件有限公司 | Information file processing method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100192106A1 (en) * | 2007-06-28 | 2010-07-29 | Shuichi Watanabe | Display apparatus and display method |
CN102629280A (en) * | 2012-03-29 | 2012-08-08 | 深圳创维数字技术股份有限公司 | Method and device for extracting thumbnail during video processing |
CN103177101A (en) * | 2013-03-21 | 2013-06-26 | 广东欧珀移动通信有限公司 | Method and device for cycle display of thumbnails on folder icon |
CN106022010A (en) * | 2016-05-20 | 2016-10-12 | 乐视控股(北京)有限公司 | File display method and device |
CN108733676A (en) * | 2017-04-14 | 2018-11-02 | 合信息技术(北京)有限公司 | The extracting method and device of video thumbnails |
CN110134651A (en) * | 2019-05-09 | 2019-08-16 | 北京金山安全软件有限公司 | Information file processing method and device, electronic equipment and storage medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6800167B1 (en) * | 2002-12-17 | 2004-10-05 | Funeral Management Solutions Llc | Printing system for generating personalized memorial items, and method for generating such items |
CN103186880B (en) * | 2011-12-28 | 2015-12-02 | 北大方正集团有限公司 | Generate the method and apparatus of thumbnail |
CN104021129B (en) * | 2013-02-28 | 2019-10-08 | 腾讯科技(深圳)有限公司 | Show the method and terminal of group picture |
CN103198116B (en) * | 2013-03-29 | 2018-02-13 | 东莞宇龙通信科技有限公司 | The display methods and system of picture in a kind of file front cover and file |
CN103714161B (en) * | 2013-12-30 | 2017-06-16 | 小米科技有限责任公司 | The generation method of image thumbnails, device and terminal |
CN104216996A (en) * | 2014-09-10 | 2014-12-17 | 北京金山安全软件有限公司 | File information display method and device |
CN105808645B (en) * | 2016-02-26 | 2019-05-10 | 北京金山安全软件有限公司 | Picture processing method and device and electronic equipment |
CN106503693B (en) * | 2016-11-28 | 2019-03-15 | 北京字节跳动科技有限公司 | The providing method and device of video cover |
-
2019
- 2019-05-09 CN CN201910384885.2A patent/CN110134651B/en active Active
- 2019-09-05 WO PCT/CN2019/104575 patent/WO2020224140A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100192106A1 (en) * | 2007-06-28 | 2010-07-29 | Shuichi Watanabe | Display apparatus and display method |
CN102629280A (en) * | 2012-03-29 | 2012-08-08 | 深圳创维数字技术股份有限公司 | Method and device for extracting thumbnail during video processing |
CN103177101A (en) * | 2013-03-21 | 2013-06-26 | 广东欧珀移动通信有限公司 | Method and device for cycle display of thumbnails on folder icon |
CN106022010A (en) * | 2016-05-20 | 2016-10-12 | 乐视控股(北京)有限公司 | File display method and device |
CN108733676A (en) * | 2017-04-14 | 2018-11-02 | 合信息技术(北京)有限公司 | The extracting method and device of video thumbnails |
CN110134651A (en) * | 2019-05-09 | 2019-08-16 | 北京金山安全软件有限公司 | Information file processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110134651B (en) | 2021-10-26 |
CN110134651A (en) | 2019-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11023666B2 (en) | Narrative-based media organizing system for transforming and merging graphical representations of digital media within a work area | |
Strobelt et al. | Document cards: A top trumps visualization for documents | |
JP4337064B2 (en) | Information processing apparatus, information processing method, and program | |
US7668371B2 (en) | System and method for adaptively separating foreground from arbitrary background in presentations | |
US9348799B2 (en) | Forming a master page for an electronic document | |
JP4882486B2 (en) | Slide image determination device and slide image determination program | |
US20080215548A1 (en) | Information search method and system | |
US10572528B2 (en) | System and method for automatic detection and clustering of articles using multimedia information | |
JP2007513413A (en) | Content recognition for selecting emphasized images | |
CN109271542A (en) | Cover determines method, apparatus, equipment and readable storage medium storing program for executing | |
JP2020149686A (en) | Image processing method, device, server, and storage medium | |
US20120005564A1 (en) | Content distribution system and method | |
CN108345700B (en) | Article representative picture selection method and device and computer equipment | |
CN111078915B (en) | Click-to-read content acquisition method in click-to-read mode and electronic equipment | |
WO2020224140A1 (en) | Information file processing method and device, electronic device and storage medium | |
JP2017211936A (en) | Document storage processing system | |
JP5271015B2 (en) | Image processing apparatus, image processing method, and program | |
JP2008191936A (en) | Method for supporting construction of content registration/search system, and apparatus for supporting construction of content registration/search system | |
CN113094538A (en) | Image retrieval method, device and computer-readable storage medium | |
US8566366B2 (en) | Format conversion apparatus and file search apparatus capable of searching for a file as based on an attribute provided prior to conversion | |
US11816184B2 (en) | Ordering presentation of training documents for machine learning | |
CN112818687B (en) | Method, device, electronic equipment and storage medium for constructing title recognition model | |
US20120254717A1 (en) | Media tagging | |
CN108287646B (en) | Multimedia object viewing method and device, storage medium and computing equipment | |
JP5868262B2 (en) | Image search apparatus and image search method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19928224 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19928224 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 210322) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19928224 Country of ref document: EP Kind code of ref document: A1 |