An instrument reading word segmentation identification and automatic carry processing method and system with transition state marks

By obtaining the character category and bounding box coordinates of the mechanical roller instrument through the object detection model, and performing word segmentation according to the word segmentation order of transition state number priority, the carry error caused by the transition state mark in the reading of the mechanical roller instrument is solved, and the accurate recognition and consistency of the reading are achieved.

CN123182203APending Publication Date: 2026-11-27NINGBO DONGHAI GRP CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611076767.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-20
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies lack a structured word segmentation and segmented carry processing mechanism for transition state markers when recognizing readings of mechanical roller instruments. This leads to automatic carry errors caused by continuous transition state numbers and separator characters, affecting the accuracy of the readings.

Method used

Character categories and bounding box coordinates are obtained through an object detection model. The original reading text is generated by sorting the bounding box coordinates. Word segmentation is performed according to the matching order of transitional numbers over ordinary numbers. Continuous transitional numbers are identified as a whole and carried over is performed. Separating word segmentation is used to isolate the segments to be carried over, avoiding cross-segment carry over errors.

Benefits of technology

It reduces reading splicing deviation, ensures the accuracy and consistency of readings, avoids carry errors caused by incorrect splitting or independent processing of transitional digits, and improves the accuracy of instrument reading recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182203A_ABST
    Figure CN123182203A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, and discloses a meter reading word segmentation identification and automatic carry processing method and system with a transition state mark. The method obtains a meter image and inputs the meter image into a target detection model to obtain character detection results containing character categories and boundary box coordinates; original reading text is generated by sorting the boundary box coordinates; word segmentation is carried out according to a matching order in which transition state numbers are prior to common numbers, and segmentation results containing common numbers, transition state numbers, separation characters and illegal characters are obtained; a to-be-carried segment is determined according to the segmentation results, continuous transition state number segmentation is identified from right to left in the segment, and carry processing is carried out on the continuous transition state number segmentation as a whole to obtain a standard reading string. The scheme can reduce reading errors caused by transition state splitting, cross-separation carry transfer and continuous transition state bit-by-bit processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, specifically to a method and system for word segmentation and automatic carry processing of instrument readings with transition state markers. Background Technology

[0002] In the metering fields of water, electricity, and gas, mechanical roller meters are still widely used. Existing automatic meter reading methods typically acquire meter images through image acquisition equipment, then use character recognition models to identify the numerical characters in the meter window, and finally assemble the characters according to their position order to obtain the meter reading.

[0003] When a carry occurs between adjacent digits in a mechanical roller-type instrument, the digit roller displays a transitional state, indicating the shift from the current digit to the next. For this type of transitional display, directly outputting the reading based solely on the ordinary digit recognition result can easily lead to reading errors at the carry threshold. Although existing technology can recognize ordinary digits, incomplete digits, or digits in a carry state, the output of the recognition model usually still needs to be further converted into a calculable reading text, and carry corrections are performed based on the ordinary digits, transitional digits, and separator characters within the reading text.

[0004] However, existing reading processing methods typically focus on recognizing individual digits or determining individual carry states, lacking structured word segmentation and segmented carry processing mechanisms for reading text containing transition state markers. Especially when reading text contains consecutive transition state digits, separator characters, or terminal transition state digits, without prioritizing transition state word segmentation, isolating separator boundaries, and processing consecutive transition state carry states as a whole, it is easy for transition state digits to be incorrectly split, carry states on both sides of separator characters to interfere with each other, or consecutive transition state digits to be processed independently, resulting in a discrepancy between the final output standard reading and the actual carry state of the mechanical roller.

[0005] Therefore, how to perform structured word segmentation and segmented carry processing on the instrument reading text containing transition state markers output by target detection, in order to avoid automatic carry errors caused by continuous transition states, separator characters and end states, has become an urgent technical problem to be solved in the automatic reading recognition of mechanical roller instruments. Summary of the Invention

[0006] To address the shortcomings of existing technologies, the present invention aims to provide a method and system for word segmentation and automatic carry-over processing of instrument readings with transition state markers. To achieve the above objective, the present invention adopts the following technical solution: In a first aspect, the present invention provides a method for word segmentation and automatic carry processing of instrument readings with transition state markers, comprising: Acquire an instrument image, input the instrument image into a target detection model, and obtain character detection results. The character detection results include character categories and bounding box coordinates. The character categories include ordinary digit categories and transitional digit categories. The character detection results are sorted according to the bounding box coordinates, and the original reading text is generated according to the sorted character categories; The original reading text is segmented according to the matching order of transition state digits taking precedence over ordinary digits, and the segmentation results are obtained; Based on the word segmentation results, the segment to be carried is determined. Within the segment to be carried, continuous transitional digit segments are identified from right to left, and the continuous transitional digit segments are treated as a whole and carried over to obtain the standard reading string.

[0007] Preferably, the original reading text is segmented according to the matching order of transitional digits over ordinary digits, including scanning character by character starting from the first character of the original reading text, and performing transitional digit matching, ordinary digit matching, separator character matching and illegal character matching in sequence at the same scanning position; after each successful match, the scanning position is moved according to the length of the successfully matched character.

[0008] Preferably, the transitional digit matching is used to generate transitional digit segmentation, the ordinary digit matching is used to generate ordinary digit segmentation, the separator character matching is used to generate separator segmentation, and the illegal character matching is used to generate illegal character segmentation; the transitional digit segmentation, the ordinary digit segmentation, the separator segmentation, and the illegal character segmentation together constitute the segmentation result.

[0009] Preferably, determining the segment to be carried based on the word segmentation result includes determining whether the word segmentation result contains a separating word; if the word segmentation result contains a separating word, then the word segmentation result is divided into multiple segments to be carried based on the separating word as the boundary, and the carry value of any segment to be carried is prohibited from passing through the separating word to the adjacent segment to be carried; if the word segmentation result does not contain a separating word, then the word segmentation result as a whole is determined as a segment to be carried.

[0010] Preferably, identifying continuous transitional digit segmentation from right to left within the segment to be carried includes scanning from the right end to the left end of the segment to be carried; when a transitional digit segmentation is scanned, other transitional digit segmentation adjacent to that transitional digit segmentation is identified to the left, and multiple consecutively adjacent transitional digit segmentation is determined as a continuous transitional digit sequence.

