Fix
This commit is contained in:
@@ -81,13 +81,13 @@ class MicrowaveDishAnalyzer:
|
||||
return 0.85 # Default factor for plated meals
|
||||
|
||||
def estimate_volume(
|
||||
self, image_path: str, height_cm: float, food_label: str = "", config: Optional[Any] = None
|
||||
self, image_path: str, height_cm: float, food_label: str = ""
|
||||
) -> Dict[str, float]:
|
||||
"""
|
||||
Computes total physical volume in cm³ (mL).
|
||||
Volume = Area (cm²) * Height (cm) * Shape Factor
|
||||
"""
|
||||
area_cm2 = self.calculate_surface_area_cm2(image_path, config=config)
|
||||
area_cm2 = self.calculate_surface_area_cm2(image_path)
|
||||
k_shape = self._get_shape_factor(food_label)
|
||||
volume_cm3 = area_cm2 * height_cm * k_shape
|
||||
|
||||
|
||||
Reference in New Issue
Block a user