File scanning method and device, equipment, medium and program product

By using multi-threaded scanning devices to obtain file information from the server in intelligent driving technology, the problem of low manual scanning efficiency is solved and file scanning efficiency is improved.

CN119106006APending Publication Date: 2024-12-10NINGBO LOTUS ROBOTICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411280052.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

In the prior art, file scanning methods rely on manual operations, resulting in low scanning efficiency when a large number of files exist in the server.

Method used

By sending a vehicle information acquisition request to the server, the server determines multiple folder paths and allocates them to multiple scanning threads. The scanning thread obtains file information from the server and stores it in the database, realizing multi-threaded scanning.

Benefits of technology

Improve file scanning efficiency, reduce manual intervention, and is suitable for large-scale file storage environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119106006A_ABST
    Figure CN119106006A_ABST
Patent Text Reader

Abstract

The invention provides a file scanning method and device, equipment, a medium and a program product, which can be used in the technical field of intelligent driving. In the method, a vehicle information acquisition request including a first folder name is sent to a server through a scanning device, and the server determines a plurality of second folder names representing unique identifiers of vehicles according to the first folder name and then sends the second folder names to the scanning device. And the scanning device allocates a plurality of folder paths generated according to the first folder name and the plurality of second folder names to a plurality of scanning threads, and obtains file information corresponding to the folder paths allocated by the scanning threads from the server through the scanning threads. According to the scheme, multi-thread scanning is carried out through the scanning device, the file information is obtained from the server, manual scanning is not needed, and the scanning efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent driving technology, and in particular to a file scanning method, device, equipment, medium and program product. Background Art

[0002] With the development of science and technology, intelligent driving technology of vehicles has attracted people's attention for its ability to improve driving safety. Intelligent driving technology relies on intelligent driving models, which are trained based on data files related to vehicle driving. Data files related to vehicle driving are stored in the server. In addition to these files, there are some other files in the server. In order to determine the file information of data files related to vehicle driving so as to find files for model training later, file scanning is required.

[0003] In the prior art, for the file scanning method, usually the staff searches for the corresponding file from the server according to the requirements of the model training, and records the file information to complete the file scanning.

[0004] In summary, the existing file scanning method uses manual scanning, and the amount of files in the server is large, resulting in low scanning efficiency. Summary of the invention

[0005] The embodiments of the present application provide a file scanning method, apparatus, device, medium and program product, which are used to solve the problem of low scanning efficiency caused by manual scanning in the existing file scanning method.

[0006] In a first aspect, an embodiment of the present application provides a file scanning method, which is applied to a scanning device, and the method includes:

[0007] Sending a vehicle information acquisition request to a server, wherein the vehicle information acquisition request includes a first folder name;

[0008] Receiving a plurality of second folder names sent by the server, each second folder name representing a unique identification of a vehicle;

[0009] Generate multiple folder paths according to the multiple second folder names and the first folder name;

[0010] The multiple folder paths are assigned to multiple scanning threads for scanning, and file information corresponding to the folder paths assigned to each scanning thread is obtained, and the difference in the number of folder paths assigned by different scanning threads is less than a preset threshold.

[0011] In a specific implementation, generating multiple folder paths according to the multiple second folder names and the first folder name includes:

[0012] For each second folder name, the first folder name and the second folder name are combined in path format to obtain a folder path.

[0013] In a specific implementation, the step of assigning the multiple folder paths to multiple scanning threads for scanning to obtain file information corresponding to the folder path assigned to each scanning thread includes:

[0014] assigning the plurality of folder paths to a plurality of scanning threads;

[0015] For each folder path allocated to each scanning thread, sending a file information acquisition request to the server through the scanning thread, wherein the file information acquisition request includes the folder path;

[0016] Receive at least one file information sent by the server.

[0017] In a specific embodiment, the method further comprises:

[0018] Determine target file information that is not stored in the database among the file information corresponding to the folder path assigned to each scanning thread;

[0019] The target file information is stored in the database.

[0020] In a specific implementation, each file information includes a file path, and the method further includes:

[0021] According to the acquired path filtering word, acquiring at least one file information whose file path includes the path filtering word from a database;

[0022] Get the annotation data corresponding to each file information;

[0023] For each piece of file information, the file information is annotated according to the annotation data of the file information.

