Skip to content

Commit

Permalink
white balance api added
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea committed Dec 7, 2024
1 parent 4a0a4db commit d3a5710
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
Binary file modified combined_demo/input-imgs/input.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified combined_demo/intermediate-imgs/white-balanced.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified combined_demo/output-imgs/cropped.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified combined_demo/output-imgs/redbox.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified combined_demo/output-imgs/your-palette.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ async def get_cropped():

return FileResponse(cropped_path, media_type="image/jpg")

@app.get("/aura_analyze/white-balanced")
async def get_corrected():
corrected_path = "combined_demo/intermediate-imgs/white-balanced.jpg"
if not os.path.exists(corrected_path):
raise HTTPException(status_code=404, detail=f"Corrected image not found")

return FileResponse(corrected_path, media_type="image/jpg")

@app.get("/aura_analyze/palette")
async def get_palette():
palette_path = "combined_demo/output-imgs/your-palette.jpg"
Expand Down

0 comments on commit d3a5710

Please sign in to comment.