# Python code to find the roi

**URL:** <https://community.drivendata.org/t/python-code-to-find-the-roi/4499>\
**Category:** Clog Loss: Advance Alzheimer’s Research\
**Created:** [May 23, 2020, 11:48am UTC](https://community.drivendata.org/t/python-code-to-find-the-roi/4499 "2020-05-23T11:48:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Shanka](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@Shanka](https://community.drivendata.org/u/Shanka)\
**Post date:** [June 11, 2020, 4:55am UTC](https://community.drivendata.org/t/python-code-to-find-the-roi/4499/4 "2020-06-11T04:55:34Z")

</div>

Were you able to process all images using that thresholding function? Are you sure that it crops the required region? It will be helpful if you can please upload the updated code snippet.

---

_[View the full topic](https://community.drivendata.org/t/python-code-to-find-the-roi/4499)._
