Scanning area positioning method based on AI dictionary pen

By dividing and adjusting the scanning area in the dictionary pen, distinguishing and processing the distribution status of text contours in the scanned image, the problem of incomplete text contours interfering with recognition is solved, and the recognition efficiency and effect are improved.

CN116630982BActive Publication Date: 2024-09-03读书郎教育科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310547120.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-16
Publication Date
2024-09-03
Estimated Expiration
2043-05-16

AI Technical Summary

Technical Problem

When incomplete text outlines appear in scanned images, existing dictionary pens fail to effectively reduce their extraction and interfere with normal text recognition, affecting recognition efficiency and effect.

Method used

By acquiring the scanned image and dividing it into initial image segments and subdivided image segments, the width and height of the scanning area are adjusted based on the average height and trend status of the text outline, and the distribution status of the text outline is distinguished as complete or incomplete, and recognition processing is performed for different states. , reduce the extraction of incomplete text outlines.

Benefits of technology

It improves the character recognition efficiency and effect of the dictionary pen, reduces missed recognition situations, and ensures accurate recognition of complete character outlines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116630982B
    Figure CN116630982B
Patent Text Reader

Abstract

The present invention relates to the field of text recognition technology, and in particular to a scanning area positioning method based on an AI dictionary pen. The present invention determines an initial image segment by taking the starting end of a scanned image as a starting point, determines the distribution state of text contours in the scanned image based on the average height of each line of text contours in the initial image segment, sets a scanning area for extracting text contours in an incomplete distribution state, performs text contour recognition on the text contours extracted in the scanning area, determines the width of the scanning area based on the average height of the text contours of a sample line in the initial image segment, and adjusts the distribution height of the scanning area in each subdivided image segment based on the direction state of the text contours of the sample line in each subdivided image segment. The above method can reduce the extraction of incomplete text contours, avoid the incomplete text contours interfering with normal text contour recognition, and make the scanning area adapt to the direction of the text contour, ensure the text contour recognition effect, and reduce the situation of missed recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of text recognition, and in particular to a scanning area positioning method based on an AI dictionary pen. Background Art

[0002] The dictionary pen is a scanning electronic dictionary that uses technology and an embedded translation system to replace the key input of traditional electronic dictionaries with extremely fast scanning and word search, playing an important role in language and culture learning.

[0003] For example, the Chinese patent publication number: CN111783769A discloses the following content: the invention relates to the technical field of scanning translation pens, and discloses a camera calibration device and method for scanning translation pens and dictionary pens, including a bottom plate, an upper shell, a stepper motor, a control mainboard, a display screen, a speed adjustment knob, a rotating disk, a drive shaft, a fixed sleeve, a silicone sleeve, a support seat and a calibration paper, a clamping seat is convexly provided in the middle of the upper end wall of the upper shell, a slot is concavely provided in the upper end wall of the clamping seat, the silicone sleeve is embedded in the upper end of the slot, the support seat is arranged at the bottom of the slot, the fixed sleeve is fixed on the inner top wall of the upper shell, the rotating disk is rotatably arranged on the upper end of the fixed sleeve, the rotating disk is arranged at intervals directly below the slot, the upper end of the drive shaft is fixedly connected to the rotating disk, the drive shaft is connected to the stepper motor, and the calibration paper is arranged on the rotating disk. The technical solution of the invention can automatically and accurately calibrate the effective window boundary line of the calibration camera, and the operation is fast, which improves efficiency and product quality.

[0004] However, the prior art still has the following problems:

[0005] In the prior art, it is not considered that in the case where incomplete text contours appear in the scanned image generated by the dictionary pen, the incomplete text contours will also be included in the text contour content recognition judgment after the text contours are extracted, which will affect the judgment results. It is not considered to selectively extract the text contours in the image, reduce the extraction of incomplete text contours, and improve the efficiency and effect of text recognition by the dictionary pen. Summary of the invention

[0006] In order to solve the above problems, the present invention provides a scanning area positioning method based on an AI dictionary pen, which comprises:

