# Problem with imwrite images

**URL:** <https://forum.opencv.org/t/problem-with-imwrite-images/664>\
**Category:** Uncategorized\
**Created:** [January 4, 2021, 5:01am UTC](https://forum.opencv.org/t/problem-with-imwrite-images/664 "2021-01-04T05:01:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![psymbio](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@psymbio](https://forum.opencv.org/u/psymbio)\
**Post date:** [January 4, 2021, 5:01am UTC](https://forum.opencv.org/t/problem-with-imwrite-images/664/1 "2021-01-04T05:01:42Z")

</div>

I created a function for finding the hough lines in an image, it takes my initial jpg image and everything turns out just fine and for the second time it takes an image created with the help of the imwrite function and throws errors like:

‘NoneType’ object is not iterable

---

<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:** [January 4, 2021, 6:32am UTC](https://forum.opencv.org/t/problem-with-imwrite-images/664/2 "2021-01-04T06:32:16Z")

</div>

welcome. you need to provide a lot more information. be forthcoming. anticipate questions.