[0011] Preferably, the continuous transition state digit segmentation is treated as a whole and carried over, including restoring the continuous transition state digit sequence to a basic digit string, adding one to the basic digit string and superimposing the carry value on the right to obtain the sequence carry result; truncating the lower digit of the sequence carry result according to the number of digits of the continuous transition state digit sequence as the current result, and using the higher digit of the sequence carry result as the carry value passed to the left.

[0012] Preferably, when a regular number segment is scanned from right to left within the segment to be carried, the numerical value of the regular number segment is added to the carry value on the right to obtain the current sum; the remainder of the current sum divided by ten is taken as the original result of the regular number segment, and the quotient of the current sum divided by ten is taken as the carry value to be passed to the left.

[0013] Preferably, when the word segmentation result does not contain separator words, the rightmost transitional numeric word and the rightmost ordinary numeric word located to the right of the rightmost transitional numeric word are determined; if the rightmost ordinary numeric word is empty, all numeric words are restored to whole numbers and the whole numbers are incremented by one and then output in their original order; if all the rightmost ordinary numeric words are zero, carry-over processing from right to left is performed; if there are non-zero numbers in the rightmost ordinary numeric words, the transitional markers are removed and the words are output in their original order.

[0014] Preferably, before determining the segment to be carried over based on the segmentation results, the segmentation results are traversed; if the segmentation results contain illegal character segments, the original reading text is used as the output result; if the segmentation results do not contain transitional numeric segments, the ordinary numeric segments in the segmentation results are concatenated in their original order to form the standard reading string.

[0015] Secondly, the present invention provides an instrument reading word segmentation recognition and automatic carry-over processing system with transition state markers, comprising: The character detection module is used to acquire instrument images, input the instrument images into the target detection model, and obtain character detection results. The character detection results include character categories and bounding box coordinates. The character categories include ordinary digit categories and transitional digit categories. The raw reading text generation module is used to sort the character detection results according to the bounding box coordinates and generate raw reading text according to the sorted character categories; The word segmentation result module is used to segment the original reading text into words according to the matching order of transition state numbers taking precedence over ordinary numbers, and to obtain the word segmentation result; The standard reading string module is used to determine the segment to be carried based on the word segmentation result, identify continuous transitional digit segments from right to left within the segment to be carried, and perform carry processing on the continuous transitional digit segments as a whole to obtain the standard reading string.

[0016] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: This invention obtains character detection results, including character category and bounding box coordinates, through a target detection model. After sorting the character detection results according to the bounding box coordinates, it generates the original reading text, so that the character recognition results in the instrument image can enter the subsequent word segmentation process according to the actual arrangement order of the mechanical roller digits, thereby reducing the reading splicing deviation caused by incorrect character spatial order.

[0017] This invention segments the original reading text according to the matching order of transitional digits over ordinary digits, so that transitional digits can be recognized as complete transitional digit segments, instead of being split into ordinary digits and marker characters. This provides a stable data foundation for subsequent continuous transitional recognition and overall carry processing.

[0018] This invention generates ordinary number segmentation, transitional number segmentation, delimited segmentation, and illegal character segmentation through word segmentation, which converts the original reading text into structured word segmentation results with clear types. This allows for carry processing, segmentation isolation, or abnormal rollback to be performed according to different word segmentation types, avoiding the ambiguity of processing rules caused by directly performing carry calculations on unstructured text.

[0019] When the word segmentation result contains illegal characters, the present invention uses the original reading text as the output result. When the word segmentation result does not contain transitional numeric words, the ordinary numeric words are concatenated into a standard reading string in their original order. This can avoid continuing to perform carry correction in scenarios where abnormalities are identified or carry is not required, thereby reducing the risk of miscorrection.

[0020] When the word segmentation result contains a separator word, the present invention divides the segments to be carried into segments with the separator word as the boundary, and prohibits the carry value of any segment to be carried from passing through the separator word to the adjacent segments to be carried. This allows the reading segments on both sides of the separator word to be carried to be carried independently, avoiding erroneous readings caused by the transmission of carry values ​​across segments.

[0021] This invention identifies consecutive transitional digits from right to left within the segment to be carried, and determines multiple consecutive adjacent transitional digit segments as a consecutive transitional digit sequence. This allows multiple consecutive transitional digits to be treated as the same carry object, avoiding deviations in the consecutive carry results caused by independent judgment of each digit.

[0022] This invention restores the continuous transition state digital sequence to the basic digital string, adds one to the basic digital string and adds the carry value on the right, and then truncates the low digits according to the number of digits of the continuous transition state digital sequence as the current result and uses the high digits as the carry value to be passed to the left. In this way, the original number of digits of the reading can be maintained, and the overflow carry generated by the continuous transition state digital sequence can continue to be passed to the left digits.

[0023] When scanning ordinary number segmentation, this invention adds the numerical value of the ordinary number segmentation to the carry value on the right, determines the current result based on the decimal remainder, and determines the carry value to be passed to the left based on the decimal quotient. This allows the carry result generated by the transitional number segmentation to be continuously connected with the ordinary number segmentation, forming a complete carry link from right to left.

[0024] In scenarios without delimited word segmentation, this invention selects different processing methods based on the state of the rightmost transitional digit segment and the rightmost ordinary digit segment: when the rightmost ordinary digit segment is empty, all digit segments are incremented by one and output with the original digits; when all rightmost ordinary digit segments are zero, a carry-over process is performed from right to left; when there are non-zero digits in the rightmost ordinary digit segment, the transitional marker is removed and the output is in the original order. This allows for differentiation between overall carry-over, partial carry-over, and no carry-over output based on the state of the rightmost digit in the final transitional state, reducing excessive or missed carry-overs. Attached Figure Description

[0025] Figure 1 This is a schematic diagram of a method for word segmentation and automatic carry processing of instrument readings with transition state markers; Figure 2 This is a schematic diagram illustrating a character detection result including character category and bounding box coordinates in an embodiment of this application; Figure 3 This is a schematic diagram illustrating a matching order in which transitional numbers take precedence over ordinary numbers in an embodiment of this application; Figure 4 This is a schematic diagram illustrating one embodiment of word segmentation using boundaries in this application. Figure 5 This is a schematic diagram of an instrument reading word segmentation recognition and automatic carry processing system with transition state markers. Detailed Implementation

