Text Image Processing With Concurrent Pixel Position Calculation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The processing speed of text detection algorithms is significantly reduced due to an increase in the number of register access times caused by sequential determination for pixel edge determination in text detection processing.
Innovation Solution
A method and apparatus that utilize concurrent calculation to determine the position information of adjacent pixels based on center pixel coordinates, spatial offsets, and pixel processing area width, optimizing data determination conditions and combining basic operations with concurrent processing to enhance the processing speed of text detection post-processing.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of manufacture
If sequential determination logic is used for pixel edge determination in text detection, then the algorithm implementation is simple, but the processing speed significantly reduces due to increased register access times
Solution Approach 1:
The patent segments the pixel processing into independent center pixels and their adjacent pixels, allowing parallel processing of multiple pixels simultaneously. Each pixel's edge determination is segmented into independent operations that can be executed concurrently, reducing the sequential processing bottleneck and register access overhead.
Solution Approach 2:
The patent merges the determination of multiple adjacent pixels into a single concurrent processing operation. By combining the edge determination logic for multiple pixels into unified vector operations, the patent reduces the number of separate register accesses while maintaining processing accuracy, thereby improving overall processing speed.
2Productivity
If concurrent calculation is used to determine position information of adjacent pixels, then the processing speed increases, but the calculation complexity increases
Solution Approach 1:
The patent changes the computational parameters by introducing spatial offsets and vector calculations instead of traditional sequential coordinate processing. This parameter transformation enables concurrent calculation of multiple pixel positions using unified mathematical formulas, achieving speedup while managing complexity through standardized vector operations.
Solution Approach 2:
The patent introduces spatial offsets as intermediary parameters that mediate between center pixel coordinates and adjacent pixel positions. This intermediary approach simplifies the concurrent calculation by providing a standardized method to compute all adjacent pixel positions from a single center pixel, reducing the overall computational complexity despite the concurrent processing.
Data Source
AI summary
A text processing method and apparatus, an electronic device, and a storage medium. The method includes: according to a coordinate value of each pixel in a text image, determining a plurality of center pixels of the text image and an adjacent pixel of each center pixel (S1); acquiring a coordinate value of each center pixel, a spatial offset of the adjacent pixel of each center pixel, and the width of a pixel processing area (S2); acquiring position information of each adjacent pixel according to the coordinate value of each center pixel, the spatial offset of the adjacent pixel of each center pixel, the width of the pixel processing area, and a preset vector calculation formula (S3); and acquiring a text of the text image according to the position information and a preset mask mapping relationship (S4).


