CN105654080B - Operation control method and device for stylus pen - Google Patents

Operation control method and device for stylus pen Download PDF

Info

Publication number
CN105654080B
CN105654080B CN201510992825.0A CN201510992825A CN105654080B CN 105654080 B CN105654080 B CN 105654080B CN 201510992825 A CN201510992825 A CN 201510992825A CN 105654080 B CN105654080 B CN 105654080B
Authority
CN
China
Prior art keywords
recording
request information
camera
detected
text data
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
CN201510992825.0A
Other languages
Chinese (zh)
Other versions
CN105654080A (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.)
TCL China Star Optoelectronics Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics 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 China Star Optoelectronics Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Technology Co Ltd
Priority to CN201510992825.0A priority Critical patent/CN105654080B/en
Publication of CN105654080A publication Critical patent/CN105654080A/en
Application granted granted Critical
Publication of CN105654080B publication Critical patent/CN105654080B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/14Image acquisition
    • G06V30/142Image acquisition using hand-held instruments; Constructional details of the instruments

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention is suitable for the technical field of handwriting pens and provides an operation control method and device of a handwriting pen. The method comprises the following steps: when the recording request information is detected, acquiring a writing image at a preset frequency through a camera, wherein the distance between the camera and a pen point of the writing pen is smaller than a first preset value; and performing character recognition on the written image, generating text data corresponding to the written image, and storing the text data. According to the invention, when the recording request information is detected, the writing image is acquired at the preset frequency through the camera, character recognition is carried out on the writing image, the text data corresponding to the writing image is generated, and the text data is stored, so that note taking is realized through the handwriting pen on the premise of not depending on the touch screen device, and the flexibility of the operation control of the handwriting pen is improved.

Description

Operation control method and device for stylus pen
Technical Field
The invention belongs to the technical field of handwriting pens, and particularly relates to an operation control method and device of a handwriting pen.
Background
Although mobile terminals such as mobile phones and tablet computers have become popular among primary and middle school students, in a classroom, a teacher generally does not allow students to use mobile phones or tablet computers. When a student uses a traditional pen to write notes in a classroom, the student generally cannot use the traditional pen for two purposes, so that the student cannot give attention to the lecture content of a teacher during note taking. The existing handwriting pen is used in combination with a mobile phone, a tablet personal computer or a handwriting board, and the handwriting pen is difficult to use in a classroom because students cannot use the mobile phone or the tablet personal computer during class.
Disclosure of Invention
In view of this, embodiments of the present invention provide an operation control method and apparatus for a stylus pen, so as to solve the problem that the operation control of the existing stylus pen is poor in flexibility.
In a first aspect, an embodiment of the present invention provides an operation control method for a stylus pen, including:
when the recording request information is detected, acquiring a writing image at a preset frequency through a camera, wherein the distance between the camera and a pen point of the writing pen is smaller than a first preset value;
and performing character recognition on the written image, generating text data corresponding to the written image, and storing the text data.
In a second aspect, an embodiment of the present invention provides an operation control apparatus for a stylus pen, including:
the image recording unit is used for acquiring a writing image at a preset frequency through a camera when the recording request information is detected, wherein the distance between the camera and a pen point of the writing pen is smaller than a first preset value;
and the text recognition and storage unit is used for performing character recognition on the written image, generating text data corresponding to the written image and storing the text data.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: according to the embodiment of the invention, when the recording request information is detected, the writing image is acquired by the camera at the preset frequency, character recognition is carried out on the writing image, the text data corresponding to the writing image is generated, and the text data is stored, so that note taking is realized by the handwriting pen on the premise of not depending on a touch screen device, and the flexibility of the operation control of the handwriting pen is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flowchart illustrating an implementation of a method for controlling an operation of a stylus according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an implementation of a method for controlling the operation of a stylus according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating an implementation of a method for controlling the operation of a stylus according to another embodiment of the present invention;
fig. 4 is a block diagram of an operation control device of a stylus pen according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further 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 intended to limit the invention.
Fig. 1 shows a flowchart of an implementation of an operation control method of a stylus pen according to an embodiment of the present invention, which is detailed as follows:
in step S101, when the recording request information is detected, a written image is obtained at a preset frequency by a camera, and a distance between the camera and a pen point of the stylus pen is smaller than a first preset value.
In the embodiment of the invention, the stylus is provided with the camera, the camera is arranged near a pen point of the stylus, and the distance between the camera and the pen point is smaller than a first preset value. Wherein the camera may be a high-speed camera. When the recording request information is detected, the camera continuously captures the written image at a preset frequency.
As an embodiment of the invention, the stylus pen comprises a first pen point and a second pen point, and the two pen points can be used in a switching mode. The first pen point is used for writing on the paper, and the second pen point is used for writing on the touch screen.
In step S102, character recognition is performed on the written image, text data corresponding to the written image is generated, and the text data is stored.
In the embodiment of the invention, after the writing image is acquired, character recognition is carried out on the writing image. For example, OCR (Optical Character Recognition) is performed on a writing image. After character recognition is carried out on the writing image, text data corresponding to the writing image is generated and stored, and therefore note taking is achieved through a handwriting pen on the premise that a touch screen device is not relied.
Fig. 2 is a flowchart illustrating an implementation of an operation control method of a stylus pen according to another embodiment of the present invention, and fig. 2 is a flowchart:
in step S201, when it is detected that the distance between the pen point of the stylus pen and the front object is smaller than a second preset value, generating recording request information;
in step S202, when the recording request information is detected, acquiring a writing image at a preset frequency by using a camera, where a distance between the camera and a pen point of the stylus pen is smaller than a first preset value;
in step S203, character recognition is performed on the written image, text data corresponding to the written image is generated, and the text data is stored.
As one embodiment of the invention, the distance between the pen point of the stylus pen and the front object is detected, and when the distance between the pen point and the front object is smaller than a second preset value, the recording request information is generated. The second preset value may be 1 cm, which is not limited herein.
Optionally, the camera is a high-speed infrared camera, and the distance between the pen point of the stylus and the front object is detected through an infrared transceiver in the camera.
Optionally, a proximity sensor is disposed near the tip of the stylus pen, and the distance between the tip of the stylus pen and the object in front is detected by the proximity sensor.
As another embodiment of the present invention, a first button is provided on the stylus pen, and recording request information is generated when the first button is detected to be pressed.
As another embodiment of the present invention, a pressure sensor is provided on a barrel of the stylus pen, and the recording request information is generated when a pressure value detected by the pressure sensor is greater than a third preset value.
Preferably, the method further comprises:
and when the distance between the pen point of the stylus pen and the front object is detected to be larger than or equal to a second preset value, generating recording stopping request information.
As an embodiment of the present invention, when stop recording request information is detected, acquisition of a writing image by a camera is stopped to reduce power consumption of a stylus pen.
As another embodiment of the present invention, when the duration of the generation of the stop recording request information reaches the fourth preset value, the acquisition of the written image by the camera is stopped.
Fig. 3 is a flowchart illustrating an implementation of an operation control method of a stylus pen according to another embodiment of the present invention, and fig. 3 is a flowchart:
in step S301, when the recording request information is detected, acquiring a writing image at a preset frequency by using a camera, where a distance between the camera and a pen point of the stylus pen is smaller than a first preset value;
in step S302, character recognition is performed on the written image, text data corresponding to the written image is generated, and the text data is stored;
in step S303, when the recording request information is detected, recording is performed, and a recording file is stored;
in step S304, the recording file and the text data are matched and stored according to the recording time corresponding to the recording file and the writing time corresponding to the text data.
As an embodiment of the present invention, the stylus pen further has a recording device that records and stores a recording file when recording request information is detected. In the embodiment of the invention, the sound recording file is provided with the time mark, the text data corresponding to the written image is also provided with the time mark, and the sound recording file and the text data are matched and stored according to the sound recording time corresponding to the sound recording file and the writing time corresponding to the text data, so that a user can review the sound recording file and the text data in the same time period.
As an embodiment of the present invention, after the matching and storing the sound recording file and the text data according to the sound recording time corresponding to the sound recording file and the writing time corresponding to the text data, the method further includes: and when a data transmission request is received, the sound recording file and the text data which are stored in a matched mode are sent to a specified terminal, so that a user can check the sound recording file and the text data through the specified terminal.
Preferably, before the recording is performed when the recording request information is detected, the method further includes:
when the recording request information is detected, generating recording request information; and/or
And generating recording request information when the preset button is detected to be pressed.
As an embodiment of the present invention, since it is often difficult for a user to use the recording device for one purpose when taking notes, and the user cannot give consideration to the lecture content of the teacher, when the recording request information is detected, the recording request information is generated, and the stylus pen is caused to record the recording while the user takes notes.
As another embodiment of the present invention, a preset button is provided on the stylus pen, and when the preset button is pressed, recording request information is generated; and generating the recording stop request information when the preset button pops up.
It should be understood that, in the embodiment of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.
According to the embodiment of the invention, when the recording request information is detected, the writing image is acquired by the camera at the preset frequency, character recognition is carried out on the writing image, the text data corresponding to the writing image is generated, and the text data is stored, so that note taking is realized by the handwriting pen on the premise of not depending on a touch screen device, and the flexibility of the operation control of the handwriting pen is improved.
Fig. 4 is a block diagram illustrating an operation control apparatus of a stylus pen according to an embodiment of the present invention. The device may be a stylus pen, or may be a device built in a stylus pen, and is not limited herein. The device may be used to run the operation control method of the stylus pen shown in fig. 1 to 3. For convenience of explanation, only portions related to the embodiments of the present invention are shown.
Referring to fig. 4, the apparatus includes:
an image recording unit 41, configured to, when the recording request information is detected, obtain a written image at a preset frequency through a camera, where a distance between the camera and a pen point of the stylus pen is smaller than a first preset value;
and a text recognition and storage unit 42, configured to perform character recognition on the writing image, generate text data corresponding to the writing image, and store the text data.
Preferably, the apparatus further comprises:
and a recording request information generating unit 43, configured to generate the recording request information when detecting that a distance between a pen tip of the stylus pen and a front object is smaller than a second preset value.
Preferably, the apparatus further comprises:
and a recording stop request information generating unit 44, configured to generate recording stop request information when it is detected that a distance between the pen tip of the stylus pen and the front object is greater than or equal to the second preset value.
Preferably, the apparatus further comprises:
a recording unit 45 for recording and storing a recording file when the recording request information is detected;
and the matching storage unit 46 is configured to perform matching storage on the sound recording file and the text data according to the recording time corresponding to the sound recording file and the writing time corresponding to the text data.
Preferably, the apparatus further comprises:
a first recording request information generating unit 47 for generating the recording request information when the recording request information is detected; and/or
A second recording request information generating unit 48 configured to generate the recording request information when a preset button press is detected.
According to the embodiment of the invention, when the recording request information is detected, the writing image is acquired by the camera at the preset frequency, character recognition is carried out on the writing image, the text data corresponding to the writing image is generated, and the text data is stored, so that note taking is realized by the handwriting pen on the premise of not depending on a touch screen device, and the flexibility of the operation control of the handwriting pen is improved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, and the indirect coupling or communication connection of the units may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. An operation control method of a stylus pen is characterized in that the stylus pen is provided with a camera, the distance between the camera and a pen point of the stylus pen is smaller than a first preset value, and the operation control method comprises the following steps:
when the recording request information is detected, acquiring a writing image at a preset frequency through the camera;
performing character recognition on the written image, generating text data corresponding to the written image, and storing the text data and writing time of the text data;
before the acquiring, by the camera, the written image at a preset frequency when the recording request information is detected, the method further includes:
when the distance between the pen point of the stylus pen and the front object is smaller than a second preset value, generating the recording request information;
wherein after acquiring the written image at a preset frequency through the camera when the recording request information is detected, the method further comprises:
when the distance between the pen point of the stylus pen and the front object is detected to be larger than or equal to the second preset value, generating recording stopping request information;
when the duration of generating the recording stopping request information reaches a fourth preset value, stopping acquiring a writing image through the camera;
the camera is an infrared camera, and the distance between a pen point of the stylus and a front object is detected through an infrared transceiver of the infrared camera.
2. The method of claim 1, wherein the method further comprises:
when the recording request information is detected, recording and storing a recording file;
and matching and storing the sound recording file and the text data according to the sound recording time corresponding to the sound recording file and the writing time corresponding to the text data.
3. The method of claim 2, wherein prior to said recording when the recording request information is detected, the method further comprises:
when the recording request information is detected, generating the recording request information; and/or
And when the preset button is detected to be pressed, generating the recording request information.
4. The utility model provides an operation controlling means of stylus, its characterized in that, the stylus is provided with the camera, the camera with the distance of the nib of stylus is less than first default, operation controlling means includes:
the image recording unit is used for acquiring a written image at a preset frequency through the camera when the recording request information is detected;
the text recognition and storage unit is used for performing character recognition on the written image, generating text data corresponding to the written image and storing the text data and writing time of the text data;
the device further comprises:
the recording request information generating unit is used for generating the recording request information when the distance between the pen point of the stylus pen and the front object is detected to be smaller than a second preset value;
wherein the apparatus further comprises:
the recording stopping request information generating unit is used for generating recording stopping request information when the fact that the distance between the pen point of the stylus pen and the front object is larger than or equal to the second preset value is detected; when the duration of the stop recording request information reaches a fourth preset value, stopping acquiring the writing image through the camera;
the camera is an infrared camera, and the recording request information generating unit and the recording stop request information generating unit detect the distance between the pen point of the stylus pen and the front object through an infrared transceiver of the infrared camera.
5. The apparatus of claim 4, wherein the apparatus further comprises:
the recording unit is used for recording and storing a recording file when the recording request information is detected;
and the matching storage unit is used for matching and storing the sound recording file and the text data according to the sound recording time corresponding to the sound recording file and the writing time corresponding to the text data.
6. The apparatus of claim 5, wherein the apparatus further comprises:
a first recording request information generating unit configured to generate the recording request information when the recording request information is detected; and/or
And the second recording request information generating unit is used for generating the recording request information when the pressing of a preset button is detected.
CN201510992825.0A 2015-12-22 2015-12-22 Operation control method and device for stylus pen Active CN105654080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510992825.0A CN105654080B (en) 2015-12-22 2015-12-22 Operation control method and device for stylus pen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510992825.0A CN105654080B (en) 2015-12-22 2015-12-22 Operation control method and device for stylus pen

