# Using binary function problem

**URL:** <https://forums.openmv.io/t/using-binary-function-problem/1759>\
**Category:** OpenMV Boards\
**Created:** [May 20, 2020, 1:47pm UTC](https://forums.openmv.io/t/using-binary-function-problem/1759 "2020-05-20T13:47:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericchu923](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/ericchu923/32/48_2.png) [@ericchu923](https://forums.openmv.io/u/ericchu923)\
**Post date:** [May 20, 2020, 1:47pm UTC](https://forums.openmv.io/t/using-binary-function-problem/1759/1 "2020-05-20T13:47:12Z")

</div>

Hi everyone, I ran grayscale\_binary\_filter\_1.py example code and got this problem:

![](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/1/1bcac7b2a62c11638dbc46f93de78a3aab2a15e5.png)

But 2 weeks ago, I made my binary example code, the output was:

 ![](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/b/b8902ba6221267bcb4032f66b54c5f9b3445415c.png)

But, other functions was worked normally.  
I only got strange outputs.  
How can I fix this problem? Is my OpenMV CAM broken?

Thanks for all replies,  
Eric

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [May 21, 2020, 3:08am UTC](https://forums.openmv.io/t/using-binary-function-problem/1759/2 "2020-05-21T03:08:49Z")

</div>

Please post code to show the error. I just ran the example and it works fine.

---

<div class="post-metadata">

**Author:** ![ericchu923](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/ericchu923/32/48_2.png) [@ericchu923](https://forums.openmv.io/u/ericchu923)\
**Post date:** [May 21, 2020, 8:06am UTC](https://forums.openmv.io/t/using-binary-function-problem/1759/3 "2020-05-21T08:06:42Z")

</div>

> [@](#):
>
> Please post code to show the error. I just ran the example and it works fine.

Hi, Mr.kwagyeman. Here’s my video for example code on YouTube:

[![](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/0/045caa92a95c33ad07b026a803b16e07de8de3a8.jpeg "OpenMV IDE 2020 05 21 15 58 37") ](https://www.youtube.com/watch?v=pAuhhqkVmzQ)

I just ran the example too, but output was very strange.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [May 21, 2020, 11:55pm UTC](https://forums.openmv.io/t/using-binary-function-problem/1759/4 "2020-05-21T23:55:09Z")

</div>

Will test on the M7.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [May 23, 2020, 9:51pm UTC](https://forums.openmv.io/t/using-binary-function-problem/1759/5 "2020-05-23T21:51:13Z")

</div>

Hi, this is an issue with the M7 JPEG compression. The actual frame buffer is fine. But, when being jpeg compressed there seems to be an error.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [May 23, 2020, 9:51pm UTC](https://forums.openmv.io/t/using-binary-function-problem/1759/6 "2020-05-23T21:51:23Z")

</div>

It will be fixed.

---

<div class="post-metadata">

**Author:** ![ericchu923](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/ericchu923/32/48_2.png) [@ericchu923](https://forums.openmv.io/u/ericchu923)\
**Post date:** [May 26, 2020, 5:31am UTC](https://forums.openmv.io/t/using-binary-function-problem/1759/7 "2020-05-26T05:31:54Z")

</div>

> [@](#):
>
> It will be fixed.

Hello Mr.kwagyeman. Thanks for reply.  
I’m glad this problem is not a hardware problem.  
Hope problem will be fix shortly, then I can use this awesome cam to finish my thesis project.  
Best regards,  
Eric

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [May 26, 2020, 6:04pm UTC](https://forums.openmv.io/t/using-binary-function-problem/1759/8 "2020-05-26T18:04:18Z")

</div>

Attached is a fixed binary for the M7.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [May 26, 2020, 6:04pm UTC](https://forums.openmv.io/t/using-binary-function-problem/1759/9 "2020-05-26T18:04:41Z")

</div>

Attached is a fixed binary for the M7.  
[firmware.zip](https://forums.openmv.io/uploads/short-url/1a6uyE07pkXTsfMVpuUVuniKeqP.zip) (1.15 MB)