[0007] Step S1, obtaining a scanned image of the dictionary pen in a single scanning process, and dividing the scanned image into an initial image segment and a plurality of subdivided image segments;

[0008] Step S2, determining the distribution state of the character contours in the scanned image based on the average height of each line of character contours in the initial image segment, wherein the distribution state includes a complete distribution state and an incomplete distribution state;

[0009] Step S3, when the distribution state of the character contours in the scanned image is a complete distribution state, extracting all the character contours in the initial image segment and each subdivided image segment, and performing character contour recognition on each character contour;

[0010] When the distribution state of the character contour in the scanned image is an incomplete distribution state, a scanning area is set to extract the character contour, and the character contour extracted in the scanning area is recognized, and the width of the scanning area is determined based on the average height of the character contour of the sample row in the initial image segment, the sample row is the character contour row with the largest average height, and the distribution height of the scanning area in each subdivided image segment is adjusted based on the direction state of the character contour of the sample row in each subdivided image segment, wherein,

[0011] The first adjustment method is to increase the distribution height of the scanning area in the subdivided image segment;

[0012] The second adjustment method is to reduce the distribution height of the scanning area in the subdivided image segment;

[0013] The distribution height is the height between the center line of the scanning area and the edge of the scanned image.

[0014] Furthermore, in step S2, the average height of each line of text contours in the initial image segment is determined, and the average heights of each line of text contours are compared, and the distribution state of the text contours in the scanned image is determined according to the comparison result, wherein:

[0015] If the comparison result satisfies the first difference condition, determining that the distribution state of the character outline in the scanned image is a complete distribution state;

[0016] If the comparison result satisfies the second difference condition, determining that the distribution state of the character outline in the scanned image is an incomplete distribution state;

[0017] The first difference condition is that the difference in average heights of any two lines of text contours in the initial image segment is less than a preset difference threshold, and the second difference condition is that the difference in average heights of any two lines of text contours is greater than or equal to the preset difference threshold.

[0018] Furthermore, in step S3, the width of the scanning area is determined based on the average height of the character outlines in the sample rows in the initial image segment, wherein:

[0019] The width of the scanning area is determined to be proportional to the average height of the text contours of the sample lines in the initial image segment.

[0020] Furthermore, in step S3, the first adjustment method needs to satisfy that the direction state of the character contour is an ascending direction state, and the second adjustment method needs to satisfy that the direction state of the character contour is a descending direction state.

[0021] Furthermore, the step S3 also includes constructing a sample line text contour change curve, wherein:

[0022] The text contour variation curve of the sample row is constructed by taking the order of each text contour in the sample row as the independent variable and the distance between the midpoint of each text contour and the edge of the scanned image as the dependent variable.

[0023] Furthermore, the step S3 further includes determining the direction of the character contour in the subdivided image segment based on the slope parameter of the character contour change curve of the sample line, wherein:

[0024] The slope parameter △K of the sample line text contour change curve is calculated according to formula (1):

[0025]

[0026] In formula (1), K(i) represents the distance between the midpoint of the i-th character contour and the edge of the scanned image, K(i+1) represents the distance between the midpoint of the i+1-th character contour and the edge of the scanned image, z represents the number of character contours in the sample row, and i represents an integer greater than 0;

[0027] And, determine the positive and negative conditions of the slope parameter,

[0028] If the slope parameter is greater than 0, it is determined that the trend state of the character contour in the scanned image is an ascending trend state;

[0029] If the slope parameter is less than 0, it is determined that the trend state of the character contour in the scanned image is a descending trend state.

[0030] Furthermore, in the step S3, the distribution height of the scanning area in the subdivided image segment is increased based on the slope parameter of the sample line text contour change curve in the first adjustment mode, wherein:

[0031] It is determined that the increase in the distribution height of the scanning area is in direct proportion to the absolute value of the slope parameter.

[0032] Furthermore, in step S3, the distribution height of the scanning area in the subdivided image segment is reduced based on the slope parameter of the sample line text contour change curve in the second adjustment mode, wherein:

[0033] It is determined that the reduction amount of the distribution height of the scanning area is directly proportional to the absolute value of the slope parameter.

