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 PDF

Info

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
Application number
PCT/CN2019/104575
Other languages
French (fr)
Chinese (zh)
Inventor
雷超然
Original Assignee
北京金山安全软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Publication of WO2020224140A1 publication Critical patent/WO2020224140A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details 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

Disclosed are an information file processing method and device, an electronic device and a storage medium, wherein the information file processing method comprises: obtaining all information files in a target folder (101); selecting, according to the quantity of information contained in the file content, N target information files from all the information files, where N is a positive integer (102); generating N thumbnails of N target information files (103); and using N thumbnails as the cover information of the target folder (104). As a result, the most representative files are intelligently recognized from the folder, and the thumbnails corresponding to these files are used as the cover of the folder, such that users can quickly learn the content of the information files in the folder, thereby improving the efficiency and thus improving the user experience.

Description

信息文件的处理方法、装置、电子设备和存储介质Information file processing method, device, electronic equipment and storage medium
相关申请的交叉引用Cross references to related applications
本申请要求北京金山安全软件有限公司于2019年5月9日提交的、发明名称为“信息文件的处理方法、装置、电子设备和存储介质”的、中国专利申请号“201910384885.2”的优先权。This application claims the priority of the Chinese patent application number “201910384885.2” filed by Beijing Kingsoft Security Software Co., Ltd. on May 9, 2019 with the title of “Processing Methods, Devices, Electronic Equipment and Storage Media of Information Files”.
技术领域Technical field
本申请涉及信息处理技术领域,尤其涉及一种信息文件的处理方法、装置、电子设备和计算机可读存储介质。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.
背景技术Background technique
文件夹中可以存放各种类型的文件,如:文档、图片、相册、音乐、音乐集等。为了在不打开文件夹的情况下,帮助用户更好的获知文件夹中的内容,相关技术中,通常是以略缩图的方式来概括一个文件夹内的内容,并通过固定的分切方式以展示缩略图。Various types of files can be stored in the folder, such as: documents, pictures, albums, music, music collections, etc. In order to help users better understand the contents of the folder without opening the folder, in related technologies, 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.
但是,目前存在的问题是:用于概括文件夹内容的缩略图缺乏主体,导致用户不容易快速识别文件夹内容,用户体验变差;另外,通过固定的分切方式以展示的缩略图呈现速度慢,导致系统运行效率低。However, 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.
发明内容Summary of the invention
本申请的目的旨在至少在一定程度上解决上述的技术问题之一。The purpose of this application is to solve one of the above technical problems at least to a certain extent.
为此,本申请的第一个目的在于提出一种信息文件的处理方法。该方法可以智能地从文件夹中识别出最具有代表性的文件,并将这些文件对应的缩略图作为文件夹封面,使得用户可以快速获知文件夹下信息文件的内容,提升了效率,从而提升了用户的使用体验。For this reason, 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.
为达上述目的,本申请第一方面实施例提出了一种信息文件的处理方法,包括:获取 目标文件夹下的所有信息文件;按照文件内容所含信息量的大小,从所述所有信息文件中选取N个目标信息文件,其中,N为正整数;生成所述N个目标信息文件的N个缩略图;将所述N个缩略图作为所述目标文件夹的封面信息。In order to achieve the above objective, 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.
本申请实施例的信息文件的处理方法,可获取目标文件夹下的所有信息文件;之后,获取目标文件夹下的所有信息文件;按照文件内容所含信息量的大小,从所述所有信息文件中选取N个目标信息文件,其中,N为正整数;生成所述N个目标信息文件的N个缩略图;并将所述N个缩略图作为所述目标文件夹的封面信息。由此,通过人工智能图片识别技术,智能地从文件夹中识别出最具有代表性的文件,并将这些文件对应的缩略图作为文件夹封面,使得该文件夹的封面具有主体性,使得用户可以通过查看文件夹封面即可快速获知文件夹下信息文件的内容,提升了效率,从而提升了用户体验。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.
根据本申请的一个实施例,所述按照文件内容所含信息量的大小,从所述所有信息文件中选取N个目标信息文件,包括:确定所述所有信息文件的文件个数;判断所述文件个数是否大于或等于预设阈值;若是,则按照文件内容所含信息量的大小,从所述所有信息文件中选取所述预设阈值个信息文件,并将所述预设阈值个信息文件作为所述N个目标信息文件;若否,则将所述所有信息文件作为所述N个目标信息文件。According to an embodiment of the present application, 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.
根据本申请的一个实施例,所述按照文件内容所含信息量的大小,从所述所有信息文件中选取N个目标信息文件,包括:对所述所有信息文件分别进行识别处理,得到所述所有信息文件各自的文件内容所含信息量;按照所述文件内容所含信息量从大到小的顺序,对所述所有信息文件进行排序;从所述所有信息文件中选取排列在前N的信息文件;将所述排列在前N的信息文件确定为所述N个目标信息文件。According to an embodiment of the present application, 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.
根据本申请的一个实施例,当所述信息文件为图片时,对所述所有信息文件分别进行识别处理,得到所述所有信息文件各自的文件内容所含信息量,包括:提取所有图片中的像素点信息;根据所述所有图片中的像素点信息,计算所述所有图片灰度的方差值;将所述所有图片的方差值确定为所述所有图片各自的文件内容所含信息量。According to an embodiment of the present application, when the information file is a picture, 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 .
根据本申请的一个实施例,当所述信息文件为文本文件时,对所述所有信息文件分别进行识别处理,得到所述所有信息文件各自的文件内容所含信息量,包括:基于文字识别技术对所述所有文本文件的内容进行文字识别,得到所述所有文本文件各自的内容信息;根据所述所有文本文件各自的内容信息,计算所述所有文本文件各自所包含的字符总数;将所述所有文本文件各自所包含的字符总数,确定为所述所有文本文件各自的文件内容所含信息量。According to an embodiment of the present application, when the information file is a text file, 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.
根据本申请的一个实施例,生成所述N个目标信息文件的N个缩略图,包括:确定N个目标文本文件各自的内容信息;根据所述N个目标文本文件各自的内容信息,生成所述N个目标文本文件各自的摘要信息;基于文字转图片技术,将所述N个目标文本文件各自的摘要信息转换成对应的图片;将转换得到的所述N个目标文本文件各自的图片进行压缩, 得到所述N个目标文本文件的N个缩略图。According to an embodiment of the present application, 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.
根据本申请的另一个实施例,生成所述N个目标信息文件的N个缩略图,包括:按照文件内容所含信息量的大小,确定所述N个目标信息文件的排列顺序;根据所述N个目标信息文件的排列顺序,确定所述N个目标信息文件对应的压缩尺寸;基于所述N个目标信息文件对应的压缩尺寸,对所述N个目标信息文件进行压缩,对应生成所述N个缩略图。According to another embodiment of the present application, 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.
根据本申请的一个实施例,将所述N个缩略图作为所述目标文件夹的封面信息,包括:基于预设的多级缩略图策略,对所述N个缩略图进行排版组合以生成复合缩略图;将所述复合缩略图确定为所述目标文件夹的封面信息。According to an embodiment of the present application, 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.
根据本申请的一个实施例,所述方法还包括:在接收到针对所述目标文件夹所在目录的查看指令时,确定所述目标文件夹的显示区域大小;基于所述显示区域大小,将所述目标文件夹的封面信息在对应的显示区域内进行呈现。According to an embodiment of the present application, 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.
为达上述目的,本申请第二方面实施例提出了一种信息文件的处理方法,包括:确定目标文件,其中,所述目标文件包含至少一页信息内容;按照信息内容所含信息量的大小,从所述至少一页信息内容中选取N页信息内容作为N个目标信息内容,其中,N为正整数;生成所述N个目标信息内容的N个缩略图;将所述N个缩略图作为所述目标文件的封面信息。To achieve the above objective, 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.
本申请实施例的信息文件的处理方法,首先确定目标文件,其中,所述目标文件包含至少一页信息内容;之后,按照信息内容所含信息量的大小,从所述至少一页信息内容中选取N页信息内容作为N个目标信息内容,其中,N为正整数;最后,生成所述N个目标信息内容的N个缩略图;将所述N个缩略图作为所述目标文件的封面信息。由此,通过人工智能识别技术,智能地从文件中识别出最具有代表性的文件信息内容,并将这些文件信息内容对应的缩略图作为文件封面,使得该文件的封面具有主体性,使得用户可以通过查看文件封面即可快速获知信息文件的内容,提升了效率,从而提升了用户体验。In the method for processing an information file in the embodiment of the present application, 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.
根据本申请的一个实施例,所述按照信息内容所含信息量的大小,从所述至少一页信息内容中选取N页信息内容作为N个目标信息内容,包括:对所述至少一页信息内容分别进行识别处理,得到所述至少一页信息内容中各自的信息内容所含信息量;按照所述信息内容所含信息量从大到小的顺序,对所述至少一页信息内容进行排序;从所述至少一页信息内容中选取排列在前N的信息内容,并将所述排列在前N的信息内容确定为所述N个目标信息内容。According to an embodiment of the present application, 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.
根据本申请的一个实施例,生成所述N个目标信息内容的N个缩略图,包括:按照信息内容所含信息量的大小,确定所述N个目标信息内容的排列顺序;根据所述N个目标信息内容的排列顺序,确定所述N个目标信息内容对应的压缩尺寸;基于所述N个目标信息内容对应的压缩尺寸,对所述N个目标信息内容进行压缩,对应生成所述N个缩略图。According to an embodiment of the present application, 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.
根据本申请的一个实施例,将所述N个缩略图作为所述目标文件的封面信息,包括: 基于预设的多级缩略图策略,对所述N个缩略图进行排版组合以生成复合缩略图;将所述复合缩略图确定为所述目标文件的封面信息。According to an embodiment of the present application, 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.
为达上述目的,本申请第三方面实施例提出了一种信息文件的处理装置,包括:文件获取模块,用于获取目标文件夹下的所有信息文件;选取模块,用于按照文件内容所含信息量的大小,从所述所有信息文件中选取N个目标信息文件,其中,N为正整数;缩略图生成模块,用于生成所述N个目标信息文件的N个缩略图;封面信息生成模块,用于将所述N个缩略图作为所述目标文件夹的封面信息。In order to achieve the above objective, 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.
本申请实施例的信息文件的处理装置,可获取目标文件夹下的所有信息文件;之后,获取目标文件夹下的所有信息文件;按照文件内容所含信息量的大小,从所述所有信息文件中选取N个目标信息文件,其中,N为正整数;生成所述N个目标信息文件的N个缩略图;并将所述N个缩略图作为所述目标文件夹的封面信息。由此,通过人工智能图片识别技术,智能地从文件夹中识别出最具有代表性的文件,并将这些文件对应的缩略图作为文件夹封面,使得该文件夹的封面具有主体性,使得用户可以通过查看文件夹封面即可快速获知文件夹下信息文件的内容,提升了效率,从而提升了用户体验。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.
根据本申请的一个实施例,所述选取模块具体用于:确定所述所有信息文件的文件个数;判断所述文件个数是否大于或等于预设阈值;若是,则按照文件内容所含信息量的大小,从所述所有信息文件中选取所述预设阈值个信息文件,并将所述预设阈值个信息文件作为所述N个目标信息文件;若否,则将所述所有信息文件作为所述N个目标信息文件。According to an embodiment of the application, 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.
根据本申请的一个实施例,所述选取模块包括:识别处理单元,用于对所述所有信息文件分别进行识别处理,得到所述所有信息文件各自的文件内容所含信息量;排序单元,用于按照所述文件内容所含信息量从大到小的顺序,对所述所有信息文件进行排序;选取单元,用于从所述所有信息文件中选取排列在前N的信息文件,并将所述排列在前N的信息文件确定为所述N个目标信息文件。According to an embodiment of the present application, 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.
根据本申请的一个实施例,当所述信息文件为图片时,所述识别处理单元具体用于:提取所有图片中的像素点信息;根据所述所有图片中的像素点信息,计算所述所有图片灰度的方差值;将所述所有图片的方差值确定为所述所有图片各自的文件内容所含信息量。According to an embodiment of the present application, when the information file is a picture, 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.
根据本申请的一个实施例,当所述信息文件为文本文件时,所述识别处理单元具体用于:基于文字识别技术对所述所有文本文件的内容进行文字识别,得到所述所有文本文件各自的内容信息;根据所述所有文本文件各自的内容信息,计算所述所有文本文件各自所包含的字符总数;将所述所有文本文件各自所包含的字符总数,确定为所述所有文本文件各自的文件内容所含信息量。According to an embodiment of the present application, when the information file is a text file, 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.
根据本申请的一个实施例,所述缩略图生成模块具体用于:确定N个目标文本文件各自的内容信息;根据所述N个目标文本文件各自的内容信息,生成所述N个目标文本文件各自的摘要信息;基于文字转图片技术,将所述N个目标文本文件各自的摘要信息转换成 对应的图片;将转换得到的所述N个目标文本文件各自的图片进行压缩,得到所述N个目标文本文件的N个缩略图。According to an embodiment of the present application, 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.
根据本申请的另一个实施例,所述缩略图生成模块具体用于:按照文件内容所含信息量的大小,确定所述N个目标信息文件的排列顺序;根据所述N个目标信息文件的排列顺序,确定所述N个目标信息文件对应的压缩尺寸;基于所述N个目标信息文件对应的压缩尺寸,对所述N个目标信息文件进行压缩,对应生成所述N个缩略图。According to another embodiment of the present application, 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.
根据本申请的一个实施例,所述封面信息生成模块具体用于:基于预设的多级缩略图策略,对所述N个缩略图进行排版组合以生成复合缩略图;将所述复合缩略图确定为所述目标文件夹的封面信息。According to an embodiment of the present application, 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.
根据本申请的一个实施例,所述装置还包括:确定模块,用于在接收到针对所述目标文件夹所在目录的查看指令时,确定所述目标文件夹的显示区域大小;呈现模块,用于基于所述显示区域大小,将所述目标文件夹的封面信息在对应的显示区域内进行呈现。According to an embodiment of the present application, 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.
为达上述目的,本申请第四方面实施例提出了另一种信息文件的处理装置,包括:确定模块,用于确定目标文件,其中,所述目标文件包含至少一页信息内容;选取模块,用于按照信息内容所含信息量的大小,从所述至少一页信息内容中选取N页信息内容作为N个目标信息内容,其中,N为正整数;缩略图生成模块,用于生成所述N个目标信息内容的N个缩略图;封面信息生成模块,用于将所述N个缩略图作为所述目标文件的封面信息。In order to achieve the above purpose, 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.
本申请实施例的信息文件的处理装置,首先确定目标文件,其中,所述目标文件包含至少一页信息内容;之后,按照信息内容所含信息量的大小,从所述至少一页信息内容中选取N页信息内容作为N个目标信息内容,其中,N为正整数;最后,生成所述N个目标信息内容的N个缩略图;将所述N个缩略图作为所述目标文件的封面信息。由此,通过人工智能识别技术,智能地从文件中识别出最具有代表性的文件信息内容,并将这些文件信息内容对应的缩略图作为文件封面,使得该文件的封面具有主体性,使得用户可以通过查看文件封面即可快速获知信息文件的内容,提升了效率,从而提升了用户体验。In the information file processing apparatus of the embodiment of the present application, 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.
为达上述目的,本申请第五方面实施例提出了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;其中,所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于实现本申请第一方面实施例所述的信息文件的处理方法。In order to achieve the above objective, 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.
为达上述目的,本申请第六方面实施例提出了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现本申请第一方面实施例所述的信息文件的处理方法。In order to achieve the foregoing objective, an embodiment of the sixth aspect of the present application proposes a computer-readable storage medium on which a computer program is stored. When 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.
为达上述目的,本申请第七方面实施例提出了另一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;其中,所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于 实现本申请第二方面实施例所述的信息文件的处理方法。In order to achieve the above purpose, 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.
为达上述目的,本申请第八方面实施例提出了另一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现本申请第二方面实施例所述的信息文件的处理方法。In order to achieve the above objective, the embodiment of the eighth aspect of the present application proposes another computer-readable storage medium on which a computer program is stored. 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. File processing method.
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。The additional aspects and advantages of this application will be partly given in the following description, and some will become obvious from the following description, or be understood through the practice of this application.
附图说明Description of the drawings
本申请的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become obvious and easy to understand from the description of the embodiments in conjunction with the following drawings, in which:
图1是根据本申请一个实施例的信息文件的处理方法的流程图。Fig. 1 is a flowchart of a method for processing an information file according to an embodiment of the present application.
图2(a)是根据本申请一个实施例的复合略缩图作为目标文件夹的封面信息示意图。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.
图2(b)是根据本申请另一个实施例的复合略缩图作为目标文件夹的封面信息示意图。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.
图2(c)是根据本申请又一个实施例的复合略缩图作为目标文件夹的封面信息示意图。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.
图2(d)是根据本申请再一个实施例的复合略缩图作为目标文件夹的封面信息示意图。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.
图3是根据本申请另一个具体实施例的信息文件的处理方法的流程图。Fig. 3 is a flowchart of a method for processing an information file according to another specific embodiment of the present application.
图4是根据本申请又一个具体实施例的信息文件的处理方法的流程图。Fig. 4 is a flowchart of a method for processing an information file according to another specific embodiment of the present application.
图5是根据本申请另一个实施例的信息文件的处理方法的流程图。Fig. 5 is a flowchart of a method for processing an information file according to another embodiment of the present application.
图6是根据本申请一个实施例的信息文件的处理装置的结构示意图。Fig. 6 is a schematic structural diagram of an information file processing apparatus according to an embodiment of the present application.
图7是根据本申请另一具体实施例的信息文件的处理装置的结构示意图。Fig. 7 is a schematic structural diagram of an information file processing apparatus according to another specific embodiment of the present application.
图8是根据本申请又一具体实施例的信息文件的处理装置的结构示意图。Fig. 8 is a schematic structural diagram of an information file processing apparatus according to another specific embodiment of the present application.
图9是根据本申请另一个实施例的信息文件的处理装置的结构示意图。Fig. 9 is a schematic structural diagram of an information file processing device according to another embodiment of the present application.
图10示出了适于用来实现本申请实施方式的示例性电子设备的框图。Fig. 10 shows a block diagram of an exemplary electronic device suitable for implementing the embodiments of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to explain the application, but should not be understood as a limitation to the application.
下面参考附图描述本申请实施例的信息文件的处理方法、装置、电子设备和计算机可读存储介质。The information file processing method, apparatus, electronic equipment, and computer-readable storage medium of the embodiments of the present application are described below with reference to the accompanying drawings.
图1是根据本申请一个实施例的信息文件的处理方法的流程图。Fig. 1 is a flowchart of a method for processing an information file according to an embodiment of the present application.
如图1所示,该信息文件的处理方法包括以下步骤:As shown in Figure 1, the processing method of the information file includes the following steps:
步骤101,获取目标文件夹下的所有信息文件。Step 101: Obtain all information files in the target folder.
在本申请实施例中,信息文件是包含信息量的文件,可以为图片文件、文本文件等。 文件夹中可以同时存放同种类型的信息文件,也可以存放不同类型的文件,例如,文件夹中只存放图片文件,或者只存放文本文件等,文件夹中还可以将图片文件和文本文件等同时存放。需要说明的是,本申请实施例以文件夹中存放同种类型的信息文件为示例进行描述。In the embodiments of the present application, 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.
例如,假设本申请实施例的信息文件的处理方法应用于移动终端,在用户打开该移动终端的文件夹列表时,可先获取该文件夹列表中各文件夹的绝对路径,并根据各文件夹的绝对路径从存储器中获取存放于各文件夹下的文件。For example, assuming that the information file processing method of the embodiment of the present application is applied to a mobile terminal, 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.
步骤102,按照文件内容所含信息量的大小,从所有信息文件中选取N个目标信息文件,其中,N为正整数。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.
在本申请实施例中,在获取到目标文件夹下的所有信息文件时,可对目标文件夹下的所有信息文件分别进行识别处理,得到所有信息文件各自的文件内容所含的信息量。之后,按照文件内容所含信息量从大到小的顺序,对所有信息文件进行排序,并从所有信息文件中选取排列在前N的信息文件,将选取的排列在前N的信息文件确定为N个目标信息文件。In the embodiment of the present application, 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.
需要说明的是,不同的文件类型所采用的文件内容所含信息量的获取方法也会不同。例如,当信息文件为图片时,可采用图像识别技术获取文件内容所含信息量;当信息文件为文本文件时,可采用文字识别技术获取文件内容所含信息量。具体的实现方式可参见后续实施例的描述。It should be noted that different file types use different methods for obtaining the amount of information contained in the file content. For example, when the information file is a picture, image recognition technology can be used to obtain the amount of information contained in the file content; when the information file is a text file, text recognition technology can be used to obtain the amount of information contained in the file content. For a specific implementation manner, refer to the description of the subsequent embodiments.
可选的,为了最大限度地让用户快速获知文件夹下信息文件的内容,在按照文件内容所含信息量的大小,从所有信息文件中选取N个目标信息文件时,可先确定所有信息文件的文件个数;判断文件个数是否大于或等于预设阈值;若是,则按照文件内容所含信息量的大小,从所有信息文件中选取预设阈值个信息文件,并将预设阈值个信息文件作为N个目标信息文件;若否,则将所有信息文件作为N个目标信息文件。Optionally, in order to allow users to quickly learn the content of the information files in the folder to the maximum extent, when selecting N target information files from all the information files according to the size of the 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.
例如,在本申请实施例中,为了最大限度地让用户快速获知文件夹下信息文件的内容,防止缩略图过小,预设阈值可设置为5,也就是说,N的最大值可为5,即可用于生成目标文件夹的封面的获得压缩图片最多为五张,所以可设置目标信息文件的个数最多为5个。For example, in the embodiment of this application, in order to allow users to quickly learn the contents of the information files in the folder to the maximum extent and prevent the thumbnails from being too small, 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个信息文件作为目标信息文件,或者,也可以基于一定的预设规则进行选择N个信息文件,比如,基于文件的创建时间,选择创建时间在前的N个信息文件作为目标文件。It should be noted that in the embodiment of the present application, if all the information files in the target folder contain the same amount of information, 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.
步骤103,生成N个目标信息文件的N个缩略图。Step 103: Generate N thumbnails of N target information files.
在本申请的实施例中,可按照文件内容所含信息量的大小,确定N个目标信息文件的排列顺序,并根据N个目标信息文件的排列顺序,确定N个目标信息文件对应的压缩尺寸,基于N个目标信息文件对应的压缩尺寸,对N个目标信息文件进行压缩,对应生成N个缩略图。举例而言,可将该N个目标信息文件的排列顺序,排列在前面的目标信息文件的压 缩尺寸大于排列在后面的目标信息文件的压缩尺寸,比如,确定排列在第一的目标信息文件对应的缩略图的尺寸均大于剩余的目标信息文件对应的缩略图的尺寸,且该剩余的目标信息文件对应的缩略图的尺寸均相同。In the embodiment of the present application, 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. For example, 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. For example, it is determined that 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.
需要说明的是,目标信息文件的类型不同,则生成目标信息文件的缩略图时所使用的方式也会不同。例如,当目标信息文件为图片时,可直接确定各图片对应的压缩尺寸,进而基于各压缩尺寸对相应的图片进行压缩以得到对应的缩略图;而当目标信息文件为文本文件时,需先进行文字转图片之后,再进行图片压缩。具体实现方式可参见后续实施例的描述。It should be noted that, depending on the type of the target information file, the method used when generating the thumbnail of the target information file will also be different. For example, when the target information file is a picture, 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. For specific implementation manners, refer to the description of the subsequent embodiments.
步骤104,将N个缩略图作为目标文件夹的封面信息。Step 104: Use N thumbnails as cover information of the target folder.
可选地,基于预设的多级缩略图策略,对N个缩略图进行排版组合以生成复合缩略图,并将该复合缩略图确定为目标文件夹的封面信息。需要说明的是,该多级缩略图策略可以是预先设定的,该多级缩略图策略可理解是将多张缩略图以分级的方式组成复合略缩图。例如,可将待生成的复合缩略图划分为两部分,比如左右两部分,其中,左侧部分所占比例大于右侧所占比例,可将N个缩略图中所含信息量最大的缩略图作为待生成的复合缩略图中的左侧部分,将剩下的N-1个缩略图按照所含信息量大小的顺序依次排列在右侧部分,从而可以组成复合略缩图。Optionally, based on a preset multi-level thumbnail strategy, 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. It should be noted that 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. For example, 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 As the left part of the composite thumbnail to be generated, 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个时,可将该唯一的缩略图作为目标文件夹的封面信息。在本申请实施例中,N的最大值可为5,即可最多将5张缩略图组成的复合缩略图作为目标文件夹的封面信息。举例而言,假设本申请实施例的信息文件的处理方法应用于移动终端,以该移动终端的相册图库下具有4个文件夹为例,在用户打开该移动终端的相册图库时,针对每个文件夹,可获取每个文件夹下的所有信息文件,并按照文件内容所含信息量的大小,从每个文件夹下的所有信息文件中选取5个目标信息文件,其中,若文件夹下的信息文件个数不足5个时,则可将该文件夹下的所有信息文件均作为目标信息文件。之后,可生成该目标信息文件的缩略图,并将这些缩略图中所含信息量大的缩略图作为文件夹封面的主体,布置在文件夹封面部分的左侧部分,剩下的缩略图平分右侧空间。例如,如图2(a)所示,该文件夹下存放大于5个的信息文件,这样,可从该文件夹下选取5个信息文件,将其缩略图组成复合缩略图以作为该文件夹的封面,其中,可将5张缩略图中所含信息量最大的缩略图占据封面左侧,剩余的4张缩略图平分封面的右侧空间;如图2(b)所示,该文件夹下存放2个信息文件,这样,可将这2个信息文件作为目标信息文件,将其缩略图组成复合缩略图以作为该文件夹的封面,其中,可将2张缩略图中所含信息量最大的缩略图占据封面左侧,较小的缩略图占据封面的右侧空间;如图2(c)所示,该文件夹下仅存放1个信息文件,则可将该信息文件的缩略图直接作为该文件夹的封面,该缩略图占据该文件夹封面的整个空间;如图2(d)所示,该文件夹下存放4个信息文件,可将这4个信息文件作为目标信息文件,将其缩略图组成复合缩略图以作为该文件夹的封面,其 中,可将4张缩略图中所含信息量最大的缩略图占据封面左侧,剩余的3张缩略图平分封面的右侧空间。由此,可以通过多级略缩图优化性能,让多张略缩图组成的复合略缩图能够快速呈现,保证系统运行效率。It should be noted that when N is 1, the unique thumbnail can be used as the cover information of the target folder. In the embodiment of the present application, 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. For example, suppose the method for processing information files in the embodiment of the present application is applied to a mobile terminal. Taking the mobile terminal’s album gallery as an example, there are 4 folders under it. When the user opens the mobile terminal’s album gallery, 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. In this way, 5 information files can be selected from this folder, and their thumbnails can be combined into composite thumbnails as the folder The cover of the cover, where the thumbnail with the largest amount of information among the 5 thumbnails can occupy the left side of the cover, and the remaining 4 thumbnails equally divide the space on the right side of the cover; as shown in Figure 2(b), this folder Two information files are stored under the file. In this way, these two information files can be used as target information files, and their thumbnails can be combined into composite thumbnails as the cover of the folder. Among them, 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.
还需要说明的是,在本申请的一个实施例中,如果目标文件夹下未有任何文件,则可采用文件夹的默认图标作为该目标文件夹的封面。It should also be noted that, in an embodiment of the present application, if there are no files in the target folder, the default icon of the folder can be used as the cover of the target folder.
根据本申请实施例的信息文件的处理方法,可获取目标文件夹下的所有信息文件;之后,获取目标文件夹下的所有信息文件;按照文件内容所含信息量的大小,从所有信息文件中选取N个目标信息文件,其中,N为正整数;生成N个目标信息文件的N个缩略图;并将N个缩略图作为目标文件夹的封面信息。由此,通过人工智能图片识别技术,智能地从文件夹中识别出最具有代表性的文件,并将这些文件对应的缩略图作为文件夹封面,使得该文件夹的封面具有主体性,使得用户可以通过查看文件夹封面即可快速获知文件夹下信息文件的内容,提升了效率,从而提升了用户体验。According to the information file processing method of the embodiment of the application, 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.
为了提升用户体验,保证本申请的可用性以及可行性,可选地,在本申请的一个实施例中,在接收到针对目标文件夹所在目录的查看指令时,可确定目标文件夹的显示区域大小,并基于显示区域大小,将目标文件夹的封面信息在对应的显示区域内进行呈现。例如,用户打开目标文件夹所在目录,此目录下的所有目标文件夹均显示在界面中,可以理解,每一个目标文件夹均会占据一定的界面区域进行显示,根据此显示区域的大小,可将目标文件夹的封面信息显示在该区域中。In order to improve user experience and ensure the usability and feasibility of this application, optionally, in an embodiment of this application, upon receiving a view instruction for the directory where the target folder is located, 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.
需要说明的是,文件类型的不同,则所采用的文件内容所含信息量的获取方法也会不同,下面将结合图3和图4给出两种不同的实现方式。It should be noted that, depending on the file type, the method for obtaining the amount of information contained in the file content used will also be different. Two different implementation methods will be given below in conjunction with Fig. 3 and Fig. 4.
图3是根据本申请一个具体实施例的信息文件的处理方法的流程图。需要说明的是,本申请实施例的信息文件的处理方法以信息文件为图片的情况进行描述,也就是说,将本申请实施例的信息文件的处理方法应用于图片文件夹场景中,其中,目标文件夹可为图片文件夹。如图3所示,该信息文件的处理方法可以包括: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:
步骤301,获取图片文件夹下的所有图片。Step 301: Obtain all pictures in the picture folder.
步骤302,按照文件内容所含信息量的大小,从所有图片中获取N个目标图片,其中,N为正整数。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.
可选地,提取所有图片中的像素点信息,根据所有图片中的像素点信息计算该所有图片灰度值的方差值,并将该所有图片的方差值确定为该所有图片各自的文件内容所含信息量,之后,可按照文件内容所含信息量从大到小的顺序,对所有图片进行排序,从所有图片中选取排列在前N的图片,并将该排列在在前N的图片确定为N个目标图片。Optionally, 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.
作为一种示例,对文件夹下的图片进行灰度处理,获取图片中的灰度值,之后,可根据图片中的灰度值计算该图片的灰度方差值。然后,基于图片的灰度方差值,对所有图片进行排序,从所有图片中选取出排列在前N的图片,进而可将该排列在在前N的图片作为 N个目标图片。As an example, perform grayscale processing on the pictures in the folder to obtain the grayscale values in the pictures, and then calculate the grayscale variance values of the pictures according to the grayscale values in the pictures. Then, based on the gray-level variance value of the pictures, all pictures are sorted, and the top N pictures are selected from all pictures, and the top N pictures can be used as N target pictures.
步骤303,按照文件内容所含信息量的大小,确定N个目标图片的排列顺序。Step 303: Determine the sequence of N target pictures according to the size of the information contained in the file content.
步骤304,根据N个目标图片的排列顺序,确定该N个目标图片对应的压缩尺寸。Step 304: Determine the compression size corresponding to the N target pictures according to the sequence of the N target pictures.
步骤305,基于N个目标图片对应的压缩尺寸对该N个目标图片进行压缩,生成N个缩略图。Step 305: Compress the N target pictures based on the compression size corresponding to the N target pictures to generate N thumbnails.
步骤306,将N个缩略图作为图片文件夹的封面信息。Step 306: Use N thumbnails as cover information of the picture folder.
可选地,基于预设的多级缩略图策略,对N个缩略图进行排版组合以生成复合缩略图,并将该复合缩略图确定为该图片文件夹的封面信息。Optionally, based on a preset multi-level thumbnail strategy, 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.
根据本申请实施例的信息文件的处理方法,可获取图片文件夹下的所有图片,之后,按照文件内容所含信息量的大小,从所有图片中选取N个目标图片,生成N个目标图片的N个缩略图,并将N个缩略图作为图片文件夹的封面信息。由此,通过人工智能图片识别技术,智能地从图片文件夹中识别出最具有代表性的图片,并将这些图片对应的缩略图作为文件夹封面,使得该图片文件夹的封面具有主体性,使得用户可以通过查看文件夹封面即可快速获知文件夹下图片的内容,提升了效率,从而提升了用户体验。According to the information file processing method of the embodiment of the present application, 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. As a result, through artificial intelligence picture recognition technology, intelligently identify the most representative pictures from the picture folder, and use the thumbnails corresponding to these pictures as the folder cover, so that the cover of the picture folder has the subjectivity. This allows users to quickly learn the content of the pictures in the folder by viewing the cover of the folder, which improves efficiency and improves user experience.
图4是根据本申请另一个具体实施例的信息文件的处理方法的流程图。需要说明的是,本申请实施例的信息文件的处理方法以信息文件为文本文件的情况进行描述,也就是说,将本申请实施例的信息文件的处理方法应用于存放文本的文件夹场景中,其中,目标文件夹为文本文件夹。如图4所示,该信息文件的处理方法可以包括: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:
步骤401,获取文本文件夹下的所有文本文件。Step 401: Obtain all text files in the text folder.
步骤402,按照文件内容所含信息量的大小,从所有文本文件中选取N个目标文本文件,其中,N为正整数。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.
可选地,基于文字识别技术对所有文本文件的内容进行文字识别,得到所有文本文件各自的内容信息,并根据所有文本文件各自的内容信息,计算所有文本文件各自所包含的字符总数,将所有文本文件各自所包含的字符总数,确定为所有文本文件各自的文件内容所含信息量;之后,可按照文件内容所含信息量从大到小的顺序,对所有文本文件进行排序,并从所有文本文件中选取排列在前N的信息文件,将排列在前N的信息文件确定为N个目标文本文件。Optionally, perform text recognition on the content of all text files based on text recognition technology to obtain respective content information of all text files, and calculate the total number of characters contained in all text files according to the respective content information of all text files, The total number of characters contained in each text file is determined as the amount of information contained in the respective file content of all text files; after that, all text files can be sorted according to the order of The top N information files are selected from the text files, and the top N information files are determined as N target text files.
步骤403,确定N个目标文本文件各自的内容信息。Step 403: Determine the content information of each of the N target text files.
步骤404,根据N个目标文本文件各自的内容信息,生成N个目标文本文件各自的摘要信息。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.
举例而言,可采用TextRank算法生成N个目标文本文件各自的摘要信息,比如,在采用TextRank算法进行摘要生成时,首先获取文本文件中包含的所有文本,然后将文本拆成单个句子,并把每个句子采用向量表示,接着计算句子向量之间的相似度,句子相似度进行大小排序,最终相似度排名最高的几个句子组成摘要信息。需要进行说明的是,上述生 成摘要信息的算法可以是但不限于TextRank算法。For example, 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.
步骤405,基于文字转图片技术,将N个目标文本文件各自的摘要信息转换成对应的图片。Step 405: Based on the text-to-picture technology, convert the respective summary information of the N target text files into corresponding pictures.
步骤406,将转换得到的N个目标文本文件各自的图片进行压缩,得到N个目标文本文件的N个缩略图。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.
步骤407,将N个缩略图作为目标文件夹的封面信息。Step 407: Use N thumbnails as cover information of the target folder.
可选地,基于预设的多级缩略图策略,对N个缩略图进行排版组合以生成复合缩略图,并将复合缩略图确定为目标文件夹的封面信息。Optionally, based on a preset multi-level thumbnail strategy, 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.
根据本申请实施例的信息文件的处理方法,可获取文本文件夹下的所有文本文件;之后,按照文件内容所含信息量的大小,从所有文本文件中选取N个目标文本文件,生成N个目标文本文件的N个缩略图,并将N个缩略图作为文本文件夹的封面信息。由此,通过人工智能识别技术,智能地从文本文件夹中识别出最具有代表性的文本文件,并将这些文本文件对应的缩略图作为文件夹封面,使得该文件夹的封面具有主体性,使得用户可以通过查看文件夹封面即可快速获知文件夹下文本文件的内容,提升了效率,从而提升了用户体验。According to the information file processing method of the embodiment of the present application, 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.
本申请还提供了另一种信息文件的处理方法。该方法可适用于对文件内所记载的信息内容进行处理,以生成该文件的封面信息,使得用户可以通过查看文件封面(如文件的图标)即可快速获知文件内的信息内容,如通过查看WORD、PDF等格式的文件的图标即可了解到该文件内所记载的信息内容。具体地,图5为本申请实施例所提供的另一种信息文件的处理方法的流程示意图。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. Specifically, FIG. 5 is a schematic flowchart of another information file processing method provided by an embodiment of the application.
如图5所示,该信息文件的处理方法包括以下步骤:As shown in Figure 5, the processing method of the information file includes the following steps:
步骤501,确定目标文件,其中目标文件包含至少一页信息内容。Step 501: Determine a target file, where the target file contains at least one page of information content.
在本申请实施例中,目标文件可为WORD、PDF等格式的文件,同时,文件中需包含至少一页信息内容。In the embodiment of the present application, 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.
步骤502,按照信息内容所含信息量的大小,从至少一页信息内容中选取N页信息内容作为N个目标信息内容,其中N为正整数。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.
在本申请实施例中,在确定目标文件后,对至少一页信息内容分别进行识别处理,得到至少一页信息内容中各自的信息内容所含信息量。按照信息内容所含信息量从大到小的顺序,对至少一页信息内容进行排序,从至少一页信息内容中选取排列在前N的信息内容,并将排列在前N的信息内容确定为N个目标信息内容。In the embodiment of the present application, after the target file is determined, 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.
也就是说,在确定目标文件后,可对目标文件的每一页信息内容分别进行识别处理,得到目标文件中每页信息内容所含的信息量。之后,按照信息内容所含信息量从大到小的顺序,对所有页数的信息内容进行排序,并从所有页数信息内容中选取排列在前N的信息内容,将选取的排列在前N的信息内容确定为N个目标信息内容。That is to say, after the target file is determined, 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.
需要说明的是,目标文件中各页信息内容不同时,获取文件内容所含信息量的方法也会不同。例如,当信息内容为图片时,可采用图像识别技术获取信息内容所含信息量;当信息内容为文本时,可采用文字识别技术获取信息内容所含信息量。It should be noted that when the information content of each page in the target file is different, the method of obtaining the amount of information contained in the file content will also be different. For example, when the information content is a picture, image recognition technology can be used to obtain the information content contained in the information content; when the information content is text, text recognition technology can be used to obtain the information content contained in the information content.
步骤503,生成N个目标信息内容的N个缩略图。Step 503: Generate N thumbnails of N target information content.
在本申请的实施例中,可按照信息内容所含信息量的大小,确定N个目标信息内容的排列顺序,并根据N个目标信息内容的排列顺序,确定N个目标信息内容对应的压缩尺寸,基于N个目标信息内容对应的压缩尺寸,对N个目标信息内容进行压缩,对应生成N个缩略图。举例而言,可将该N个目标信息内容的排列顺序,排列在前面的目标信息内容的压缩尺寸大于排列在后面的目标信息内容的压缩尺寸,比如,确定排列在第一的目标信息内容对应的缩略图的尺寸均大于剩余的目标信息内容对应的缩略图的尺寸,且该剩余的目标信息内容对应的缩略图的尺寸均相同。In the embodiment of the present application, 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. , Based on the compression size corresponding to the N target information contents, compress the N target information contents to generate N thumbnails correspondingly. For example, 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. For example, it is determined that the target information content arranged in the first corresponds to The size of the thumbnails is larger than the size of the thumbnails corresponding to the remaining target information content, and the sizes of the thumbnails corresponding to the remaining target information content are all the same.
步骤504,将N个缩略图作为目标文件的封面信息。Step 504: Use N thumbnails as cover information of the target file.
可选地,基于预设的多级缩略图策略,对N个缩略图进行排版组合以生成复合缩略图,并将该复合缩略图确定为目标文件的封面信息。需要说明的是,该多级缩略图策略可以是预先设定的,该多级缩略图策略可理解是将多张缩略图以分级的方式组成复合略缩图。例如,可将待生成的复合缩略图划分为两部分,比如左右两部分,其中,左侧部分所占比例大于右侧所占比例,可将N个缩略图中所含信息量最大的缩略图作为待生成的复合缩略图中的左侧部分,将剩下的N-1个缩略图按照所含信息量大小的顺序依次排列在右侧部分,从而可以组成复合略缩图。Optionally, based on a preset multi-level thumbnail strategy, 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. It should be noted that 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. For example, 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 As the left part of the composite thumbnail to be generated, 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.
需要说明的是,在本申请的一个实施例中,如果目标文件内未记载任何信息内容,即目标文件中仅是空白页时,则可采用文件格式的默认图标作为该目标文件的封面。例如,当WORD文件里的页面均为空白页时,则可采用WORD的默认图标来作为该文件的封面。It should be noted that, in an embodiment of the present application, if no information content is recorded in the target file, that is, when there are only blank pages in the target file, the default icon in the file format can be used as the cover of the target file. For example, when the pages in a WORD file are all blank pages, the default icon of WORD can be used as the cover of the file.
本申请实施例的信息文件的处理方法,首先确定目标文件,其中,目标文件包含至少一页信息内容;之后,按照信息内容所含信息量的大小,从至少一页信息内容中选取N页信息内容作为N个目标信息内容,其中,N为正整数;最后,生成N个目标信息内容的N个缩略图;将N个缩略图作为目标文件的封面信息。由此,通过人工智能识别技术,智能地从文件中识别出最具有代表性的文件信息内容,并将这些文件信息内容对应的缩略图作为文件封面,使得该文件的封面具有主体性,使得用户可以通过查看文件封面即可快速获知信息文件的内容,提升了效率,从而提升了用户体验。In the method for processing an information file in the embodiment of this application, 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. 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.
与上述图1至图4所示的实施例提供的信息文件的处理方法相对应,本申请的一种实施例还提供一种信息文件的处理装置,由于本申请实施例提供的信息文件的处理装置与上述图1至图4所示的实施例提供的信息文件的处理方法相对应,因此在前述信息文件的处理方法的实施方式也适用于本实施例提供的信息文件的处理装置,在本实施例中不再详细描述。图6为本申请实施例提供的一种信息文件的处理装置的结构示意图。如图6所示, 该信息文件的处理装置600包括:文件获取模块610、选取模块620、缩略图生成模块630和封面信息生成模块640。Corresponding to the information file processing method provided by the embodiments shown in FIG. 1 to FIG. 4, an embodiment of the present application also provides an information file processing device, because the information file processing method provided by the embodiment of the present application The device corresponds to the information file processing method provided in the embodiments shown in Figures 1 to 4 above. Therefore, the foregoing implementation of the information file processing method is also applicable to the information file processing device provided in this embodiment. Details are not described in the embodiments. FIG. 6 is a schematic structural diagram of an information file processing apparatus provided by an embodiment of this application. As shown in FIG. 6, 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.
具体地,文件获取模块610用于获取目标文件夹下的所有信息文件。Specifically, the file obtaining module 610 is used to obtain all information files in the target folder.
选取模块620用于按照文件内容所含信息量的大小,从所有信息文件中选取N个目标信息文件,其中,N为正整数。作为本申请实施例的一种可能的实现方式,选取模块620具体用于:确定所有信息文件的文件个数;判断文件个数是否大于或等于预设阈值;若是,则按照文件内容所含信息量的大小,从所有信息文件中选取预设阈值个信息文件,并将预设阈值个信息文件作为N个目标信息文件;若否,则将所有信息文件作为N个目标信息文件。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. As a possible implementation of the embodiment of the application, 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.
缩略图生成模块630用于生成N个目标信息文件的N个缩略图。作为一种示例,缩略图生成模块630具体用于:按照文件内容所含信息量的大小,确定N个目标信息文件的排列顺序;根据N个目标信息文件的排列顺序,确定N个目标信息文件对应的压缩尺寸;基于N个目标信息文件对应的压缩尺寸,对N个目标信息文件进行压缩,对应生成N个缩略图。The thumbnail generating module 630 is used to generate N thumbnails of N target information files. As an example, 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.
封面信息生成模块640用于将N个缩略图作为目标文件夹的封面信息。作为一种示例,封面信息生成模块640具体用于:基于预设的多级缩略图策略,对N个缩略图进行排版组合以生成复合缩略图;将复合缩略图确定为目标文件夹的封面信息。The cover information generating module 640 is configured to use N thumbnails as cover information of the target folder. As an example, 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 .
作为本申请实施例的一种可能的实现方式,如图7所示,在图6所示基础上,选取模块620包括:As a possible implementation manner of the embodiment of the present application, as shown in FIG. 7, based on that shown in FIG. 6, the selection module 620 includes:
识别处理单元621,用于对所有信息文件分别进行识别处理,得到所有信息文件各自的文件内容所含信息量;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;
排序单元622,用于按照文件内容所含信息量从大到小的顺序,对所有信息文件进行排序;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;
选取单元623,用于从所有信息文件中选取排列在前N的信息文件,并将排列在前N的信息文件确定为N个目标信息文件。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.
需要说明的是,文件类型不同,则所采用的文件内容所含信息量的获取方法也会不同,下面将给出两种不同的实现方式的示例:It should be noted that the method for obtaining the amount of information contained in the content of the file will be different for different file types. The following will give examples of two different implementation methods:
作为本申请的一种可能实现方式的示例,当信息文件为图片时,识别处理单元621具体用于:提取所有图片中的像素点信息;根据所有图片中的像素点信息,计算所有图片灰度的方差值;将所有图片的方差值确定为所有图片各自的文件内容所含信息量。As an example of a possible implementation of the present application, when the information file is a picture, 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.
作为本申请的另一种可能实现方式的示例,当信息文件为文本文件时,识别处理单元621具体用于:基于文字识别技术对所有文本文件的内容进行文字识别,得到所有文本文件各自的内容信息;根据所有文本文件各自的内容信息,计算所有文本文件各自所包含的字符总数;将所有文本文件各自所包含的字符总数,确定为所有文本文件各自的文件内容 所含信息量。As an example of another possible implementation of the present application, when the information file is a text file, 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.
在本申请的实施例中,当信息文件为文本文件时,缩略图生成模块630具体用于:确定N个目标文本文件各自的内容信息;根据N个目标文本文件各自的内容信息,生成N个目标文本文件各自的摘要信息;基于文字转图片技术,将N个目标文本文件各自的摘要信息转换成对应的图片;将转换得到的N个目标文本文件各自的图片进行压缩,得到N个目标文本文件的N个缩略图。In the embodiment of the present application, when the information file is a text file, 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.
为了提升用户体验,保证本申请的可用性以及可行性,可选地,在本申请的一个实施例中,如图8所示,在图6所示的基础上,该信息文件的处理装置600还可包括:确定模块650和呈现模块660。其中,确定模块650用于在接收到针对目标文件夹所在目录的查看指令时,确定目标文件夹的显示区域大小;呈现模块660用于基于显示区域大小,将目标文件夹的封面信息在对应的显示区域内进行呈现。In order to improve user experience and ensure the usability and feasibility of this application, optionally, in an embodiment of this application, as shown in FIG. 8, on the basis of FIG. 6, the information file processing apparatus 600 also It may include: a determination module 650 and a presentation module 660. Wherein, 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.
根据本申请实施例的信息文件的处理装置,可获取目标文件夹下的所有信息文件;之后,获取目标文件夹下的所有信息文件;按照文件内容所含信息量的大小,从所有信息文件中选取N个目标信息文件,其中,N为正整数;生成N个目标信息文件的N个缩略图;并将N个缩略图作为目标文件夹的封面信息。由此,通过人工智能图片识别技术,智能地从文件夹中识别出最具有代表性的文件,并将这些文件对应的缩略图作为文件夹封面,使得该文件夹的封面具有主体性,使得用户可以通过查看文件夹封面即可快速获知文件夹下信息文件的内容,提升了效率,从而提升了用户体验。According to the information file processing device of the embodiment of the present application, 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.
与上述图5所示的实施例提供的信息文件的处理方法相对应,本申请的一种实施例还提供一种信息文件的处理装置,由于本申请实施例提供的信息文件的处理装置与上述图5所示的实施例提供的信息文件的处理方法相对应,因此在前述信息文件的处理方法的实施方式也适用于本实施例提供的信息文件的处理装置,在本实施例中不再详细描述。图9为本申请实施例提供的一种信息文件的处理装置的结构示意图。如图9所示,该信息文件的处理装置900包括:确定模块910、选取模块920、缩略图生成模块930和封面信息生成模块940。Corresponding to the information file processing method provided by the embodiment shown in FIG. 5, an embodiment of the present application also provides an information file processing device, because the information file processing device provided in the embodiment of the application is similar to the foregoing The information file processing method provided in the embodiment shown in FIG. 5 corresponds to the information file processing method described above. Therefore, the foregoing implementation of the information file processing method is also applicable to the information file processing device provided in this embodiment, and will not be detailed in this embodiment. description. FIG. 9 is a schematic structural diagram of an information file processing apparatus provided by an embodiment of the application. As shown in FIG. 9, 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.
具体地,确定模块910,用于确定目标文件,其中,目标文件包含至少一页信息内容。Specifically, the determining module 910 is configured to determine a target file, where the target file contains at least one page of information content.
选取模块920,用于按照信息内容所含信息量的大小,从至少一页信息内容中选取N页信息内容作为N个目标信息内容,其中,N为正整数。作为一种示例,选取模块920具体用于:对至少一页信息内容分别进行识别处理,得到至少一页信息内容中各自的信息内容所含信息量;按照信息内容所含信息量从大到小的顺序,对至少一页信息内容进行排序;从至少一页信息内容中选取排列在前N的信息内容,并将排列在前N的信息内容确定为N个目标信息内容。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. As an example, 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.
缩略图生成模块930,用于生成N个目标信息内容的N个缩略图。作为一种示例,缩略图生成模块930具体用于:按照信息内容所含信息量的大小,确定N个目标信息内容的 排列顺序;根据N个目标信息内容的排列顺序,确定N个目标信息内容对应的压缩尺寸;基于N个目标信息内容对应的压缩尺寸,对N个目标信息内容进行压缩,对应生成N个缩略图。The thumbnail generating module 930 is used to generate N thumbnails of N target information contents. As an example, 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.
封面信息生成模块940,用于将N个缩略图作为目标文件的封面信息。作为一种示例,封面信息生成模块940具体用于:基于预设的多级缩略图策略,对N个缩略图进行排版组合以生成复合缩略图;将复合缩略图确定为目标文件的封面信息。The cover information generating module 940 is configured to use N thumbnails as cover information of the target file. As an example, 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.
本申请实施例的信息文件的处理装置,首先确定目标文件,其中,目标文件包含至少一页信息内容;之后,按照信息内容所含信息量的大小,从至少一页信息内容中选取N页信息内容作为N个目标信息内容,其中,N为正整数;最后,生成N个目标信息内容的N个缩略图;将N个缩略图作为目标文件的封面信息。由此,通过人工智能识别技术,智能地从文件中识别出最具有代表性的文件信息内容,并将这些文件信息内容对应的缩略图作为文件封面,使得该文件的封面具有主体性,使得用户可以通过查看文件封面即可快速获知信息文件的内容,提升了效率,从而提升了用户体验。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.
为了实现上述实施例,本申请实施例还提出一种电子设备,包括处理器和存储器及存储在存储器上并可在处理器上运行的计算机程序;其中,处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于实现本申请上述图1至图4所示的任一个实施例所述的信息文件的处理方法。In order to realize the above-mentioned embodiments, 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.
图10示出了适于用来实现本申请实施方式的示例性电子设备的框图。图10显示的电子设备12仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。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.
如图10所示,电子设备12以通用计算设备的形式表现。电子设备12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 10, 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).
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry Standard Architecture;以下简称:ISA)总线,微通道体系结构(Micro Channel Architecture;以下简称:MAC)总线,增强型ISA总线、视频电子标准协会(Video Electronics Standards Association;以下简称:VESA)局域总线以及外围组件互连(Peripheral Component Interconnection;以下简称:PCI)总线。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. For example, 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.
电子设备12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被电子设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。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.
存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory;以下简称:RAM)30和/或高速缓存存储器29。电子设备12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举 例,存储系统44可以用于读写不可移动的、非易失性磁介质(图10未显示,通常称为“硬盘驱动器”)。尽管图10中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如:光盘只读存储器(Compact Disc Read Only Memory;以下简称:CD-ROM)、数字多功能只读光盘(Digital Video Disc Read Only Memory;以下简称:DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多数量据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本申请各实施例的功能。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. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, 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"). Although not shown in FIG. 10, 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), Digital Video Disc Read Only Memory (hereinafter referred to as DVD-ROM) or other optical media) read and write optical disc drives. In these cases, 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.
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本申请所描述的实施例中的功能和/或方法。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.
电子设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该电子设备12交互的设备通信,和/或与使得该电子设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,电子设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(Local Area Network;以下简称:LAN),广域网(Wide Area Network;以下简称:WAN)和/或公共网络,例如因特网)通信。如图8所示,网络适配器20通过总线18与电子设备12的其它模块通信。应当明白,尽管图中8未示出,可以结合电子设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。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. In addition, 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. 8, 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.
处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现前述实施例中提及的方法。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.
为了实现上述实施例,本申请实施例还提出一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如图1至图4所示的实施例所述的信息文件的处理方法。In order to implement the above-mentioned embodiment, the embodiment of the present application also proposes a computer-readable storage medium on which a computer program is stored. 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.
为了实现上述实施例,本申请实施例还提出另一种电子设备,包括处理器和存储器及存储在存储器上并可在处理器上运行的计算机程序;其中,处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于实现图5所示的实施例所描述的信息文件的处理方法。In order to implement the above-mentioned embodiments, 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.
为了实现上述实施例,本申请实施例还提出另一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现图5所示的实施例的信息文件的方法。In order to implement the above-mentioned embodiment, the embodiment of the present application also proposes another non-transitory computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the information file of the embodiment shown in FIG. method.
在本申请的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能 理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In the description of this application, it should be understood that the terms "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.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean specific features described in conjunction with the embodiment or example , The structure, materials, or characteristics are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples and the characteristics of the different embodiments or examples described in this specification without contradicting each other.
尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present application have been shown and described above, it can be understood that the above-mentioned embodiments are exemplary and should not be construed as limiting the present application. A person of ordinary skill in the art can comment on the foregoing within the scope of the present application. The embodiment undergoes changes, modifications, substitutions and modifications.

