Module report

report.convert_map_pdf(file_name)

Convert html to pdf

Parameters:

file_name (str) – html file

report.converthms(secondes)

Convert date in second to hour, min, sec

Parameters:

secondes (int) – seconds

report.define_map(df, sess_path, platform, model, title, nb_images, altitude, survey_area, start, end)

Generate a map with leaflet Some info from drone survey are needed … For an easy to do report, please watch enrich_drone_mdt in read_metadata.py

Parameters:
  • df (class 'pandas.core.frame.DataFrame') – Dataframe with complete camera exifs sess_path:

  • platform (str) – Drone platform

  • model (str) – Drone Model

  • title (str) – Title of session

  • nb_images (str) – Number of images in a string format

  • altitude (str) – Flight height (not altitude)

  • survey_area (str) – Area covered by survey

  • start (str) – Start in ‘%Y:%m:%d %H:%M:%S’

  • end (str) – End in ‘%Y:%m:%d %H:%M:%S’

report.map_html(map, survey_info, df)

Convert map to html with base64 embeded pictures

Parameters:
  • file_name (str) – html file

  • survey_info (str) – Some info from drone survey like date meteo, flight height, camera pitch … For a complete report please watch enrich_drone_mdt in read_metadata.py

  • df (class 'pandas.core.frame.DataFrame') – Dataframe with complete camera exifs