Document management method and system based on Internet of Things
Through the document management system based on the Internet of Things, the use of infrared, WIFI networking, OpenCV and OCR technologies solves the problems of low interaction efficiency and low degree of digitization between paper and digital documents in traditional document management systems, and achieves efficient document management and collaboration. , improving work efficiency and data security.
Patent Information
- Application Number
- CN202410778593.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-10
AI Technical Summary
Traditional document management systems have problems such as inefficiency, difficulty in information retrieval, low degree of document digitization, and low processing efficiency when handling the interaction between paper and digital documents, which affects work efficiency and business agility.
Adopting a document management system based on the Internet of Things, through infrared receiving and transmitting modules, WIFI networking modules, OpenCV graphics processing units, OCR recognition modules and storage media, the interoperability, automatic identification, classification and revision of paper documents and electronic documents are realized, providing rapid Search and online editing functions.
It improves the efficiency of document interaction, increases the speed of document processing, enhances the automation and intelligence of document management, optimizes the revision process, strengthens data management and security, and promotes team collaboration.
Smart Images

Figure CN118626438A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology applications, and in particular to a document management method and system based on the Internet of Things. Background Art
[0002] In today's increasingly digitalized society, organizations of all sizes will generate a large amount of digital content, including documents, pictures and other information; efficient management and organization of this information is crucial to ensure the smooth operation of the enterprise and maintain competitiveness; however, traditional document management faces many challenges, such as the difficulty in effective interaction between paper and digital documents, chaotic paper document management, low degree of document digitization, and low document processing efficiency. These problems not only reduce work efficiency, but also run counter to the trend of modern digital transformation.
[0003] Deficiencies of existing technology:
[0004] 1. The current document management methods have obvious barriers when dealing with the interaction between paper and digital documents, resulting in low efficiency in information retrieval and processing;
[0005] 2. The lack of an effective communication bridge between paper documents and digital documents makes it difficult to quickly find the correct document version when needed, increasing the risk of document loss;
[0006] 3. Paper document management is disorganized and lacks effective classification and indexing, making it time-consuming and laborious to find a specific document like looking for a needle in a haystack;
[0007] 4. The degree of document digitization is not enough, and much important information still remains in paper form and cannot be quickly retrieved and shared;
[0008] 5. The document digitization process is cumbersome and inefficient, consuming a lot of manpower and material resources, and affecting the agility and response speed of the business;
[0009] Therefore, the prior art has deficiencies and needs further improvement. Summary of the invention
[0010] In view of the problems existing in the prior art, the present invention provides a document management method and system based on the Internet of Things.
[0011] To achieve the above object, the specific scheme of the present invention is as follows:
[0012] The present invention provides a document management system based on the Internet of Things, the system comprising:
[0013] Infrared receiving and transmitting module, using near infrared to transmit signals, realizes the communication between paper material labels and microcomputer control system, and controls the indicator light and sound source signal of document labels;
[0014] WIFI networking module, used to expand the network connection capability of the microcomputer system, install the serial port driver using the serial port chip of the development board, switch to STA mode, and establish Internet communication with the business system;
[0015] Socket communication module, which supports the network command transmission between the business system and the microcomputer based on the TCP / IP protocol socket, and converts it into infrared signal after processing by the microcomputer to realize communication with the document tag;
[0016] The OpenCV graphics processing unit uses computer vision technology to recognize the image and color of paper documents, assist in determining the area that needs to be revised and provide it to the OCR module for further processing;
[0017] The OCR recognition module, based on TesseractOCR technology, converts scanned paper document images into editable text, supports multi-language recognition, and improves the efficiency of document electronicization;
[0018] Storage media provides multi-user, multi-threaded data storage solutions to ensure data security and efficient processing.
[0019] Furthermore, the infrared receiving and transmitting module adopts the 5AWMC06A model, has an outer dimension of 8.755.8mm, an operating voltage between 1.1-1.5V, a transmission distance of 15-25 meters, a receiving angle of +45 degrees, and uses near-infrared rays with a wavelength of 0.76 to 1.5μm to transmit signals for communication.
[0020] Furthermore, the WIFI networking module supports 802.11b / g / n standards and is implemented through the WIFI function integrated in the ESP32-DOWDQ6 microcontroller to ensure efficient and stable network connection.
[0021] Furthermore, during the communication process of the Socket communication module, the data transmission between the business system and the microcomputer is encrypted using SSL / TLS to ensure the security of the data during transmission.
[0022] Furthermore, the storage medium is a MySQL database, which has automatic backup and recovery functions to ensure the integrity and availability of data in abnormal situations.
[0023] The present invention also provides a document management method based on the Internet of Things. Based on the above system, the method comprises the following steps:
[0024] S1, configure TesseractOCR, download and install Tesseract and configure the corresponding font library;
[0025] S2, scans paper documents and converts them into electronic PDF, uses OCR technology to recognize and convert them into editable text, and stores them in the database;
[0026] S3, preset document classification titles, classify and paginate documents by identifying the text at the beginning of the document and matching it with the preset title;
[0027] S4, file cutting and conversion, using PDFBoxAPI to cut PDF according to the recorded page numbers and convert it into a Word document;
[0028] S5, setting the document tag, using the infrared tag to communicate with the microcomputer system, and associating the paper document with the tag number through infrared coding;
[0029] S6, document search, the user searches by keywords, the system searches for the tag number based on the document ID and locates the paper document through infrared signals;
[0030] S7, online revision, realizes online document editing through WebOffice components, including permission allocation, signature verification, online editing and saving revisions;
[0031] S8, paper document revision, manually mark the revised content and then scan it, use OpenCV to identify the revised area, and use OCR to recognize and automatically revise the electronic document;
[0032] Furthermore, in step S1, in the step of configuring TesseractOCR, the recognition rate is improved by training a domain-specific vocabulary library, and customized optimization is performed for professional document types.
[0033] Furthermore, in step S2, after scanning the paper document, OpenCV is used to perform document quality detection, and the image brightness and contrast are automatically adjusted to optimize the OCR recognition effect.
[0034] Furthermore, in step S6, during the document search process, a voice recognition function is added to allow the user to search for documents through voice commands, and the system queries the document tag based on the voice recognition result and sends an infrared signal for positioning;
[0035] Through keyword search and infrared signal positioning, users can search for electronic documents by keyword, or use the infrared module to locate paper documents. The system responds by ringing a bell or lighting a light on the tag to indicate the location of the target document.
[0036] Furthermore, in step S8, in the document revision process, the version control system is integrated, each revision is automatically saved as a new version, the revision history is retained, version comparison and rollback are supported, and the transparency and traceability of the document revision process are ensured;
[0037] Manual review and electronic document revision are synchronized, that is, the document is printed for manual review and revised on paper, and the revised content is identified and synchronized to the electronic document at the same time, ensuring the consistency of the paper and electronic versions and improving the efficiency and accuracy of revision.
[0038] The technical solution of the present invention has the following beneficial effects:
[0039] 1. Improved document interaction efficiency: By building an interactive bridge between electronic documents and paper documents and using infrared receiving and transmitting modules, paper documents can communicate with the microcomputer control system, quickly locate and retrieve documents, reduce search time, and reduce the risk of loss.
[0040] 2. Improved document processing speed: Integrates WIFI networking module, Socket communication, OpenCV graphics processing, OCR recognition and other technologies to achieve rapid digitization, automatic revision and classification of documents. OCR technology can quickly convert paper documents into editable text, greatly accelerating the document processing process.
[0041] 3. Enhanced automation and intelligence of document management: Through preset document title recognition and automatic classification process, the system can automatically classify and cut scanned documents intelligently, which is more efficient and accurate than traditional manual classification, reducing human errors and workload.
[0042] 4. Optimized the revision process: It provides a seamless solution for online editing and paper document revision. Users can revise directly on electronic documents. The system automatically identifies handwritten revision marks on paper documents and synchronizes the revised content to electronic documents, simplifying document revision and version management.
[0043] 5. Strengthened data management and security: Use MySQL database to store document data to ensure fast data access, efficient processing and security. Redis cache mechanism further improves data reading speed and enhances system response performance.
[0044] 6. Promoted team collaboration: The online editing function supports multi-person collaboration. Through the Web interface, users can access and edit documents and revise them synchronously in real time, which facilitates teamwork and improves work efficiency.
[0045] 7. Comprehensive monitoring and maintenance are achieved: through service monitoring modules, such as sentinel flow control, unified log query, etc., the stable operation of the system is ensured, problems are discovered and solved in a timely manner, and service quality is guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a system architecture diagram of the present invention;
[0047] Figure 2is a schematic diagram of the microservice architecture of the present invention;
[0048] Figure 3 is a document search flow chart of the present invention;
[0049] Figure 4 is a document classification flow chart of the present invention;
[0050] Figure 5 is a document revision flow chart of the present invention;
[0051] Figure 6 It is a flowchart of document online editing of the present invention;
[0052] Figure 7 It is the overall flow chart of the present invention. DETAILED DESCRIPTION
[0053] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments; it can be understood that the specific embodiments described herein are only used to explain the present invention rather than to limit the present invention; it should also be noted that, for ease of description, only the parts related to the present invention rather than all are shown in the accompanying drawings.
[0054] Combination Figure 1-Figure 7 As shown, the present invention provides a document management system based on the Internet of Things, the system comprising:
[0055] Infrared receiving and transmitting module, using near infrared to transmit signals, realizes the communication between paper material labels and microcomputer control system, and controls the indicator light and sound source signal of document labels;
[0056] WIFI networking module, used to expand the network connection capability of the microcomputer system, install the serial port driver using the serial port chip of the development board, switch to STA mode, and establish Internet communication with the business system;
[0057] Socket communication module, which supports the network command transmission between the business system and the microcomputer based on the TCP / IP protocol socket, and converts it into infrared signal after processing by the microcomputer to realize communication with the document tag;
[0058] The OpenCV graphics processing unit uses computer vision technology to recognize the image and color of paper documents, assist in determining the area that needs to be revised and provide it to the OCR module for further processing;
[0059] The OCR recognition module, based on TesseractOCR technology, converts scanned paper document images into editable text, supports multi-language recognition, and improves the efficiency of document electronicization;
[0060] Storage media provides multi-user, multi-threaded data storage solutions to ensure data security and efficient processing.
[0061] The infrared receiving and transmitting module adopts the 5AWMC06A model, has an outer size of 8.755.8mm, an operating voltage between 1.1-1.5V, a transmission distance of 15-25 meters, a receiving angle of +45 degrees, and uses near-infrared rays with a wavelength of 0.76-1.5μm to transmit signals for communication.
[0062] The WIFI networking module supports the 802.11b / g / n standard and is implemented through the WIFI function integrated in the ESP32-DOWDQ6 microcontroller to ensure efficient and stable network connection.
[0063] In the Socket communication module, during the communication process, the data transmission between the business system and the microcomputer is encrypted using SSL / TLS to ensure the security of the data during transmission.
[0064] The storage medium is a MySQL database, which has automatic backup and recovery functions to ensure the integrity and availability of data in abnormal situations.
[0065] The present invention also provides a document management method based on the Internet of Things. Based on the above system, the method comprises the following steps:
[0066] S1, configure TesseractOCR, download and install Tesseract and configure the corresponding font library;
[0067] S2, scans paper documents and converts them into electronic PDF, uses OCR technology to recognize and convert them into editable text, and stores them in the database;
[0068] S3, preset document classification titles, classify and paginate documents by identifying the text at the beginning of the document and matching it with the preset title;
[0069] S4, file cutting and conversion, using PDFBoxAPI to cut PDF according to the recorded page numbers and convert it into a Word document;
[0070] S5, setting the document tag, using the infrared tag to communicate with the microcomputer system, and associating the paper document with the tag number through infrared coding;
[0071] S6, document search, the user searches by keywords, the system searches for the tag number based on the document ID and locates the paper document through infrared signals;
[0072] S7, online revision, realizes online document editing through WebOffice components, including permission allocation, signature verification, online editing and saving revisions;
[0073] S8, paper document revision, manually mark the revised content and then scan it, use OpenCV to identify the revised area, and use OCR to recognize and automatically revise the electronic document;
[0074] In step S1, in the configuration step of TesseractOCR, the recognition rate is improved by training a domain-specific vocabulary library, and customized optimization is performed for professional document types.
[0075] In step S2, after scanning the paper document, OpenCV is used to detect the document quality and automatically adjust the image brightness and contrast to optimize the OCR recognition effect.
[0076] In step S6, during the document search process, a voice recognition function is added to allow the user to search for documents through voice commands. The system queries the document tag based on the voice recognition result and sends an infrared signal for positioning;
[0077] Through keyword search and infrared signal positioning, users can search for electronic documents by keyword, or use the infrared module to locate paper documents. The system responds by ringing a bell or lighting a light on the tag to indicate the location of the target document.
[0078] In step S8, the version control system is integrated into the document revision process, each revision is automatically saved as a new version, the revision history is retained, and version comparison and rollback are supported to ensure the transparency and traceability of the document revision process;
[0079] Manual review and electronic document revision are synchronized, that is, the document is printed for manual review and revised on paper, and the revised content is identified and synchronized to the electronic document at the same time, ensuring the consistency of the paper and electronic versions and improving the efficiency and accuracy of revision. Specific embodiment:
[0081] In today's digital world, all kinds of organizations, regardless of size, will produce a lot of digital content such as documents and pictures. Efficient and fast management of this information is critical to the smooth operation of the organization and maintaining its competitiveness. Faced with the difficulties in the interaction between paper and digital documents, the disorganized paper documents, the low degree of document digitization, and the low efficiency of document digitization in people's document management work, this is not in line with the trend of digital transformation in today's era.
[0082] In view of the above situation, a method that can organize, store, sort and manage electronic documents and files can solve the bottleneck of interaction between digital documents and paper documents and document processing efficiency. Based on the architecture of the Internet of Things, this method builds an interactive bridge between electronic documents and paper documents, ensuring that the business can find the correct documents when needed, reducing the risk of document loss, and simplifying the document revision process and the process of electronicization of paper documents, thereby improving the work efficiency and productivity of business personnel.
[0083] Solve the problems of interaction barriers between digital documents and paper documents, low efficiency of document digitization processing, etc., and optimize the efficiency of document revision and document digitization by building an interactive bridge between electronic documents and paper documents.
[0084] 1. Infrared receiving and transmitting module: The infrared receiving module is the bridge of communication between the paper material label and the microcomputer control system. The microcomputer system uses near-infrared rays with a wavelength of 0.76 to 1.5 μm to transmit signals to control the indicator lights and sound source signals of the document labels. It has the advantages of anti-interference, simple circuit, easy encoding and decoding, low power consumption and low cost.
[0085] 2. WIFI networking module: The microcomputer system expands the WIFI module, installs the serial port driver according to the serial port chip on the development board, burns the firmware, switches to STA mode, and builds an Internet communication bridge between the business system and the microcomputer.
[0086] 3. Socket communication: The business system and the microcomputer communicate through the socket based on the TCP / IP protocol, and the network instructions are transmitted to the microcomputer, which then converts the infrared signal to realize the communication between the business system and the document tag.
[0087] 4. OpenCV graphics processing: OpenCV provides a wide range of image processing and computer vision functions. By recognizing specific images and colors of paper scanned documents, it obtains the document area and content that need to be revised and provides them to the OCR module for recognition.
[0088] 5. OCR recognition module: Based on TesseractOCR, Tesseract can convert printed text images into editable text. It supports multiple languages such as Chinese, English, and numbers, supports multiple text libraries, and can digitize paper documents. At the same time, jTessBoxEditor can be trained to improve the accuracy of Tesseract character recognition.
[0089] 6. Storage medium: MySQL is a true multi-user, multi-threaded SQL database server that can process large amounts of data quickly, efficiently and securely.
[0090] The document management method is based on the open source embedded hardware platform of JAVA and Arduino, combined with hardware devices such as infrared transmitters and ESP32 development boards. The development version is programmed through the Arduino development platform to complete the Internet of Things; the technical architecture uses SpringCloudAlibaba as the server and VUE as the operation front-end.
[0091] For some business scenarios where the source document needs to be digitized from paper documents, this method can scan and recognize the text of paper documents through OCR technology to achieve rapid electronic conversion of paper documents; based on the recognized text, the scanned documents can be quickly cut, classified and paged according to specific image areas, which is faster and more convenient than tedious manual operations; the paper documents can be marked through the document label module, and paper documents can be found more quickly and directly through keyword searches, avoiding the dilemma of not being able to find paper documents in a sea of books and documents.
[0092] (a) System structure diagram, Figure 1 :
[0093] A schematic diagram of the software architecture, which shows four different layers: front-end interaction, capability layer, foundation layer, and persistence layer.
[0094] "Front-end interaction" includes the "browser client" module, which is used to interact with users and process user requests.
[0095] The "capability layer" has four functional modules: document search, document revision, document classification, and element identification. These modules provide various functions to help users manage and operate documents.
[0096] The "basic layer" has five modules: OCR recognition module, infrared communication module, WIFI networking module, OpenCV graphics module and Socket communication module. These modules provide support and services for the functions of the upper layer.
[0097] Finally, in the "persistence layer", there is a data management module. This module is used to store and manage data to ensure data security and reliability.
[0098] Figure 2 It is a schematic diagram of the microservice architecture, which shows the relationship and process between various microservices.
[0099] The "Development Edition Microcomputer" is forwarded to the "Service Gateway" through "nginx". Then, the "Service Gateway" will register with the "Registration Center (Nacos)";
[0100] In the middle part, there is a "stream engine server side" module, which includes four microservices: "document search", "document revision", "document classification" and "user management". Among them, "document search" uses "infrared identification", "keyword search" and "paper document search"; "document revision" uses "modification identification", "automatic revision" and "document comparison"; "document classification" uses "title recognition", "document cutting" and "document classification"; "user management" uses "authorization allocation" and "user management".
[0101] Below, there is a "scanner" that sends "infrared signals" to an "infrared bookmark" that is then mounted on a "paper document".
[0102] In the lower right corner, there is a "Service Monitoring" module, which includes "Sentinel Traffic Control", "Unified Log Query Service", "Service Monitoring" and "Link Tracking".
[0103] The entire system communicates through "openFeign", uses "mysql" as the database, and uses "redis" as the cache.
[0104] (II) Flowchart
[0105] Figure 3 , document search flow chart
[0106] Describes the process of searching electronic or paper documents by keyword.
[0107] First, start from "Start", go through "Keyword Search Document" to "Browse Electronic Documents", if you find the required document, then end the process. If not, click to find paper documents, go through "Infrared Module Label Rings and Lights Up" to find the required document, then end the process.
[0108] Figure 4 ,Document Classification Flowchart
[0109] Describes the process of converting paper documents into text data and automatically classifying them:
[0110] Start: Starts the process.
[0111] Scan paper documents: Use a scanner to convert paper documents into digital images.
[0112] System Read PDF: Convert the scanned image into a readable PDF format.
[0113] OCR recognition: Use optical character recognition technology to extract text from PDF.
[0114] Store text data: Save the recognized text into the database.
[0115] File storage: Store the original PDF file and the converted Word file together.
[0116] Convert PDF to Word: Convert PDF files to easy-to-edit Word format.
[0117] Automatic page splitting: Split a Word document into multiple independent pages based on page boundaries.
[0118] Compliance with classification rules: Check whether each page meets the predefined classification criteria.
[0119] Automatic classification based on text title: If the page meets the classification rules, it will be placed in the corresponding category.
[0120] Manual proofreading and cutting page numbers: If the automatic cutting is inaccurate, manual proofreading and re-cutting are required.
[0121] End: After completing all steps, the process ends.
[0122] Figure 5 , Document Revision Flowchart
[0123] Describes the process by which team members review paper documents and make revisions:
[0124] Start: Starts the process.
[0125] Print paper documents: Print electronic documents for team members to review.
[0126] Team member review: Team members read and make revisions on paper.
[0127] Make revisions on the paper with pens of corresponding colors: Use different colored pens to mark different revisions.
[0128] Revisions Completed: All revisions have been completed.
[0129] End: The process ends.
[0130] This process also involves the revision of electronic documents:
[0131] Automatic revision of Word documents and finalization confirmation: Use software tools to automatically revise Word documents, and have relevant personnel confirm the revision results.
[0132] Electronic document verification: Compare the revised paper document with the electronic document to ensure that the two are consistent.
[0133] Automatically revise electronic documents: Automatically update electronic documents based on the revised content.
[0134] Identify revised content based on revised handwriting: Use OCR technology to identify revised handwriting and add revised content to electronic documents.
[0135] Figure 6 , document online editing flow chart
[0136] The process of accessing and editing online documents:
[0137] When a user accesses an online document, the Web client sends a request to the WPS server to obtain the file metadata, and the file metadata is returned;
[0138] If the user's Permission is "read", the preview mode is entered, otherwise the file is downloaded and the page renders the document content;
[0139] In edit mode, users edit documents, save files, and upload new versions of files;
[0140] When a user joins / exits collaboration, obtain the current collaborator's user information, return the current collaborator's user information, and upload the current collaborator's user information;
[0141] When obtaining historical versions, obtain all historical version information and return all historical version information;
[0142] When rolling back a historical version, obtain the file information of the version to be restored, return all historical version information, and download the corresponding version file.
[0143] The above processes all involve the Web side, WPS server side and Provider (docking module).
[0144] (III) Development board microcomputer configuration
[0145]
[0146]
[0147] (IV) Infrared receiving and transmitting module 5AWMC06A infrared transmitting module
[0148] Configuration Name Configuration parameters Dimensions 8.7*5*5.8(mm) Operating voltage 1.1-1.5V Pitch 2.54(mm) Transmitting distance 15-25 meters Receiving Angle +45 degrees
[0149] RISYM / Weixin infrared receiving module
[0150]
[0151]
[0152] (V) Infrared remote control and label
[0153] Q30 Wireless Caller Host
[0154] Configuration Name Configuration parameters Transmit power 110mW Standby power consumption 90mW Power supply 5V6A
[0155] Q30 Wireless Caller Extension
[0156] Configuration Name Configuration parameters Receiving frequency 433Mhz Sensitive reception 114dB Battery capacity 600mAh
[0157] Specific content:
[0158] 1. Document Classification
[0159] The classification and paging of documents is the first step in the document processing process:
[0160] 1. Configure TesseractOCR, download and install Tesseract, configure environment variables, download and configure the required font library English library eng.traineddata and Chinese font library chi_sim.traineddata, etc., and configure the common use of two font libraries.
[0161] 2. Electronicization: After converting the ordered paper documents into electronic PDF data through a scanner, call TesseractOCRAPI to obtain the recognition results and quickly convert them into editable text, and save the page number corresponding to the paragraph text.
[0162] 3. Preset classification titles. According to the format standard of official documents, the header of each document is composed of the official title. Therefore, the text can be automatically classified by identifying the title name. First, preset the titles of multiple specific documents as identification marks of this type of documents, such as "Civil Complaint" and "Element Table" titles, and arrange the set titles in order to provide a basis for classification and paging.
[0163] Then, the first part of the text in each page of the scanned document is compared with the preset title. If the preset title is included in the range of 30 characters on the page, the match is successful, which will be used as the first page of this type of document. Then continue to traverse the document until the next document type title is matched successfully. The next page number minus 1 is taken as the end page, and then the same is true until the last preset title is matched successfully, and the end page is taken as the final page. The page numbers of the starting page and the ending page of the document are counted and recorded respectively, so as to complete the classification of a type of document.
[0164] 4. File cutting and conversion: use PDFBoxJavaAPI to cut the PDF, and then merge it into a completed PDF according to the recorded start and end pages; call Baidu OCR image-text conversion API to convert the PDF document into an editable Word document, preserving the document format.
[0165] 2. Document Search
[0166] 1. Set document tags
[0167] Install the infrared tag on the paper document layer on the document shelf, and store the tag number and the document ID number of the paper file, which will be used as the association between the tag and the paper file for subsequent search of the paper file. The following is the implementation method of the infrared tag:
[0168] (1) Development Platform
[0169] Software: ArduinoIDEv2.1.1
[0170] Infrared receiving library: IRremoteESP8266v2.8.5
[0171] (2) Wiring instructions
[0172] Install the infrared receiving and transmitting modules to the development board
[0173] DAT: Connect to the digital output interface of the development board
[0174] VCC: Connect to the positive pole of 5VDC power supply
[0175] GND: Connect to the negative pole of 5VDC power supply
[0176] (3) Infrared coding reception and transmission
[0177] Write a program to receive infrared signals:
[0178] Install the Arduino driver on the PC and connect the development board to the computer port. First install the IRremote library.
[0179] Define a variable RECV_PIN that represents the pin of the infrared receiver module and enable the receiver by calling the enableIRIn function in the setup function.
[0180] In the loop function, check whether an infrared signal arrives. If so, decode it and output the received code in hexadecimal format and print it to the serial monitor.
[0181] Finally, call the resume function to prepare to receive the next set of infrared signals.
[0182] Acquisition of infrared signals: After the program is successfully connected, use the host remote control to click the infrared codes of the 0-9 numeric keys and the confirmation key on the remote control respectively, store the infrared signal codes output by the console in the coding table, and correspond them to the corresponding numbers for use in transmitting infrared signals.
[0183] The microcomputer opens the Socket server interface, listens to and receives the document search request sent by the client, reads the request parameters, and controls the ringing and vibration of the tag according to the parameters.
[0184] 2. Document search
[0185] First, the user searches the stored text based on keywords, performs fuzzy matching between keywords and text data, and returns the document content after a successful match;
[0186] Click to find paper files. The system will find out the label number of the document according to the document ID number, query the corresponding infrared code through the label number, and encapsulate the parameters of the infrared signal. Then, it will establish a connection with the Socket server port of the development board and send a request with the label number parameters. After receiving the parameters, the microcomputer will convert them into the infrared signal of the coding table, and then use the sendSony method in the IRremote library to send the infrared remote control protocol instruction code. After the infrared tag of the document with the corresponding number placed on the document bookshelf receives the signal, it will ring and vibrate, so that the paper document can be found quickly.
[0187] 3. Document Revision
[0188] 1. Online Revision
[0189] Call WebOfffice component to realize online editing
[0190] (1) Reference the WebOfffice interface, apply for a WebOfffice account, add a new application, and obtain the APPID and APPKEY after passing the review;
[0191] (2) Arrange all parameters prefixed with _w_ in ascending lexicographical order according to key, and concatenate the sorted key and value strings in the format of %s=%s.
[0192] (3) Add _w_secretkey to the end to obtain the characters to be encrypted (_w_secretkey is only added when signing).
[0193] (4) The signature algorithm generates a signature. Use the HMAC-SHA1 hash algorithm and the registered APPKEY key to encrypt the source string in the previous step. The encrypted string is encoded using Base64, and then the string generated above is URL-encoded to obtain the signature.
[0194] (5) Encapsulate __w_userid (user ID), _w_appid, _w_fname (file name), and _w_signature (signature), call the address online editing interface, and edit and revise the document on the browser. Click Save to complete the revision.
[0195] 2. Revision of paper files
[0196] When revising a paper document, you can use a red pen to circle the text that needs to be modified in a rectangle, and write the modified content next to it. At the same time, use a green pen to circle the rectangle. After the paper document is modified, scan it into an electronic file.
[0197] The obtained electronic image document is color recognized by OpenCV:
[0198] (1) Get the rectangular outline
[0199] First, load the OpenCV library and read the document image into Mat. If the file read in is in RGB format, first convert the image to the HSV color space; use the morphologyEx method to process the noise to get the pointsVector object, use Imgproc.CHAIN_APPROX_SIMPLE to compress the horizontal and vertical directions, and save the elements in the diagonal direction. For example, the outline of a rectangle only needs 4 coordinates to save information.
[0200] (2) Screenshot recognition
[0201] Use the Imgproc.rectangle method, pass in four coordinates to extract the red rectangle and the green rectangle, use OCR to recognize the text in the intercepted images and save them.
[0202] (3) Revise the document
[0203] The coordinates of the center of the red rectangle and the green rectangle are calculated through coordinates. The green center coordinate point within a radius of 100 pixels can be used as the revision content of the red rectangle text. The text of the red rectangle is replaced with the text of the green rectangle to complete the revision. If there are multiple green rectangles within the 100-pixel range of the red rectangle, they are arranged separately for manual selection and manual typo correction. After selecting the corresponding modification content, the system automatically revises it on the electronic document and saves the revision record.
[0204] The above description is only a preferred embodiment of the present invention, and does not limit the scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the protection scope of the present invention.
Claims
1. A document management system based on the Internet of Things, Features , the system includes: Infrared receiving and transmitting module, using near infrared to transmit signals, realizes the communication between paper material labels and microcomputer control system, and controls the indicator light and sound source signal of document labels; WIFI networking module, used to expand the network connection capability of the microcomputer system, install the serial port driver using the serial port chip of the development board, switch to STA mode, and establish Internet communication with the business system; Socket communication module, which supports the network command transmission between the business system and the microcomputer based on the TCP / IP protocol socket, and converts it into infrared signal after processing by the microcomputer to realize communication with the document tag; The OpenCV graphics processing unit uses computer vision technology to recognize the image and color of paper documents, assist in determining the area that needs to be revised and provide it to the OCR module for further processing; The OCR recognition module, based on TesseractOCR technology, converts scanned paper document images into editable text, supports multi-language recognition, and improves the efficiency of document electronicization; Storage media provides multi-user, multi-threaded data storage solutions to ensure data security and efficient processing.
2. The Internet of Things document management system as claimed in claim 1, It is characterized in that The infrared receiving and transmitting module adopts the 5AWMC06A model, the working voltage is between 1.1-1.5V, the transmitting distance is 15-25 meters, and the near infrared light with a wavelength of 0.76-1.5μm is used to transmit signals for communication.
3. The Internet of Things document management system as claimed in claim 1, It is characterized in that The WIFI networking module supports the 802.11b / g / n standard and is implemented through the WIFI function integrated in the ESP32-DOWDQ6 microcontroller to ensure efficient and stable network connection.
4. The Internet of Things document management system as claimed in claim 1, It is characterized in that In the Socket communication module, during the communication process, the data transmission between the business system and the microcomputer is encrypted using SSL / TLS to ensure the security of the data during transmission.
5. The Internet of Things document management system as claimed in claim 1, It is characterized in that The storage medium is a MySQL database with automatic backup and recovery functions to ensure the integrity and availability of data in abnormal situations.
6. A document management method based on the Internet of Things, It is characterized in that The method comprises the following steps: S1, configure TesseractOCR, download and install Tesseract and configure the corresponding font library; S2, scans paper documents and converts them into electronic PDF, uses OCR technology to recognize and convert them into editable text, and stores them in the database; S3, preset document classification titles, classify and paginate documents by identifying the text at the beginning of the document and matching it with the preset title; S4, file cutting and conversion, using PDFBoxAPI to cut PDF according to the recorded page numbers and convert it into a Word document; S5, setting the document tag, using the infrared tag to communicate with the microcomputer system, and associating the paper document with the tag number through infrared coding; S6, document search, the user searches by keywords, the system searches for the tag number based on the document ID and locates the paper document through infrared signals; S7, online revision, realizes online document editing through WebOffice components, including permission allocation, signature verification, online editing and saving revisions; S8, paper document revision, manually mark the revised content and then scan it, use OpenCV to identify the revised area, and use OCR to recognize and automatically revise the electronic document.
7. The document management method according to claim 6, It is characterized in that In step S1, in the configuration step of TesseractOCR, the recognition rate is improved by training a domain-specific vocabulary library, and customized optimization is performed for professional document types.
8. The document management method according to claim 6, It is characterized in that In step S2, after scanning the paper document, OpenCV is used to detect the document quality and automatically adjust the image brightness and contrast to optimize the OCR recognition effect.
9. The document management method according to claim 6, It is characterized in that In step S6, during the document search process, a voice recognition function is added to allow the user to search for documents through voice commands. The system queries the document tag based on the voice recognition result and sends an infrared signal for positioning; Through keyword search and infrared signal positioning, users can search for electronic documents by keyword, or use the infrared module to locate paper documents. The system responds by ringing a bell or lighting a light on the tag to indicate the location of the target document.
10. The document management method according to claim 6, It is characterized in that In step S8, the version control system is integrated into the document revision process, each revision is automatically saved as a new version, the revision history is retained, version comparison and rollback are supported, and the document revision process is transparent and traceable; Manual review and electronic document revision are synchronized, that is, the document is printed for manual review and revised on paper, and the revised content is identified and synchronized to the electronic document at the same time, ensuring the consistency of the paper and electronic versions and improving the efficiency and accuracy of revision.
Citation Information
Patent Citations
Online document processing method and device, computer equipment and storage medium
CN111783405A
High-accuracy table OCR method and system
CN113901950A
PDF document data processing and information extraction device and method
CN117095419A
Fast tag system of seeking of paper document based on networking of official working thing
CN208569663U
Cited By
Enterprise financial document integrated digital management system based on artificial intelligence
CN118863814A
Multi-storage protocol document management method, system and device and storage medium
CN120407708A