Claims (30)

  1. 一种信息文件的处理方法,其特征在于,包括以下步骤: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.
  2. 根据权利要求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.
  3. 根据权利要求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.
  4. 根据权利要求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.
  5. 根据权利要求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.
  6. 根据权利要求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.
  7. 根据权利要求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.
  8. 根据权利要求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.
  9. 根据权利要求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.
  10. 一种信息文件的处理方法,其特征在于,包括: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.
  11. 根据权利要求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.
  12. 根据权利要求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.
  13. 根据权利要求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.
  14. 一种信息文件的处理装置,其特征在于,包括: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.
  15. 根据权利要求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.
  16. 根据权利要求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.
  17. 根据权利要求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.
  18. 根据权利要求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.
  19. 根据权利要求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.
  20. 根据权利要求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.
  21. 根据权利要求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.
  22. 根据权利要求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.
  23. 一种信息文件的处理装置,其特征在于,包括: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.
  24. 根据权利要求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.
  25. 根据权利要求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.
  26. 根据权利要求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.
  27. 一种电子设备,其特征在于,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求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.
  28. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求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.
  29. 一种电子设备,其特征在于,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求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.
  30. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求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.
PCT/CN2019/104575 2019-05-09 2019-09-05 Information file processing method and device, electronic device and storage medium WO2020224140A1 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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