CN112105018B - Method and device for connecting intelligent pen with local area network, storage medium and intelligent pen - Google Patents

Method and device for connecting intelligent pen with local area network, storage medium and intelligent pen Download PDF

Info

Publication number
CN112105018B
CN112105018B CN202011285204.6A CN202011285204A CN112105018B CN 112105018 B CN112105018 B CN 112105018B CN 202011285204 A CN202011285204 A CN 202011285204A CN 112105018 B CN112105018 B CN 112105018B
Authority
CN
China
Prior art keywords
area network
local area
handwriting
character
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011285204.6A
Other languages
Chinese (zh)
Other versions
CN112105018A (en
Inventor
常治国
张鸿亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Bangbangbang Technology Co ltd
Original Assignee
Shenzhen Bangbangbang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Bangbangbang Technology Co ltd filed Critical Shenzhen Bangbangbang Technology Co ltd
Priority to CN202110316725.1A priority Critical patent/CN113038473B/en
Priority to CN202011285204.6A priority patent/CN112105018B/en
Publication of CN112105018A publication Critical patent/CN112105018A/en
Application granted granted Critical
Publication of CN112105018B publication Critical patent/CN112105018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/32Digital ink
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Character Discrimination (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention belongs to the technical field of communication, and particularly provides a method and a device for connecting an intelligent pen with a local area network, a storage medium and the intelligent pen. The method for connecting the intelligent pen with the local area network comprises the following steps: collecting handwriting of an intelligent pen on a writing medium; acquiring a local area network name and a local area network key according to the handwriting; and controlling the intelligent pen to establish connection with the corresponding local area network according to the local area network name and the local area network key. The embodiment of the invention also provides a device, a storage medium and an intelligent pen for executing the method. In the embodiment of the invention, the handwriting is collected by the intelligent pen so as to restore and obtain the local area network name and the local area network key, so that the intelligent pen can be quickly connected with the corresponding local area network. For the intelligent pen without a screen and a keyboard, the embodiment of the invention can well solve the problem of network connection, furthest exert the functions of the intelligent pen, omit unnecessary hardware such as the screen and the keyboard and reduce the volume and the cost of the intelligent pen.

Description

Method and device for connecting intelligent pen with local area network, storage medium and intelligent pen
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for connecting an intelligent pen with a local area network, a storage medium and the intelligent pen.
Background
How to carry out real-time high-precision digital acquisition on handwriting written on paper is a long-standing research subject in the technical field of image processing, and particularly with the rise of requirements of teleconferencing and remote teaching in recent years, a great number of business people, teachers and students need an intelligent pen which can write on a traditional writing medium and can upload written handwriting content to a cloud or other electronic equipment in real time.
The mainstream implementation scheme at present is as follows: the method is characterized in that dot matrix codes (also called code points) approximately invisible to human eyes are printed or printed on a common writing medium, a lens, an image sensor and an intelligent pen of a dot matrix code image recognition and coordinate decoding module are matched for writing, handwriting is left on the writing medium by the intelligent pen in the writing process, the image sensor shoots the dot matrix codes near a pen point to obtain digital images, and the dot matrix code image recognition and coordinate decoding module processes the digital images to obtain coordinate values (also called decoding), so that the digital acquisition of handwriting coordinates is realized.
In order to upload handwriting content to a cloud or other electronic devices in real time, a connection between the smart pen and a local area network is usually required. In the prior art, an intelligent terminal is added to a local area network, generally, a local area network name (SSID) and a local area network key need to be set, the intelligent terminal with a screen and a keyboard (including a virtual keyboard) can scan through a preset protocol to obtain an available local area network list for a user to manually select, and the local area network key can be input through the keyboard. The local area network name and the local area network key can also be generated into a two-dimensional code, the local area network name and the local area network key are photographed and identified through a camera of the intelligent terminal, and the intelligent terminal can be conveniently and quickly added into a network.
However, for an intelligent terminal without a screen and a keyboard, the setting of the lan name and the lan key must be performed by means of another terminal device or computer with a screen and a keyboard. For example, the intelligent terminal is in a hotspot mode, a smart phone is used to connect with the hotspot of the intelligent terminal and open a parameter setting webpage, and a target local area network name and a local area network key are set for the intelligent terminal through the webpage, which is redundant in operation. Because the smart pen is limited by the influence of volume and power consumption, the smart pen is generally not equipped with a screen and a keyboard, and how to quickly configure a local area network name and a local area network key for the smart pen to quickly connect to a local area network is a challenge.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for connecting an intelligent pen to a local area network, a storage medium, and an intelligent pen, so as to solve the technical problem that the connection of the intelligent pen to the local area network is complicated in the prior art.
In a first aspect, an embodiment of the present invention provides a method for connecting an intelligent pen to a local area network, where the method includes:
s1: collecting handwriting of an intelligent pen on a writing medium;
s2: acquiring a local area network name and a local area network key according to the handwriting;
s3: and controlling the intelligent pen to establish connection with the corresponding local area network according to the local area network name and the local area network key.
In the embodiment of the invention, the handwriting is collected by the intelligent pen so as to restore and obtain the local area network name and the local area network key, so that the intelligent pen can be quickly connected with the corresponding local area network. For the intelligent pen without a screen and a keyboard, the network connection problem can be well solved by adopting the embodiment of the invention, and the intelligent pen is simple to operate and easy to realize. Furthermore, by adopting the technical scheme of the embodiment of the invention, the functions of the intelligent pen can be exerted to the maximum extent, the intelligent pen can be used as a brand-new interactive mode to input the local area network name and the local area network key, unnecessary hardware such as a screen and a keyboard can be omitted, and the volume and the cost of the intelligent pen can be reduced.
Preferably, the writing on the writing medium includes a first writing in a first preset area and a second writing in a second preset area, and in S2, the method includes:
s21: acquiring the name of the local area network according to the first handwriting;
s22: and acquiring the local area network key according to the second handwriting.
The embodiment of the invention divides the writing medium into a first preset area and a second preset area in advance. The method comprises the steps that a first handwriting written by a user in a first preset area is used as a local area network name after being restored; and the second handwriting written by the user in the second preset area is used as the local area network key after being restored. Therefore, the embodiment of the invention can better distinguish the local area network name and the local area network key, and has simple realization logic.
Preferably, at least 1 filling unit is printed in each of the first preset area and the second preset area;
in the S21, the method includes:
s211: restoring according to the first stroke in the filling unit to obtain a first character;
s212: obtaining the name of the local area network according to the first character combination;
in the S22, the method includes:
s221: restoring according to the second handwriting in the filling unit to obtain a second character;
s222: and obtaining the local area network key according to the second character combination.
In the embodiment of the invention, the first handwriting in the filling unit is recognized, so that the first character is restored and combined to obtain the name of the local area network. Furthermore, a first stroke in a filling unit is restored to obtain a first character, so that the accuracy of restoring the first character can be better ensured, and the power of connection with a local area network is improved. Similarly, the local area network key is obtained by identifying a second handwriting in the filling unit, and then restoring to obtain a second character. Furthermore, a second handwriting in one filling unit is restored to obtain a second character, so that the accuracy of restoring the second character can be better ensured, and the power of connection with the local area network is improved.
Preferably, the filling unit is printed with a dot code;
in the S212, the method includes:
s2121: acquiring coordinates corresponding to the first handwriting according to the dot matrix code;
s2122: determining the position of a first character corresponding to the first handwriting in the local area network name according to the coordinate corresponding to the first handwriting;
s2123: obtaining the local area network name according to the position combination of the first character in the local area network name;
in the S222, the method includes:
s2221: acquiring coordinates corresponding to the second handwriting according to the dot matrix code;
s2222: determining the position of a second character corresponding to the second handwriting in the local area network key according to the coordinate corresponding to the second handwriting;
s2223: and obtaining the local area network key according to the position combination of the second character in the local area network key.
The embodiment of the invention determines which filling unit the first handwriting is located in according to the coordinate corresponding to the first handwriting, and further determines the position of the first character corresponding to the first handwriting in the local area network name according to the coordinate corresponding to the first handwriting, and then obtains the local area network name according to the position combination of the first character in the local area network name. Similarly, which filling unit is located is determined according to the coordinates corresponding to the second handwriting, and further, the position of the second character corresponding to the second handwriting in the local area network key may be determined according to the coordinates corresponding to the second handwriting, and then the local area network key is obtained according to the position combination of the second character in the local area network key. In summary, according to the coordinates of the first handwriting and the second handwriting, the name of the local area network and the key of the local area network can be accurately configured, and the power of connection with the local area network is improved.
Preferably, in S212, the method includes: combining to obtain the name of the local area network according to the writing sequence of the first handwriting corresponding to the first character;
in the S222, the method includes: and combining to obtain the local area network key according to the writing sequence of the second handwriting corresponding to the second character.
According to the embodiment of the invention, the local area network name and the local area network key are obtained according to the sequence of the first handwriting and the second handwriting during writing, so that the writing habit of a user is met, and the method and the device are easy to implement.
Preferably, the filling unit internally includes a filling subunit, and the method further includes: and when the first handwriting is reduced into a first character and/or the second handwriting is reduced into a second character, distinguishing the case of the letter according to the position relation between the first handwriting and/or the second handwriting and the filling subunit.
According to the embodiment of the invention, letters with easily confused upper and lower cases can be well distinguished by the filling subunit, and the local area network name and the local area network key are accurately restored according to the position relation between the first handwriting and/or the second handwriting and the filling subunit, so that the connection accuracy and success rate are improved.
Preferably, the method further comprises: and when the first handwriting is reduced into the first character and/or the second handwriting is reduced into the second character, distinguishing the letters and the numbers according to the identifiers.
The embodiment of the invention distinguishes the letters and the numbers through the identifiers, and can effectively and accurately restore the local area network name and the local area network secret key to distinguish the condition that the numbers and the letters are easy to be confused, such as the Arabic numeral '0' and the English letter 'O', thereby improving the accuracy rate and the success rate of connection.
In a second aspect, an embodiment of the present invention provides an apparatus for connecting a smart pen to a local area network, where the apparatus includes:
the acquisition module is used for acquiring the handwriting of the intelligent pen on the writing medium;
the handwriting restoration module is used for acquiring a local area network name and a local area network key according to the handwriting;
and the communication module is used for controlling the intelligent pen to establish connection with the corresponding local area network according to the local area network name and the local area network key.
In a third aspect, an embodiment of the present invention provides a storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method of the first aspect in the foregoing embodiments is implemented.
In a fourth aspect, an embodiment of the present invention provides an intelligent pen, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, without any creative effort, other drawings may be obtained according to the drawings, and these drawings are all within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an operating principle of an intelligent pen according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a method for connecting an intelligent pen to a local area network according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a method for distinguishing a local area network name from a local area network key according to an embodiment of the present invention.
FIG. 4 is a schematic illustration of a writing medium provided by embodiments of the present invention.
Fig. 5 is a flowchart illustrating a method for obtaining a local area network name according to an embodiment of the present invention.
FIG. 6 is a schematic illustration of another writing medium provided by embodiments of the present invention.
Fig. 7 is a flowchart illustrating a method for obtaining a local area network key according to an embodiment of the present invention.
Fig. 8 is a flowchart illustrating a method for combining local area network names according to an embodiment of the present invention.
Fig. 9 is a flowchart illustrating a method for combining local area network keys according to an embodiment of the present invention.
Fig. 10 is a schematic diagram of a filling unit according to an embodiment of the present invention.
FIG. 11 is a diagram illustrating handwriting recognition according to an embodiment of the present invention.
FIG. 12 is a diagram illustrating another handwriting recognition method according to an embodiment of the present invention.
FIG. 13 is a diagram illustrating another handwriting recognition method according to an embodiment of the present invention.
FIG. 14 is a schematic illustration of a writing medium provided by embodiments of the present invention.
FIG. 15 is a schematic illustration of another writing medium provided by embodiments of the present invention.
Fig. 16 is a schematic structural diagram of an apparatus for connecting a smart pen to a local area network according to an embodiment of the present invention.
Fig. 17 is a schematic structural diagram of a smart pen according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
As mentioned above, the current technical solution of connecting the smart pen to the lan has certain limitations, and the operation is complicated or a screen and a keyboard need to be configured, and the hardware cost is high.
In view of this, embodiments of the present invention provide a method and an apparatus for connecting an intelligent pen to a local area network, a storage medium, and an intelligent pen.
For ease of understanding, the structure of the smart pen is illustrated herein by way of example, and it will be appreciated by those skilled in the art that the smart pen illustrated herein is merely one preferred implementation. Other pens that digitally capture handwriting on a writing medium to restore the handwriting to characters should be considered as smart pens in this invention. Please refer to fig. 1, which is a schematic diagram illustrating a working principle of an intelligent pen according to an embodiment of the present invention.
For convenience of explaining the working principle of the smart pen, components such as a housing, a structural support frame, a circuit board and the like of the smart pen are omitted in fig. 1. Wherein 1001 is a writing medium printed with a dot matrix code; 1002 is a refill of the intelligent pen; 1003 is a lens; 1004 is an image sensor; 1005 is a pixel array of an image sensor; 1006 is the target area of the imaging of the pixel array 1005 on the writing medium through the lens 1003; 1007 is the central origin of the pixel array, which is located on the optical axis of the lens 1003; 1008 is the target point on the writing medium corresponding to 1007; 1009 is the point of contact (i.e., the nib) of the refill with the writing medium; 1010 is an image formed on the image sensor 1004 by virtually imaging the contact point 1009 between the pen core and the writing medium through the lens 1003. Therefore, the handwriting of the smart pen can be restored according to the collection of the pen point coordinates by the image sensor 1004. Wherein, the concrete implementation of the handwriting reduction belongs to the prior art, which is not too much to be said here. Furthermore, the intelligent pen is also provided with a communication module for establishing connection with a local area network.
Fig. 2 is a schematic flow chart of a method for connecting an intelligent pen to a local area network according to an embodiment of the present invention, which specifically includes the following steps:
s1: collecting handwriting of an intelligent pen on a writing medium;
s2: acquiring a local area network name and a local area network key according to the handwriting;
s3: and controlling the intelligent pen to establish connection with the corresponding local area network according to the local area network name and the local area network key.
Specifically, the writing medium is not particularly limited, and may be paper, ceramic, a display screen, or the like. The writing medium is printed with dot codes, and the intelligent pen identifies the pen point or the dot codes near the pen point so as to acquire corresponding coordinates and acquire handwriting.
According to the collected handwriting, image processing or character recognition is carried out on the handwriting, and then the handwriting can be converted into corresponding characters, so that a local area network name and a local area network key are obtained. The local area network name is also called a Service Set Identifier (SSID).
And then, according to the local area network name and the local area network key, the connection between the intelligent pen and the local area network can be established. In a preferred embodiment of the invention, the name of the local area network and the key of the local area network are also stored, so that the connection is automatically made when the smart pen is in the local area network.
In the embodiment of the invention, the handwriting is collected by the intelligent pen so as to restore and obtain the local area network name and the local area network key, so that the intelligent pen can be quickly connected with the corresponding local area network. For the intelligent pen without a screen and a keyboard, the network connection problem can be well solved by adopting the embodiment of the invention, and the intelligent pen is simple to operate and easy to realize. Furthermore, by adopting the technical scheme of the embodiment of the invention, the functions of the intelligent pen can be exerted to the maximum extent, the intelligent pen can be used as a brand-new interactive mode to input the local area network name and the local area network key, unnecessary hardware of a screen and a keyboard can be omitted, and the volume and the cost of the intelligent pen can be reduced. Meanwhile, in order to improve the security, the local area network may be hidden (i.e., SSID broadcast is turned off), and the embodiment of the present invention can access the local area network of this type, so that the application scenario is wide.
Please refer to fig. 3, which is a flowchart illustrating a method for distinguishing a local area network name from a local area network key according to another embodiment of the present invention, including the following steps:
s21: acquiring the name of the local area network according to the first handwriting;
s22: and acquiring the local area network key according to the second handwriting.
Specifically, the handwriting on the writing medium includes a first handwriting located in a first preset area and a second handwriting located in a second preset area. For ease of understanding, referring to FIG. 4, writing medium 10 includes a first preset area 11 and a second preset area 12. The handwriting in the first preset area 11 is the first handwriting, and the handwriting in the second preset area 12 is the second handwriting. In a specific implementation, the handwriting can be distinguished from the first preset area 11 or the second preset area 12 according to the coordinates of the handwriting. Therefore, the collection of the pen point coordinates is used for restoring the handwriting and judging which preset area the handwriting is located in, other judgment logics are not needed to be introduced, and the implementation process is convenient.
Further, referring to fig. 5, in order to improve the accuracy of restoring the local area network name, an embodiment of the present invention further provides a method for obtaining the local area network name, where the method includes:
s211: restoring according to the first stroke in the filling unit to obtain a first character;
s212: and obtaining the name of the local area network according to the first character combination.
Specifically, referring to fig. 6, the first preset area 11 is printed with at least 1 filling unit 13, and the filling unit 13 may be a rectangular frame, a circle, or the like, and the specific shape of the filling unit 13 is not particularly limited in the present invention. In a preferred embodiment, the first stroke in a filling unit 13 is reduced to obtain a first character, which can greatly improve the accuracy of reduction of the first character. Therefore, according to the first strokes in the filling units 13, a plurality of first characters can be restored, and the local area network name can be obtained according to the character combination.
Similarly, referring to fig. 7, in order to improve accuracy of recovering a local area network key, an embodiment of the present invention further provides a method for obtaining a local area network key, where the method includes:
s221: restoring according to the second handwriting in the filling unit to obtain a second character;
s222: and obtaining the local area network key according to the second character combination.
Specifically, with continued reference to fig. 6, the second preset area 12 is printed with at least 1 filling unit 13, and the filling unit 13 may be a rectangular frame, a circle, or the like, and the specific shape of the filling unit is not particularly limited in the present invention. In a preferred embodiment, the second handwriting in a filling unit 13 is restored to obtain a second character, so that the accuracy of restoring the second character can be greatly improved. Therefore, according to the second handwriting in the filling units 13, a plurality of second characters can be recovered, and the local area network key can be obtained according to the character combination.
Please refer to fig. 8, which is a flowchart illustrating a method for combining first characters into a local area network name according to an embodiment of the present invention, including the following steps:
s2121: acquiring coordinates corresponding to the first handwriting according to the dot matrix code;
s2122: determining the position of a first character corresponding to the first handwriting in the local area network name according to the coordinate corresponding to the first handwriting;
s2123: and obtaining the local area network name according to the position combination of the first character in the local area network name.
As mentioned above, the intelligent pen acquires the coordinates corresponding to the first handwriting through the image sensor. In a preferred embodiment, the preset coordinates of each filling unit 13 are different. Therefore, the position of the corresponding first character in the local area network name can be determined according to the coordinate corresponding to the acquired first handwriting, which filling unit 13 the first handwriting is located in. For example, the preset coordinates (xi, yi) are assigned to the 10 filling units of the first preset area in the order of front and rear, where i is 0 to 9. And if the coordinates corresponding to the acquired first handwriting are closest to (x 0, y 0), determining that the first character corresponding to the first handwriting is the first character in the local area network name. According to the principle, the local area network names can be combined.
Similarly, please refer to fig. 9, which is a flowchart illustrating a method for combining second characters into a local area network key according to an embodiment of the present invention, including the following steps:
s2221: acquiring coordinates corresponding to the second handwriting according to the dot matrix code;
s2222: determining the position of a second character corresponding to the second handwriting in the local area network key according to the coordinate corresponding to the second handwriting;
s2223: and obtaining the local area network key according to the position combination of the second character in the local area network key.
The position of the second handwriting in the local area network key can be determined according to the coordinates corresponding to the collected second handwriting, and the filling unit 13 where the second handwriting is located can be determined. For example, the preset coordinates (xj, yj) are assigned to the 10 filling units of the second preset area in the order from front to back, where j is 0 to 9. And if the coordinates corresponding to the acquired first handwriting are closest (x 1, y 1), determining that a second character corresponding to the second handwriting is a second character in the local area network key. According to the principle, the local area network key can be obtained through combination.
The embodiment of the invention also provides another method for acquiring the name of the local area network, which comprises the following steps: and combining to obtain the name of the local area network according to the writing sequence of the first handwriting corresponding to the first character. Specifically, when each first handwriting is collected, a time stamp is allocated to the first handwriting, and therefore the first character obtained through restoration also corresponds to the time stamp. And then, according to the time stamp, combining the first characters according to the sequence of the corresponding first handwriting during writing to obtain the name of the local area network. The user writes the characters in sequence, so the first characters can be accurately combined into the local area network name by adopting the embodiment.
Similarly, local area network keys are also available according to this principle. Specifically, the local area network key is obtained by combining according to the writing sequence of the second handwriting corresponding to the second character. And when each second handwriting is collected, a time stamp is allocated to the second handwriting, so that the restored second character also corresponds to the time stamp. And then, according to the time stamp, combining the second characters according to the sequence of the corresponding second handwriting during writing to obtain the local area network key.
Referring to fig. 10, in order to accurately distinguish case letters from case letters, the filling unit 13 includes a filling subunit 14 therein, and the method includes: and when the first handwriting is reduced into a first character and/or the second handwriting is reduced into a second character, distinguishing the case of the letter according to the position relation between the first handwriting and/or the second handwriting and the filling subunit.
Specifically, if the first stroke is located inside the filling subunit 14, it is recognized as a lower case letter; otherwise, it is recognized as capital letter. For ease of understanding, referring to FIG. 11, a first stroke is recognized as a lower case "W" when it is located entirely inside the filling subunit, and otherwise as an upper case "W". It should be specifically noted that the method can be applied only to confusing letters including c, k, l, m, o, p, s, u, v, w, x, z, etc.
In order to accurately distinguish between Arabic numerals and English letters, distinction can be made by identifiers. The method comprises the following steps: and when the first handwriting is reduced into the first character and/or the second handwriting is reduced into the second character, distinguishing the letters and the numbers according to the identifiers.
Specifically, the identifier may be a line segment, a wave, or the like, and the shape thereof is not particularly limited by the present invention. For easy understanding, please refer to fig. 12, the identifier may be set as a line segment, if it is recognized that the line segment is included below the handwriting, the handwriting is recognized as english letters, otherwise, the handwriting is recognized as arabic numerals. Therefore, handwriting with a line segment is recognized as a lower case letter "q", and handwriting without a line segment is recognized as an arabic numeral "9". It should be noted that the location of the identifier may be located at any position of the filling unit. Of course, this method can be applied only between letters and arabic numbers which are easy to be confused, and there is no need to provide a corresponding recognition method for each letter or arabic number.
Further, other algorithms can be preset to distinguish characters which are easy to be confused. For example, in order to accurately distinguish between the Arabic numeral "0" and the English letter "O", a small horizontal line may be added between the Arabic numeral "0" to avoid confusion with the letter "O". Therefore, the handwriting as shown in fig. 13 is recognized as a lower case letter "O", an upper case letter "O", and an arabic numeral "0", respectively.
It should be noted that the identifier is an additional feature that the user writes on the result of normal writing when writing, and is easy for the smart pen to recognize, rather than being pre-printed on the writing medium.
In an embodiment of the present invention, each time a handwriting in a filling unit is collected, the handwriting is restored to a corresponding character, so as to combine to obtain a local area network name and a local area network key. In the specific implementation, a time threshold value can be preset, and after writing a piece of handwriting, if the next handwriting is not detected in the same preset area after the writing of the next handwriting exceeds the preset time threshold value, the writing is judged to be finished, and the name of the local area network or the secret key of the local area network is obtained.
Referring to fig. 14, in another embodiment of the present invention, a starting unit 15 may be disposed on the writing medium, and when it is detected that the handwriting exists in the starting unit 15, the collected first handwriting is uniformly restored to a first character, and the collected second handwriting is uniformly restored to a second character.
In a preferred embodiment of the present invention, S3 includes:
s31: controlling the smart pen to try to establish connection with a corresponding local area network according to the local area network name and the local area network key;
s32: if the connection is failed to be established, acquiring the first handwriting and/or the second handwriting exceeding the filling unit, and recording as fuzzy handwriting;
s33: analyzing the fuzzy handwriting to obtain the probability weight of each character corresponding to the fuzzy handwriting;
s34: according to the probability weight, modifying a first character corresponding to the fuzzy handwriting in a local area network name and/or a second character corresponding to the fuzzy handwriting in a local area network key into a corresponding character;
s35: an attempt is made to establish a connection with the local area network.
Specifically, when a connection is established with a local area network, if the connection is failed to be established, the possible reason is mainly that the name of the local area network and the key of the local area network are wrong. Therefore, when the connection between the intelligent pen and the local area network fails to be established, the first handwriting and/or the second handwriting, of which part of the handwriting exceeds the filling unit during filling, are acquired and recorded as fuzzy handwriting. And then analyzing the fuzzy handwriting to obtain the probability weight of each character corresponding to the fuzzy handwriting. The analytical algorithm can adopt the existing algorithm, or a chip with a training function is arranged in the intelligent pen, and the probability weights of the characters corresponding to different characteristic diagrams are automatically adjusted according to the writing habits of users.
Based on the processing, the probability weight of each fuzzy handwriting as each character can be obtained. The corresponding characters in the lan name and/or the lan key may then be modified in descending order of probability weight, and a connection with the lan may be attempted again each time the corresponding characters are modified. In this case, only one character in the lan name or only one character in the lan key may be modified at a time, or a plurality of characters may be modified at the same time.
For the sake of understanding, the following exemplary descriptions are made, for example, the local area network name includes 2 fuzzy scripts, which are respectively referred to as a first fuzzy script and a second fuzzy script, and the local area network key includes 1 fuzzy script, which is referred to as a third fuzzy script.
After the analysis, the probability that the first blurred writing is a is 50%, the probability that the first blurred writing is b is 30%, and the probability that the first blurred writing is c is 20%. The probability of the second blurred writing being d is 70%, and the probability of being e is 30%. The probability of the third blurred script being f is 60%, and the probability of being g is 40%.
In one embodiment of the invention, only one character is modified at a time. For example, the characters corresponding to the second fuzzy handwriting and the third fuzzy handwriting are kept unchanged, the characters corresponding to the first fuzzy handwriting are successively modified into a, b and c, and connection with the local area network is tried to be established again after each modification. And modifying characters corresponding to other fuzzy scripts after traversing and modifying the characters corresponding to the first fuzzy script.
In another embodiment of the invention, multiple characters may be modified at a time. For example, the character corresponding to the first blurred writing is modified into a, the character corresponding to the second blurred writing is modified into d, and the character corresponding to the third blurred writing is modified into f.
In another embodiment of the invention, the characters corresponding to each fuzzy writing are arranged and combined to obtain 12 combinations, and the probability weight of each combination is determined. For example, the probability weight of modifying the character corresponding to the first blurred script into a, modifying the character corresponding to the second blurred script into d, and modifying the character corresponding to the third blurred script into f is 50% by 70% by 60%, namely 21%. And then, according to the probability weight of each combination, gradually modifying the local area network name and the local area network key until the connection with the local area network is successfully established or 12 combinations are traversed.
In short, the invention does not limit the number of characters modified each time, and only needs to ensure that each character is modified at least once according to the sequence from large to small according to the probability weight.
In another embodiment of the present invention, S31 is performed a plurality of times before S32 is performed to exclude accidental errors.
The invention is particularly suitable for application scenes needing to use the intelligent pen in a centralized way, such as campus teaching. Since the campus network usually needs to use the school number as the check code of the user identity, as shown in fig. 15, a third preset area 16 may be provided on the writing medium, and the third preset area 16 is printed with a plurality of filling units. Thus, by recognizing the handwriting in the third area 16, the corresponding scholars number can be obtained, which, when establishing a connection with the local area network, is calculated as: the number is used as a check code for identity verification. According to the embodiment of the invention, the network parameter setting can be quickly completed without an additional intelligent terminal or computer, so that the intelligent pen can be added into a campus network and the intelligent pen and student users can be bound conveniently.
Fig. 16 is a schematic structural diagram of a device for connecting an intelligent pen to a local area network according to an embodiment of the present invention, where the device includes:
the acquisition module is used for acquiring the handwriting of the intelligent pen on the writing medium;
the handwriting restoration module is used for acquiring a local area network name and a local area network key according to the handwriting;
and the communication module is used for controlling the intelligent pen to establish connection with the corresponding local area network according to the local area network name and the local area network key.
In addition, the method for connecting the intelligent pen with the local area network can be realized by the intelligent pen. Fig. 17 is a schematic diagram illustrating a hardware structure of a smart pen according to an embodiment of the present invention.
The smart pen may include a processor and a memory storing computer program instructions.
In particular, the processor may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits that may be configured to implement embodiments of the present invention.
The memory may include mass storage for data or instructions. By way of example, and not limitation, memory may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. The memory may include removable or non-removable (or fixed) media, where appropriate. The memory may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory is non-volatile solid-state memory. In a particular embodiment, the memory includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor reads and executes the computer program instructions stored in the memory to implement the method for connecting the smart pen to the local area network in any of the above embodiments.
In one example, the smart pen may also include a communication interface and a bus. As shown in fig. 17, the processor, the memory, and the communication interface are connected by a bus to complete communication therebetween.
The communication interface is mainly used for realizing communication among modules, devices, units and/or equipment in the embodiment of the invention.
The bus includes hardware, software, or both that couple the components of the smart pen to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. A bus may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the method for connecting the smart pen to the local area network in the foregoing embodiments, the embodiments of the present invention may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any one of the above-described embodiments of a method for connecting a smart pen to a local area network.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (9)

1. A method for connecting a smart pen to a local area network, the method comprising:
s1: acquiring handwriting of an intelligent pen on a writing medium, wherein the intelligent pen identifies a pen point or a dot matrix code near the pen point so as to acquire a corresponding coordinate to acquire the handwriting;
s2: acquiring a local area network name and a local area network key according to the handwriting;
s3: controlling the intelligent pen to establish connection with a corresponding local area network according to the local area network name and a local area network key;
in the S3, the method includes:
s31: controlling the smart pen to try to establish connection with a corresponding local area network according to the local area network name and the local area network key;
s32: if the connection is failed to be established, acquiring fuzzy handwriting;
s33: analyzing the fuzzy handwriting to obtain the probability weight of each character corresponding to the fuzzy handwriting;
s34: according to the probability weight, modifying a first character corresponding to the fuzzy handwriting in a local area network name and/or a second character corresponding to the fuzzy handwriting in a local area network key into a corresponding character;
s35: an attempt is made to establish a connection with the local area network.
2. The method according to claim 1, wherein the writing on the writing medium includes a first writing in a first preset area and a second writing in a second preset area, and in S2, the method includes:
s21: acquiring the name of the local area network according to the first handwriting;
s22: and acquiring the local area network key according to the second handwriting.
3. The method according to claim 2, characterized in that said first and second preset areas are each printed with at least 1 filling unit;
in the S21, the method includes:
s211: restoring according to the first stroke in the filling unit to obtain a first character;
s212: obtaining the name of the local area network according to the first character combination;
in the S22, the method includes:
s221: restoring according to the second handwriting in the filling unit to obtain a second character;
s222: and obtaining the local area network key according to the second character combination.
4. A method according to claim 3, characterized in that the filling unit is printed with dot codes;
in the S212, the method includes:
s2121: acquiring coordinates corresponding to the first handwriting according to the dot matrix code;
s2122: determining the position of a first character corresponding to the first handwriting in the local area network name according to the coordinate corresponding to the first handwriting;
s2123: obtaining the local area network name according to the position combination of the first character in the local area network name;
in the S222, the method includes:
s2221: acquiring coordinates corresponding to the second handwriting according to the dot matrix code;
s2222: determining the position of a second character corresponding to the second handwriting in the local area network key according to the coordinate corresponding to the second handwriting;
s2223: and obtaining the local area network key according to the position combination of the second character in the local area network key.
5. The method of claim 3, wherein:
in the S212, the method includes: combining to obtain the name of the local area network according to the writing sequence of the first handwriting corresponding to the first character;
in the S222, the method includes: and combining to obtain the local area network key according to the writing sequence of the second handwriting corresponding to the second character.
6. The method of claim 3, wherein the filling unit internally comprises a filling subunit, the method further comprising: when the first handwriting is reduced to a first character and/or the second handwriting is reduced to a second character, distinguishing the case of the letter according to the position relation between the first handwriting and/or the second handwriting and the filling subunit; or when the first handwriting is reduced to the first character and/or the second handwriting is reduced to the second character, distinguishing the letters and the numbers according to the identifier.
7. An apparatus for connecting a smart pen to a local area network, the apparatus comprising:
the intelligent pen comprises a pen point, a pen point and an acquisition module, wherein the pen point is used for writing a handwriting on a writing medium;
the handwriting restoration module is used for acquiring a local area network name and a local area network key according to the handwriting;
the communication module is used for controlling the intelligent pen to establish connection with a corresponding local area network according to the local area network name and a local area network key, and the communication module is further used for:
controlling the smart pen to try to establish connection with a corresponding local area network according to the local area network name and the local area network key;
if the connection is failed to be established, acquiring fuzzy handwriting;
analyzing the fuzzy handwriting to obtain the probability weight of each character corresponding to the fuzzy handwriting;
according to the probability weight, modifying a first character corresponding to the fuzzy handwriting in a local area network name and/or a second character corresponding to the fuzzy handwriting in a local area network key into a corresponding character;
an attempt is made to establish a connection with the local area network.
8. A storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-6.
9. A smart pen, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-6.
CN202011285204.6A 2020-11-17 2020-11-17 Method and device for connecting intelligent pen with local area network, storage medium and intelligent pen Active CN112105018B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110316725.1A CN113038473B (en) 2020-11-17 2020-11-17 Method for connecting local area network through handwriting recognition, intelligent pen and storage medium
CN202011285204.6A CN112105018B (en) 2020-11-17 2020-11-17 Method and device for connecting intelligent pen with local area network, storage medium and intelligent pen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011285204.6A CN112105018B (en) 2020-11-17 2020-11-17 Method and device for connecting intelligent pen with local area network, storage medium and intelligent pen

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110316725.1A Division CN113038473B (en) 2020-11-17 2020-11-17 Method for connecting local area network through handwriting recognition, intelligent pen and storage medium

Publications (2)

Publication Number Publication Date
CN112105018A CN112105018A (en) 2020-12-18
CN112105018B true CN112105018B (en) 2021-04-09

Family

ID=73784697

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110316725.1A Active CN113038473B (en) 2020-11-17 2020-11-17 Method for connecting local area network through handwriting recognition, intelligent pen and storage medium
CN202011285204.6A Active CN112105018B (en) 2020-11-17 2020-11-17 Method and device for connecting intelligent pen with local area network, storage medium and intelligent pen

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202110316725.1A Active CN113038473B (en) 2020-11-17 2020-11-17 Method for connecting local area network through handwriting recognition, intelligent pen and storage medium

Country Status (1)

Country Link
CN (2) CN113038473B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883322A (en) * 2012-09-28 2013-01-16 东莞宇龙通信科技有限公司 Mobile terminal and WiFi (wireless fidelity) connection method for same
JP2014116793A (en) * 2012-12-10 2014-06-26 Dainippon Printing Co Ltd Coded pattern reading device and program
CN105072141A (en) * 2015-07-02 2015-11-18 丰唐物联技术(深圳)有限公司 Intelligent equipment networking method and intelligent equipment
CN106973425A (en) * 2017-04-06 2017-07-21 上海掌门科技有限公司 A kind of method and apparatus for connecting WAP
CN111294062A (en) * 2020-01-19 2020-06-16 广州宏途教育网络科技有限公司 Intelligent information acquisition system and processing method
CN111553367A (en) * 2020-05-12 2020-08-18 郑鸿 WIFI configuration method and system based on image character recognition technology

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063508B (en) * 2011-01-10 2013-06-05 浙江大学 Generalized suffix tree based fuzzy auto-completion method for Chinese search engine
US20140123214A1 (en) * 2012-10-26 2014-05-01 Livescribe Inc. Establishing and Maintaining an Authenticated Connection Between a Smart Pen and a Computing Device
CN105974802B (en) * 2016-04-27 2017-09-29 腾讯科技(深圳)有限公司 A kind of methods, devices and systems of control smart machine
CN108629307A (en) * 2018-04-28 2018-10-09 北京奇禄管理咨询有限公司 A kind of data processing equipment of smart pen
CN209928396U (en) * 2019-03-27 2020-01-10 深圳棒棒帮科技有限公司 Intelligent pen, intelligent pen box and intelligent pen network system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883322A (en) * 2012-09-28 2013-01-16 东莞宇龙通信科技有限公司 Mobile terminal and WiFi (wireless fidelity) connection method for same
JP2014116793A (en) * 2012-12-10 2014-06-26 Dainippon Printing Co Ltd Coded pattern reading device and program
CN105072141A (en) * 2015-07-02 2015-11-18 丰唐物联技术(深圳)有限公司 Intelligent equipment networking method and intelligent equipment
CN106973425A (en) * 2017-04-06 2017-07-21 上海掌门科技有限公司 A kind of method and apparatus for connecting WAP
CN111294062A (en) * 2020-01-19 2020-06-16 广州宏途教育网络科技有限公司 Intelligent information acquisition system and processing method
CN111553367A (en) * 2020-05-12 2020-08-18 郑鸿 WIFI configuration method and system based on image character recognition technology

Also Published As

Publication number Publication date
CN112105018A (en) 2020-12-18
CN113038473B (en) 2023-08-25
CN113038473A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN111062312B (en) Gesture recognition method, gesture control device, medium and terminal equipment
US10664693B2 (en) Method, device, and system for adding contacts in social network
US7565013B2 (en) Character recognition method, method of processing correction history of character data, and character recognition system
CN103593642A (en) Card-information acquisition method and system
CN108781252B (en) Image shooting method and device
CN107622246B (en) Face recognition method and related product
US20060045389A1 (en) Automatic meter reading
CN114170468B (en) Text recognition method, storage medium and computer terminal
CN111401322A (en) Station entering and exiting identification method and device, terminal and storage medium
CN111753764A (en) Gesture recognition method of edge terminal based on attitude estimation
CN111191207A (en) Electronic file control method and device, computer equipment and storage medium
CN112418214A (en) Vehicle identification code identification method and device, electronic equipment and storage medium
CN110929244A (en) Digital identity identification method, device, equipment and storage medium
CN109753883A (en) Video locating method, device, storage medium and electronic equipment
CN111881740A (en) Face recognition method, face recognition device, electronic equipment and medium
CN111639630B (en) Operation modifying method and device
CN112105018B (en) Method and device for connecting intelligent pen with local area network, storage medium and intelligent pen
CN110658929B (en) Control method and device for intelligent pen
CN111967529A (en) Identification method, device, equipment and system
CN111709384A (en) AR gesture recognition method and device, electronic equipment and storage medium
KR101498546B1 (en) System and method for restoring digital documents
EP3627382A1 (en) Method for iris liveness detection and related product
CN112232282A (en) Gesture recognition method and device, storage medium and electronic equipment
CN111931148A (en) Image processing method and device and electronic equipment
JP5223739B2 (en) Portable character recognition device, character recognition program, and character recognition method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant