Disclosure of Invention
The invention aims to provide a method, a device, a terminal and a system for demonstrating a file, so as to solve the problems in the background technology.
According to an aspect of the present invention, there is provided a method of file presentation, the method comprising:
the first terminal is in communication connection with the intelligent pen;
clicking any position or specific position of the paper dot matrix file through an intelligent pen to obtain file index information;
and acquiring a corresponding electronic file according to the file index information for displaying.
In an embodiment of the present invention, the paper dot matrix file is printed or stamped after the dot matrix resource is loaded in the electronic file, and the dot matrix resource carries file index information.
In an embodiment of the present invention, the file content of the paper dot matrix file is encoded by using a first dot matrix resource, and the file index information of the paper dot matrix file is encoded by using a second dot matrix resource.
In one embodiment of the invention, the file index information is arranged in the envelope of the paper dot matrix file or the surrounding area which does not influence the display of the file content.
In one embodiment of the invention, the method further comprises:
acquiring writing track information of a user on a paper dot matrix file by using an intelligent pen;
synchronously drawing at the corresponding position of the electronic file according to the writing track information;
and transmitting the writing track information to the second terminal so that the electronic file displayed by the second terminal is kept synchronous with the first terminal.
In one embodiment of the invention, the method further comprises:
establishing communication connection with at least one second terminal;
and transmitting the file index information to a second terminal so that the second terminal acquires a corresponding electronic file according to the file index information and displays the electronic file.
In one embodiment of the invention, the method further comprises:
establishing communication connection with at least one second terminal;
and recording the screen content of the displayed electronic file in real time, and sending the recorded screen content of the electronic file to the second terminal so that the electronic file displayed by the second terminal is kept synchronous with the first terminal.
In one embodiment of the present invention, a method of file presentation is provided, the method further comprising:
establishing communication connection with a first terminal;
acquiring a corresponding dot matrix electronic file according to the file index information sent by the first terminal for displaying;
receiving writing track information transmitted by a first terminal;
and synchronously drawing at the corresponding position of the electronic file according to the writing track information.
In one embodiment of the present invention, there is provided an apparatus for file presentation, the apparatus comprising:
the first connection module is used for establishing communication connection with the intelligent pen;
the information acquisition module is used for acquiring file index information by clicking any position or specific position of the paper dot matrix file through an intelligent pen;
and the file demonstration module is used for acquiring the corresponding electronic file according to the file index information and displaying the electronic file.
In one embodiment of the present invention, the apparatus is used for implementing the file presentation method described above.
In an embodiment of the present invention, an intelligent terminal is provided, and the intelligent terminal includes the apparatus described above.
In one embodiment of the present invention, there is provided a system for file presentation, comprising:
the first terminal is the intelligent terminal;
the intelligent pen is in communication connection with the first terminal, obtains file index information obtained by clicking any position or specific position of the paper dot matrix file by a user through the intelligent pen, and sends the file index information to the first terminal; acquiring writing track information of a user on a paper dot matrix file by using an intelligent pen, and sending the writing track information to a first terminal;
the paper dot matrix file is formed by printing or printing an electronic file after loading dot matrix resources, and the dot matrix resources carry file index information-.
In one embodiment of the invention, the system further comprises:
the at least one second terminal establishes communication connection with the first terminal; acquiring a corresponding dot matrix electronic file according to the file index information sent by the first terminal for displaying, and receiving writing track information transmitted by the first terminal; and synchronously drawing at the corresponding position of the electronic file according to the writing track information.
In one embodiment of the invention, the system further comprises:
the at least one second terminal establishes communication connection with the first terminal; and receiving the screen content of the electronic file recorded by the first terminal, and displaying the screen content of the electronic file.
In an embodiment of the invention, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the method of file presentation of any of the above.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the intelligent terminal is connected with the intelligent pen, the intelligent pen clicks the paper dot matrix file printed with the dot code to obtain the file index information, and the electronic file corresponding to the paper dot matrix file is obtained through the file index information to demonstrate, so that the teaching or the meeting is not limited by time, place, equipment, form and the like, and the online-offline teaching or the online-offline meeting at any time and any place is realized.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a flowchart of a method for presenting a file according to an embodiment of the present invention includes the following steps:
and S101, establishing communication connection between the first terminal and the intelligent pen.
Before a user operates the smart pen to write on the paper dot matrix file, the smart terminal establishes communication connection with the smart pen, including wired connection and wireless connection, preferably, a wireless connection mode is adopted, and the wireless connection mode includes but is not limited to bluetooth, Near Field Communication (NFC), Wireless Local Area Network (WLAN), ZigBee, infrared data association (IrDA) and Wi-Fi direct connection. In practical application, the intelligent pen and the intelligent terminal are in wireless connection in a Bluetooth mode preferentially. When the intelligent terminal is connected with the intelligent pen for the first time, the intelligent terminal starts all Bluetooth devices nearby Bluetooth scanning, scanning results are screened according to preset device types and device names, devices meeting conditions are displayed in a list, and a user selects a device corresponding to the device in the list according to the mac address of the intelligent pen to connect. In view of the fact that there are many bluetooth pairing connection technologies in the prior art, the present invention is not described herein again.
And S102, clicking any position or specific position of the paper dot matrix file through an intelligent pen to obtain file index information.
The paper dot matrix file is formed by printing or printing after dot matrix resources are loaded by an electronic file. The paper dot matrix file in the invention not only contains file content, but also carries file index information, and the file index information is ID used for uniquely positioning the electronic file. As known to those skilled in the art, the dot matrix resource is binary data represented by a dot pattern, and a string of binary data can be obtained by shooting and analyzing the dot pattern on the paper dot matrix file by the smart pen, wherein each bit book of the binary data can be defined according to user requirements. For example, for a dot matrix data block capable of storing 48-bit binary data, 0-7 bits are defined as Y-axis coordinates, 8-15 bits are defined as X-axis coordinates, 16-25 bits are defined as page information, 26-29 bits are defined as categories, 30-41 bits are defined as book numbers, and 42-47 bits are used for parity check, fault-tolerant processing, and the like.
In one embodiment of the invention, the file content and the file index information of the paper dot matrix file are encoded by using the same dot matrix resource. The file index information is carried in each dot matrix data block of the dot matrix resource of the encoded file content (as shown in fig. 6 a), and the file index information can be obtained by clicking any position of the paper dot matrix file by a user. For example, in the above lattice resource, 26-41 bits of data are directly used as file index information, or used as a key value, and the intelligent terminal can query the file index information according to the key value.
In one embodiment of the invention, the file content of the paper dot matrix file is encoded by adopting a first dot matrix resource, the file index information of the paper dot matrix file is encoded by adopting a second dot matrix resource, and the file index information is arranged in a cover of the paper dot matrix file or a peripheral area which does not influence the display of the file content. As shown in fig. 6b, the file index information scanning area is disposed below the contents of the file. In this way, the entire code segment of the lattice coding of the file index information can be used to represent the file index information except for a part of bit segments used for reservation and fault tolerance. Relatively speaking, the method is flexible, can meet various requirements, and is not limited by the size of the dot matrix resource.
And step S103, acquiring a corresponding electronic file according to the file index information and displaying the electronic file.
It can be understood that, a user edits an electronic file in advance by using an intelligent terminal, the electronic file may be in a printable file format such as word, excel, pdf, ppt, jpg, and the like, and the electronic file is uploaded to a cloud disk or a network server after the electronic file is edited, so as to obtain file index information. On one hand, in order to obtain the operation of the user on the paper dot matrix file, the dot matrix resource for positioning needs to be loaded on the electronic file, and on the other hand, in order to obtain the file index information, the dot matrix code carrying the file index information needs to be loaded on the electronic file. Two ways of carrying the document index information to the paper dot matrix document have been set forth above. If the mode of FIG. 6a is adopted, the file index information is carried to the first lattice resource, and the first lattice resource is used for encoding the electronic file; if the method of fig. 6b is adopted, it can be implemented as follows: the method comprises the steps of firstly, acquiring a first dot matrix resource and an electronic file to generate an electronic file of dot matrix codes; secondly, acquiring file index information and a second dot matrix resource to generate a cover or a specific area carrying the file index information; and thirdly, combining the two into a document.
As shown in fig. 2, a flowchart of a method for presenting a file according to a second embodiment of the present invention includes the following steps:
step S201, the first terminal and the intelligent pen are in communication connection.
Step S202, clicking any position or specific position of the paper dot matrix file through the intelligent pen to obtain file index information.
Step S203, acquiring a corresponding electronic file according to the file index information and displaying the electronic file.
Steps S201 to S203 are the same as those in the first embodiment, and are not described herein again.
And step S204, obtaining writing track information of the user on the paper dot matrix file by using the intelligent pen.
Because the code point information is printed on the paper dot matrix file, when the intelligent pen writes, marks and paintings on the paper dot matrix file, the intelligent pen can read the dot matrix graph at the position of the pen point, and the code point graph is subjected to image processing and analysis to obtain the writing track information. The writing track information comprises X coordinate information, Y coordinate information, page number information, type information, book number information and the like of writing points.
And S205, synchronously drawing at the corresponding position of the electronic file according to the writing track information.
In practical application, function buttons, such as color, thickness, and eraser of a pen, can be set on a display interface of an electronic file, so that the content displayed on the electronic file can be richer and more free.
During the process of file demonstration, a user can not only switch page numbers at an electronic file end, but also automatically switch electronic files synchronously by switching paper dot matrix files. The reason is that when the intelligent pen acquires writing track information, the intelligent pen can acquire not only the X coordinate and the Y coordinate of the current writing point, but also page number information, so that the intelligent terminal can switch the electronic file to the page number same as the paper dot matrix file for display according to the writing track information.
As shown in fig. 3, a flowchart of a method for demonstrating a file according to a third embodiment of the present invention includes the following steps:
and S301, establishing communication connection between the first terminal and the intelligent pen.
Step S302, clicking any position or specific position of the paper dot matrix file through the intelligent pen to obtain file index information.
Step S303, acquiring a corresponding electronic file according to the file index information and displaying the electronic file.
Steps S301 to S303 are the same as those in the first embodiment, and are not described herein again.
Step S304, establishing communication connection with at least one second terminal.
In the embodiment of the invention, the first terminal can be a teacher terminal or a conference host terminal, and the second terminal can be a student terminal or a participant terminal. .
Step S305, transmitting the file index information to the second terminal, so that the second terminal obtains a corresponding electronic file according to the file index information for displaying.
Preferably, the first terminal is further configured to send the page number information to the second terminal. This automatically keeps the display of the file consistent with that of the first terminal whenever the second terminal joins the tutorial or conference.
And S306, acquiring writing track information of the user on the paper dot matrix file by using the intelligent pen.
And step S307, synchronously drawing at the corresponding position of the electronic file according to the writing track information.
And step S308, transmitting the writing track information to the second terminal so that the electronic file displayed by the second terminal keeps synchronous with the first terminal.
It should be noted that, a user may also directly operate the electronic file at the intelligent terminal without using a paper dot matrix file, and these operation instructions and operation position information need to be synchronously sent to the second terminal, so that the second terminal and the first terminal keep synchronous.
As shown in fig. 4, a flowchart of a file presentation method according to a fourth embodiment of the present invention includes the following steps:
and S401, establishing communication connection between the first terminal and the intelligent pen.
And S402, clicking any position or specific position of the paper dot matrix file through the intelligent pen to obtain file index information.
And S403, acquiring a corresponding electronic file according to the file index information and displaying the electronic file.
Step S404, establishing communication connection with at least one second terminal.
Step S405, recording the screen content of the electronic file in real time, and sending the recorded screen content of the electronic file to a second terminal.
And step S406, acquiring writing track information of the user on the paper dot matrix file by using the intelligent pen.
And step S407, synchronously drawing at the corresponding position of the electronic file according to the writing track information.
The embodiment of the invention keeps the file contents displayed by the second terminal and the first terminal synchronous in a screen recording mode.
As shown in fig. 5, a flowchart of a method for presenting a file according to a fifth embodiment of the present invention includes the following steps:
step S501, a second terminal establishes communication connection with a first terminal;
step S502, acquiring a corresponding dot matrix electronic file according to the file index information sent by the first terminal for displaying;
step S503, receiving writing track information transmitted by the first terminal;
and step S504, synchronously drawing at the corresponding position of the electronic file according to the writing track information.
As shown in fig. 7, a structure diagram of a file demonstration apparatus provided in an embodiment of the present invention includes:
the first connection module 701 is used for establishing communication connection with the intelligent pen;
an information obtaining module 702, configured to obtain file index information by clicking any position or a specific position of a paper dot matrix file with an intelligent pen;
and the file demonstration module 703 is configured to obtain a corresponding electronic file according to the file index information and display the electronic file.
The paper dot matrix file is formed by printing or printing after dot matrix resources are loaded by an electronic file. The paper dot matrix file in the invention not only contains file content, but also carries file index information, and the file index information is ID used for uniquely positioning the electronic file. As known to those skilled in the art, the dot matrix resource is binary data represented by a dot pattern, and a string of binary data can be obtained by shooting and analyzing the dot pattern on the paper dot matrix file by the smart pen, wherein each bit book of the binary data can be defined according to user requirements. For example, for a dot matrix data block capable of storing 48-bit binary data, 0-7 bits are defined as Y-axis coordinates, 8-15 bits are defined as X-axis coordinates, 16-25 bits are defined as page information, 26-29 bits are defined as categories, 30-41 bits are defined as book numbers, and 42-47 bits are used for parity check, fault-tolerant processing, and the like.
In one embodiment of the invention, the file content and the file index information of the paper dot matrix file are encoded by using the same dot matrix resource. The file index information is carried in each dot matrix data block of the dot matrix resource of the encoded file content (as shown in fig. 6 a), and the file index information can be obtained by clicking any position of the paper dot matrix file by a user. For example, in the above lattice resource, 26-41 bits of data are directly used as file index information, or used as a key value, and the intelligent terminal can query the file index information according to the key value.
In one embodiment of the invention, the file content of the paper dot matrix file is encoded by adopting a first dot matrix resource, the file index information of the paper dot matrix file is encoded by adopting a second dot matrix resource, and the file index information is arranged in a cover of the paper dot matrix file or a peripheral area which does not influence the display of the file content. As shown in fig. 6b, the file index information scanning area is disposed below the contents of the file. In this way, the entire code segment of the lattice coding of the file index information can be used to represent the file index information except for a part of bit segments used for reservation and fault tolerance. Relatively speaking, the method is flexible, can meet various requirements, and is not limited by the size of the dot matrix resource.
It can be understood that, a user edits an electronic file in advance by using an intelligent terminal, the electronic file may be in a printable file format such as word, excel, pdf, ppt, jpg, and the like, and the electronic file is uploaded to a cloud disk or a network server after the electronic file is edited, so as to obtain file index information. On one hand, in order to obtain the operation of the user on the paper dot matrix file, the dot matrix resource for positioning needs to be loaded on the electronic file, and on the other hand, in order to obtain the file index information, the dot matrix code carrying the file index information needs to be loaded on the electronic file. Two ways of carrying the document index information to the paper dot matrix document have been set forth above. If the mode of FIG. 6a is adopted, the file index information is carried to the first lattice resource, and the first lattice resource is used for encoding the electronic file; if the method of fig. 6b is adopted, it can be implemented as follows: the method comprises the steps of firstly, acquiring a first dot matrix resource and an electronic file to generate an electronic file of dot matrix codes; secondly, acquiring file index information and a second dot matrix resource to generate a cover or a specific area carrying the file index information; and thirdly, combining the two into a document.
In an embodiment of the present invention, the mobile terminal further includes a second connection module, which establishes a communication connection with at least one second terminal; the file demonstration module 703 is further configured to obtain writing track information of the user on the paper dot matrix file using the smart pen, and perform synchronous drawing at a corresponding position of the electronic file according to the writing track information; and transmitting the file index information to a second terminal so that the second terminal acquires a corresponding electronic file according to the file index information and displays the electronic file.
In an embodiment of the present invention, the file presentation module 703 is further configured to record the screen content of the electronic file in real time, and send the recorded screen content of the electronic file to the second terminal, so that the electronic file displayed by the second terminal is kept synchronous with the first terminal.
In one embodiment of the present invention, the apparatus for file presentation is configured to perform operations for implementing the method for file presentation as described in the embodiments of FIGS. 1-4 above.
The invention is also used for providing the intelligent terminal, and the electronic equipment comprises the file demonstration device. Specifically, the intelligent terminal comprises a mobile phone, a pad, a notebook, a computer, an all-in-one machine and other terminals.
Fig. 8 is a system structure diagram of a file presentation according to an embodiment of the present invention, including: a first terminal 81, a smart pen 82, and a paper dot matrix file 83, wherein,
the first terminal 81 is the above-mentioned intelligent terminal, and establishes communication connection with the intelligent pen 82; clicking any position or specific position of a paper dot matrix file 83 through an intelligent pen 82 to obtain file index information; acquiring a corresponding electronic file according to the file index information and displaying the electronic file;
the intelligent pen 82 is in communication connection with the first terminal 81; acquiring file index information obtained by clicking any position or specific position of a paper dot matrix file 83 by a user through an intelligent pen 82, and sending the file index information to a first terminal 81; acquiring writing track information of a user on a paper dot matrix file 83 by using an intelligent pen 82, and sending the writing track information to a first terminal 81;
the paper dot matrix file 83 is formed by printing or printing an electronic file after loading dot matrix resources, and the dot matrix resources carry file index information.
In one embodiment of the invention, the system further comprises:
at least one second terminal 84, which establishes a communication connection with the first terminal 81; acquiring a corresponding dot matrix electronic file according to the file index information sent by the first terminal 81, displaying the dot matrix electronic file, and receiving writing track information transmitted by the first terminal 81; and synchronously drawing at the corresponding position of the electronic file according to the writing track information.
In an embodiment of the present invention, the second terminal 84 is configured to receive the screen content of the electronic file recorded by the first terminal 81, and display the screen content of the electronic file.
According to another aspect of the present invention, there is provided a computer readable storage medium storing a computer program which, when executed by a memory, implements a method of file presentation as described in the embodiments of fig. 1-4 above. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable signal medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. The computer-readable storage medium includes: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD _ ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the C language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The means illustrated in the above-described files may be implemented as a general purpose processor, a Programmable Logic Controller (PLC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof, for performing the functions described herein.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.