feat: implement faces api with resource and data source
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
data "immich_faces" "current" {
|
||||
asset_id = "your-asset-uuid"
|
||||
}
|
||||
|
||||
output "detected_faces" {
|
||||
value = data.immich_faces.current.faces
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
resource "immich_face" "manual" {
|
||||
asset_id = "your-asset-uuid"
|
||||
person_id = "your-person-uuid"
|
||||
bounding_box_x1 = 100.5
|
||||
bounding_box_y1 = 100.5
|
||||
bounding_box_x2 = 200.5
|
||||
bounding_box_y2 = 200.5
|
||||
image_height = 1080
|
||||
image_width = 1920
|
||||
}
|
||||
Reference in New Issue
Block a user