Quantcast
Channel: arm - openFrameworks
Viewing all articles
Browse latest Browse all 147

OMX Camera & raspberryPi 3B+

$
0
0

Hello,

I have the following setup:

  • raspberryPi 3B+
  • raspberryPi camera + ofxOMXCamera addon
  • raspbian stretch
  • openFrameworks 0.10.1

I’m grabbing the camera image as a texture and display it on a screen connected via hdmi using the following code where cam_texture is of type ofTexture :

void update(){
if (cam.isFrameNew())
    {
        cam_texture = cam.getTextureReference();
    }
}

void draw(){
    cam_texture.drawSubsection(0, 0, cam_draw_width, cam_draw_width, 420, 0, 1080, 1080); 
}

This works fine as long as i start my OF program via command line over ssh, but when i start it from a local command line or script the camera image won’t be shown.
I have no clue what causes this issue and how to fix it so any help is appreciated!
merci

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 147

Trending Articles