Code to detect rain/inundation using CCTV images, estimate affected area/depth and store data in MySQL. Image processing & ML for efficient flood monitoring & management.
MIT License
3
stars
0
forks
source link
Sweep: Refactor the code and file structures of this repository (β Sandbox Passed) #4
This pull request refactors the code and file structures of the repository. It includes changes to the demo.py, src/database_operations.py, src/image_processing.py, and src/model_inference.py files.
Summary
Refactored the imports in demo.py to use the new file structure.
Created the create_database function in src/database_operations.py to create a new database.
Created the store_data function in src/database_operations.py to store data in the database.
Moved the min_in_file, max_in_file, min_fichier, max_fichier, and prendre_des_photos_CCTV functions from demo.py to src/image_processing.py.
Updated the prendre_des_photos_CCTV function in src/image_processing.py to include the missing commener parameter.
Moved the inundation_depth function from demo.py to src/model_inference.py.
Fixes #1.
π Latest improvements to Sweep:
We just released a dashboard to track Sweep's progress on your issue in real-time, showing every stage of the process β from search to planning and coding.
Sweep uses OpenAI's latest Assistant API to plan code changes and modify code! This is 3x faster and significantly more reliable as it allows Sweep to edit code and validate the changes in tight iterations, the same way as a human would.
PR Feedback (click)
Description
This pull request refactors the code and file structures of the repository. It includes changes to the
demo.py
,src/database_operations.py
,src/image_processing.py
, andsrc/model_inference.py
files.Summary
demo.py
to use the new file structure.create_database
function insrc/database_operations.py
to create a new database.store_data
function insrc/database_operations.py
to store data in the database.min_in_file
,max_in_file
,min_fichier
,max_fichier
, andprendre_des_photos_CCTV
functions fromdemo.py
tosrc/image_processing.py
.prendre_des_photos_CCTV
function insrc/image_processing.py
to include the missingcommener
parameter.inundation_depth
function fromdemo.py
tosrc/model_inference.py
.Fixes #1.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: