# FPS problem

**URL:** <https://forums.openmv.io/t/fps-problem/1820>\
**Category:** OpenMV Boards\
**Created:** [July 9, 2020, 12:44pm UTC](https://forums.openmv.io/t/fps-problem/1820 "2020-07-09T12:44:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![BRTL](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@BRTL](https://forums.openmv.io/u/BRTL)\
**Post date:** [July 9, 2020, 12:44pm UTC](https://forums.openmv.io/t/fps-problem/1820/1 "2020-07-09T12:44:08Z")

</div>

Hi everyone, can somebody help me with my problem. Why I have so low fps on openMV H7? [forForum.jpg - Google Drive](https://drive.google.com/file/d/1lTch962amN36CLY98LwWRP9RIJpfgqhF/view?usp=sharing)

---

<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:** [July 9, 2020, 6:00pm UTC](https://forums.openmv.io/t/fps-problem/1820/2 "2020-07-09T18:00:06Z")

</div>

Please post your code inline on the forums.

---

<div class="post-metadata">

**Author:** ![BRTL](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@BRTL](https://forums.openmv.io/u/BRTL)\
**Post date:** [August 18, 2020, 1:53pm UTC](https://forums.openmv.io/t/fps-problem/1820/3 "2020-08-18T13:53:26Z")

</div>

import sensor, image, time

sensor.reset()  
sensor.set\_pixformat(sensor.RGB565)  
sensor.set\_framesize(sensor.QVGA)  
sensor.skip\_frames(time = 2000)

clock = time.clock()

while(True):  
clock.tick()  
img = sensor.snapshot()  
print(clock.fps())

---

<div class="post-metadata">

**Author:** ![BRTL](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@BRTL](https://forums.openmv.io/u/BRTL)\
**Post date:** [August 18, 2020, 1:54pm UTC](https://forums.openmv.io/t/fps-problem/1820/4 "2020-08-18T13:54:53Z")

</div>

With this code I have only 18 fps. Maybe it’s overheat because I’ve noticed that when I’ve just started the amount of fps was pretty high.

---

<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 18, 2020, 3:54pm UTC](https://forums.openmv.io/t/fps-problem/1820/5 "2020-08-18T15:54:58Z")

</div>

It’s probably the scene. The camera will adjust the exposure on the camera to compensate for the lighting. Try adding more light.

---

<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 18, 2020, 3:55pm UTC](https://forums.openmv.io/t/fps-problem/1820/6 "2020-08-18T15:55:01Z")

</div>

It’s probably the scene. The camera will adjust the exposure on the camera to compensate for the lighting. Try adding more light.

---

<div class="post-metadata">

**Author:** ![Angel](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Angel](https://forums.openmv.io/u/Angel)\
**Post date:** [August 19, 2020, 11:19am UTC](https://forums.openmv.io/t/fps-problem/1820/7 "2020-08-19T11:19:14Z")

</div>

Hey, I just tried your code on my M7 and I get consistent 18 FPS when I cover the lenses due to the change in exposition time, but I get it up to 60 in a well illuminated scene., so I agree with @kwagyeman, it’s definitely the scene, unless there’s something wrong with your hardware, of course.

---

<div class="post-metadata">

**Author:** ![BRTL](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@BRTL](https://forums.openmv.io/u/BRTL)\
**Post date:** [August 19, 2020, 12:05pm UTC](https://forums.openmv.io/t/fps-problem/1820/8 "2020-08-19T12:05:00Z")

</div>

Thanks, I’ll try to add more light.

---

<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 19, 2020, 4:43pm UTC](https://forums.openmv.io/t/fps-problem/1820/9 "2020-08-19T16:43:26Z")

</div>

You can also just force the exposure to be low via sensor.set\_auto\_exposure()