[0026] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations thereof.

[0027] like Figures 1 to 4As shown, this embodiment provides a method for word segmentation and automatic carry-over processing of meter readings with transition state markers. This method can be applied to water meters, electricity meters, gas meters, or other meters that use mechanical rollers to display metering values. The mechanical roller meter typically includes multiple horizontally arranged digit rollers, each displaying a corresponding digit. When a lower-order roller changes from nine to zero, causing the adjacent higher-order roller to carry over, the higher-order roller may be in a transition state, shifting from the current digit to the next. This transition state is not a complete ordinary digit state; directly outputting the result based solely on ordinary digit recognition can easily lead to reading errors at the carry-over threshold. This embodiment performs structured word segmentation on the reading text with transition state markers output by the target detection model, and performs segmentation isolation and continuous transition state overall carry-over processing based on the segmentation results to obtain a standard reading string.

[0028] The method in this embodiment can be executed by a computer device, which can be a meter reading terminal, edge computing device, server, mobile terminal, or a processor installed in the instrument acquisition device. The computer device can be communicatively connected to an image acquisition device used to acquire instrument images. The computer device can deploy a target detection model and a reading carry-over processing program. The target detection model is used to detect and classify characters in the instrument images, and the reading carry-over processing program is used to sort, segment, and process the character detection results output by the target detection model.

[0029] like Figures 1 to 4 As shown in this embodiment, a method for word segmentation and automatic carry-over processing of instrument readings with transition state markers includes: acquiring an instrument image; inputting the instrument image into a target detection model to obtain character detection results, wherein the character detection results include character categories and bounding box coordinates, and the character categories include ordinary number categories and transition state number categories; sorting the character detection results according to the bounding box coordinates, and generating original reading text according to the sorted character categories; segmenting the original reading text according to the matching order of transition state numbers over ordinary numbers, to obtain a word segmentation result containing ordinary number words, transition state number words, and separator words; when the word segmentation result contains separator words, determining the segment to be carried over with the separator words as boundaries, and prohibiting the carry-over value from passing over the separator words; identifying continuous transition state number words from right to left within the segment to be carried over, and performing carry-over processing on the continuous transition state number words as a whole to obtain a standard reading string.

[0030] Specifically, the image acquisition device acquires an image of the instrument on the front of the instrument, and the instrument image includes at least the instrument reading window area. After the computer device acquires the instrument image, it can directly input the instrument image into the target detection model, or it can preprocess the instrument image before inputting it into the target detection model. Preprocessing may include reading window cropping, image scale normalization, brightness adjustment, distortion correction, noise filtering, or image enhancement. The above preprocessing is used to improve the stability of the target detection model in detecting reading characters, and does not change the core process of performing word segmentation and carry processing based on character detection results in this embodiment.

[0031] After receiving the instrument image, the target detection model detects the reading characters in the image and outputs the character detection results. Each character detection result includes a character category and bounding box coordinates. The character category characterizes the type of the corresponding reading character, and the bounding box coordinates characterize the spatial position of the corresponding reading character in the instrument image. The bounding box coordinates may include the coordinates of the upper left and lower right corners of the bounding box, or the coordinates of the center point, width, and height of the bounding box. To facilitate the sorting of multiple reading characters, this embodiment preferably uses the horizontal coordinate values ​​of the bounding box as the sorting criterion. These horizontal coordinate values ​​can be the horizontal coordinates of the left boundary of the bounding box or the horizontal coordinates of the center point of the bounding box. Figure 2 As shown, the character detection results include character category and bounding box coordinates. The transitional digit category belongs to the character category. The computer device generates the original reading text after sorting the values ​​according to the horizontal coordinates.

[0032] The character categories include ordinary number categories and transitional number categories. Ordinary number categories characterize characters that are displayed as complete numbers or can be directly identified as ordinary numbers in the scroll wheel window. Transitional number categories characterize characters that are transitioning from a base number to a subsequent number. For example, when the number two is transitioning to the number three, it can be identified as the transitional number category corresponding to the number two; when the number nine is transitioning to the number zero, it can be identified as the transitional number category corresponding to the number nine. Both ordinary number categories and transitional number categories are output by the object detection model, and the computer device converts them into character categories that can subsequently participate in text parsing based on the output categories.

[0033] After obtaining multiple character detection results, the computer device sorts the results based on the bounding box coordinates. For horizontally arranged mechanical roller-type instruments, characters further to the left typically correspond to higher digits, and characters further to the right typically correspond to lower digits. Therefore, the computer device arranges the character detection results in ascending order of their horizontal coordinate values. After sorting, the computer device generates raw reading text according to the sorted character categories. For ordinary number categories, the raw reading text records the corresponding digit; for transitional number categories, the raw reading text records the corresponding base digit and transitional marker; for delimited character categories, the raw reading text records the corresponding delimited character. This raw reading text is used as input for subsequent word segmentation processing.

[0034] For example, the character detection results output by the object detection model correspond to the transitional digit categories of ordinary digit one, ordinary digit two, and digit three, as well as the ordinary digit zero. The computer device sorts the bounding boxes based on their horizontal coordinates and generates a raw reading text. This raw reading text sequentially contains the transitional markers for ordinary digit one, ordinary digit two, and digit three, as well as the ordinary digit zero. This raw reading text is not the final standard reading, but rather a data object used for subsequent structured word segmentation and carry processing.

[0035] In one embodiment, the original reading text is segmented according to the matching order of transitional digits over ordinary digits. This includes scanning character by character starting from the first character of the original reading text and performing transitional digit matching, ordinary digit matching, separator character matching, and illegal character matching in sequence at the same scanning position. After each successful match, the scanning position is moved according to the length of the successfully matched character.

