# \#samples

**URL:** https://forum.opencv.org/tag/samples/441.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [findFile() Cannot find sample image](https://forum.opencv.org/t/findfile-cannot-find-sample-image/24211)

<div class="topic-metadata">

**Author:** [@d22](https://forum.opencv.org/u/d22)\
**Replies:** 2\
**Last updated:** [November 23, 2025, 10:12am UTC](https://forum.opencv.org/t/findfile-cannot-find-sample-image/24211 "2025-11-23T10:12:27Z")

</div>

i am trying to learn to detect colors with opencv in c++ but the img i wanna read does not work. can someone help the cpp file and the Cmakelist is below #include \<iostream\> #include "opencv2/objdetect.hpp" #include …
