123456789101112131415 |
- import { Body, Controller, Post } from '@nestjs/common';
- import { ObjectDetectionService } from './object-detection.service';
- import { Logger } from '@nestjs/common';
- @Controller('object-detection')
- export class ObjectDetectionController {
- constructor(
- private readonly objectDetectionService: ObjectDetectionService,
- ) { }
- @Post('/detect-object')
- async detectObject(@Body('thumbnailPath') thumbnailPath: string) {
- return await this.objectDetectionService.detectObject(thumbnailPath);
- }
- }
|