[0024] In a specific implementation, the obtaining of the annotation data corresponding to each file information includes:

[0025] For each piece of file information, according to the file path in the file information, obtaining the file corresponding to the file information from the server;

[0026] For each piece of file information, the file corresponding to the file information is identified and detected to obtain the annotation data of the file information.

[0027] In a second aspect, an embodiment of the present application provides a file scanning method, which is applied to a server, and the method includes:

[0028] Receiving a vehicle information acquisition request sent by a scanning device, wherein the vehicle information acquisition request includes a first folder name;

[0029] Determine a plurality of second folder names according to the first folder name, wherein the folder named as the first folder name includes each folder named as the second folder name, and each second folder name represents a unique identification of the vehicle;

[0030] The plurality of second folder names are sent to the scanning device.

[0031] In a specific embodiment, the method further comprises:

[0032] Receiving a file information acquisition request sent by the scanning device, wherein the file information acquisition request includes a folder path;

[0033] Generate file information of each file according to the file type and file path of at least one file under the folder path;

[0034] The file information of the at least one file is sent to the scanning device.

[0035] In a third aspect, an embodiment of the present application provides a file scanning device, comprising:

[0036] A sending module, used for sending a vehicle information acquisition request to a server, wherein the vehicle information acquisition request includes a first folder name;

[0037] A receiving module, used for receiving a plurality of second folder names sent by the server, each second folder name representing a unique identification of a vehicle;

[0038] Processing modules for:

[0039] Generate multiple folder paths according to the multiple second folder names and the first folder name;

[0040] The multiple folder paths are assigned to multiple scanning threads for scanning, and file information corresponding to the folder paths assigned to each scanning thread is obtained, and the difference in the number of folder paths assigned by different scanning threads is less than a preset threshold.

[0041] In a fourth aspect, an embodiment of the present application provides a file scanning device, comprising:

[0042] A receiving module, configured to receive a vehicle information acquisition request sent by a scanning device, wherein the vehicle information acquisition request includes a first folder name;

[0043] A processing module, configured to determine a plurality of second folder names according to the first folder name, wherein the folder named as the first folder name includes each folder named as the second folder name, and each second folder name represents a unique identification of a vehicle;

[0044] A sending module is used to send the multiple second folder names to the scanning device.

[0045] In a fifth aspect, an embodiment of the present application provides a scanning device, including:

[0046] Processor, memory, communication interface;

[0047] The memory is used to store executable instructions of the processor;

[0048] Wherein, the processor is configured to execute the file scanning method described in any one of the first aspects by executing the executable instructions.

[0049] In a sixth aspect, an embodiment of the present application provides a server, including:

[0050] Processor, memory, communication interface;

[0051] The memory is used to store executable instructions of the processor;

[0052] Wherein, the processor is configured to execute the file scanning method described in any one of the second aspects by executing the executable instructions.

[0053] In a seventh aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the file scanning method described in any one of the first aspect or the second aspect is implemented.

[0054] In an eighth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the file scanning method described in any one of the first aspect or the second aspect.

[0055] The file scanning method, device, equipment, medium and program product provided in the embodiments of the present application send a vehicle information acquisition request including a first folder name to a server through a scanning device. The server determines multiple second folder names representing the unique identification of the vehicle based on the first folder name, and then sends the second folder name to the scanning device. The scanning device assigns multiple folder paths generated based on the first folder name and multiple second folder names to multiple scanning threads, and obtains file information corresponding to the folder path assigned by the scanning thread from the server through the scanning thread. This solution performs multi-threaded scanning through a scanning device to obtain file information from a server without manual scanning, thereby improving scanning efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0057] Figure 1 A schematic diagram of an application scenario of the file scanning method provided in this application;

[0058] Figure 2 A flowchart of a first embodiment of the file scanning method provided by the present application;

[0059] Figure 3 A flowchart of a second embodiment of the file scanning method provided by the present application;

[0060] Figure 4a A flowchart of a third embodiment of the file scanning method provided by the present application;

[0061] Figure 4b Schematic diagram of the document scanning and annotation process provided for this application;

[0062] Figure 5 A schematic diagram of the structure of a first embodiment of a document scanning device provided by the present application;

