Power archive seal automatic detection method based on single-stage target detection model
The automatic detection method for power archive seals based on a single-stage target detection model solves the problem of poor adaptability of general models to diverse seal types, and realizes accurate detection and anti-counterfeiting traceability verification of seals in power archives, thereby improving the accuracy of power archive digitization and the reliability of anti-counterfeiting indexes.
Patent Information
- Application Number
- CN202610997125.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-06
- Publication Date
- 2026-11-20
AI Technical Summary
Existing general seal detection models are poorly adapted to the diverse types of seals in power archives, resulting in a high rate of missed and false detections of key seal elements and an inability to accurately identify seal features of different shapes and sizes.
An automatic detection method for power archive seals based on a single-stage target detection model is adopted. The method extracts the structural mask tensor and spatial feature tensor of the scanned image array of power archives, performs alignment and multiplication to output the low-level visual feature map, and combines the curvature distribution data and topological semantic tensor for forward calculation to output the category and bounding box coordinates of candidate seal seal points. The model parameters are optimized by graph convolution algorithm and adaptive loss function to achieve accurate detection.
It significantly reduced the omissions and false positives of seal elements in complex layouts and curled archival materials, improved the accuracy of digital processing of power archives, and achieved tight coupling of anti-counterfeiting indexes for archives, thereby enhancing the business confidence of the document management system.
Smart Images

Figure CN123142247A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automatic detection technology for power archive seals, and in particular to an automatic detection method for power archive seals based on a single-stage target detection model. Background Technology
[0002] In the application scenario of digital archiving and quality inspection technology for power archives, the system needs to process a large amount of archival materials containing various key seal elements. Existing processing workflows generally use a generic seal detection model to perform seal detection tasks. However, power archives contain highly diverse seal types. The generic seal detection model lacks sufficient feature extraction capabilities for diverse seal types, reducing its adaptability and leading to target detection bias. Specifically, the generic model cannot accurately identify seal features of different shapes and sizes, directly resulting in missed detections of key seal elements in the archival materials. Simultaneously, feature extraction bias also leads to false detections of seal elements. Missed and false detections severely reduce the accuracy of digital archival processing. Therefore, existing technologies suffer from a high rate of missed and false detections of key seal elements in archival materials due to the poor adaptability of existing generic seal detection models to the diverse seal types in power archives. Summary of the Invention
[0003] To address the shortcomings of existing technologies, this invention provides an automatic seal detection method for power archives based on a single-stage target detection model. This invention solves the technical problem that existing general seal detection models have poor adaptability to the diverse seal types in power archives, resulting in a high rate of missed and false detections of key seal elements in archival materials.
[0004] To solve the above-mentioned technical problems, the specific contents of the present invention are as follows: This invention relates to an automatic detection method for power archive seals based on a single-stage target detection model, comprising: Acquire an array of scanned images of power archives, the array of scanned images of power archives containing stamp targets and overlapping text; Extract the structural mask tensor and spatial feature tensor of the power archive scan image array, align and multiply the structural mask tensor and the spatial feature tensor, and output the bottom-level visual feature map; Extract the two-dimensional coordinates of the candidate stamp region from the underlying visual feature map, and map the two-dimensional coordinates to candidate stamp nodes; Extract the bounding box center coordinates of the overlapping text in the power archive scan image array, and map the bounding box center coordinates to text nodes; Extract the curvature distribution data of the power archive scan image array, perform distance mapping transformation on the candidate stamp nodes and the text nodes based on the curvature distribution data, and output a topological semantic tensor; The topological semantic tensor is input into a single-stage target detection model for forward computation, and the seal category and bounding box coordinates of the candidate seal points are output. The seal category and bounding box coordinates are then imported into the document management system to perform archive anti-counterfeiting indexing.
[0005] Furthermore, the automatic detection method for power archive seals based on a single-stage target detection model described in this invention, which involves extracting the structural mask tensor and spatial feature tensor of the power archive scanned image array, aligning and multiplying the structural mask tensor and the spatial feature tensor, and outputting a low-level visual feature map, includes: A two-dimensional discrete Fourier transform is performed on the power archive scan image array to obtain local amplitude and local phase, and frequency harmonic components are separated. Calculate the phase coincidence of the frequency harmonic components in spatial location; The phase coincidence degree greater than a preset noise threshold is selected, and the selected phase coincidence degree is used to generate the structure mask tensor; The spatial feature tensor of the power archive scanned image array is extracted using convolution operations; The structural mask tensor and the spatial feature tensor are aligned and multiplied to output the bottom-level visual feature map.
[0006] Furthermore, in the automatic detection method for power archive seals based on a single-stage target detection model described in this invention, the step of extracting the curvature distribution data of the scanned image array of the power archive includes: Extract the text baseline near the pixel edge region of the power archive scan image array; calculate the pixel curvature of the text baseline; The physical three-dimensional deformation field parameters are constructed using the pixel curvature; The physical three-dimensional deformation field parameters are determined as the curvature distribution data.
[0007] Furthermore, the automatic detection method for power archive seals based on a single-stage target detection model described in this invention, wherein the step of performing distance mapping transformation between the candidate seal nodes and the text nodes according to the curvature distribution data and outputting a topological semantic tensor includes: Calculate the two-dimensional Euclidean distance between the text node and the candidate stamp node; Substitute the two-dimensional Euclidean distance into the physical three-dimensional deformation field parameters and perform line integral calculation to obtain the geodesic distance on the physical surface. The geodesic distances of the physical surface are converted into edge weights of the graph adjacency matrix; The edge weights, text nodes, and candidate stamp nodes are aggregated and calculated using a graph convolution algorithm to output the topological semantic tensor.
[0008] Furthermore, the automatic detection method for power archive seals based on a single-stage target detection model described in this invention further includes, before inputting the topological semantic tensor into the single-stage target detection model for forward computation and outputting the seal category and bounding box coordinates of the candidate seal points: Obtain a training image array with real label boxes, input the training image array into the single-stage object detection model, and output the coordinates of the predicted boxes; Extract the local image region corresponding to the coordinates of the prediction box from the training image array; Perform pixel gradient calculation on the local image region and output the pixel gradient calculation result; construct the pixel gradient vector field of the local image region based on the pixel gradient calculation result; Extract the boundary ring region contained in the local image region; Calculate the divergence integral value of the pixel gradient vector field in the boundary annular region; Obtain the bounding box regression loss function in the single-stage object detection model; When the divergence integral value is less than the preset ink diffusion divergence threshold, the penalty coefficient of the bounding box regression loss function is amplified to obtain the amplified penalty coefficient. The network parameters of the single-stage target detection model are updated using the amplified penalty coefficient.
[0009] Furthermore, the automatic detection method for power archive seals based on a single-stage target detection model described in this invention, wherein importing the seal category and the bounding box coordinates into the document management system for archive anti-counterfeiting indexing, includes: Extract the stamp target area image array corresponding to the bounding box coordinates from the scanned image array of the power archives; Extract the grayscale feature distribution vector and frequency domain hidden watermark sequence from the image array of the target area of the seal; The grayscale feature distribution vector is multiplied by the frequency domain hidden watermark sequence to calculate the tensor product and output the encrypted fingerprint key. Import the encrypted fingerprint key, the seal category, and the bounding box coordinates into the document management system.
[0010] Furthermore, the automatic detection method for power archive seals based on a single-stage target detection model described in this invention, wherein extracting the grayscale feature distribution vector of the seal target area image array and the frequency domain hidden watermark sequence includes: The gray-level co-occurrence matrix of the image array of the target area of the seal is statistically analyzed, and the gray-level co-occurrence matrix is flattened into the gray-level feature distribution vector; Perform a discrete cosine transform on the image array of the target area of the seal and output frequency domain transformed data; Mid-to-high frequency band data is separated from the frequency domain transform data; wherein, the mid-to-high frequency band data refers to the data in which the frequency components are located in the coefficient matrix after discrete cosine transform. Signals within the range, of which This refers to the spatial sampling frequency during image acquisition. By filtering out low-frequency components that represent the image background, the subtle texture features of the seal edge can be preserved, providing a stable source of original features for subsequent fingerprint generation.
[0011] Perform binarization encoding conversion on the mid-to-high frequency band data to output a binary sequence; The binary sequence is set as the frequency domain hidden watermark sequence.
[0012] Furthermore, the automatic detection method for power archive seals based on a single-stage target detection model described in this invention, wherein the tensor product calculation of the grayscale feature distribution vector and the frequency domain hidden watermark sequence is performed to output the encrypted fingerprint primary key, includes: The gray-level feature distribution vector and the frequency domain hidden watermark sequence are mapped to complex space and their outer product is calculated to output the feature matrix. Perform a one-way hash function on the feature matrix and output a fixed-length string; Set the fixed-length string as the encrypted fingerprint primary key.
[0013] Furthermore, the automatic detection method for power archive seals based on a single-stage target detection model described in this invention, wherein the step of inputting the topological semantic tensor into the single-stage target detection model for forward computation and outputting the seal category and bounding box coordinates of the candidate seal points, includes: The topological semantic tensor is classified and regressed using a multilayer perceptron algorithm, and the category probability distribution and coordinate offset of the candidate imprint chapter points are output. The category of the seal is determined using the category probability distribution; Obtain the pre-set anchor point bounding box in the single-stage target detection model; The anchor point frame is adjusted using the coordinate offset, and the bounding box coordinates are output.
[0014] Furthermore, the automatic detection method for power archive seals based on a single-stage target detection model described in this invention, after importing the encrypted fingerprint primary key, the seal category, and the bounding box coordinates into the document management system, further includes: Receive an anti-counterfeiting verification request and obtain the image of the seal to be verified carried in the anti-counterfeiting verification request; Extract the grayscale feature distribution vector to be verified and the frequency domain hidden watermark sequence to be verified from the image of the seal to be verified; The tensor product of the gray-scale feature distribution vector to be verified and the frequency domain hidden watermark sequence to be verified is calculated to output the encrypted fingerprint to be verified. The document management system compares the encrypted fingerprint to be verified with the encrypted fingerprint primary key, and outputs the comparison result. When the comparison result is a match, the seal category and the bounding box coordinates are retrieved from the document management system based on the encrypted fingerprint primary key and then output.
[0015] Beneficial effects of this invention: Existing general object detection models are easily affected by dense text overlap and paper deformation when directly processing scanned image arrays of power archives. This paper proposes a new method: performing a two-dimensional discrete Fourier transform on the scanned image array to obtain local amplitude and phase. Frequency harmonic components are separated, and the phase overlap at spatial locations is calculated. A structural mask tensor is generated using the phase overlap exceeding a preset noise threshold. This structural mask tensor is then aligned and multiplied with the spatial feature tensor extracted through convolution to peel away the underlying paper texture from the physical optical signal dimension and output the underlying visual feature map. The bounding box center coordinates of text nodes and the two-dimensional coordinates of candidate stamp nodes are extracted. Physical three-dimensional deformation field parameters are constructed based on the pixel curvature of the text baseline and determined as curvature distribution data. The two-dimensional Euclidean distance between text nodes and candidate stamp nodes is substituted into the physical three-dimensional deformation field parameters for line integral calculation to obtain the physical surface geodesic distance. The physical surface geodesic distance is converted into edge weights of a graph adjacency matrix and a graph convolution algorithm is then performed. The frequency-space dual-stream decoupling operation and the three-dimensional physical deformation topology inference operation are deeply coordinated. The generated topological semantic tensor can guide the single-stage target detection model to perform accurate forward calculations. This overcomes the shortcomings of conventional pure vision detection models in adapting to complex layouts and curled archival materials, and significantly reduces the phenomenon of missed detection and false detection when seal elements are in an overlapping state.
[0016] Historically worn power archives often contain incomplete seals and blurred imprints. During the training phase of a single-stage object detection model, local image regions corresponding to the predicted bounding box coordinates are extracted. Pixel gradient calculations are performed on these local image regions to construct a pixel gradient vector field. The divergence integral value of the pixel gradient vector field in the boundary ring region is calculated. When the divergence integral value is less than a preset ink diffusion divergence threshold, the penalty coefficient of the bounding box regression loss function is amplified. The amplified penalty coefficient is used to update the network parameters of the single-stage object detection model. The divergence of the bottom-level pixel gradient vector field and the high-level bounding box regression loss function form a closed feedback adjustment chain. This feedback adjustment chain forces the single-stage object detection model to expand the predicted bounding box outwards until it captures the complete physical diffusion edge. This adaptive loss function penalty mechanism overcomes the technical bias of boundary drift caused by fixed visual gradient threshold inference and solves the technical pain point of high missed detection rate of key seal elements on extremely degraded materials.
[0017] Simply outputting visual coordinates cannot directly meet the stringent requirements of compliant archiving of power sector documents. This process involves extracting an image array of the target area for the seal from a scanned image array of power sector documents. The gray-level co-occurrence matrix is statistically analyzed and flattened into a gray-level feature distribution vector. A discrete cosine transform is performed on the image array of the target area for the seal to separate the mid-to-high frequency data. The mid-to-high frequency data is then binarized and encoded to output a binary sequence, which is then set as a frequency-domain hidden watermark sequence. The gray-level feature distribution vector and the frequency-domain hidden watermark sequence are mapped to complex space for outer product calculation, outputting a feature matrix. A one-way hash function is then applied to the feature matrix to calculate and output an encrypted fingerprint key. The micro-texture gray-level distribution features and the frequency-domain steganography sequence undergo cross-modal high-dimensional spatial cross-fusion, forming an encrypted fingerprint key with a unique physical correspondence. This cross-dimensional verification step changes the conventional workflow of separating target detection and database indexing, achieving tight coupling between the anti-counterfeiting and traceability verification mechanism and the underlying visual detection features, thus improving the business confidence of the document management system in performing anti-counterfeiting indexing of documents. Attached Figure Description
[0018] To more clearly illustrate the technical solution of the present invention, the drawings used in the embodiments will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on the drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating the automatic detection method for power archive seals based on a single-stage target detection model according to the present invention. Detailed Implementation
[0020] To make the technical solution of the present invention clearer, the present invention will be clearly and completely described below with reference to specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention. The various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. To better understand the purpose of the present invention, the present invention will be described in further detail below.
[0021] Please see Figure 1 This invention relates to an automatic detection method for power archive seals based on a single-stage target detection model, comprising: Step 1: Obtain an array of scanned images of power archives, the array of scanned images of power archives containing stamp targets and overlapping text; Step 2: Extract the structural mask tensor and spatial feature tensor of the power archive scan image array, align and multiply the structural mask tensor and the spatial feature tensor, and output the bottom-level visual feature map. Step 3: Extract the two-dimensional coordinates of the candidate stamp region from the underlying visual feature map, and map the two-dimensional coordinates to candidate stamp nodes; Step 4: Extract the bounding box center coordinates of the overlapping text in the power archive scan image array, and map the bounding box center coordinates to text nodes; Step 5: Extract the curvature distribution data of the power archive scan image array, perform distance mapping transformation on the candidate stamp nodes and the text nodes based on the curvature distribution data, and output the topological semantic tensor; Step 6: Input the topological semantic tensor into the single-stage target detection model for forward computation, output the seal category and bounding box coordinates of the candidate seal points, and import the seal category and bounding box coordinates into the document management system to perform archive anti-counterfeiting indexing.
[0022] To more clearly demonstrate the core technical logic of this invention, the main process of the method of this invention is first described in detail: In the business scenario of digital archiving and quality inspection of power archives, for example, when processing a large number of power purchase contract documents entered by high-speed scanning equipment, the system receives the power archive scan image array transmitted by the hardware device; the power archive scan image array is composed of two-dimensional pixel matrix data of red, green and blue color channels, and is specifically presented as a complex digital image with the official seals of multiple companies, the seal across the seam, and overlapping with the dense text on the bottom layer.
[0023] To separate the seal edge from the underlying paper texture from the physical optical signal dimension, the processing module performs a two-dimensional discrete Fourier transform on the scanned image array of the electrical archives. This transforms the pixel signals, originally expressed in the spatial domain, into the frequency domain, acquiring the local amplitude and local phase of the image signal. Furthermore, it separates the frequency harmonic components in different frequency ranges from the transformed frequency domain signal. The computation unit uses a phase consistency algorithm to calculate the phase coincidence degree of the frequency harmonic components at the same spatial location. Phase coincidence degree, as an independent feature dimension, characterizes the absolute physical structure information of the image signal unaffected by changes in local illumination contrast. Since the scanning instrument's light source flicker generates low-frequency noise stripes, the computation unit uses a preset noise threshold for mathematical filtering, selecting phase coincidence degrees greater than the preset noise threshold. The selected phase coincidence degrees are then used to generate a structure mask tensor composed of binarized pixels.
[0024] For the same image, the network model uses convolution operations to simultaneously extract the spatial feature tensor of the power archive scan image array. The spatial feature tensor represents the continuous spatial distribution of color gradients within the image. Next, the network model aligns and multiplies the structure mask tensor with the spatial feature tensor, and uses the binarization property of the structure mask tensor to perform channel-by-channel gating filtering on the spatial feature tensor.
[0025] Extracting the underlying visual feature map involves visual texture analysis, and also requires joint inference based on the layout and typesetting of the physical archival materials themselves. The extraction module extracts the two-dimensional coordinates of candidate stamp regions with continuous red pixel distributions from the underlying visual feature map, and maps these coordinates to candidate stamp nodes for graph neural network computation. Simultaneously, the recognition module calls an optical character recognition program to extract the bounding box center coordinates of overlapping text in the scanned image array of the power archives. This overlapping text contains key typesetting characters related to the contract's date of signature and the signatory's name; the recognition module maps the bounding box center coordinates to text nodes.
[0026] During the scanning process of power archives, the area near the binding spine physically curls. Therefore, the calculation module extracts the text baseline in the pixel edge region of the scanned image array of the power archives and calculates the pixel curvature of the text baseline. The pixel curvature reflects, in numerical form, the degree of physical distortion of the text layout baseline from its absolute horizontal state. The calculation module uses the pixel curvature to construct physical three-dimensional deformation field parameters characterizing the curled state of the paper in three-dimensional physical space, and determines the physical three-dimensional deformation field parameters as curvature distribution data.
[0027] The computation module calculates the two-dimensional Euclidean distance between text nodes and candidate stamp nodes. This Euclidean distance is then substituted into the physical three-dimensional deformation field parameters for line integral calculation, yielding the geodesic distance on the physical surface representing the unfolded and flattened state of the paper. Subsequently, the computation module converts the physical surface geodesic distance into edge weights in a graph adjacency matrix. This edge weight matrix defines the spatial relative topological association between each visual node. Finally, the network model uses a graph convolution algorithm to perform feature aggregation calculations on the edge weights, text nodes, and candidate stamp nodes, outputting a topological semantic tensor that integrates global typesetting rules and binding deformation compensation information.
[0028] To improve the robustness of the single-stage object detection model in detecting diverse seals in power archives, the method described in this invention logically includes two complementary stages: 'pre-detection optimization' and 'real-time inference'. Although focusing on the automatic detection of seals, the method of updating network parameters using an amplified penalty coefficient is an adaptive online optimization step in the detection process. By dynamically acquiring pixel gradient vector fields and feeding back the loss function during the detection loop, the model can correct the judgment criteria for incomplete ink boundaries in real time, thereby physically supporting the accuracy of the forward computation. The training module uses the acquired training image array with real label boxes to train the single-stage object detection model. Specifically, the training image array is input into the single-stage object detection model, and the single-stage object detection model outputs the coordinates of the predicted bounding boxes after forward propagation through the neural network.
[0029] The training module extracts the local image regions corresponding to the predicted bounding box coordinates from the training image array; the computation module performs pixel gradient calculations based on edge detection operators on the local image regions, outputting pixel gradient calculation results that reflect the degree of drastic changes in pixel grayscale values. The computation module constructs a pixel gradient vector field for the local image regions based on the pixel gradient calculation results. The pixel gradient vector field indicates the physical evolution direction and intensity of the capillary diffusion of stamp ink within the porous paper fibers.
[0030] The computation module extracts the boundary ring region contained within a local image area. This boundary ring region is confined within a geometric space of a set pixel width inside and outside the predicted bounding box edge. Simultaneously, the computation module calculates the divergence integral value of the pixel gradient vector field within the boundary ring region. This divergence integral value mathematically quantifies the total flux of the physical ink diffusion energy of the stamp along the closed boundary. The training module obtains the bounding box regression loss function within the single-stage object detection model. When the divergence integral value is less than a preset ink diffusion divergence threshold, it indicates that the predicted bounding box output by the model cuts off the originally continuous physical ink diffusion edge of the stamp. The computation module amplifies the penalty coefficient of the bounding box regression loss function through multiplication operations, obtaining an amplified penalty coefficient. The training module uses the backpropagation error gradient generated by the amplified penalty coefficient to update the network parameters of the single-stage object detection model.
[0031] After parameter updates, the inference module inputs the topological semantic tensor into the single-stage object detection model for forward computation. The single-stage object detection model uses a multilayer perceptron algorithm to perform classification and regression prediction on the topological semantic tensor, outputting the category probability distribution and coordinate offset of candidate seal stamps. The category probability distribution is presented as a one-dimensional vector containing the confidence score of each category. The inference module uses the category probability distribution to determine the seal category with the highest confidence. The inference module obtains the pre-set anchor boxes in the single-stage object detection model. The anchor boxes are pre-defined basic reference boxes based on the aspect ratios of a large number of real seals. The inference module uses the coordinate offset to perform non-linear spatial adjustments on the center coordinates and length and width parameters of the anchor boxes, outputting the bounding box coordinates mapped back to the original resolution image.
[0032] The verification module extracts the target area image array of the seal corresponding to the bounding box coordinates from the scanned image array of the power archives. It then calculates the gray-level co-occurrence matrix (GLCM) of the target area image array, which records the joint probability distribution of adjacent pixel pairs at different spatial directions and distances. The verification module flattens the GLCM into a gray-level feature distribution vector characterizing the micro-texture properties of the seal's physical surface. The verification module performs a discrete cosine transform on the target area image array, outputting frequency domain transformed data. It then separates the mid-to-high frequency band data from the frequency domain transformed data, ensuring it is less susceptible to image compression and scanning distortion. Finally, the verification module performs binarization encoding on the mid-to-high frequency band data, outputting a binary sequence composed of logic high and low level data nodes. This binary sequence is then set as the frequency domain hidden watermark sequence.
[0033] The verification module maps the grayscale feature distribution vector and the frequency domain hidden watermark sequence to complex space for outer product calculation, outputting a feature matrix containing cross-modal high-dimensional features. The verification module then performs a one-way hash function on the feature matrix, outputting a fixed-length string, which is set as the encrypted fingerprint primary key mapping the physical characteristics of the seal entity. The system imports the encrypted fingerprint primary key, seal category, and bounding box coordinates into the document management system, which then writes the structured data into the underlying data tables of the relational database.
[0034] During the business workflow phase, the system receives an anti-counterfeiting verification request and retrieves the image of the seal to be verified carried in the request. Following the aforementioned data processing rules, the system extracts the grayscale feature distribution vector and the frequency domain hidden watermark sequence from the seal image, and performs a tensor product calculation on these two sequences to output the encrypted fingerprint to be verified. The system then initiates a memory comparison algorithm within the document management system to compare the encrypted fingerprint to be verified with the encrypted fingerprint's primary key. When the comparison result is a match, the system retrieves the seal category and bounding box coordinates from the document management system based on the encrypted fingerprint's primary key and outputs the result.
[0035] To further fully disclose the underlying operational rules of this invention, the following supplementary explanation of the key data processing paths in the above steps, combined with specific mathematical derivation equations and numerical verification processes, is provided: In the business scenario of digital archiving and quality inspection of power archives, for example, when processing a large batch of power purchase contract documents entered by high-speed scanning equipment, the system receives a power archive scanned image array from the hardware device. The power archive scanned image array consists of a two-dimensional pixel matrix data of red, green, and blue color channels, specifically presented as a complex digital image with multiple company seals, cross-sealing seals, and overlapping with the underlying dense text. To separate the seal edges from the underlying paper texture from the physical optical signal dimension, the computing unit equipped with an independent digital signal processing core performs a two-dimensional discrete Fourier transform on the power archive scanned image array. The two-dimensional discrete Fourier transform converts the pixel signals originally expressed in the spatial domain to the frequency domain, obtaining the local amplitude and local phase of the image signal.
[0036] The computational model for the two-dimensional discrete Fourier transform is as follows:
[0037] In the formula: This represents the converted frequency domain signal. The array of scanned images representing power archives is located at spatial coordinates. and The pixel grayscale value at that location, The pixel width represents the array of scanned images from the power archive. The pixel height represents the array of scanned images from the power archive. The frequency variable represents the horizontal direction. The frequency variable represents the vertical direction. Represents the imaginary unit. It represents the base of the natural logarithm.
[0038] The processing unit acquires the converted frequency domain signal based on the computational model and separates the frequency harmonic components in different frequency ranges from the signal. The processing unit uses a phase consistency algorithm to calculate the phase coincidence of the frequency harmonic components at the same spatial location. Phase coincidence, as an independent feature dimension, characterizes the absolute physical structure information of the image signal, unaffected by changes in local illumination contrast. The physical derivation model for calculating phase coincidence is as follows:
[0039] In the formula: Represents in spatial coordinates and Phase coincidence at the point Hierarchical index representing frequency harmonic components. Represents in spatial coordinates and Frequency band weighting coefficient at that location Representing the The frequency harmonic components of each level are located in spatial coordinates. and Local amplitude at that location Representing the The frequency harmonic components of each level are located in spatial coordinates. and Local phase at that point, The frequency harmonic components are represented by the following spatial coordinates: and The weighted average phase at that point. The preset noise threshold representing the flickering of the light source in the scanning instrument. This represents a tiny constant to prevent the denominator from being zero.
[0040] Since the light source flicker of the scanning device will generate low-frequency noise stripes, the computing unit uses a preset noise threshold to perform mathematical logic conditional filtering, selects the phase overlap degree that is greater than the preset noise threshold, and uses the selected phase overlap degree to generate a structure mask tensor composed of binary pixels.
[0041] For the same input image of a power archive, the network model uses convolution operations to simultaneously extract the spatial feature tensor of the scanned image array of the power archive. The spatial feature tensor represents the continuous spatial distribution of color gradients within the image. The network model performs aligned multiplication of the structural mask tensor and the spatial feature tensor, and utilizes the binarization property of the structural mask tensor to perform channel-wise gating filtering on the spatial feature tensor, outputting the low-level visual feature map. Specifically, the aligned multiplication refers to performing element-wise multiplication (Hadamard Product) on the structural mask tensor and the spatial feature tensor in the same spatial dimension; this operation uses a binarized mask matrix as a hardware gating signal to directly mask the corresponding non-stamp background areas in the spatial feature tensor, achieving truncation of background noise propagation.
[0042] The extraction module extracts the two-dimensional coordinates of candidate stamp regions with continuous red pixel distributions from the underlying visual feature map and maps these coordinates to candidate stamp nodes for graph neural network computation. The recognition module calls an optical character recognition program to extract the bounding box center coordinates of overlapping text in the scanned image array of power archives. The overlapping text contains key typographical characters indicating the contract's date of signature and the signatory's name category. The recognition module maps the bounding box center coordinates to text nodes.
[0043] During the scanning process of power sector archives, physical curling inevitably occurs near the binding spine. The calculation module extracts the text baseline in the pixel edge region of the scanned image array of the power sector archives and calculates the pixel curvature of the text baseline using second derivative operations. The pixel curvature numerically reflects the degree of physical distortion of the text layout baseline from its absolute horizontal state.
[0044] The equation for calculating pixel curvature is:
[0045] In the formula: The text baseline is represented by the horizontal coordinate. Pixel curvature at that location The text baseline is represented by the horizontal coordinate. The first derivative value at that point, The text baseline is represented by the horizontal coordinate. The second derivative value at the specified location. The calculation module uses pixel curvature to construct physical three-dimensional deformation field parameters characterizing the paper's curled state in three-dimensional physical space.
[0046] The equations for the physical three-dimensional deformation field parameters are:
[0047] In the formula: Represents the physical three-dimensional deformation field parameters. This represents the deformation magnification factor based on the scanner's optical depth-of-field calibration. The text baseline is represented by the horizontal coordinate. Pixel curvature at that location The curling attenuation coefficient represents the physical bending stiffness of the paper. Represents the horizontal coordinate. Representing the vertical coordinates. The calculation module determines the physical three-dimensional deformation field parameters as curvature distribution data. The calculation module further calculates the two-dimensional Euclidean distance between the text node and the candidate stamp node. The calculation module substitutes the two-dimensional Euclidean distance into the physical three-dimensional deformation field parameters to perform line integral calculation, obtaining the geodesic distance of the physical surface in the restored flat state of the paper.
[0048] The integral formula for the distance of geodesics from a physical surface is:
[0049] In the formula: The distance between geodesics on the physical surface representing the flattened state of the restored paper. This represents the starting two-dimensional coordinates of the text node within the array of scanned images from the power archive. The two-dimensional coordinates of the candidate stamp node in the power archive scan image array represent the termination point. Represents the physical three-dimensional deformation field parameters. Representing the physical three-dimensional deformation field parameters on the horizontal coordinate Partial derivatives in direction, Represents the physical three-dimensional deformation field parameters in the vertical coordinate. Partial derivatives in direction, The tiny line segment element on the physical surface that represents the connection between the text node and the candidate stamp node.
[0050] The computation module converts the geodesic distances of the physical surface into edge weights of a graph adjacency matrix. The edge weight matrix defines the spatial relative topological association between each visual node. The network model uses a graph convolution algorithm to perform feature aggregation calculations on edge weights, text nodes, and candidate stamp nodes, outputting a topological semantic tensor that integrates global typesetting rules and binding deformation compensation information.
[0051] The graph neural network model consists of an input layer, multiple graph convolutional hidden layers, and an output layer. The input layer receives text nodes, candidate stamp nodes, and an edge weight matrix. The multiple graph convolutional hidden layers use the edge weight matrix to perform neighborhood feature aggregation operations on the text nodes and candidate stamp nodes. This neighborhood feature aggregation operation performs a weighted summation of the feature vectors of spatially adjacent nodes. The output layer performs a non-linear activation transformation on the weighted summation of the feature vectors, outputting a topological semantic tensor.
[0052] The single-stage object detection model consists of a feature extraction backbone network, a feature pyramid network, and a detection head module at its underlying architecture. The feature extraction backbone network receives the underlying visual feature maps and performs multi-scale convolutional downsampling operations to extract a multi-scale spatial feature set containing local stamp texture and morphological features. To deeply integrate the AI model with the specific layout scenarios of power archives, the feature pyramid network is configured with tensor fusion nodes. These tensor fusion nodes concatenate and stitch together the multi-scale spatial feature set and the topological semantic tensor along the channel dimension, outputting a fused feature tensor that includes global layout rule constraints and binding deformation compensation parameters. The detection head module receives the fused feature tensor to perform subsequent dense object prediction tasks.
[0053] To improve the ability of the single-stage object detection model to detect incomplete and blurred seals in historical archives, the training module uses an array of training images with real label boxes to fine-tune the network parameters of the single-stage object detection model.
[0054] The training module inputs the training image array into the single-stage object detection model, which outputs the coordinates of the predicted bounding boxes after the forward pass of the neural network. The computation module extracts the local image regions corresponding to the predicted bounding box coordinates from the training image array, and performs pixel gradient calculation on the local image regions using a hardware acceleration channel equipped with an edge detection operator, outputting the pixel gradient calculation results that reflect the degree of drastic change in pixel grayscale values.
[0055] The computation module constructs a pixel gradient vector field for the local image region based on the pixel gradient calculation results. The pixel gradient vector field indicates the direction and intensity of the physical evolution of the stamp ink undergoing capillary diffusion within the porous paper fibers.
[0056] The computation module extracts the boundary ring region contained within a local image area. The boundary ring region is defined within a geometric space of a set pixel width inside and outside the prediction box edge. The computation module calculates the divergence integral value of the pixel gradient vector field over the boundary ring region. The divergence integral value mathematically quantifies the total flux of the physical diffusion energy of the ink on the closed boundary.
[0057] The mathematical equation for the divergence integral is:
[0058] In the formula: This represents the divergence integral of the pixel gradient vector field over the boundary annular region. A two-dimensional integral surface region representing the boundary annular region. The pixel gradient vector field is represented by the coordinates in space. and The horizontal gradient component at that location, The pixel gradient vector field is represented by the coordinates in space. and The vertical gradient component at that location. This represents the rate of change of the horizontal gradient component in the horizontal direction. This represents the rate of change of the vertical gradient component in the vertical direction. The calculus element representing the horizontal coordinate. The calculus element representing the vertical coordinate.
[0059] The training module extracts the bounding box regression loss function from the single-stage object detection model. A divergence integral value less than the preset ink diffusion divergence threshold means that the predicted bounding box output by the model cuts off the originally continuous physical ink diffusion edge of the stamp.
[0060] The computation module amplifies the penalty coefficient of the bounding box regression loss function through digital multiplication. The training module uses the backpropagation error gradient generated by the amplified penalty coefficient to update the network parameters of the single-stage object detection model.
[0061] During the network parameter update phase, the training module uses the Adaptive Moment Estimation (IME) algorithm as the parameter update engine for backpropagation. To standardize the model's convergence trajectory, the initial learning rate of the IME algorithm is set to 0.001, and the weight decay coefficient is set to 0.0005. The training module divides the training image array with real-world bounding boxes into multiple independent training batches, with a batch size of 16 images. The single-stage object detection model performs iterative training with a training cycle parameter set to 100. In each iteration, the global loss gradient is calculated based on the amplified penalty coefficient, and the connection weights of the multilayer perceptron algorithm and convolutional kernels in the network model are gradually adjusted until the overall loss value decreases to within the convergence threshold range.
[0062] After the parameters are updated, the inference module inputs the topological semantic tensor into the single-stage target detection model for forward computation.
[0063] The single-stage object detection model utilizes a multilayer perceptron algorithm to perform joint classification and regression prediction on the topological semantic tensor and the fused feature tensor. The multilayer perceptron algorithm is configured as a feedforward neural network structure in terms of physical topology. This structure includes an input layer, two fully connected hidden layers, and an output layer. Both fully connected hidden layers are configured with a linear rectified activation function and a random deactivation layer with a dropout rate of 0.2. The input layer receives the topological semantic tensor and the fused feature tensor, sequentially passing the high-dimensional signal through the fully connected hidden layers for nonlinear spatial feature mapping. The output layer is divided into a classification prediction branch and a regression prediction branch. The classification prediction branch uses a normalized exponential function to perform a probability transformation on the feature signal, outputting the class probability distribution of candidate imprinted section points; the regression prediction branch uses linear matrix mapping operations to output the coordinate offset representing the scaling and translation states of the bounding box.
[0064] The category probability distribution is presented as a one-dimensional vector containing the confidence scores of each category. The inference module uses the category probability distribution to determine the seal category with the highest confidence. The inference module obtains the pre-set anchor boxes in the single-stage object detection model. The anchor boxes are basic reference boxes predefined based on the aspect ratios of a large number of real seals. The inference module uses coordinate offsets to perform non-linear spatial adjustments on the center coordinates and length and width parameters of the anchor boxes, and outputs the bounding box coordinates mapped back to the original resolution image.
[0065] The verification module extracts the target area image array of the seal corresponding to the bounding box coordinates from the scanned image array of the power archives, and calculates the gray-level co-occurrence matrix of the target area image array. The gray-level co-occurrence matrix records the joint probability distribution of adjacent pixel pairs in different spatial directions and distances. The verification module flattens the gray-level co-occurrence matrix into a gray-level feature distribution vector characterizing the micro-texture properties of the physical surface of the seal. The verification module performs a discrete cosine transform on the target area image array of the seal, outputting frequency domain transformed data. The verification module separates the mid-to-high frequency band data from the frequency domain transformed data, which is not easily affected by image compression and scanning distortion, performs binarization encoding conversion on the mid-to-high frequency band data, and outputs a binary sequence composed of logic high and low level data nodes.
[0066] The verification module sets the binary sequence as the frequency domain hidden watermark sequence. It then maps the grayscale feature distribution vector and the frequency domain hidden watermark sequence to complex space for outer product calculation, outputting a feature matrix containing cross-modal high-dimensional features. There is collaborative logic between the multilayer sensing algorithm's classification and regression prediction steps and the encrypted fingerprint generation steps. The precise bounding box coordinates output by the multilayer sensing algorithm provide accurate region of interest (ROI) location for encrypted fingerprint extraction. Simultaneously, by associating the classification prediction results with the encrypted fingerprint primary key, a dual verification field of visual features and anti-counterfeiting features is constructed, effectively cutting off the false detection bias path caused by a single model judgment and improving the reliability of digital quality inspection of power archives.
[0067] The derivation formula for the tensor product of the characteristic matrix is as follows:
[0068] In the formula: The characteristic matrix output after mapping to complex space is located at the th line and number Complex elements of a column The first one representing the gray-level feature distribution vector Each dimension value The first, representing the frequency domain hidden watermark sequence Each dimension value This represents the phase offset factor generated based on the power archive timestamp data. The verification module performs a one-way hash function calculation on the feature matrix, outputs a fixed-length string, and sets this fixed-length string as the encrypted fingerprint key that uniquely maps the characteristics of the current physical seal entity.
[0069] The system imports the encrypted fingerprint primary key, seal category, and bounding box coordinates into the document management system to perform anti-counterfeiting indexing. During the workflow phase, the system receives an anti-counterfeiting verification request and retrieves the seal image to be verified carried in the request. Following synchronized data processing rules, the system extracts the grayscale feature distribution vector and the frequency domain hidden watermark sequence from the seal image. The system performs a tensor product calculation on the grayscale feature distribution vector and the frequency domain hidden watermark sequence to output the encrypted fingerprint to be verified. The system compares the encrypted fingerprint to be verified with the encrypted fingerprint primary key in the document management system. When the comparison result is a match, the system retrieves the seal category and bounding box coordinates from the document management system based on the encrypted fingerprint primary key and outputs them.
[0070] This paper presents a numerical implementation case study with coherent data and computational characteristics, based on a real-world power contract archiving and quality inspection environment. The scanning hardware receives a scanned image array of power contract data with a resolution of 2048 pixels wide and 1536 pixels high. The image processing chip extracts a local image patch located between 500 and 600 pixels horizontally and 800 and 900 pixels vertically. This patch is then substituted into a two-dimensional discrete Fourier transform calculation model to extract the high-frequency harmonic components with a hierarchical index of 2.
[0071] The computation unit extracts the local amplitude value of the first pixel as 0.85 and the local phase value as 1.2 rad. Combining a preset noise threshold of 0.15 and a small constant of 0.01, the computation unit substitutes these values into the physical derivation model for phase coincidence and outputs a phase coincidence value of 0.78 for the first pixel. Based on the conclusion that 0.78 is greater than the preset noise threshold of 0.15, the computation unit maps the first pixel to a binary value of 1 and fills it into the structural mask tensor. The recognition module locates a text node containing the contract's date of signature. The calculation module detects that the first derivative of the text baseline near the binding spine at a horizontal coordinate of 1200 pixels is 0.2 and the second derivative is 0.05. Substituting these values into the pixel curvature calculation equation yields a pixel curvature value of 0.047. With the deformation amplification factor set to 10 and the attenuation factor set to 0.00018, the model was substituted into the equation of the physical three-dimensional deformation field parameters, and the depth deformation value deviating from the horizontal plane was found to be 0.38 mm.
[0072] The calculation module detects a 2D Euclidean distance of 150 pixels between the text node and the candidate stamp node on the image plane. Substituting the depth deformation value into the integral formula for the physical surface geodesic distance, the module obtains a physical surface geodesic distance of 156.5 pixels. The network model converts this 156.5-pixel physical surface geodesic distance into edge weights in the graph adjacency matrix and performs forward computation to output the predicted bounding box coordinates. The computation module substitutes the divergence integral value into the mathematical equation to calculate the total flux in the outer boundary ring region of the predicted bounding box, obtaining a divergence integral value of 3.5.
[0073] The system compares the results against a preset ink diffusion divergence threshold of 4.0, determines that the current predicted bounding box cuts off the physical diffusion edge of the ink, and triggers a penalty mechanism to amplify the penalty coefficient of the bounding box regression loss function. The verification module extracts the first dimension of the grayscale feature distribution vector as 128 and the first dimension of the frequency domain hidden watermark sequence as 1. The verification module substitutes the tensor product derivation formula of the feature matrix with a phase offset factor of 0.5 rad, calculating that the complex value of the first element of the feature matrix is 112.3 plus 61.3 multiplied by the imaginary unit. A one-way hash function converts the feature matrix into an encrypted fingerprint key, which is then imported into the document management system for subsequent comparison tasks.
[0074] The computational unit uses a preset noise threshold for mathematical filtering. The preset noise threshold is set to 0.15, defining the filtering boundary for low-amplitude background noise caused by the flickering of the scanning device's light source. The training module compares the divergence integral value with a preset ink spread divergence threshold, set to 4.0, which serves as the baseline for determining whether the predicted bounding box completely encloses the physical ink spread edge. The neural network processing unit monitors the overall loss value within the iteration cycle and compares it with a convergence threshold, set to 0.05. A value of 0.05 indicates that the neural network model has completed parameter optimization and stopped iterative training.
[0075] As a further extension of the technical solution of the present invention, the following is a specific embodiment focusing on the underlying hardware coordination and scheduling layer execution logic: In the application scenario of digital archiving and quality inspection of power archives, the image sensing components of the high-speed scanning equipment collect the optical reflection signals of the power archive pages according to the set sampling clock frequency, and convert the optical reflection signals into analog electrical signals. The analog-to-digital conversion logic unit receives the analog electrical signals and outputs a discrete digital pixel stream; at the same time, the bus controller responds to the hardware interrupt request from the image sensing components and allocates a high-speed direct memory access channel. Through the high-speed direct memory access channel, the digital pixel stream is continuously written into the predetermined buffer address segment of the system main memory according to the preset bus addressing parameters, thereby forming a power archive scanned image array, which resides in the main memory and awaits hardware scheduling and processing.
[0076] The microprocessor unit's instruction scheduling module sends a computation start instruction to the digital signal processing coprocessor (DSP) via the internal control bus. The DSP loads the power archive scan image array according to the predefined instruction register configuration parameters, executes butterfly arithmetic logic using a multiply-accumulate array to complete a two-dimensional discrete Fourier transform, and then writes the separated frequency harmonic components into the internal high-speed temporary storage. The floating-point unit reads the frequency harmonic components from the high-speed temporary storage and executes a phase coincidence comparison instruction, sets a bit-select signal exceeding a preset noise threshold, and then generates a structure mask tensor and stores it in the logic array. The tensor core in the synchronization unit is activated by a hardware trigger pulse, performs convolution calculations, and outputs a spatial feature tensor. The matrix multiplier reads the structure mask tensor and spatial feature tensor according to the synchronization clock beat, performs gated multiplication logic calculations, and pushes the result of the gated multiplication logic calculation as the underlying visual feature map into the shared cache layer.
[0077] A dedicated graphics analysis unit reads the underlying visual feature map through a bus interface, identifies the distribution of continuous red pixels using an internal comparator array, and writes the two-dimensional coordinates of the candidate stamp region into a coordinate register array to form candidate stamp nodes. A dedicated character recognition integrated circuit extracts the bounding box center coordinates of overlapping text and encapsulates these coordinates into text nodes, writing them into the adjacent address space. The vector calculation unit of the microprocessor extracts the text baseline of the pixel edge region, executes hardware-level second-order differential instructions to obtain the pixel curvature of the text baseline, writes the pixel curvature into the deformation parameter configuration register to generate physical three-dimensional deformation field parameters, defines these parameters as curvature distribution data, and uses a hardware integrator to perform integration and accumulation calculations on the physical three-dimensional deformation field parameters, outputting the physical surface geodesic distance. The graph computation accelerator loads the physical surface geodesic distance, updates the adjacency matrix in the edge weight static random access memory, and then executes aggregation scheduling instructions on the text nodes and candidate stamp nodes to calculate the topological semantic tensor, which is then written back to the corresponding explicit address in main memory.
[0078] While the hardware state machine is in the network parameter fine-tuning cycle, the storage controller sends the training image array to the neural network processing unit. The neural network processing unit calls the activation function hardware module and the tensor operation engine to perform forward computation and output the predicted bounding box coordinates to the result register. The digital signal processing coprocessor extracts local image regions, uses the hardware edge detection operator pipeline to output pixel gradient calculation results, and constructs a pixel gradient vector field. The integrator accumulator circuit executes the area integration instruction on the boundary ring region and outputs the divergence integral value to the floating-point comparator. When the floating-point comparator determines that the divergence integral value is less than the preset ink spread divergence threshold stored in the constant register, it outputs a low-level enable signal to the arithmetic logic unit. The arithmetic logic unit responds to the low-level enable signal by executing a multiplication instruction to amplify the penalty coefficient of the bounding box regression loss function. The backpropagation hardware engine reads the amplified penalty coefficient, calculates the error gradient data packets on the bus, and then updates the network parameters of the single-stage object detection model and stores them in non-volatile storage.
[0079] After the hardware state machine switches to inference mode, the neural network processing unit reads the topological semantic tensor from the explicit address and sends it to the multilayer perceptron acceleration array. The multilayer perceptron acceleration array executes classification and regression prediction instructions, outputting the seal category and bounding box coordinates of candidate seal points. The hardware capture engine extracts the seal target region image array from main memory based on the bounding box coordinate instructions and sends it to the microprocessor unit. The microprocessor unit starts the gray-level statistical logic gate array to calculate the gray-level co-occurrence matrix and outputs the gray-level feature distribution vector to the data input port of the cryptographic coprocessor. The synchronous operation logic unit executes discrete cosine transform calculation instructions on the seal target region image array, extracts data bits from the high-frequency band data latch to generate a frequency domain hidden watermark sequence. The cryptographic coprocessor sends the gray-level feature distribution vector and the frequency domain hidden watermark sequence into the tensor product hardware multiplier to obtain the feature matrix, and calls the built-in one-way hash logic circuit to perform hardware hash operation on the feature matrix to generate a fixed-length string as the encrypted fingerprint key. The microprocessor unit initiates direct memory access transmission through the external input / output interface, pushing the encrypted fingerprint primary key, seal type, and bounding box coordinates into the physical database server of the document management system via the high-speed interconnect bus. Finally, the physical database server completes the physical persistence of the anti-counterfeiting index data of the archives to disk through the disk array controller.
Claims
1. An automatic detection method for power archive seals based on a single-stage target detection model, characterized in that, include: Acquire an array of scanned images of power archives, the array of scanned images of power archives containing stamp targets and overlapping text; Extract the structural mask tensor and spatial feature tensor of the power archive scan image array, align and multiply the structural mask tensor and the spatial feature tensor, and output the bottom-level visual feature map; Extract the two-dimensional coordinates of the candidate stamp region from the underlying visual feature map, and map the two-dimensional coordinates to candidate stamp nodes; Extract the bounding box center coordinates of the overlapping text in the power archive scan image array, and map the bounding box center coordinates to text nodes; Extract the curvature distribution data of the power archive scan image array, perform distance mapping transformation on the candidate stamp nodes and the text nodes based on the curvature distribution data, and output a topological semantic tensor; The topological semantic tensor is input into a single-stage target detection model for forward computation, and the seal category and bounding box coordinates of the candidate seal points are output. The seal category and bounding box coordinates are then imported into the document management system to perform archive anti-counterfeiting indexing.
2. The automatic detection method for power archive seals based on a single-stage target detection model according to claim 1, characterized in that, The process of extracting the structure mask tensor and spatial feature tensor of the power archive scanned image array, aligning and multiplying the structure mask tensor and the spatial feature tensor, and outputting the low-level visual feature map includes: A two-dimensional discrete Fourier transform is performed on the power archive scan image array to obtain local amplitude and local phase, and frequency harmonic components are separated. Calculate the phase coincidence of the frequency harmonic components in spatial location; The phase coincidence degree greater than a preset noise threshold is selected, and the selected phase coincidence degree is used to generate the structure mask tensor; The spatial feature tensor of the power archive scanned image array is extracted using convolution operations; The structural mask tensor and the spatial feature tensor are aligned and multiplied to output the bottom-level visual feature map.
3. The automatic detection method for power archive seals based on a single-stage target detection model according to claim 2, characterized in that, The extraction of curvature distribution data from the power archive scan image array includes: Extract the text baseline near the pixel edge region of the power archive scan image array; calculate the pixel curvature of the text baseline; The physical three-dimensional deformation field parameters are constructed using the pixel curvature; The physical three-dimensional deformation field parameters are determined as the curvature distribution data.
4. The automatic detection method for power archive seals based on a single-stage target detection model according to claim 3, characterized in that, The step of performing distance mapping transformation between the candidate stamp nodes and the text nodes based on the curvature distribution data, and outputting a topological semantic tensor, includes: Calculate the two-dimensional Euclidean distance between the text node and the candidate stamp node; Substitute the two-dimensional Euclidean distance into the physical three-dimensional deformation field parameters and perform line integral calculation to obtain the geodesic distance on the physical surface. The geodesic distances of the physical surface are converted into edge weights of the graph adjacency matrix; The edge weights, text nodes, and candidate stamp nodes are aggregated and calculated using a graph convolution algorithm to output the topological semantic tensor.
5. The automatic detection method for power archive seals based on a single-stage target detection model according to claim 4, characterized in that, Before inputting the topological semantic tensor into the single-stage object detection model for forward computation and outputting the seal category and bounding box coordinates of the candidate seal points, the method further includes: Obtain a training image array with real label boxes, input the training image array into the single-stage object detection model, and output the coordinates of the predicted boxes; Extract the local image region corresponding to the coordinates of the prediction box from the training image array; Perform pixel gradient calculation on the local image region and output the pixel gradient calculation result; construct the pixel gradient vector field of the local image region based on the pixel gradient calculation result; Extract the boundary ring region contained in the local image region; Calculate the divergence integral value of the pixel gradient vector field in the boundary annular region; Obtain the bounding box regression loss function in the single-stage object detection model; When the divergence integral value is less than the preset ink diffusion divergence threshold, the penalty coefficient of the bounding box regression loss function is amplified to obtain the amplified penalty coefficient. The network parameters of the single-stage target detection model are updated using the amplified penalty coefficient.
6. The automatic detection method for power archive seals based on a single-stage target detection model according to claim 5, characterized in that, The step of importing the seal category and the bounding box coordinates into the document management system to perform the archive anti-counterfeiting index includes: Extract the stamp target area image array corresponding to the bounding box coordinates from the scanned image array of the power archives; Extract the grayscale feature distribution vector and frequency domain hidden watermark sequence from the image array of the target area of the seal; The grayscale feature distribution vector is multiplied by the frequency domain hidden watermark sequence to calculate the tensor product and output the encrypted fingerprint key. Import the encrypted fingerprint key, the seal category, and the bounding box coordinates into the document management system.
7. The automatic detection method for power archive seals based on a single-stage target detection model according to claim 6, characterized in that, The step of extracting the grayscale feature distribution vector and the frequency domain hidden watermark sequence of the image array of the target region of the seal includes: The gray-level co-occurrence matrix of the image array of the target area of the seal is statistically analyzed, and the gray-level co-occurrence matrix is flattened into the gray-level feature distribution vector; Perform a discrete cosine transform on the image array of the target area of the seal and output frequency domain transformed data; The mid-to-high frequency band data is separated from the frequency domain transform data; Perform binarization encoding conversion on the mid-to-high frequency band data to output a binary sequence; The binary sequence is set as the frequency domain hidden watermark sequence.
8. The automatic detection method for power archive seals based on a single-stage target detection model according to claim 6, characterized in that, The step of performing a tensor product calculation between the grayscale feature distribution vector and the frequency domain hidden watermark sequence to output the encrypted fingerprint primary key includes: The gray-level feature distribution vector and the frequency domain hidden watermark sequence are mapped to complex space and their outer product is calculated to output the feature matrix. Perform a one-way hash function on the feature matrix and output a fixed-length string; Set the fixed-length string as the encrypted fingerprint primary key.
9. The automatic detection method for power archive seals based on a single-stage target detection model according to claim 8, characterized in that, The step of inputting the topological semantic tensor into a single-stage object detection model for forward computation and outputting the seal category and bounding box coordinates of the candidate seal marks includes: The topological semantic tensor is classified and regressed using a multilayer perceptron algorithm, and the category probability distribution and coordinate offset of the candidate imprint chapter points are output. The category of the seal is determined using the category probability distribution; Obtain the pre-set anchor point bounding box in the single-stage target detection model; The anchor point frame is adjusted using the coordinate offset, and the bounding box coordinates are output.
10. The automatic detection method for power archive seals based on a single-stage target detection model according to claim 9, characterized in that, After importing the encrypted fingerprint primary key, the seal category, and the bounding box coordinates into the document management system, the method further includes: Receive an anti-counterfeiting verification request and obtain the image of the seal to be verified carried in the anti-counterfeiting verification request; Extract the grayscale feature distribution vector to be verified and the frequency domain hidden watermark sequence to be verified from the image of the seal to be verified; The tensor product of the gray-scale feature distribution vector to be verified and the frequency domain hidden watermark sequence to be verified is calculated to output the encrypted fingerprint to be verified. The document management system compares the encrypted fingerprint to be verified with the encrypted fingerprint primary key, and outputs the comparison result. When the comparison result is a match, the seal category and the bounding box coordinates are retrieved from the document management system based on the encrypted fingerprint primary key and then output.
