mirror of
https://github.com/immich-app/immich
synced 2025-06-08 01:50:58 +00:00
16 lines
508 B
TypeScript
16 lines
508 B
TypeScript
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('/detectObject')
|
|
async detectObject(@Body('thumbnailPath') thumbnailPath: string) {
|
|
return await this.objectDetectionService.detectObject(thumbnailPath);
|
|
}
|
|
}
|