[0063] Figure 6 A schematic diagram of the structure of a second embodiment of a document scanning device provided by the present application;

[0064] Figure 7 A schematic diagram of the structure of a scanning device provided in this application;

[0065] Figure 8 A schematic diagram of the structure of a server provided for this application. DETAILED DESCRIPTION

[0066] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments made by ordinary technicians in this field under the enlightenment of the embodiments belong to the scope of protection of the present application.

[0067] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0068] With the rapid development of artificial intelligence technology and the automotive industry, intelligent driving has received widespread attention. Intelligent driving technology relies on intelligent driving models, which are trained based on data files related to vehicle driving. Data files related to vehicle driving are stored in the server. In addition to these files, there are some other files in the server. In order to determine the file information of data files related to vehicle driving so as to find files for model training later, file scanning is required.

[0069] In the prior art, for file scanning, the staff usually searches for the corresponding file from the server according to the requirements of model training, records the file information, and completes the file scanning. Due to the large amount of files in the server, manual scanning will lead to low scanning efficiency.

[0070] In view of the problems existing in the prior art, the inventors found in the process of studying the file scanning method that in order to improve the scanning efficiency, a scanning device can be used for file scanning. The scanning device interacts with the server, determines multiple folder paths and assigns them to multiple scanning threads. The scanning thread obtains the file information corresponding to the folder path assigned by the scanning thread from the server and stores it in the database, thereby realizing multi-threaded scanning and further improving efficiency. Based on the above invention concept, the file scanning solution in this application is designed.

[0071] The scanning device in this application can be a server, a computer, a terminal device, etc. This application does not limit the scanning device and can be determined according to actual conditions.

[0072] For example, Figure 1 A schematic diagram of an application scenario of the file scanning method provided in this application, such as Figure 1 As shown, the application scenario may include: a scanning device 11 and a server 12 , and there are multiple scanning threads in the scanning device 11 .

[0073] exist Figure 1 In the application scenario shown, data files are stored in the server 12, including files used for model training. In order to perform subsequent model training, file scanning is required.

[0074] The scanning device 11 sends a vehicle information acquisition request to the server 12 , where the vehicle information acquisition request includes a first folder name.

[0075] The server 12 determines folders whose names represent unique vehicle identifiers from the folders whose names are the first folder names, determines the names of these folders as second folder names, and sends the multiple second folder names to the scanning device 11 .

[0076] After generating multiple folder paths according to the multiple second folder names and the first folder name, the scanning device 11 allocates the multiple folder paths to multiple scanning threads, and the difference in the number of folder paths allocated to different scanning threads is less than a preset threshold.

[0077] It should be noted that the preset threshold may be 2, 3, 4, etc. The embodiment of the present application does not limit the preset threshold, which may be determined according to actual conditions.

[0078] The scanning device 11 then obtains the file information corresponding to the folder path assigned to each scanning thread from the server 12 through the scanning thread and stores it in the database.

[0079] It should be noted that Figure 1 This is only a schematic diagram of an application scenario provided by the embodiment of the present application. Figure 1 The actual form of the various devices included in the Figure 1 The interaction mode between devices is limited, and in the specific application of the solution, it can be set according to actual needs.

[0080] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0081] Figure 2 This is a flowchart of the first embodiment of the file scanning method provided by the present application. The present embodiment of the present application describes the situation in which the scanning device obtains file information from the server through multi-threaded scanning. The method in this embodiment can be implemented by software, hardware, or a combination of software and hardware.

[0082] like Figure 2 As shown, the file scanning method specifically includes the following steps:

[0083] S201: The scanning device sends a vehicle information acquisition request to the server.

[0084] In this step, when file scanning is required, the scanning device sends a vehicle information acquisition request to the server, and the vehicle information acquisition request includes the name of the first folder.

[0085] In the folder named as the first folder name in the server, files that can be used for data annotation are stored.

[0086] It should be noted that the name of the first folder is preset by the user in the scanning device, and the scanning device can obtain it from the data stored in itself.

[0087] It should be noted that the triggering method for the scanning device to send a vehicle information acquisition request to the server may be: the user performs a scanning operation on the scanning device, and the scanning device sends a vehicle information acquisition request to the server in response to the user's operation.

