feat: media API (video/bbox/thumbnail), UUID unification, dot matrix text, portal fixes, API dictionary V1.3
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
>
|
||||
<div class="aspect-square bg-gray-700 flex items-center justify-center overflow-hidden">
|
||||
<img
|
||||
:src="getThumbnailUrl(face.id)"
|
||||
:src="getThumbnailUrl(face)"
|
||||
alt="Face thumbnail"
|
||||
class="w-full h-full object-cover"
|
||||
loading="lazy"
|
||||
@@ -135,9 +135,11 @@ const pageSize = ref(20)
|
||||
const minConfidence = ref(0.8)
|
||||
const selectedFaces = ref<number[]>([])
|
||||
|
||||
const getThumbnailUrl = (faceId: number): string => {
|
||||
const getThumbnailUrl = (face: FaceCandidate): string => {
|
||||
const config = getCurrentConfig()
|
||||
return `${config.api_base_url}/api/v1/faces/${faceId}/thumbnail`
|
||||
if (!face.bbox) return ''
|
||||
const b = face.bbox
|
||||
return `${config.api_base_url}/api/v1/file/${face.file_uuid}/thumbnail?frame=${face.frame_number}&x=${b.x}&y=${b.y}&w=${b.width}&h=${b.height}`
|
||||
}
|
||||
|
||||
const onThumbnailError = (event: Event) => {
|
||||
|
||||
Reference in New Issue
Block a user