[0036] Specifically, the computer device sets the scanning position, starting from the first character of the original reading text. Whenever the scanning position points to a character or text element in the original reading text, the computer device first determines whether the character combination starting at the current position satisfies the transitional digit matching rule. If it does, a transitional digit segment is generated, and the scanning position is moved according to the character length corresponding to that transitional digit. If it does not satisfy the transitional digit matching rule, it determines whether the current position satisfies the ordinary digit matching rule. If it does, an ordinary digit segment is generated, and the scanning position is moved one ordinary digit character to the right. If it does not satisfy the ordinary digit matching rule, it determines whether the current position satisfies the separator character matching rule. If it does, a separator segment is generated, and the scanning position is moved one separator character to the right. If none of the above three matching methods succeed, an illegal character matching is performed, generating an illegal character segment from the character at the current position, and the scanning position is moved to the right. The computer device repeats the above scanning and matching process until the scanning position reaches the end of the original reading text. Figure 3 As shown, the computer device traverses the original reading text by scanning position, and sequentially performs transitional digit matching, ordinary digit matching, separator character matching and illegal character matching to obtain the word segmentation result, which includes transitional digit word segmentation, ordinary digit word segmentation and separator word segmentation.

[0037] This embodiment sets the transitional digit matching before the ordinary digit matching because transitional digits typically consist of two parts: a basic digit and a transitional marker. If ordinary digit matching is performed first, the basic digit in the transitional digit might be prematurely identified as an ordinary digit, and the remaining transitional marker might be identified as either an illegal character or an ordinary character, thus disrupting the condition for the transitional digit to participate in carry processing as a whole. By prioritizing the matching order of transitional digits over ordinary digits, the transitional digits can be fully preserved during the word segmentation stage, providing a stable data foundation for subsequent continuous transitional digit recognition and overall carry processing.

[0038] In one embodiment, the transitional digit matching is used to generate transitional digit segmentation, the ordinary digit matching is used to generate ordinary digit segmentation, the separator character matching is used to generate separator segmentation, and the illegal character matching is used to generate illegal character segmentation; the transitional digit segmentation, the ordinary digit segmentation, the separator segmentation, and the illegal character segmentation together constitute the segmentation result.

[0039] Specifically, ordinary number segmentation is used to represent ordinary numbers in the original reading text, and it can include a segmentation type and a number value. Transitional number segmentation is used to represent transitional numbers in the original reading text, and it can include a segmentation type, a basic number value, and a transitional marker. Separator segmentation is used to represent separator characters in the original reading text, and it can include a segmentation type and a separator character value. Illegal character segmentation is used to represent other characters that cannot be recognized as transitional numbers, ordinary numbers, or separator characters, and it can include a segmentation type and a basic character value. Through the above segmentation types, the computer device can convert the original reading text into structured segmentation results and can execute different processing logic according to different segmentation types in subsequent processing.

[0040] For example, the original reading text sequentially includes ordinary digit 1, transition markers for digit 2, separator characters, and the ordinary digit 0. The computer scans starting from the first character. At the ordinary digit marker, the transition digit match fails, but the ordinary digit match succeeds, generating ordinary digit segment 1. At the transition marker for digit 2, the transition digit match succeeds, generating transition digit segment 2. At the separator character, the separator character match succeeds, generating a separator segment. At the ordinary digit 0, the ordinary digit match succeeds, generating ordinary digit segment 0. The resulting segmentation results sequentially include ordinary digit segment 1, transition digit segment 2, separator segment, and ordinary digit segment 0.

[0041] In one embodiment, before determining the segment to be carried over based on the segmentation results, the segmentation results are traversed; if the segmentation results contain illegal character segments, the original reading text is used as the output result; if the segmentation results do not contain transitional numeric segments, the ordinary numeric segments in the segmentation results are concatenated in their original order to form the standard reading string.

[0042] Specifically, after completing word segmentation, the computer device first performs a preliminary verification of the segmentation results. If the preliminary verification detects illegal characters in the segmentation results, it indicates that there are abnormal characters in the original reading text that cannot be recognized by the rules. If carry-over processing is continued at this point, it may generate further errors based on the abnormal recognition results. Therefore, the computer device uses the original reading text as the output result and does not perform subsequent segmentation and carry-over processing. In this way, the original recognition information can be preserved, facilitating subsequent image re-acquisition or manual review.

[0043] If the preceding validation detects that the word segmentation result does not contain transitional numeric segments, it means that the original reading text does not contain transitional numeric segments that require automatic carry correction. In this case, the computer concatenates the ordinary numeric segments in the word segmentation result into a standard reading string in their original order, without performing carry processing that would change the value. Therefore, normal ordinary readings can be directly output, avoiding changes in readings due to unnecessary carry corrections.

[0044] For example, if the original reading text is ordinary number 1, ordinary number 2, and ordinary number 3, the segmentation result will only include ordinary number segmentation 1, ordinary number segmentation 2, and ordinary number segmentation 3. The computer device determines that the segmentation result does not contain transitional number segmentation, so it directly concatenates and outputs the standard reading string "123". If the original reading text is ordinary number 1, illegal characters, and ordinary number 3, the segmentation result contains illegal character segmentation, and the computer device uses the original reading text as the output result without performing carry correction.

[0045] In one embodiment, determining the segment to be carried based on the word segmentation result includes determining whether the word segmentation result contains a separator word; if the word segmentation result contains a separator word, then the word segmentation result is divided into multiple segments to be carried based on the separator word as the boundary, and the carry value of any segment to be carried is prohibited from passing through the separator word to the adjacent segment to be carried; if the word segmentation result does not contain a separator word, then the word segmentation result as a whole is determined as a segment to be carried.

[0046] Specifically, delimiters are used to separate different segments of the same original reading text. When a computer detects delimiters in the segmentation results, it uses the delimiters as segment boundaries to divide the segmented sequence located between or on either side of two delimiters into carry segments. Each carry segment is processed as an independent carry processing unit. Carry values ​​generated by the right-hand carry segment during processing can only be passed from right to left within that right-hand carry segment; when passed to a delimiter, the carry value terminates and is no longer passed across the delimiter to adjacent carry segments. The left-hand carry segments are also processed independently and do not receive carry values ​​from the right-hand carry segments that cross the delimiters. Figure 4 As shown, the segmentation results are divided into a left-side segment to be carried over and a right-side segment to be carried over, with the segmentation boundary being the delimiter. The carry-over value in the right-side segment to be carried over must not cross the delimiter segment. Ordinary numeric segments and transitional numeric segments within the segment are processed independently.

