# Cv2 readNetfromCaffe function not able to open/find files

**URL:** <https://forum.opencv.org/t/cv2-readnetfromcaffe-function-not-able-to-open-find-files/13969>\
**Category:** Uncategorized\
**Tags:** programming\
**Created:** [July 20, 2023, 8:14pm UTC](https://forum.opencv.org/t/cv2-readnetfromcaffe-function-not-able-to-open-find-files/13969 "2023-07-20T20:14:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhaswani](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@nhaswani](https://forum.opencv.org/u/nhaswani)\
**Post date:** [July 20, 2023, 8:14pm UTC](https://forum.opencv.org/t/cv2-readnetfromcaffe-function-not-able-to-open-find-files/13969/1 "2023-07-20T20:14:03Z")

</div>

Hello,

I’m running the cv2.dnn.readNetfromCaffe function and I believe my caffe model and prototxt files are in the right place, but I a getting an error that they are unable to be opened. Has anyone else run into this issue? After doing some research I’ve tried changing the backslash to a forward slash but that did not change things.

 ![cv2 readNet error](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/5/5bdafe4a5e6ebaa62770df0a24abf535b680020e.png)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [July 20, 2023, 8:33pm UTC](https://forum.opencv.org/t/cv2-readnetfromcaffe-function-not-able-to-open-find-files/13969/2 "2023-07-20T20:33:36Z")

</div>

```auto
print(os.getcwd())
assert os.path.exists(args["prototxt"])
assert os.path.exists(args["model"])

```