[0088] Alternatively, the scanning device sends a vehicle information acquisition request to the server at a preset time interval. The preset time interval may be 12 hours, 1 day, 3 days, etc. The preset time interval is not limited in the present embodiment and may be determined according to actual conditions.

[0089] Alternatively, when the scanning device performs file scanning for the first time, the scanning device sends a vehicle information acquisition request to the server in response to a user operation, and then sends a vehicle information acquisition request to the server at preset intervals.

[0090] The embodiment of the present application does not limit the triggering method for the scanning device to send a vehicle information acquisition request to the server, which can be determined according to actual conditions.

[0091] It should be noted that the scanning device can generate a main thread and send a vehicle information acquisition request to the server through the main thread.

[0092] S202: After receiving the vehicle information acquisition request sent by the scanning device, the server determines multiple second folder names according to the first folder name.

[0093] In this step, after the scanning device sends a vehicle information acquisition request to the server, the server can receive the vehicle information acquisition request. Since the folder named the first folder name in the server stores files that can be data labeled, and these files are stored in the folder named the second folder name, the server determines multiple second folder names based on the first folder name.

[0094] The folder named as the first folder name includes each folder named as the second folder name, and each second folder name represents a unique identification of a vehicle.

[0095] For example, the first folder is named A, and there are 5 folders under the folder named A, named B1, B2, B3, B4, and B5, all of which represent the unique identification of the vehicle, so B1, B2, B3, B4, and B5 are all the names of the second folders.

[0096] S203: The server sends the multiple second folder names to the scanning device.

[0097] In this step, after determining the multiple second folder names, the server sends the multiple second folder names to the scanning device so that subsequent scanning can be performed in multi-threaded scanning.

[0098] S204: After receiving the multiple second folder names sent by the server, the scanning device generates multiple folder paths according to the multiple second folder names and the first folder name.

[0099] In this step, after the server sends the multiple second folder names to the scanning device, the scanning device can receive the second folder names and then generate multiple folder paths according to the multiple second folder names and the first folder name.

[0100] Specifically, for each second folder name, the first folder name and the second folder name are combined in path format to obtain a folder path.

[0101] It should be noted that the way to combine the first folder name and the second folder name in path format can be: adding a forward slash symbol between the first folder name and the second folder name. It can also be: adding a backslash symbol between the first folder name and the second folder name. The embodiment of the present application does not limit the way to combine the first folder name and the second folder name in path format, which can be determined according to actual conditions.

[0102] S205: The scanning device distributes the multiple folder paths to multiple scanning threads for scanning, and obtains file information corresponding to the folder path distributed to each scanning thread.

[0103] In this step, after the scanning device generates multiple folder paths, the scanning device distributes the multiple folder paths to multiple scanning threads.

[0104] The difference in the number of folder paths allocated by different scanning threads is less than a preset threshold.

[0105] For example, if the preset threshold is 2, there are 64 folder paths, and there are 32 scanning threads, then 2 folder paths are allocated to each scanning thread. If the preset threshold is 2, there are 33 folder paths, and there are 10 scanning threads, then 3 scanning threads are selected from the 10 scanning threads, 4 folder paths are allocated to these 3 scanning threads, and 3 folder paths are allocated to each of the remaining scanning threads.

[0106] It should be noted that the scanning thread can be a child thread.

[0107] Then, for each scanning thread, the file information corresponding to the folder path assigned by the scanning thread is obtained from the server through the scanning thread. Each file information includes a file type and a file path.

[0108] The file information corresponding to the folder path refers to: the file information of each file under the folder path.

[0109] It should be noted that after obtaining the file information corresponding to the folder path assigned to each scanning thread, the target file information not stored in the database can be determined and then stored in the database to ensure that the file information in the database is not repeated.

[0110] It should be noted that the scanning device can also obtain the number of all files under the folder path assigned by the scanning thread from the server through the scanning thread, and then summarize and display the number of files scanned by each scanning thread and the total number of files scanned by all scanning threads.

[0111] It should be noted that after the scanning device stores the file information in the database, it can also query the file information and find out the matching file information through all or part of the content of the file information.

[0112] The file scanning method provided in this embodiment sends a vehicle information acquisition request including a first folder name to a server through a scanning device. The server determines multiple second folder names representing the unique identification of the vehicle based on the first folder name, and then sends the second folder name to the scanning device. The scanning device assigns multiple folder paths generated based on the first folder name and multiple second folder names to multiple scanning threads, and obtains the file information corresponding to the folder path assigned by the scanning thread from the server through the scanning thread. This solution performs multi-threaded scanning through a scanning device to obtain file information from the server without manual scanning, thereby improving scanning efficiency. In addition, the difference in the number of folder paths assigned to different scanning threads is less than a preset threshold, which can make the difference in the number of file information scanned by different scanning threads smaller, thereby improving scanning efficiency.

[0113] Figure 3This is a flowchart of the second embodiment of the file scanning method provided by the present application. Based on the above embodiment, the present embodiment of the present application describes the situation where the scanning device assigns multiple folder paths to multiple scanning threads for scanning, and obtains the file information corresponding to the folder path assigned to each scanning thread. Figure 3 As shown, the file scanning method specifically includes the following steps:

[0114] S301: The scanning device allocates multiple folder paths to multiple scanning threads.

[0115] In this step, after the scanning device generates multiple folder paths, the scanning device distributes the multiple folder paths to multiple scanning threads.

[0116] S302: The scanning device sends a file information acquisition request to the server through each scanning thread for each folder path allocated to the scanning thread.

[0117] In this step, after the scanning device assigns a folder path to each scanning thread, the scanning device sends a file information acquisition request to the server through the scanning thread for each folder path assigned to each scanning thread, and the file information acquisition request includes the folder path.

[0118] S303: After receiving the file information acquisition request sent by the scanning device, the server generates file information of each file according to the file type and file path of at least one file under the folder path.

[0119] In this step, after the scanning device sends a file information acquisition request to the server through the scanning thread, the server can receive the file information acquisition request and then generate file information for each file according to the file type and file path of at least one file under the folder path.

[0120] That is, for each file under the folder path, the file type and the file path of the file are combined into a piece of file information to obtain at least one piece of file information.

[0121] It should be noted that the file type can be an image, video, text, compressed package, etc. The embodiment of the present application does not limit the file type and can be determined according to actual conditions.

[0122] Exemplarily, a folder path is: A\B. Under the folder named B in the path, there are three files, namely C1, C2, and C3. The file information of C1, C2, and C3 is determined respectively.

[0123] S304: The server sends file information of at least one file to the scanning device.

[0124] In this step, after the server generates the file information of each file under the folder path, it sends the file information to the scanning device.

[0125] S305: The scanning device receives at least one piece of file information sent by the server.

[0126] In this step, after the server sends the file information of at least one file to the scanning device, the scanning device can receive the at least one file information and subsequently store it in a database to complete the file scanning process.

[0127] The file scanning method provided in this embodiment obtains file information from the server through a scanning device instead of obtaining the file, thereby improving data scanning efficiency and reducing storage space occupied by the database.

[0128] Figure 4a This is a flow chart of the third embodiment of the file scanning method provided by the present application. Based on the above embodiment, the present embodiment of the present application describes the situation of data annotation after the scanning device completes the file scanning. Figure 4a As shown, the file scanning method specifically includes the following steps:

[0129] S401: According to the acquired path filtering word, at least one file information whose file path includes the path filtering word is acquired from a database.

[0130] In this step, file information is stored in the database. When data annotation is required, the file information that needs to be annotated needs to be selected from the database. The scanning device obtains at least one file information including the file path of the path filter word from the database based on the obtained path filter word.

[0131] Since a file path is composed of multiple words, each two adjacent words are separated by a separator, and the separator can be a forward slash or a backslash, the file path including the file information of the path filter word can be determined.

[0132] For example, there are five file paths, namely: A\B\C\D, E\B\C\F, G\B\H\I, A\J\C\I, E\J\H\I. The path filter words are B and C, so two file information are determined: A\B\C\D, E\B\C\F.

[0133] The number of path filter words can be 1, 2, 3, etc. When the number of path filter words is greater than 1, the file path including the path filter words means that the file path includes all the path filter words. The embodiment of the present application does not limit the path filter words and the number of path filter words, which can be determined according to actual conditions.

[0134] It should be noted that the way in which the scanning device obtains the path filter word can be: the user inputs the path filter word on the scanning device, and the scanning device can obtain the path filter word. It can also be: the user uses the terminal device to send the path filter word to the scanning device, and the scanning device can obtain the path filter word. It can also be: the server sends the path filter word to the scanning device, and the scanning device can obtain the path filter word. The embodiment of the present application does not limit the way in which the scanning device obtains the path filter word, which can be determined according to actual conditions.

[0135] It should be noted that the scanning device can also obtain file information including the file type from the database based on the obtained file type; it can also obtain file information including the file type and the file path including the path filter word from the database based on the obtained file type and path filter word.

[0136] S402: Obtain the annotation data corresponding to each file information.

[0137] In this step, after the scanning device determines the file information that needs to be annotated, in order to perform data annotation, it is also necessary to obtain the annotation data corresponding to each file information.

[0138] In one implementation, for each piece of file information, the scanning device obtains the file corresponding to the file information from the server according to the file path in the file information; then, for each piece of file information, the file corresponding to the file information is identified and detected to obtain the annotation data of the file information.

[0139] In another implementation, the user inputs the annotation data corresponding to each piece of file information on the scanning device, and the scanning device can obtain the annotation data corresponding to each piece of file information.

[0140] In another implementation, the user uses the terminal device to send the annotation data corresponding to each file information to the scanning device, and the scanning device can obtain the annotation data corresponding to each file information.

[0141] The embodiment of the present application does not limit the scanning device to obtain the annotation data corresponding to each file information, which can be determined according to actual conditions.

[0142] S403: For each piece of file information, annotate the file information according to the annotation data of the file information.

[0143] In this step, after the scanning device obtains the annotation data corresponding to each piece of file information, the scanning device annotates each piece of file information according to the annotation data of the file information, thereby completing the data annotation process.

[0144] When the model is subsequently trained, the file is obtained from the server, and then the corresponding file information is determined from the database according to the path of the file in the server, and then the annotated data annotated with the file information is found, and the annotated data and the file are used for model training.

[0145] For example, Figure 4b The schematic diagram of the document scanning and annotation process provided for this application is as follows: Figure 4b As shown, the scanning device adopts a multi-threaded scanning method. After obtaining the file information from the server and storing it in the database, the file information that needs to be marked is subsequently screened out from the database, and the file information is marked using the marked data to obtain the marked file information.

[0146] The file scanning method provided in this embodiment uses path filtering words to filter out file information that requires data standards from a database, and then uses the acquired annotation data to annotate the file information, eliminating the need for manual annotation and improving annotation efficiency.

[0147] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0148] Figure 5 This is a schematic diagram of the structure of the first embodiment of the document scanning device provided by the present application; the device can be integrated into the scanning device in the above method embodiment, or can be implemented by the scanning device in the above method embodiment. Figure 5 As shown, the document scanning device 50 comprises:

[0149] A sending module 51, configured to send a vehicle information acquisition request to a server, wherein the vehicle information acquisition request includes a first folder name;

[0150] A receiving module 52, configured to receive a plurality of second folder names sent by the server, each second folder name representing a unique identification of a vehicle;

[0151] The processing module 53 is used for:

[0152] Generate multiple folder paths according to the multiple second folder names and the first folder name;

[0153] The multiple folder paths are assigned to multiple scanning threads for scanning, and file information corresponding to the folder paths assigned to each scanning thread is obtained, and the difference in the number of folder paths assigned by different scanning threads is less than a preset threshold.

[0154] Furthermore, the processing module 53 is specifically used for:

[0155] For each second folder name, the first folder name and the second folder name are combined in path format to obtain a folder path.

[0156] Furthermore, the processing module 53 is specifically used for:

[0157] assigning the plurality of folder paths to a plurality of scanning threads;

[0158] For each folder path allocated to each scanning thread, sending a file information acquisition request to the server through the scanning thread, wherein the file information acquisition request includes the folder path;

[0159] Receive at least one file information sent by the server.

[0160] Furthermore, the processing module 53 is also used for:

[0161] Determine target file information that is not stored in the database among the file information corresponding to the folder path assigned to each scanning thread;

[0162] The target file information is stored in the database.

[0163] Furthermore, each file information includes a file path, and the processing module 53 is further used to:

[0164] According to the acquired path filtering word, acquiring at least one file information whose file path includes the path filtering word from a database;

[0165] Get the annotation data corresponding to each file information;

[0166] For each piece of file information, the file information is annotated according to the annotation data of the file information.

[0167] Furthermore, the processing module 53 is further configured to:

[0168] For each piece of file information, according to the file path in the file information, obtaining the file corresponding to the file information from the server;

[0169] For each piece of file information, the file corresponding to the file information is identified and detected to obtain the annotation data of the file information.

[0170] The file scanning device provided in this embodiment is used to execute the technical solution of the scanning device in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar and will not be repeated here.

[0171] Figure 6This is a schematic diagram of the structure of the second embodiment of the file scanning device provided by the present application; the device can be integrated into the server in the above method embodiment, or can be implemented by the server in the above method embodiment. Figure 6 As shown, the document scanning device 60 comprises:

[0172] A receiving module 61, configured to receive a vehicle information acquisition request sent by a scanning device, wherein the vehicle information acquisition request includes a first folder name;

[0173] A processing module 62, configured to determine a plurality of second folder names according to the first folder name, wherein the folder named as the first folder name includes each folder named as the second folder name, and each second folder name represents a unique identification of a vehicle;

[0174] The sending module 63 is used to send the multiple second folder names to the scanning device.

[0175] Furthermore, the receiving module 61 is further configured to receive a file information acquisition request sent by the scanning device, wherein the file information acquisition request includes a folder path;

[0176] Furthermore, the processing module 62 is further configured to generate file information of each file according to the file type and file path of at least one file under the folder path;

[0177] Furthermore, the sending module 63 is further configured to send the file information of the at least one file to the scanning device.

[0178] The device provided in this embodiment is used to execute the technical solution of the server in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0179] Figure 7 This is a schematic diagram of the structure of a scanning device provided in this application. Figure 7 As shown, the scanning device 70 includes:

[0180] Processor 71, memory 72, and communication interface 73;

[0181] The memory 72 is used to store executable instructions of the processor 71;

[0182] The processor 71 is configured to execute the technical solution of the scanning device in any of the aforementioned method embodiments by executing the executable instructions.

[0183] Optionally, the memory 72 can be independent or integrated with the processor 71.

[0184] Optionally, when the memory 72 is a device independent of the processor 71, the scanning device 70 may further include:

[0185] The bus 74 , the memory 72 and the communication interface 73 are connected to the processor 71 via the bus 74 and communicate with each other. The communication interface 73 is used to communicate with other devices.

[0186] Optionally, the communication interface 73 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.

[0187] The bus 74 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0188] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0189] The scanning device is used to execute the technical solution of the scanning device in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.

[0190] Figure 8 A schematic diagram of the structure of a server provided in this application. Figure 8 As shown, the server 80 includes:

[0191] Processor 81, memory 82, and communication interface 83;

[0192] The memory 82 is used to store executable instructions of the processor 81;

[0193] The processor 81 is configured to execute the technical solution of the server in any of the aforementioned method embodiments by executing the executable instructions.

[0194] Optionally, the memory 82 can be independent or integrated with the processor 81.

[0195] Optionally, when the memory 82 is a device independent of the processor 81, the server 80 may further include:

[0196] The bus 84 , the memory 82 and the communication interface 83 are connected to the processor 81 via the bus 84 and communicate with each other. The communication interface 83 is used to communicate with other devices.

[0197] Optionally, the communication interface 83 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.

[0198] The bus 84 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0199] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0200] The server is used to execute the technical solution of the server in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.

[0201] An embodiment of the present application also provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the technical solution provided by any of the aforementioned method embodiments is implemented.

[0202] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement the technical solution provided by any of the aforementioned method embodiments when executed by a processor.

[0203] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0204] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A file scanning method, characterized in that: Applied to a scanning device, the method comprises: Sending a vehicle information acquisition request to a server, wherein the vehicle information acquisition request includes a first folder name; Receiving a plurality of second folder names sent by the server, each second folder name representing a unique identification of a vehicle; Generate multiple folder paths according to the multiple second folder names and the first folder name; The multiple folder paths are assigned to multiple scanning threads for scanning, and file information corresponding to the folder paths assigned to each scanning thread is obtained, and the difference in the number of folder paths assigned by different scanning threads is less than a preset threshold.

