# camera data output

**URL:** <https://forums.openmv.io/t/camera-data-output/386>\
**Category:** OpenMV Boards\
**Created:** [August 24, 2017, 12:00am UTC](https://forums.openmv.io/t/camera-data-output/386 "2017-08-24T00:00:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcls1026](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pcls1026](https://forums.openmv.io/u/pcls1026)\
**Post date:** [August 24, 2017, 12:00am UTC](https://forums.openmv.io/t/camera-data-output/386/1 "2017-08-24T00:00:57Z")

</div>

I want to do the following using my MV7:

1. take a picture(“image”)  
2.retrieve the pixel intensity data.  
3.view the pixel intensity data in a file that is readable by the OpenMV IDE editor.  
How do I do this?

Thanks  
Jim Sullivan

---

<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:** [August 24, 2017, 4:42am UTC](https://forums.openmv.io/t/camera-data-output/386/2 "2017-08-24T04:42:10Z")

</div>

Hi, do Snapshot, then do get statistics, then open a file and write the object returned by get statistics to a file. The get\_stats object has a str() method so just need to write it to a file.

Do you need the exact code for this? I can easily give you a general outline but giving you the exact code requires me to find some time to do this which I don’t necessarily have (answering this on a train).

---

<div class="post-metadata">

**Author:** ![pcls1026](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pcls1026](https://forums.openmv.io/u/pcls1026)\
**Post date:** [August 25, 2017, 3:52pm UTC](https://forums.openmv.io/t/camera-data-output/386/3 "2017-08-25T15:52:12Z")

</div>

HI kwagyeman,  
I don’t want to look at statistics.

I want to look at each pixel’s data.

Thanks JLS

---

<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:** [August 25, 2017, 7:44pm UTC](https://forums.openmv.io/t/camera-data-output/386/4 "2017-08-25T19:44:41Z")

</div>

Hi, you can get each pixel value directly using get\_pixel(). However, it’s very slow to use in Python over a whole image. Get statistics returns the mean/median/mode/min/max/stddev and more for a region of interest which can be as small or large as you like.

Anyway, the choice of what to use is up to you.

---

<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:** [August 25, 2017, 7:45pm UTC](https://forums.openmv.io/t/camera-data-output/386/5 "2017-08-25T19:45:17Z")

</div>

Please see the image module documentation for more information about these methods.
