Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Capturing video from second camera on balenaFin #68

Closed
Hegazi opened this issue May 14, 2020 · 7 comments
Closed

Capturing video from second camera on balenaFin #68

Hegazi opened this issue May 14, 2020 · 7 comments

Comments

@Hegazi
Copy link

Hegazi commented May 14, 2020

I have enabled 'Dual camera mode' as per instructions for the balenaFin: https://www.balena.io/fin/1.1/docs/developers/#Dual-camera-mode
I also changed the Fleet Configuration. I get the following output when switching cv2.VideoCapture(0) in server.py to cv2.VideoCapture(1) to get the feed of the second camera.
Note: Works fine with main camera

 balena-cam  select timeout
 balena-cam  VIDIOC_DQBUF: Resource temporarily unavailable
 balena-cam  Failed to open default camera. Exiting...
 balena-cam  Video device is ready
 balena-cam  select timeout
 balena-cam  VIDIOC_DQBUF: Resource temporarily unavailable
 balena-cam  Failed to open default camera. Exiting...
Service exited 'balena-cam'
Restarting service 'balena-cam' 
@mbalamat
Copy link
Contributor

mbalamat commented May 15, 2020

Hi @Hegazi before running balena-cam can you check if there is a /dev/video1 device?

@Hegazi
Copy link
Author

Hegazi commented May 16, 2020

Running 'ls /dev/' I get video0, video1, video10, video11, video12.

@mbalamat
Copy link
Contributor

mbalamat commented May 21, 2020

@Hegazi sorry for the late reply for a quicker response we reply very quickly in our forums. Can you try running vcgencmd get_camera to see if the cameras are recognised. After that can you try to run raspistill -cs 1 -o image1.jpg to see if the camera that is connected to the second CSI port works and takes a picture?

@Hegazi
Copy link
Author

Hegazi commented May 22, 2020

@mbalamat I have posted on the forum right here:

Running vcgencmd get_camera I get:

supported=2 detected=2

Running raspistill -cs 1 -o image1.jpg I get:

mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

@jellyfish-bot
Copy link

[rahul-thakoor] This issue has attached support thread https://jel.ly.fish/#/9cab8786-b291-45bf-8d8c-90c53c9ead9d

@rahul-thakoor
Copy link

Have you also changed this line ?

@mbalamat
Copy link
Contributor

@Hegazi since we are discussing this on the forums I'll close this. Feel free to re-open it if you need to.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants