# Reading the bar level

**URL:** <https://forum.opencv.org/t/reading-the-bar-level/4039>\
**Category:** Python\
**Created:** [June 26, 2021, 1:59pm UTC](https://forum.opencv.org/t/reading-the-bar-level/4039 "2021-06-26T13:59:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akash](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/akash/32/717_2.png) [@Akash](https://forum.opencv.org/u/Akash)\
**Post date:** [June 26, 2021, 1:59pm UTC](https://forum.opencv.org/t/reading-the-bar-level/4039/1 "2021-06-26T13:59:30Z")

</div>

so I  
 ![WhatsApp Image 2021-06-26 at 18.49.24](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/6/67db42c2205ab0cf170d52b7a7f1ec9be2407ca0.jpeg)  
was trying to read a health bar level on pubg. so when getting shot the white portion decreases and the rest become black.So first i thought by reading the number of black and white color pixel. i could measure the health. But the bar will change color from light red to dark red on further getting of shots. i am new to opencv i thought this will be a cool project to learn. So can somebody suggest me a technique so i can read the bar

---

<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:** [June 26, 2021, 2:03pm UTC](https://forum.opencv.org/t/reading-the-bar-level/4039/2 "2021-06-26T14:03:39Z")

</div>

that picture is very tiny. please provide original resolution data.

and provide multiple images that represent the situation. don’t use words if you can show.

oh and I removed those tags. they weren’t helpful.

---

<div class="post-metadata">

**Author:** ![Akash](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/akash/32/717_2.png) [@Akash](https://forum.opencv.org/u/Akash)\
**Post date:** [June 26, 2021, 2:07pm UTC](https://forum.opencv.org/t/reading-the-bar-level/4039/3 "2021-06-26T14:07:51Z")

</div>

forum allows me to upload only one pic at time as i am a new user  
 ![11index](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/6/66d6bb3c375f524f468ec01c221d27b2d7f736c3.jpeg)

---

<div class="post-metadata">

**Author:** ![Akash](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/akash/32/717_2.png) [@Akash](https://forum.opencv.org/u/Akash)\
**Post date:** [June 26, 2021, 2:08pm UTC](https://forum.opencv.org/t/reading-the-bar-level/4039/4 "2021-06-26T14:08:46Z")

</div>

![dsindex](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/3/31cc3c554ed106f9bfd2c0d6a801c86b64612754.jpeg)  
with a very low level health

---

<div class="post-metadata">

**Author:** ![Akash](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/akash/32/717_2.png) [@Akash](https://forum.opencv.org/u/Akash)\
**Post date:** [June 26, 2021, 2:09pm UTC](https://forum.opencv.org/t/reading-the-bar-level/4039/5 "2021-06-26T14:09:27Z")

</div>

![dddindex](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/3/3048a70527ea20c9a738ae3ec3c658e2ac7dfef3.jpeg)  
with a little damage

---

<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:** [June 26, 2021, 5:41pm UTC](https://forum.opencv.org/t/reading-the-bar-level/4039/6 "2021-06-26T17:41:56Z")

</div>

I asked for original/full resolution, not thumbnails.

you can edit your own posts, as far as I know.