[0034] Furthermore, in step S3, the initial distribution height of the scanning area is determined based on the width of the scanned image, wherein the distribution height of the scanning area is half of the width of the scanning area.

[0035] Furthermore, in step S3, the character contour is recognized, wherein:

[0036] The text contour is matched with sample text contours in a text contour sample database, and the text content represented by the text contour is identified based on the matching result.

[0037] Compared with the prior art, the present invention determines the initial image segment by taking the starting end of the scanned image as the starting point, determines the distribution state of the character contour in the scanned image based on the average height of each line of character contour in the initial image segment, sets a scanning area for extracting the character contour in the incomplete distribution state, performs character contour recognition on the character contour extracted in the scanning area, determines the width of the scanning area based on the average height of the character contour of the sample row in the initial image segment, and adjusts the distribution height of the scanning area in each subdivided image segment based on the direction state of the character contour of the sample row in each subdivided image segment. The above method can reduce the extraction of incomplete character contours, avoid the incomplete character contours interfering with normal character contour recognition, and make the scanning area adapt to the direction of the character contour, ensure the character contour recognition effect, and reduce the situation of missed recognition.

[0038] In particular, in the present invention, the distribution state of the text contour in the scanned image is determined based on the average height of the text contours of each line in the initial image segment. In actual situations, there is a large difference between the average height of the incomplete text contour and the average height of the complete text contour. The average height of the text contours of each line can be used to quickly identify the incomplete text contour while occupying less computing power, which facilitates subsequent corresponding processing for different distribution states, reduces the extraction of the incomplete text contour, avoids the incomplete text contour interfering with the normal text contour recognition, and improves the recognition effect of the dictionary pen.

[0039] In particular, in the present invention, when the distribution state of the text contour in the scanned image is an incomplete distribution state, the width of the scanning area is determined based on the average height of the text contour in the sample row in the initial image segment. In actual situations, the text contour in the sample row is usually a complete text contour. The width of the extraction area is determined on this basis. On the premise of ensuring the recognition of the complete text contour, it can avoid the extraction area being too wide to identify the incomplete text contour distributed on the upper and lower sides of the sample row, reduce the extraction of the incomplete text contour, avoid the incomplete text contour interfering with the normal text contour recognition, and improve the effect of the dictionary pen in text recognition.

[0040] In particular, in the present invention, the distribution height of the scanning area in each subdivided image segment is adjusted according to the direction state of the text contour of the sample row in each subdivided image segment. In actual situations, the dictionary pen is used manually, and it is impossible to ensure that the scanned image is an ideal straight line during the scanning process. In addition, the text to be scanned may also be offset when it is handwritten. The offset will further lead to incomplete images in the scanned image. Therefore, the present invention adaptively adjusts the distribution height of the extraction area based on the direction state of the text contour, so that the extraction area can adapt to the direction state of the text contour, which is enough to reduce the extraction of incomplete text contours, ensure the text contour recognition effect, and reduce missed recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of the steps of a scanning area positioning method based on an AI dictionary pen according to an embodiment of the invention;

[0042] Figure 2 A schematic diagram of the scanning area structure of an embodiment of the invention;

[0043] Figure 3 A schematic diagram of the distribution height structure of the scanning area of ​​an embodiment of the invention;

[0044] In the figure, 1: scanned image, 2: scanned area. DETAILED DESCRIPTION

[0045] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0046] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0047] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0048] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0049] See also Figure 1 , Figure 2 as well as Figure 3 As shown, it is a schematic diagram of the steps of the scanning area positioning method based on the AI ​​dictionary pen, a schematic diagram of the scanning area structure, and a schematic diagram of the distribution height structure of the scanning area according to an embodiment of the present invention. The scanning area positioning method based on the AI ​​dictionary pen of the present invention includes:

[0050] Step S1, obtaining a scanned image 1 of the dictionary pen in a single scanning process, and dividing the scanned image 1 into an initial image segment and a plurality of subdivided image segments;

[0051] Step S2, determining the distribution state of the character contours in the scanned image 1 based on the average height of the character contours of each line in the initial image segment, wherein the distribution state includes a complete distribution state and an incomplete distribution state;

[0052] Step S3, when the distribution state of the character contours in the scanned image 1 is a complete distribution state, extract all the character contours in the initial image segment and each subdivided image segment, and perform character contour recognition on each character contour;

[0053] When the distribution state of the character contour in the scanned image 1 is an incomplete distribution state, the scanning area 2 is set to extract the character contour, and the character contour extracted in the scanning area 2 is recognized, and the width of the scanning area 2 is determined based on the average height of the character contour of the sample row in the initial image segment, the sample row is the character contour row with the largest average height, and the distribution height of the scanning area 2 in each subdivided image segment is adjusted based on the direction state of the character contour of the sample row in each subdivided image segment, wherein,

[0054] The first adjustment method is to increase the distribution height of the scanning area 2 in the subdivided image segment;

[0055] The second adjustment method is to reduce the distribution height of the scanning area 2 in the subdivided image segment;

[0056] The distribution height is the height between the center line of the scanning area 2 and the edge of the scanning image 1 .

[0057] Specifically, the specific method of recognizing the outline of text in the image in the present invention is not limited. It can be a pre-trained model that can recognize the outline of text. The relevant recognition algorithms and models are existing mature technologies and will not be described in detail here.

[0058] Specifically, the present invention does not limit the specific structure of the dictionary pen. The dictionary pen can be a dictionary pen with a scanning head. The scanning head can be an image acquisition unit to acquire images of the scanning area. The relevant structure is relatively mature and will not be repeated here.

[0059] Specifically, in step S2, the average height of each line of text contours in the initial image segment is determined, and the average heights of each line of text contours are compared, and the distribution state of the text contours in the scanned image 1 is determined according to the comparison result, wherein:

[0060] If the comparison result satisfies the first difference condition, it is determined that the distribution state of the character contour in the scanned image 1 is a complete distribution state;

[0061] If the comparison result satisfies the second difference condition, it is determined that the distribution state of the character contour in the scanned image 1 is an incomplete distribution state;

[0062] The first difference condition is that the difference in average heights of any two lines of text contours in the initial image segment is less than a preset difference threshold, and the second difference condition is that the difference in average heights of any two lines of text contours is greater than or equal to the preset difference threshold.

[0063] The preset difference threshold is determined based on the average height of the outline of each line of text, and its purpose is to characterize the difference. In order to avoid excessive differences while ensuring distinction, technical personnel in this field can set it in the interval [0.3d, 0.5d], where d represents the average height of the outline of each line of text.

[0064] Specifically, in the present invention, the distribution state of the text contour in the scanned image 1 is determined based on the average height of the text contours of each line in the initial image segment. In actual situations, there is a large difference between the average height of the incomplete text contour and the average height of the complete text contour. The average height of the text contours of each line can be used to quickly identify the incomplete text contour while occupying less computing power, which facilitates subsequent corresponding processing for different distribution states, reduces the extraction of the incomplete text contour, avoids the incomplete text contour interfering with the normal text contour recognition, and improves the recognition effect of the dictionary pen.

[0065] Specifically, in step S3, the width of the scanning area 2 is determined based on the average height of the character outlines in the sample rows in the initial image segment, wherein:

[0066] The width of the scanning area 2 is determined to be in direct proportion to the average height of the text contours of the sample rows in the initial image segment.

[0067] To ensure that the scanning area 2 can scan the complete sample row and avoid the area being too wide to scan the surrounding residual text contours, in this embodiment, the width of the scanning area 2 is set to Dh=1.2H, where H represents the average height of the text contours in the sample row.

[0068] Specifically, in the present invention, when the distribution state of the text contour in the scanned image 1 is an incomplete distribution state, the width of the scanning area 2 is determined based on the average height of the text contour in the sample row in the initial image segment. In actual situations, the text contour in the sample row is usually a complete text contour. The width of the extraction area is determined on this basis. On the premise of ensuring the recognition of the complete text contour, it can avoid the extraction area being too wide to identify the incomplete text contour distributed on the upper and lower sides of the sample row, reduce the extraction of the incomplete text contour, avoid the incomplete text contour interfering with the normal text contour recognition, and improve the effect of the dictionary pen in text recognition.

