Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
refactor: Update draw_objects function to include object IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed May 29, 2024
1 parent 0f1b353 commit c0938b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edgeyolo/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static void draw_objects(cv::Mat bgr, const std::vector<Object> &objects,
cv::FONT_HERSHEY_SIMPLEX, 0.4, txt_color, 1);

// write the id of the object
snprintf(text, sizeof(text), "ID: %llu", obj.id);
snprintf(text, sizeof(text), "ID: %lu", (uint32_t)obj.id);

Check failure on line 75 in src/edgeyolo/utils.hpp

View workflow job for this annotation

GitHub Actions / Build Project 🧱 / Build for macOS 🍏

format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
cv::putText(bgr, text, cv::Point(x, y + label_size.height + 15),
cv::FONT_HERSHEY_SIMPLEX, 0.4, txt_color, 1);
}
Expand Down

0 comments on commit c0938b4

Please sign in to comment.