refactor(server): use double

This commit is contained in:
Yaros
2026-03-24 15:08:46 +01:00
parent a71325a978
commit d1f58e6f46
3 changed files with 40 additions and 30 deletions
+10 -10
View File
@@ -227,34 +227,34 @@ export class SyncAssetOcrV1 {
@ApiProperty({ description: 'Asset ID' })
assetId!: string;
@ApiProperty({ description: 'Top-left X coordinate (normalized 01)' })
@ApiProperty({ type: 'number', format: 'double', description: 'Top-left X coordinate (normalized 01)' })
x1!: number;
@ApiProperty({ description: 'Top-left Y coordinate (normalized 01)' })
@ApiProperty({ type: 'number', format: 'double', description: 'Top-left Y coordinate (normalized 01)' })
y1!: number;
@ApiProperty({ description: 'Top-right X coordinate (normalized 01)' })
@ApiProperty({ type: 'number', format: 'double', description: 'Top-right X coordinate (normalized 01)' })
x2!: number;
@ApiProperty({ description: 'Top-right Y coordinate (normalized 01)' })
@ApiProperty({ type: 'number', format: 'double', description: 'Top-right Y coordinate (normalized 01)' })
y2!: number;
@ApiProperty({ description: 'Bottom-right X coordinate (normalized 01)' })
@ApiProperty({ type: 'number', format: 'double', description: 'Bottom-right X coordinate (normalized 01)' })
x3!: number;
@ApiProperty({ description: 'Bottom-right Y coordinate (normalized 01)' })
@ApiProperty({ type: 'number', format: 'double', description: 'Bottom-right Y coordinate (normalized 01)' })
y3!: number;
@ApiProperty({ description: 'Bottom-left X coordinate (normalized 01)' })
@ApiProperty({ type: 'number', format: 'double', description: 'Bottom-left X coordinate (normalized 01)' })
x4!: number;
@ApiProperty({ description: 'Bottom-left Y coordinate (normalized 01)' })
@ApiProperty({ type: 'number', format: 'double', description: 'Bottom-left Y coordinate (normalized 01)' })
y4!: number;
@ApiProperty({ description: 'Confidence score of the bounding box' })
@ApiProperty({ type: 'number', format: 'double', description: 'Confidence score of the bounding box' })
boxScore!: number;
@ApiProperty({ description: 'Confidence score of the recognized text' })
@ApiProperty({ type: 'number', format: 'double', description: 'Confidence score of the recognized text' })
textScore!: number;
@ApiProperty({ description: 'Recognized text content' })