Publications (2)

Publication Number Publication Date
CN105654080A CN105654080A (en) 2016-06-08
CN105654080B true CN105654080B (en) 2020-02-21

Family

ID=56476844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510992825.0A Active CN105654080B (en) 2015-12-22 2015-12-22 Operation control method and device for stylus pen

Country Status (1)

Country Link
CN (1) CN105654080B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107292784A (en) * 2017-06-27 2017-10-24 北京新国人智慧科技股份有限公司 Education Administration Information System based on digit optical dot matrix techniques
CN112689815A (en) * 2018-10-12 2021-04-20 深圳市柔宇科技股份有限公司 Stylus and input device
CN110069148B (en) * 2019-04-16 2022-03-15 深圳腾千里科技有限公司 Handwriting offset compensation method for handwriting pen, storage medium and device
CN110515474A (en) * 2019-08-23 2019-11-29 深圳市元征科技股份有限公司 A kind of intelligent handwriting pen, notes storage method and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201965553U (en) * 2011-02-25 2011-09-07 汉王科技股份有限公司 Stylus with recording function and portable electronic device
CN104376336A (en) * 2014-12-01 2015-02-25 深圳如果技术有限公司 Handwriting recognition method and handwriting pen
CN104820567A (en) * 2015-04-30 2015-08-05 三星电子(中国)研发中心 Method, equipment and system for controlling photographing with stylus
CN104899560A (en) * 2015-05-27 2015-09-09 努比亚技术有限公司 Character recognition method and stylus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7855732B2 (en) * 2006-09-05 2010-12-21 Pc Connection, Inc. Hand producer for background separated images
CN103246371B (en) * 2013-04-22 2016-08-03 深圳市大迈科技有限公司 A kind of wireless storage writing pencil and wireless storage hand writing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201965553U (en) * 2011-02-25 2011-09-07 汉王科技股份有限公司 Stylus with recording function and portable electronic device
CN104376336A (en) * 2014-12-01 2015-02-25 深圳如果技术有限公司 Handwriting recognition method and handwriting pen
CN104820567A (en) * 2015-04-30 2015-08-05 三星电子(中国)研发中心 Method, equipment and system for controlling photographing with stylus
CN104899560A (en) * 2015-05-27 2015-09-09 努比亚技术有限公司 Character recognition method and stylus