[0069] Specifically, in step S3, the first adjustment method needs to satisfy that the direction state of the character contour is an ascending direction state, and the second adjustment method needs to satisfy that the direction state of the character contour is a descending direction state.

[0070] Specifically, the step S3 also includes constructing a sample line text contour change curve, wherein:

[0071] The text contour variation curve of the sample row is constructed by taking the order of each text contour in the sample row as the independent variable and the distance between the midpoint of each text contour and the edge of the scanned image 1 as the dependent variable.

[0072] Specifically, the step S3 further includes determining the direction of the character contour in the subdivided image segment based on the slope parameter of the character contour change curve of the sample line, wherein:

[0073] The slope parameter △K of the sample line text contour change curve is calculated according to formula (1):

[0074]

[0075] In formula (1), K(i) represents the distance between the midpoint of the i-th character contour and the edge of the scanned image 1, K(i+1) represents the distance between the midpoint of the i+1-th character contour and the edge of the scanned image 1, z represents the number of character contours in the sample row, and i represents an integer greater than 0;

[0076] And, determine the positive and negative conditions of the slope parameter,

[0077] If the slope parameter is greater than 0, it is determined that the trend state of the character contour in the scanned image 1 is an ascending trend state;

[0078] If the slope parameter is less than 0, it is determined that the trend state of the character contour in the scanned image 1 is a descending trend state.

[0079] For more details, please refer to Figure 3 As shown, in step S3, the distribution height of the scanning area 2 in the subdivided image segment is increased based on the slope parameter of the sample line text contour change curve in the first adjustment mode, wherein:

[0080] It is determined that the increase in the distribution height of the scanning area 2 is in direct proportion to the absolute value of the slope parameter.

[0081] In this embodiment, the increase amount Hd=Hf×|ΔK| / H is set, where Hf represents the initial distribution height of the scanning area 2, and H represents the average width of the sample line text contour.

[0082] For more details, please refer to Figure 3 As shown, in step S3, the distribution height of the scanning area 2 in the subdivided image segment is reduced based on the slope parameter of the sample line text contour change curve in the second adjustment mode, wherein:

[0083] It is determined that the reduction amount of the distribution height of the scanning area 2 is in direct proportion to the absolute value of the slope parameter.

[0084] In this embodiment, the reduction amount Hc=Hf×|ΔK| / H is set, where Hf represents the initial distribution height of the scanning area 2, and H represents the average width of the sample line text contour.

[0085] Specifically, in the present invention, the distribution height of the scanning area 2 in each subdivided image segment is adjusted according to the direction of the text contour of the sample row in each subdivided image segment. In actual situations, the dictionary pen is used manually, and during the scanning process, it cannot be guaranteed that the scanned image 1 is an ideal straight line, and the text to be scanned may also be offset when handwritten. The offset will further lead to an incomplete image in the scanned image 1. Therefore, the present invention adaptively adjusts the distribution height of the extraction area based on the direction of the text contour, so that the extraction area can adapt to the direction of the text contour, which is enough to reduce the extraction of incomplete text contours, ensure the text contour recognition effect, and reduce missed recognition.

[0086] Specifically, in step S3 , the initial distribution height of the scanning area 2 is determined based on the width of the scanning image 1 , wherein the initial distribution height of the scanning area 2 is half of the width of the scanning area 2 .

[0087] Specifically, in step S3, text contour recognition is performed on the text contour, wherein the text contour is matched with sample text contours in a text contour sample database, and the text content represented by the text contour is identified based on the matching result, wherein each sample text contour is associated with the represented text content, and if the text contour similarity and the sample text contour similarity exceed a similarity threshold, it is determined that the text contour matches the sample text contour, and further, it is determined that the content represented by the text contour is the content associated with the sample text contour.