[0047] For example, the word segmentation results are, in sequence: ordinary number segment 1, transitional number segment 2, separator segment, ordinary number segment 9, and transitional number segment 9. The computer device divides the word segmentation results into a left-side carry-in segment and a right-side carry-in segment, using the separator segment as the boundary. The left-side carry-in segment includes ordinary number segment 1 and transitional number segment 2; the right-side carry-in segment includes ordinary number segment 9 and transitional number segment 9. When processing transitional number segment 9 in the right-side carry-in segment, even if a carry value is generated and passed to the left, this carry value can only affect ordinary number segment 9 in the right-side carry-in segment and must not cross the separator segment to affect ordinary number segment 1 and transitional number segment 2 in the left-side carry-in segment. This method avoids cross-segment carry caused by incorrect merging of readings on both sides of the separator character.

[0048] If no delimiter word is present in the segmentation result, it indicates that the segmentation result corresponds to a continuous reading. The computer device determines the entire segmentation result as a carry-in segment. Within this carry-in segment, the carry value generated by the lower right byte can be passed to the higher left byte until the carry-in segment is processed.

[0049] In one embodiment, identifying continuous transitional digit segments from right to left within the segment to be carried includes scanning from the right end to the left end of the segment to be carried; when a transitional digit segment is scanned, other transitional digit segments adjacent to that transitional digit segment are identified to the left, and multiple consecutively adjacent transitional digit segments are determined as a continuous transitional digit sequence.

[0050] Specifically, the carry direction of mechanical roller instruments is usually from low to high digits, and in horizontal reading text, low digits are usually located on the right and high digits are usually located on the left. Therefore, in this embodiment, scanning is performed from right to left within the segment to be carried. When a normal number segment is scanned, it is processed according to the normal number carry rules. When a transitional number segment is scanned, the computer device does not immediately process only that single transitional number segment independently, but continues to the left to determine whether the preceding segment adjacent to it is also a transitional number segment. If the adjacent segment to the left is still a transitional number segment, the expansion to the left continues until the adjacent segment to the left is no longer a transitional number segment or the left end of the segment to be carried is reached. Thus, one or more consecutively adjacent transitional number segments are determined as a continuous transitional number sequence.

[0051] For example, a segment to be carried, from left to right, consists of ordinary number segment 1, transitional number segment 8, transitional number segment 9, and ordinary number segment 0. The computer scans from the right, processing ordinary number segment 0 first, then scanning left to the transitional number segment 9. Since the left-side adjacent segment of transitional number segment 9 is transitional number segment 8, transitional number segments 8 and 9 are identified as a continuous transitional number sequence. The basic number order corresponding to this continuous transitional number sequence is 8-9. In subsequent carry processing, this continuous transitional number sequence is processed as a whole, rather than processing transitional number segments 8 and 9 independently.

[0052] In one embodiment, the continuous transition state digit segmentation is treated as a whole and carry processing is performed, including restoring the continuous transition state digit sequence to a basic digit string, adding one to the basic digit string and superimposing the carry value on the right to obtain the sequence carry result; truncating the low digit of the sequence carry result according to the number of digits of the continuous transition state digit sequence as the current result, and using the high digit of the sequence carry result as the carry value passed to the left.

[0053] Specifically, each transitional digit segment in the continuous transitional digit sequence has a corresponding basic digit value. The computer device concatenates the basic digit values ​​of each transitional digit segment in the original order of the continuous transitional digit sequence within the segment to be carried, obtaining a basic digit string. Subsequently, the computer device processes the basic digit string as a whole, incrementing the overall value by one and adding the current carry value to the right, resulting in the sequence carry result. The current carry value to the right is the carry value generated by the segment to the right of the continuous transitional digit sequence in the segment to be carried and passed to the left. If no carry value is generated to the right of the continuous transitional digit sequence, the carry value to the right is zero.

[0054] After obtaining the carry result, the computer truncates the carry result according to the number of bits in the continuous transitional digit sequence. If the continuous transitional digit sequence includes two transitional digit segments, then the number of bits in the continuous transitional digit sequence is two. The computer truncates the lower two bits of the carry result as the current result, and uses the higher bits beyond the lower two bits as the carry value to be passed to the left. If the continuous transitional digit sequence includes three transitional digit segments, then the lower three bits of the carry result are truncated as the current result, and the higher bits beyond the lower three bits are used as the carry value to be passed to the left. If the number of bits in the lower bits of the carry result is less than the number of bits in the continuous transitional digit sequence, zeros are padded to the left of the lower bits to ensure that the number of bits in the output is consistent with the number of bits in the continuous transitional digit sequence.

[0055] For example, if the base number string corresponding to a continuous transitional number sequence is 8-9, and the carry-in value to the right is zero, then the base number string 8-9 is incremented by one and the carry-in value to the right is added to obtain 90. Since this continuous transitional number sequence has two bits, the lower two bits (90) are truncated as the current result, and the carry-in value passed to the left is zero. As another example, if the base number string corresponding to a continuous transitional number sequence is 9-9, and the carry-in value to the right is zero, then the base number string 9-9 is incremented by one to obtain 100. Since this continuous transitional number sequence has two bits, the lower two bits (00) are truncated, and the higher two bits (1) are used as the carry-in value passed to the left. Through this process, continuous transitional numbers can complete the carry-in as a whole, avoiding deviations in the continuous carry-in results caused by processing multiple transitional numbers digit by digit independently.

[0056] In one embodiment, when a normal number segment is scanned from right to left within the segment to be carried, the numerical value of the normal number segment is added to the carry value on the right to obtain the current sum; the remainder of the current sum divided by ten is taken as the original result of the normal number segment, and the quotient of the current sum divided by ten is taken as the carry value to be passed to the left.

[0057] Specifically, ordinary numeric segmentation is used in the segment to receive carry values ​​from the right-hand segment. When the computer scans an ordinary numeric segment, it reads its numeric value and adds it to the current carry value from the right to obtain the current sum. Then, the computer performs decimal decomposition on the current sum, taking the remainder when divided by ten as the original value of the ordinary numeric segment, and the quotient when divided by ten as the carry value to be passed left. If the current sum is less than ten, the carry value to be passed left is zero; if the current sum is equal to or greater than ten, the carry value to be passed left is one or the corresponding integer.