Also Published As

Publication number Publication date
CN105654080A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN102067153B (en) Multi-modal learning system
CN105654080B (en) Operation control method and device for stylus pen
US20130307829A1 (en) Haptic-acoustic pen
US9922014B2 (en) Method and apparatus for making contents through writing input on touch screen
CN104360764A (en) Writing system
CA2955822C (en) Phonepad
CN103971548A (en) Interactive device and interactive system with reading function
CN111782131A (en) Pen point implementation method, device, equipment and readable storage medium
CN104077065A (en) Method for displaying virtual keyboard by touch screen terminal and touch screen terminal
JP2014110061A (en) System and data providing method and electronic equipment
CN113485570B (en) Multi-user writing method, device, computer readable storage medium and terminal equipment
CN105320390A (en) Double handwriting recognition method and device based on electromagnetic white plate and electromagnetic pens
CN104020864A (en) Dual-mode pen
CN103888342A (en) Interaction method and device
CN101431550A (en) Information recording method, apparatus and mobile terminal
CN117406903A (en) Handwriting adjusting method, device, medium and equipment for touch screen
CN109254717B (en) Handwriting guide method and device for tablet, tablet and storage medium
CN105224233A (en) A kind of method of adjustment of person's handwriting color and system
CN102075628A (en) Method for setting system color depth and terminal
CN205263839U (en) Stylus pen
CN202677256U (en) Tablet computer
CN206489550U (en) Electromagnetic touch clipboard and hand writing display device
CN108388374A (en) A kind of information interacting method and electronic equipment
CN111078025A (en) Method and terminal equipment for determining correctness of input Chinese characters
CN110851071A (en) Handwriting data processing and acquiring method and device

Legal Events

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