Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

How to set camera number to capture from #197

@mkj-stonehill

Description

@mkj-stonehill

I see (in the comments for MMALCameraComponent) that MMALSharp only supports one camera module. I am working on a project for a client that is based on the Pi Compute Module 3+, and they've connected two cameras up.

MMALSharp currently works great capturing images from camera 0. Now I need to be able to capture either from 0 or from 1. I'm at a loss on how to go about this. I see (in the constructor for MMALCameraComponent) where it selects camera 0. How (and where) would I go about selecting camera 1?

Note this is not a stereo thing; I need to capture a single image from either camera 0, or from camera 1 (never both at the same time). Do I need entirely separate image pipelines for each camera? Or can I just select which camera I need, and then start a capture?

Note that currently I can capture from either camera using raspistill (using the -cs argument), so I know the hardware is working. I just need to be able to select the camera in my application using MMALSharp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions