Pet Recognition
Once a profile has reference images, the backend starts proposing crops from new events that it believes show the same pet. Show them to the user, and send back what they confirm or reject — every answer sharpens the recogniser and stops the wrong animal being learned.
All calls are on Factory.petService.
Pre-requisite: The user has to be signed in to perform the following operations.
Get Recommended Pet Images
To fetch AI-recommended pet images, The following method can be used:
spaceId(required): The space ID of the user.petId(required): The ID of the pet.
Factory.petService.getRecommendedPetImages(
spaceId: String,
petId: String
) -> IVPublisher<RecommendedPet>
Update Pet Images Feedback
To confirm or reject recommended images, The following method can be used. request is PetImagesFeedbackRequest(feedbacks:) — one PetImageFeedbackItem(id:feedback:) per image, true for a correct match.
spaceId(required): The space ID of the user.petId(required): The ID of the pet.request(required): Contains feedback details.
Factory.petService.updatePetImagesFeedback(
spaceId: String,
petId: String,
request: PetImagesFeedbackRequest
) -> IVPublisher<Void>