"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AssetOcrResponseDto = void 0;
const openapi = require("@nestjs/swagger");
const swagger_1 = require("@nestjs/swagger");
class AssetOcrResponseDto {
    id;
    assetId;
    x1;
    y1;
    x2;
    y2;
    x3;
    y3;
    x4;
    y4;
    boxScore;
    textScore;
    text;
    static _OPENAPI_METADATA_FACTORY() {
        return { id: { required: true, type: () => String }, assetId: { required: true, type: () => String }, x1: { required: true, type: () => Number }, y1: { required: true, type: () => Number }, x2: { required: true, type: () => Number }, y2: { required: true, type: () => Number }, x3: { required: true, type: () => Number }, y3: { required: true, type: () => Number }, x4: { required: true, type: () => Number }, y4: { required: true, type: () => Number }, boxScore: { required: true, type: () => Number }, textScore: { required: true, type: () => Number }, text: { required: true, type: () => String } };
    }
}
exports.AssetOcrResponseDto = AssetOcrResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'string', format: 'uuid' }),
    __metadata("design:type", String)
], AssetOcrResponseDto.prototype, "id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'string', format: 'uuid' }),
    __metadata("design:type", String)
], AssetOcrResponseDto.prototype, "assetId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'number', format: 'double', description: 'Normalized x coordinate of box corner 1 (0-1)' }),
    __metadata("design:type", Number)
], AssetOcrResponseDto.prototype, "x1", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'number', format: 'double', description: 'Normalized y coordinate of box corner 1 (0-1)' }),
    __metadata("design:type", Number)
], AssetOcrResponseDto.prototype, "y1", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'number', format: 'double', description: 'Normalized x coordinate of box corner 2 (0-1)' }),
    __metadata("design:type", Number)
], AssetOcrResponseDto.prototype, "x2", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'number', format: 'double', description: 'Normalized y coordinate of box corner 2 (0-1)' }),
    __metadata("design:type", Number)
], AssetOcrResponseDto.prototype, "y2", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'number', format: 'double', description: 'Normalized x coordinate of box corner 3 (0-1)' }),
    __metadata("design:type", Number)
], AssetOcrResponseDto.prototype, "x3", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'number', format: 'double', description: 'Normalized y coordinate of box corner 3 (0-1)' }),
    __metadata("design:type", Number)
], AssetOcrResponseDto.prototype, "y3", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'number', format: 'double', description: 'Normalized x coordinate of box corner 4 (0-1)' }),
    __metadata("design:type", Number)
], AssetOcrResponseDto.prototype, "x4", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'number', format: 'double', description: 'Normalized y coordinate of box corner 4 (0-1)' }),
    __metadata("design:type", Number)
], AssetOcrResponseDto.prototype, "y4", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'number', format: 'double', description: 'Confidence score for text detection box' }),
    __metadata("design:type", Number)
], AssetOcrResponseDto.prototype, "boxScore", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'number', format: 'double', description: 'Confidence score for text recognition' }),
    __metadata("design:type", Number)
], AssetOcrResponseDto.prototype, "textScore", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: 'string', description: 'Recognized text' }),
    __metadata("design:type", String)
], AssetOcrResponseDto.prototype, "text", void 0);
//# sourceMappingURL=ocr.dto.js.map