[0058] For example, a segment to be carried might consist of a regular number segment "nine", a transitional number segment "nine", another transitional number segment "nine", and a regular number segment "zero". When the computer scans from right to left, the regular number segment "zero" is added to the carry value "zero" on the right, resulting in a zero value. The carry value passed to the left is also zero. Then, the continuous transitional number sequence "nine-nine" is identified. The basic number string "nine-nine" is added to "one-zero", the lower two bits are truncated to "zero-zero", and the higher bit "one" is used as the carry value passed to the left. Next, the regular number segment "nine" on the left is scanned. The number value "nine" is added to the carry value "one" on the right, resulting in "ten". The remainder "zero" when "ten" is divided by "ten" is used as the result of this regular number segment, and the quotient "one" when "ten" is divided by "ten" is used as the carry value passed to the left. Thus, the carry generated by the transitional number segment can continue to affect the regular number segment on the left, forming a complete carry chain from right to left.

[0059] In one embodiment, when the word segmentation result does not contain separator words, the rightmost transitional numeric word and the rightmost ordinary numeric word located to the right of the rightmost transitional numeric word are determined; if the rightmost ordinary numeric word is empty, all numeric words are restored to whole numbers and the whole numbers are incremented by one and output in their original order; if all the rightmost ordinary numeric words are zero, carry-over processing from right to left is performed; if there are non-zero numbers in the rightmost ordinary numeric words, the transitional markers are removed and the words are output in their original order.

[0060] Specifically, when there are no separating words in the word segmentation result, the entire word segmentation result corresponds to a continuous reading. The computer device searches for the rightmost transitional numeric word in this continuous reading and determines whether there is a regular numeric word to its right. If there are no regular numeric words to its right, it means that the transitional numeric word is at the end of the reading. At this time, the computer device restores all numeric words to the whole number. During the restoration, the transitional numeric word takes its base numeric value, then adds one to the whole number, and outputs it with the original number of digits.

[0061] For example, the segmentation result is ordinary number segment 1, ordinary number segment 2, and transitional number segment 3. The rightmost transitional number segment is transitional number segment 3, and the ordinary number segment to its right is empty. Therefore, the computer device restores all the number segments to the whole number 123, adds one to the whole number 123 to get 124, and outputs 124 according to the original three digits. If the segmentation result is ordinary number segment 9, ordinary number segment 9, and transitional number segment 9, then the whole number 999 is restored, and adding one gives 1000; when the instrument reading window is a fixed three digit, the lower three digits 000 are output according to the original three digits.

[0062] If there is a regular number segment to the right of the rightmost transitional numeric segment, and all the regular number segments to the right are zero, it means that the lower digits on the right are already in a zero-state, which can be considered as corresponding to a complete local carry process. At this time, the computer performs carry processing from right to left. For example, the segmentation result is regular number segment 1, transitional numeric segment 2, regular number segment 0, regular number segment 0. The rightmost transitional numeric segment is transitional numeric segment 2, and all the regular number segments to its right are zero. Therefore, the computer performs carry processing from right to left. The two regular number segments remain zero; transitional numeric segment 2, as a continuous transitional numeric sequence of length one, is restored to the base number 2, and adding one gives three; the regular number segment 1 on the left is not affected by the carry, and the final output is 1300.

[0063] If there is a normal numeric token on the right side of the rightmost transition-state numeric token, and there are non-zero digits in the normal numeric token on the right side, it means that the lower digits on the right have not been completely zeroed out. In this case, forcibly performing carry processing on the transition-state digit may cause excessive carry. Therefore, the computer device strips the transition-state marker and outputs the digits in the original order. The so-called stripping of the transition-state marker refers to converting the transition-state numeric token into its basic numeric value, and concatenating it with the normal numeric tokens in the original order for output. For example, the tokenization result is normal numeric token one, transition-state numeric token two, normal numeric token three, and normal numeric token four. The rightmost transition-state numeric token is transition-state numeric token two, and there are normal numeric token three and normal numeric token four in the normal numeric tokens on its right side, neither of which is in an all-zero state. Therefore, the computer device does not perform carry processing, but outputs the transition-state numeric token two as the normal numeric two after stripping the transition-state marker, and finally outputs one two three four.

[0064] Through the above terminal state judgment, three different reading states can be distinguished: when the transition-state digit is located at the terminal, perform an overall increment by one; when all digits on the right side of the transition-state digit are zero, perform carry processing from right to left; when there are non-zero digits on the right side of the transition-state digit, do not perform carry and only strip the transition-state marker. Thus, it is possible to avoid excessive carry or missed carry caused by using the same carry strategy under different terminal states.

[0065] This embodiment may also adopt the following specific data structure to implement the above method. The character detection result may be represented as a character object, which includes a category field, a bounding box field, and a confidence field. The category field is used to indicate a normal digit category, a transition-state digit category, or a separator character category; the bounding box field is used to record the position of the character object in the meter image; the confidence field is used to record the recognition confidence of the target detection model for the character object. The computer device may first filter out character objects whose confidence is lower than a preset confidence threshold, and then sort the remaining character objects according to the horizontal coordinate values in the bounding box field.

[0066] The tokenization result may be represented as a token object sequence. The normal numeric token object includes a token type field and a numeric value field; the transition-state numeric token object includes a token type field, a basic numeric value field, and a transition-state marker field; the separator token object includes a token type field and a separator character field; the illegal character token object includes a token type field and an original character field. Through the above fields, the computer device can quickly determine the token type in the tokenization result, and perform exception fallback, segment division, continuous transition-state recognition, overall carry, and normal digit carry reception according to the token type.

[0067] To further illustrate the processing procedure of this embodiment, the following description will be made in conjunction with multiple specific reading examples.

[0068] When the original reading text only contains ordinary digit 1, ordinary digit 2, and ordinary digit 3, the computer device segments it to obtain ordinary digit segment 1, ordinary digit segment 2, and ordinary digit segment 3. Since the segmentation result does not include transitional digit segmentation, the computer device directly concatenates the ordinary digit segmentation in its original order to form the standard reading string 123.

[0069] When the original reading text includes ordinary digit 1, illegal characters, and ordinary digit 3, the computer device performs word segmentation to obtain ordinary digit segmentation 1, illegal character segmentation, and ordinary digit segmentation 3. Because the segmentation result contains illegal character segmentation, the computer device uses the original reading text as the output result and does not perform carry processing.

