CN-121999497-A - Dictionary pen inclination angle determination method, dictionary pen, storage medium, and electronic device
Abstract
The application relates to a dictionary pen inclination angle determining method, a dictionary pen, a storage medium and an electronic device. The dictionary pen comprises a camera, a laser emitter and a processor, wherein the camera is arranged on one side of a pen point of the dictionary pen and is used for collecting target images, the laser emitter is arranged on one side of the pen point of the dictionary pen and is used for emitting laser outwards from one side of the pen point, a first included angle exists between the emitting angle of the laser and the central axis of the camera, the collected target images comprise contact patterns formed by the fact that the laser irradiates an obstacle in front of the dictionary pen, and the processor is used for determining the inclination angle of a designated part of the dictionary pen relative to the plane of the obstacle according to the target images. The application solves the technical problem that the inclination angle of the dictionary pen is inaccurate by using the movable telescopic leg and the pressure sensing element of the dictionary pen in the prior art.
Inventors
- WU WANGYANG
- GAO YANG
- WU YINGHUI
- Chai Gailan
Assignees
- 网易有道(杭州)智能科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241106
Claims (10)
- 1. A dictionary pen, comprising: the camera is arranged at one side of the pen point of the dictionary pen and is used for collecting target images; the laser emitter is arranged on one side of the pen point of the dictionary pen and is used for emitting laser outwards from one side of the pen point, a first included angle exists between the emitting angle of the laser and the central axis of the camera, and the collected target image comprises a contact pattern formed by the laser irradiating on an obstacle in front of the dictionary pen; And the processor is used for determining the inclination angle of the designated part of the dictionary pen relative to the plane of the obstacle according to the target image.
- 2. The dictionary pen as claimed in claim 1, wherein the specified portion is a body of the dictionary pen, and the determining an inclination angle of the specified portion of the dictionary pen with respect to a plane of the obstacle from the target image includes: Determining a position of the contact pattern on the target image; and determining a first inclination angle formed by the pen body and the plane of the obstacle according to the position.
- 3. The dictionary pen of claim 2, wherein determining a first tilt angle of the pen body from a plane of the obstacle based on the position comprises: Determining a second included angle between a perpendicular line of the central axis of the camera on the obstacle and the contact pattern under the current condition of the dictionary pen according to the position of the contact pattern in the target image; And determining the first inclination angle formed by the pen body and the plane of the obstacle under the current condition according to the first included angle and the second included angle of the laser and the central axis of the camera under the condition that the dictionary pen is perpendicular to the plane of the obstacle.
- 4. A dictionary pen as claimed in claim 3, wherein said determining the first inclination angle of the dictionary pen with respect to the plane of the body and the obstacle in the present case based on the first and second angles comprises: Determining the delta by utilizing an objective function of the delta on beta and gamma, wherein the delta is the first inclination angle, the beta is the first included angle, and the gamma is the second included angle.
- 5. The dictionary pen of claim 2, wherein determining a first tilt angle of the pen body from a plane of the obstacle based on the position comprises: Determining a shape of the contact pattern according to the position; Comparing the contact pattern with a test pattern to determine the first inclination angle formed by the pen body of the dictionary pen and the plane of the obstacle, wherein the test pattern is formed by the laser and the test plane under different inclination angles of the pen body of the dictionary pen relative to the test plane.
- 6. The dictionary pen of claim 1, wherein the designated part is a scanning port of the dictionary pen, the two laser transmitters are respectively located at two sides of the camera, the emitted laser forms the first included angle with a central axis of the camera, and is axisymmetric with the central axis, and the contact pattern is two inclined angles of the designated part of the dictionary pen relative to a plane of the obstacle according to the target image, wherein the determining of the inclined angle of the designated part of the dictionary pen comprises: And determining a second inclination angle formed by the plane of the scanning port and the plane of the obstacle according to the distance between the two contact patterns.
- 7. A method for determining an inclination angle of a dictionary pen, comprising: Collecting a target image through a camera arranged at one side of a pen point of the dictionary pen; The method comprises the steps that laser is emitted outwards from one side of a pen point through a laser emitter arranged on one side of the pen point of the dictionary pen, a first included angle exists between the emitting angle of the laser and the central axis of the camera, and the collected target image comprises a contact pattern formed by the laser irradiating on an obstacle in front of the dictionary pen; And determining the inclination angle of the designated part of the dictionary pen relative to the plane of the obstacle according to the target image.
- 8. An inclination angle determining apparatus of a dictionary pen, comprising: The acquisition module is used for acquiring a target image through a camera arranged at one side of a pen point of the dictionary pen; The transmitting module is used for transmitting laser outwards from the pen point side through a laser transmitter arranged on the pen point side of the dictionary pen, wherein a first included angle exists between the transmitting angle of the laser and the central axis of the camera, and the acquired target image comprises a contact pattern formed by the laser irradiating on an obstacle in front of the dictionary pen; And the determining module is used for determining the inclination angle of the designated part of the dictionary pen relative to the plane of the obstacle according to the target image.
- 9. An electronic device comprising at least one communication interface, at least one bus connected to the at least one communication interface, at least one processor connected to the at least one bus, at least one memory connected to the at least one bus, wherein the memory has a computer program stored therein, which when executed by the processor controls the dictionary pen of any one of the preceding claims 1 to 6 of the present application or performs the method of determining the tilt angle of the dictionary pen of claim 7.
- 10. A computer-readable storage medium storing computer-executable instructions for controlling the dictionary pen of any one of the above claims 1 to 6 of the present application or performing the inclination angle determination method of the dictionary pen of claim 7.
Description
Dictionary pen inclination angle determination method, dictionary pen, storage medium, and electronic device Technical Field The present application relates to the field of dictionary pens, and in particular, to a method for determining an inclination angle of a dictionary pen, a storage medium, and an electronic device. Background With the development of the internet, the dictionary pens of the related art can scan text from books on a desktop or perform other functions by being held by a user. In the prior art, the inclination angle of the dictionary pen with the desktop or the paper surface is judged by using a telescopic movable foot or a pressure sensing element on the dictionary pen. And because the dictionary pen is knocked, dropped, etc., the movable telescopic leg and the pressure sensing element are easily damaged or the sensitivity is reduced. In this case, the inclination angle judgment of the dictionary pen is affected. Disclosure of Invention The application provides a dictionary pen inclination angle determining method, a dictionary pen, a storage medium and electronic equipment, and aims to solve the technical problem that in the prior art, a movable telescopic leg and a pressure sensing element of the dictionary pen are used for judging inaccurate inclination angle of the dictionary pen. The application provides a dictionary pen, which comprises a camera, a laser emitter, a processor and a processor, wherein the camera is arranged on one side of a pen head of the dictionary pen and is used for collecting target images, the laser emitter is arranged on one side of the pen head of the dictionary pen and is used for emitting laser outwards from one side of the pen head, a first included angle exists between the emitting angle of the laser and the central axis of the camera, the collected target images comprise contact patterns formed by the laser irradiated on an obstacle in front of the dictionary pen, and the processor is used for determining the inclination angle of a designated part of the dictionary pen relative to the plane of the obstacle according to the target images. As an alternative example, the designated part is a scanning port of the dictionary pen, and determining the inclination angle of the designated part of the dictionary pen relative to the plane of the obstacle according to the target image includes determining a second inclination angle formed by the scanning port plane and the plane of the obstacle according to the length of the contact pattern on the target image. As an alternative example, after determining the inclination angle of the designated part of the dictionary pen with respect to the plane of the obstacle in the present case according to the target image, it further includes determining an alarm message according to the designated part and the inclination angle, or correcting the target image according to the designated part and the inclination angle. As an optional example, the determining the alarm message according to the designated position and the inclination angle includes determining that the alarm message includes at least a first alarm message when the designated position is a pen body, where the first alarm message is used for prompting adjustment of a first inclination angle of the pen body of the dictionary pen relative to the plane of the obstacle, and determining that the alarm message includes at least a second alarm message when the designated position is a scanning port, where the second alarm message is used for prompting adjustment of a second inclination angle of a straight line where a length of the scanning port of the dictionary pen is located relative to the plane of the obstacle. The application provides a method for determining the inclination angle of a dictionary pen, which comprises the steps of collecting a target image through a camera arranged on one side of a pen head of the dictionary pen, emitting laser outwards from one side of the pen head through a laser emitter arranged on one side of the pen head of the dictionary pen, wherein a first included angle exists between the emitting angle of the laser and the central axis of the camera, the collected target image comprises a contact pattern formed by the irradiation of the laser on an obstacle in front of the dictionary pen, and determining the inclination angle of a designated part of the dictionary pen relative to the plane of the obstacle according to the target image. The application provides a device for determining the inclination angle of a dictionary pen, which comprises an acquisition module, a transmitting module and a determining module, wherein the acquisition module is used for acquiring a target image through a camera arranged on one side of a pen point of the dictionary pen, the transmitting module is used for transmitting laser outwards from one side of the pen point through a laser transmitter arranged on one side of the pen point of the dictionary pen, a fir