smart_update_database

Function smart_update_database 

Source
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 pool
  • objects - A vector of Object instances to be updated in the database
  • file_path - The filepath of the image which the objects were localized from