[0070] When the original reading text corresponds to ordinary number 1, ordinary number 2, and transitional number 3, the word segmentation result is ordinary number segmentation 1, ordinary number segmentation 2, and transitional number segmentation 3. This word segmentation result does not include separator segments, and the ordinary number segmentation to the right of the rightmost transitional number segmentation is empty. Therefore, the computer device restores all number segments to the whole number 123, adds one to the whole number, and outputs 124 with the original three digits.

[0071] When the original reading text corresponds to the ordinary number 1, the transitional number 2, the ordinary number 0, and the ordinary number 0, the word segmentation result is ordinary number segment 1, transitional number segment 2, ordinary number segment 0, and ordinary number segment 0. This word segmentation result does not include separator segments. The rightmost transitional number segment and the rightmost ordinary number segment are both zero, so the computer performs carry-over processing from right to left. The two rightmost ordinary number segment zeros remain zero, the transitional number segment 2 is restored to the base number 2 and added to get 3, and the leftmost ordinary number segment 1 remains 1, resulting in the final output 1300.

[0072] When the original reading text corresponds to ordinary number one, transitional number two, ordinary number three, and ordinary number four, there are non-zero numbers in the ordinary number segment to the right of the rightmost transitional number segment. Therefore, the computer device removes the transitional marker and outputs in the original order, that is, outputs one, two, three, four, without performing a carry on the transitional number two.

[0073] When the original reading text corresponds to the ordinary number 1, the transitional number 8, the transitional number 9, and the ordinary number 0, the word segmentation result is ordinary number segment 1, transitional number segment 8, transitional number segment 9, and ordinary number segment 0. Since the ordinary number segments to the right of the rightmost transitional number segment are all zero, the computer performs carry processing from right to left. The ordinary number segment 0 remains zero; the transitional number segments 8 and 9 are consecutively adjacent, forming a continuous transitional number sequence 8-9; the computer adds one to the basic number string 8-9 as a whole to get 90, outputs 90 as two digits, and the carry value passed to the left is zero; the ordinary number segment 1 remains one, and the final output is 1900.

[0074] When the original reading text corresponds to the ordinary number nine, the transitional number nine, the transitional number nine, and the ordinary number zero, the word segmentation result is ordinary number word segmentation nine, transitional number word segmentation nine, transitional number word segmentation nine, and ordinary number word segmentation zero. After processing the ordinary number word segmentation zero from right to left, the computer device identifies the continuous transitional number sequence nine-nine, adds one to the basic number string nine-nine to get one-zero-zero, truncates the lower two bits to get zero-zero, and uses the higher bit one as the carry value to be passed to the left. Subsequently, the ordinary number word segmentation nine is added to the carry value one on the right to get ten, the current result is zero, and high-order carry continues to be generated. If the instrument reading window is fixed at four digits, then zero-zero-zero is output according to the original number of digits; if the system is set to retain the overflow bit, the high-order carry can also be retained on the leftmost side. Preferably, the mechanical roller instrument outputs according to the fixed number of digits in the reading window.

[0075] When the original reading text corresponds to ordinary number one, transitional number two, separator character, ordinary number nine, and transitional number nine, the computer device performs word segmentation to obtain ordinary number word segment one, transitional number word segment two, separator word, ordinary number word segment nine, and transitional number word segment nine. Since the segmentation result includes separator words, the computer device uses the separator words as boundaries to divide the carry-in segments. The carry-in processing result of the right-hand carry-in segment must not cross the separator word to be passed to the left-hand carry-in segment. In the final output, the computer device combines the processing results of the left-hand carry-in segment, the separator words, and the processing results of the right-hand carry-in segment in their original order, or removes the separator words before outputting pure numbers. This process avoids erroneous linkage between the readings on both sides of the separator character.

[0076] When the original reading text corresponds to the ordinary number five, the separator character, the ordinary number nine, the transitional number nine, and the transitional number nine again, the computer device uses the separator word as the boundary to determine the ordinary number five as the left-hand carry-in segment, and the ordinary number nine, the transitional number nine, and the transitional number nine as the right-hand carry-in segment. In the right-hand carry-in segment, the continuous transitional number sequence nine-nine plus one results in one-zero-zero, with the lower two bits being zero-zero and the higher bit being one. This is then passed to the ordinary number nine in the right-hand segment, making the ordinary number nine zero and generating a further carry. Since this further carry encounters the separator word after reaching the left end of the right-hand carry-in segment, the carry value must not cross the separator word to be passed to the ordinary number five. Thus, the left-hand carry-in segment remains unchanged, while the right-hand carry-in segment completes the carry processing independently.

[0077] In this embodiment, the object detection model can be trained using pre-labeled instrument character samples. These samples can include ordinary digit samples and transitional digit samples. Ordinary digit samples represent character images that are fully displayed or can be directly identified as ordinary digits, while transitional digit samples represent character images where a basic digit is transitioning to the next digit. During training, each character sample can be labeled with its character category and bounding box position, allowing the model to learn image features of different character states. After training, the object detection model can output character detection results containing ordinary digit categories, transitional digit categories, and bounding box coordinates for the input instrument image. It should be noted that the core of this embodiment is not about limiting a specific object detection model structure, but rather about how the computer device converts the character detection results into raw reading text after the model outputs them, and performs transitional-state priority segmentation, boundary isolation, continuous transitional overall carry, ordinary digit carry-over, illegal character rollback, and end-state judgment on the raw reading text.

[0078] In this embodiment, the standard reading string can be output as a pure numeric string or as a formatted string retaining delimiters, depending on the application scenario. If the standard reading string is used for storing measurement values, remote transmission, or automatic settlement, the computer device can output a pure numeric string; if the standard reading string is used for display on a manual review interface, the computer device can retain delimiters so that reviewers can observe the structure of the original reading fragment. Regardless of the output method used, the standard reading string originates from the word segmentation results and carry-over processing results, rather than simply concatenating the character categories output by the object detection model.

