Skip to content

Commit 86031c6

Browse files
committed
fix: Resolve type mismatch for CornerRefinementResult
1 parent c29b03d commit 86031c6

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

src/qr-decode/detect/cornerRefinement.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
1-
import type { FinderDetectionResult, Point } from '../types';
1+
import type { FinderDetectionResult, Point, CornerRefinementResult } from '../types';
22
import { calculateEdgeProjections, findFourthCorner } from './homography/edgeProjection';
33

4-
export interface CornerRefinementResult {
5-
refinedPatterns: FinderDetectionResult['patterns'];
6-
p4: Point;
7-
edgeProjections: {
8-
horizontal: Float32Array;
9-
vertical: Float32Array;
10-
};
11-
visualizationData: {
12-
p1: Point;
13-
p2: Point;
14-
p3: Point;
15-
initialP4: Point;
16-
refinedP4: Point;
17-
};
18-
}
19-
204
/**
215
* Step 5: Corner Refinement & P4 Detection
226
* Refines P1, P2, P3 and finds P4 using Edge Projection Analysis

0 commit comments

Comments
 (0)