2. The method according to claim 1, characterized in that The step of generating a plurality of folder paths according to the plurality of second folder names and the first folder name comprises: For each second folder name, the first folder name and the second folder name are combined in path format to obtain a folder path.

3. The method according to claim 1, characterized in that The step of allocating the multiple folder paths to multiple scanning threads for scanning, and obtaining file information corresponding to the folder path allocated to each scanning thread, includes: assigning the plurality of folder paths to a plurality of scanning threads; For each folder path allocated to each scanning thread, sending a file information acquisition request to the server through the scanning thread, wherein the file information acquisition request includes the folder path; Receive at least one file information sent by the server.

4. The method according to claim 1, characterized in that: The method further comprises: Determine target file information that is not stored in the database among the file information corresponding to the folder path assigned to each scanning thread; The target file information is stored in the database.

5. The method according to any one of claims 1 to 4, characterized in that: Each file information includes a file path, and the method further includes: According to the acquired path filtering word, acquiring at least one file information whose file path includes the path filtering word from a database; Get the annotation data corresponding to each file information; For each piece of file information, the file information is annotated according to the annotation data of the file information.

6. The method according to claim 5, characterized in that The obtaining of the annotation data corresponding to each file information includes: For each piece of file information, according to the file path in the file information, obtaining the file corresponding to the file information from the server; For each piece of file information, the file corresponding to the file information is identified and detected to obtain the annotation data of the file information.

7. A file scanning method, characterized in that: Applied to a server, the method comprises: Receiving a vehicle information acquisition request sent by a scanning device, wherein the vehicle information acquisition request includes a first folder name; Determine a plurality of second folder names according to the first folder name, wherein the folder named as the first folder name includes each folder named as the second folder name, and each second folder name represents a unique identification of the vehicle; The plurality of second folder names are sent to the scanning device.

8. The method according to claim 7, characterized in that The method further comprises: Receiving a file information acquisition request sent by the scanning device, wherein the file information acquisition request includes a folder path; Generate file information of each file according to the file type and file path of at least one file under the folder path; The file information of the at least one file is sent to the scanning device.

9. A document scanning device, characterized in that: include: A sending module, used for sending a vehicle information acquisition request to a server, wherein the vehicle information acquisition request includes a first folder name; A receiving module, used for receiving a plurality of second folder names sent by the server, each second folder name representing a unique identification of a vehicle; Processing modules for: Generate multiple folder paths according to the multiple second folder names and the first folder name; The multiple folder paths are assigned to multiple scanning threads for scanning, and file information corresponding to the folder paths assigned to each scanning thread is obtained, and the difference in the number of folder paths assigned by different scanning threads is less than a preset threshold.

10. A document scanning device, characterized in that: include: A receiving module, configured to receive a vehicle information acquisition request sent by a scanning device, wherein the vehicle information acquisition request includes a first folder name; A processing module, configured to determine a plurality of second folder names according to the first folder name, wherein the folder named as the first folder name includes each folder named as the second folder name, and each second folder name represents a unique identification of a vehicle; A sending module is used to send the multiple second folder names to the scanning device.

11. A scanning device, characterized in that: include: Processor, memory, communication interface; The memory is used to store executable instructions of the processor; Wherein, the processor is configured to execute the file scanning method according to any one of claims 1 to 6 by executing the executable instructions.

12. A server, characterized in that: include: Processor, memory, communication interface; The memory is used to store executable instructions of the processor; Wherein, the processor is configured to execute the file scanning method according to any one of claims 7 to 8 by executing the executable instructions.

13. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the file scanning method described in any one of claims 1 to 6 or any one of claims 7 to 8 is implemented.

14. A computer program product, characterized in that The invention comprises a computer program, which is used to implement the document scanning method described in any one of claims 1 to 6 or any one of claims 7 to 8 when executed by a processor.

Citation Information

Patent Citations

  • Test question file screening method and device, model training method and device, equipment and medium

    CN114020904A

  • Multimedia file scanning method and device and terminal equipment

    CN114647746A

  • File detection method and device, processor and electronic equipment

    CN116521871A

  • Equipment file management method and device

    CN116841960A

  • Folder scan system and method for incremental backup

    US20230121247A1