# Can anybody suggest me how should I convert cv2 LINESTRING to RLE or masks?

**URL:** <https://community.drivendata.org/t/can-anybody-suggest-me-how-should-i-convert-cv2-linestring-to-rle-or-masks/8844>\
**Category:** VisioMel Challenge\
**Created:** [April 11, 2023, 12:15pm UTC](https://community.drivendata.org/t/can-anybody-suggest-me-how-should-i-convert-cv2-linestring-to-rle-or-masks/8844 "2023-04-11T12:15:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bibhabasum](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@bibhabasum](https://community.drivendata.org/u/bibhabasum)\
**Post date:** [April 11, 2023, 12:15pm UTC](https://community.drivendata.org/t/can-anybody-suggest-me-how-should-i-convert-cv2-linestring-to-rle-or-masks/8844/1 "2023-04-11T12:15:16Z")

</div>

I pretty new to this large tif images, i think for my segmentation models to work I have to convert the LINESTRING to masks or RLE, and dump all the data into Patches… . . has anybody any suggestion or references for the same?
