We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c29b03d commit 86031c6Copy full SHA for 86031c6
1 file changed
src/qr-decode/detect/cornerRefinement.ts
@@ -1,22 +1,6 @@
1
-import type { FinderDetectionResult, Point } from '../types';
+import type { FinderDetectionResult, Point, CornerRefinementResult } from '../types';
2
import { calculateEdgeProjections, findFourthCorner } from './homography/edgeProjection';
3
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
-
20
/**
21
* Step 5: Corner Refinement & P4 Detection
22
* Refines P1, P2, P3 and finds P4 using Edge Projection Analysis
0 commit comments