pub async fn smart_update_database(
pool: &PgPool,
objects: Vec<Object>,
file_path: &String,
) -> Result<()>Expand description
Updates the object table in the database with a dynamic object matching strategy.
Currently uses a basic clustering algorithm which just groups objects within a certain distance.
ยงArguments
pool- A reference to the PostgreSQL connection poolobjects- A vector ofObjectinstances to be updated in the databasefile_path- The filepath of the image which the objects were localized from