# Error: (-215:Assertion failed) !\_filename.empty() in function 'cv::CvCapture\_Images::open'

**URL:** <https://forum.opencv.org/t/error-215-assertion-failed-filename-empty-in-function-cv-open/12035>\
**Category:** Python\
**Created:** [February 18, 2023, 5:54pm UTC](https://forum.opencv.org/t/error-215-assertion-failed-filename-empty-in-function-cv-open/12035 "2023-02-18T17:54:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yusuf\_Praditya](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/yusuf_praditya/32/7204_2.png) [@Yusuf\_Praditya](https://forum.opencv.org/u/Yusuf_Praditya)\
**Post date:** [February 18, 2023, 5:54pm UTC](https://forum.opencv.org/t/error-215-assertion-failed-filename-empty-in-function-cv-open/12035/1 "2023-02-18T17:54:45Z")

</div>

what does this error mean? i have googled this error but none of them got this error

error: (-215:Assertion failed) !\_filename.empty() in function ‘cv::CvCapture\_Images::open’

the error happens rarely. im using opencv python and pyqt

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 18, 2023, 6:04pm UTC](https://forum.opencv.org/t/error-215-assertion-failed-filename-empty-in-function-cv-open/12035/2 "2023-02-18T18:04:12Z")

</div>

please show code, at least …
