Update app.py
Browse files
app.py
CHANGED
|
@@ -270,7 +270,7 @@ def process_image(pil_img, mode):
|
|
| 270 |
|
| 271 |
fig, ax = plt.subplots(figsize=(6, 6))
|
| 272 |
ax.imshow(density_map, cmap="jet")
|
| 273 |
-
ax.set_title(f"Estimated count: {total_count
|
| 274 |
ax.axis("off")
|
| 275 |
buf = io.BytesIO()
|
| 276 |
fig.savefig(buf, format="png", bbox_inches="tight")
|
|
@@ -279,7 +279,7 @@ def process_image(pil_img, mode):
|
|
| 279 |
heatmap_img = Image.open(buf)
|
| 280 |
|
| 281 |
summary = (
|
| 282 |
-
f"Estimated total count: {total_count
|
| 283 |
f"Density-based estimate (CSRNet). Gender classification is not "
|
| 284 |
f"performed in this mode — individual faces are too small/occluded "
|
| 285 |
f"at this density to classify reliably."
|
|
|
|
| 270 |
|
| 271 |
fig, ax = plt.subplots(figsize=(6, 6))
|
| 272 |
ax.imshow(density_map, cmap="jet")
|
| 273 |
+
ax.set_title(f"Estimated count: {total_count}")
|
| 274 |
ax.axis("off")
|
| 275 |
buf = io.BytesIO()
|
| 276 |
fig.savefig(buf, format="png", bbox_inches="tight")
|
|
|
|
| 279 |
heatmap_img = Image.open(buf)
|
| 280 |
|
| 281 |
summary = (
|
| 282 |
+
f"Estimated total count: {total_count}\n\n"
|
| 283 |
f"Density-based estimate (CSRNet). Gender classification is not "
|
| 284 |
f"performed in this mode — individual faces are too small/occluded "
|
| 285 |
f"at this density to classify reliably."
|