metadata: use face recognition if recognize not available
parent
ea11e8d984
commit
520d0c6b13
|
@ -352,10 +352,14 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
people(): IFace[] {
|
people(): IFace[] {
|
||||||
if (this.routeIsFaceRecognition)
|
const clusters = this.baseInfo?.clusters;
|
||||||
return this.baseInfo?.clusters?.facerecognition ?? [];
|
|
||||||
else
|
// force face-recognition on its own route, or if recognize is disabled
|
||||||
return this.baseInfo?.clusters?.recognize ?? [];
|
if (this.routeIsFaceRecognition || !this.config.recognize_enabled) {
|
||||||
|
return clusters?.facerecognition ?? [];
|
||||||
|
}
|
||||||
|
|
||||||
|
return clusters?.recognize ?? [];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue