From dd1c6eb359401fc948fe3d8983d7bf73e4d1e148 Mon Sep 17 00:00:00 2001 From: adienakhmad Date: Mon, 30 Jun 2025 15:34:42 +0000 Subject: [PATCH] add implementation notes --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 64cd480..7b49743 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ You will be provided with a set of **1705** images files named according to a st * `output_scale` (float) * A scaling factor applied to the cropped image before it's returned. `1.0` means original size, `0.5` is 50% smaller. * Values range from `0 > scale >= 1.0` + ### Canvas Visual Guide ``` Origin (0,0) @@ -78,7 +79,9 @@ y+ │ ├────────────────►▼ ┌─ └─────────────────────────────────────────────────────────┘ ``` -You can safely assume all parameters passed to this API are valid. +### Implementation notes +- You may assume all parameters passed to this API are always valid. +- When converting from a floating point to integer (unit pixel), truncate it instead of rounding. ## 3. Evaluation Criteria