# How to only send self-allocated framebuffer to OpenMV IDE?

**URL:** https://forums.openmv.io/t/how-to-only-send-self-allocated-framebuffer-to-openmv-ide/1048
**Category:** OpenMV Boards
**Created:** [December 16, 2018, 3:08pm UTC](https://forums.openmv.io/t/how-to-only-send-self-allocated-framebuffer-to-openmv-ide/1048 "2018-12-16T15:08:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![iamseer](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iamseer/32/1836_2.png) [@iamseer](https://forums.openmv.io/u/iamseer)
#### Post date: [December 16, 2018, 3:08pm UTC](https://forums.openmv.io/t/how-to-only-send-self-allocated-framebuffer-to-openmv-ide/1048/1 "2018-12-16T15:08:34Z")

</div>

Hi,

I met the same problem to this: [python - How to only send self-allocated framebuffer to OpenMV IDE? - Stack Overflow](https://stackoverflow.com/questions/52703413/how-to-only-send-self-allocated-framebuffer-to-openmv-ide)

I want to show my own image for debugging purpose. However, it seems OpenMV sends my framebuffer and camera framebuffer alternatively. Currently, I have to use an LCD to show the framebuffer I want, but the LCD is slow and inconvenient.

Is there a way to disable OpenMV sending camera framebuffer? I’ve attached a sample code which flashes framebuffer viewer in IDE

Thanks.

```python
import sensor, image, time

sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.skip_frames(time = 2000)

clock = time.clock()
invImg = sensor.alloc_extra_fb(sensor.width(), sensor.height(), sensor.RGB565)

while(True):
    clock.tick()
    img = sensor.snapshot()
    invImg.replace(img)
    invImg.invert()
    print(invImg.compressed_for_ide(), end="")
    print(clock.fps())

```

---

<div class="post-metadata">

### Author: ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)
#### Post date: [December 18, 2018, 1:41pm UTC](https://forums.openmv.io/t/how-to-only-send-self-allocated-framebuffer-to-openmv-ide/1048/2 "2018-12-18T13:41:03Z")

</div>

Hi, if you don’t need the snapshot you could just overwrite it :

```python
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()
    img.invert()
    print(clock.fps())

```

If you still need it, you could copy the inv image back to img:

```python
while(True):
    clock.tick()        
    img = sensor.snapshot()
    invImg.replace(img)
    invImg.invert()
    img.replace(invImg)
    print(clock.fps())

```