[0088] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A scanning area positioning method based on an AI dictionary pen, characterized in that: include: Step S1, obtaining a scanned image of the dictionary pen in a single scanning process, and dividing the scanned image into an initial image segment and a plurality of subdivided image segments; Step S2, determining the distribution state of the character contours in the scanned image based on the average height of each line of character contours in the initial image segment, wherein the distribution state includes a complete distribution state and an incomplete distribution state; Step S3, when the distribution state of the character contours in the scanned image is a complete distribution state, extracting all the character contours in the initial image segment and each subdivided image segment, and performing character contour recognition on each character contour; When the distribution state of the character contour in the scanned image is an incomplete distribution state, a scanning area is set to extract the character contour, and the character contour extracted in the scanning area is recognized, and the width of the scanning area is determined based on the average height of the character contour of the sample row in the initial image segment, the sample row is the character contour row with the largest average height, and the distribution height of the scanning area in each subdivided image segment is adjusted based on the direction state of the character contour of the sample row in each subdivided image segment, wherein, The first adjustment method is to increase the distribution height of the scanning area in the subdivided image segment; The second adjustment method is to reduce the distribution height of the scanning area in the subdivided image segment; The distribution height is the height between the center line of the scanning area and the edge of the scanned image; In step S2, the average height of each line of text contours in the initial image segment is determined, and the average heights of each line of text contours are compared, and the distribution state of the text contours in the scanned image is determined according to the comparison result, wherein: If the comparison result satisfies the first difference condition, determining that the distribution state of the character outline in the scanned image is a complete distribution state; If the comparison result satisfies the second difference condition, determining that the distribution state of the character outline in the scanned image is an incomplete distribution state; The first difference condition is that the difference in average heights of any two lines of text contours in the initial image segment is less than a preset difference threshold, and the second difference condition is that the difference in average heights of any two lines of text contours is greater than or equal to the preset difference threshold; In step S3, the width of the scanning area is determined based on the average height of the character outlines in the sample rows in the initial image segment, wherein: Determine that the width of the scanning area is proportional to the average height of the text outlines of the sample lines in the initial image segment; In step S3, the first adjustment method needs to satisfy that the direction state of the character outline is an ascending direction state, and the second adjustment method needs to satisfy that the direction state of the character outline is a descending direction state; The step S3 also includes constructing a sample line text contour change curve, wherein: The text contour variation curve of the sample row is constructed by taking the order of each text contour in the sample row as an independent variable and the distance between the midpoint of each text contour and the edge of the scanned image as a dependent variable; The step S3 also includes determining the direction of the character contour in the subdivided image segment based on the slope parameter of the character contour change curve of the sample line, wherein: The slope parameter △K of the sample line text contour change curve is calculated according to formula (1): In formula (1), K(i) represents the distance between the midpoint of the i-th character contour and the edge of the scanned image, K(i+1) represents the distance between the midpoint of the i+1-th character contour and the edge of the scanned image, z represents the number of character contours in the sample row, and i represents an integer greater than 0; And, determine the positive and negative conditions of the slope parameter, If the slope parameter is greater than 0, it is determined that the trend state of the character contour in the scanned image is an ascending trend state; If the slope parameter is less than 0, it is determined that the trend state of the character contour in the scanned image is a descending trend state.

2. The scanning area positioning method based on the AI ​​dictionary pen according to claim 1 is characterized in that: In step S3, the distribution height of the scanning area in the subdivided image segment is increased based on the slope parameter of the sample line text contour change curve in the first adjustment mode, wherein: It is determined that the increase in the distribution height of the scanning area is in direct proportion to the absolute value of the slope parameter.

3. The scanning area positioning method based on the AI ​​dictionary pen according to claim 2 is characterized in that: In step S3, the distribution height of the scanning area in the subdivided image segment is reduced based on the slope parameter of the sample line text contour change curve in the second adjustment mode, wherein: It is determined that the reduction amount of the distribution height of the scanning area is directly proportional to the absolute value of the slope parameter.

4. The scanning area positioning method based on the AI ​​dictionary pen according to claim 1 is characterized in that: In step S3, the character contour is recognized, wherein: The text contour is matched with sample text contours in a text contour sample database, and the text content represented by the text contour is identified based on the matching result.