[0079] Through the method of this embodiment, the computer device can first convert the ordinary number categories and transitional number categories output by the target detection model into raw reading text, then convert the raw reading text into word segmentation results, and perform automatic carry processing based on the word segmentation results. Because this embodiment prioritizes the matching order of transitional numbers over ordinary numbers during the word segmentation stage, it avoids the splitting of transitional numbers. Because this embodiment uses the separators as boundaries to determine the segments to be carried when there are separators, and prohibits carry values ​​from crossing separators, it avoids incorrect carry across segments. Because this embodiment treats continuous transitional number segments as a whole for carry processing, it avoids carry deviations caused by processing continuous transitional numbers digit by digit independently. Because this embodiment selects different processing methods based on the state of the ordinary number segments to the right of the rightmost transitional number segment in scenarios without separators, it avoids over-carrying or missed carry caused by incorrect judgment of the final state. Therefore, this embodiment can improve the accuracy of reading output of mechanical roller instruments in the carry-critical state.

[0080] Example 2

[0081] like Figure 5 As shown, this embodiment provides a meter reading word segmentation recognition and automatic carry processing system with transition state markers. This embodiment is built on the basis of embodiment 1, and the similarities are not repeated here, including: The character detection module is used to acquire instrument images, input the instrument images into the target detection model, and obtain character detection results. The character detection results include character categories and bounding box coordinates. The character categories include ordinary digit categories and transitional digit categories. The raw reading text generation module is used to sort the character detection results according to the bounding box coordinates and generate raw reading text according to the sorted character categories; The word segmentation result module is used to segment the original reading text into words according to the matching order of transition state numbers taking precedence over ordinary numbers, and to obtain the word segmentation result; The standard reading string module is used to determine the segment to be carried based on the word segmentation result, identify continuous transitional digit segments from right to left within the segment to be carried, and perform carry processing on the continuous transitional digit segments as a whole to obtain the standard reading string.

[0082] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A method for word segmentation and automatic carry processing of instrument readings with transition state markers, characterized in that, include: Acquire an instrument image, input the instrument image into a target detection model, and obtain character detection results. The character detection results include character categories and bounding box coordinates. The character categories include ordinary digit categories and transitional digit categories. The character detection results are sorted according to the bounding box coordinates, and the original reading text is generated according to the sorted character categories; The original reading text is segmented according to the matching order of transition state digits taking precedence over ordinary digits, and the segmentation results are obtained; Based on the word segmentation results, the segment to be carried is determined. Within the segment to be carried, continuous transitional digit segments are identified from right to left, and the continuous transitional digit segments are treated as a whole and carried over to obtain the standard reading string.

2. The method according to claim 1, characterized in that, The original reading text is segmented according to the matching order of transitional digits over ordinary digits. This includes scanning character by character starting from the first character of the original reading text, and performing transitional digit matching, ordinary digit matching, separator character matching, and illegal character matching in sequence at the same scanning position. After each successful match, the scanning position is moved according to the length of the successfully matched character.

3. The method according to claim 2, characterized in that, The transitional digit matching is used to generate transitional digit segmentation, the ordinary digit matching is used to generate ordinary digit segmentation, the separator character matching is used to generate separator segmentation, and the illegal character matching is used to generate illegal character segmentation; the transitional digit segmentation, the ordinary digit segmentation, the separator segmentation, and the illegal character segmentation together constitute the segmentation result.

4. The method according to claim 3, characterized in that, Determining the segment to be carried based on the word segmentation result includes determining whether the word segmentation result contains a separator word; if the word segmentation result contains a separator word, then the word segmentation result is divided into multiple segments to be carried based on the separator word as the boundary, and the carry value of any segment to be carried is prohibited from passing through the separator word to the adjacent segment to be carried; if the word segmentation result does not contain a separator word, then the word segmentation result as a whole is determined as a single segment to be carried.

5. The method according to claim 1, characterized in that, The process involves identifying consecutive transitional digit segments from right to left within the segment to be carried, including scanning from the right end to the left end of the segment to be carried; when a transitional digit segment is scanned, the process continues to identify other transitional digit segments adjacent to that transitional digit segment to the left, and determines multiple consecutively adjacent transitional digit segments as a consecutive transitional digit sequence.

6. The method according to claim 5, characterized in that, The continuous transition state digit segmentation is treated as a whole and carried over, including restoring the continuous transition state digit sequence to the basic digit string, adding one to the basic digit string and superimposing the carry value on the right to obtain the sequence carry result; truncating the lower digit of the sequence carry result according to the number of digits of the continuous transition state digit sequence as the current result, and using the higher digit of the sequence carry result as the carry value passed to the left.

7. The method according to claim 6, characterized in that, When a regular number segment is scanned from right to left within the segment to be carried, the numerical value of the regular number segment is added to the carry value on the right to obtain the current sum. The remainder of the current sum divided by ten is taken as the original result of the regular number segment, and the quotient of the current sum divided by ten is taken as the carry value to be passed to the left.

8. The method according to claim 1, characterized in that, When the word segmentation result does not contain separator words, determine the rightmost transitional numeric word and the rightmost ordinary numeric word located to the right of the rightmost transitional numeric word; if the rightmost ordinary numeric word is empty, restore all numeric words to whole numbers and add one to the whole numbers before outputting them in their original positions; if all the rightmost ordinary numeric words are zero, perform carry-over processing from right to left; if there are non-zero numbers in the rightmost ordinary numeric words, remove the transitional markers and output them in their original order.

9. The method according to claim 3, characterized in that, Before determining the segment to be carried over based on the word segmentation results, the word segmentation results are traversed; if the word segmentation results contain illegal character segments, the original reading text is used as the output result; If the word segmentation result does not contain transitional numeric words, then the ordinary numeric words in the word segmentation result are concatenated in their original order to form the standard reading string.

10. A system for segmenting and recognizing instrument readings with transition state markers and for automatic carry processing, used to implement the method according to any one of claims 1-9, characterized in that, include: The character detection module is used to acquire instrument images, input the instrument images into the target detection model, and obtain character detection results. The character detection results include character categories and bounding box coordinates. The character categories include ordinary digit categories and transitional digit categories. The raw reading text generation module is used to sort the character detection results according to the bounding box coordinates and generate raw reading text according to the sorted character categories; The word segmentation result module is used to segment the original reading text into words according to the matching order of transition state numbers taking precedence over ordinary numbers, and to obtain the word segmentation result; The standard reading string module is used to determine the segment to be carried based on the word segmentation result, identify continuous transitional digit segments from right to left within the segment to be carried, and perform carry processing on the continuous transitional digit segments as a whole to obtain the standard reading string.