Notifications
Clear all

Raspberry pi camera not working in open cv

6 Posts
2 Users
1 Likes
524 Views
Duce robot
(@duce-robot)
Member
Joined: 5 years ago
Posts: 680
Topic starter  

The camera works with fs webcam and libcamera but wont turn on in open cv no code error but wont fire up run icon just keeps flickering.thanks for any help.


   
Quote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2042
 

@duce-robot

I have a RPI v2.1 hooked up to my RPi but haven't tried it yet.

I have only run OpenCV on my windows computer.

What code are you using? Python or c++?

 


   
ReplyQuote
Duce robot
(@duce-robot)
Member
Joined: 5 years ago
Posts: 680
Topic starter  

@robotbuilder python


   
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2042
 

@duce-robot 

You realise there is no way anyone can guess what might be wrong without checking all the steps have been taken? Are you for example following some tutorial on setting up the RPi + camera? When I get around to playing with the hardware and setting up opencv I will find a tutorial to follow. So what tutorial are you using?

This is the hardware I was going to use until I saw the RPi was not being built anymore so I gave up on it.

To enlarge an image, right click image and choose Open link in new window.

RPI CAMERA

   
ReplyQuote
Duce robot
(@duce-robot)
Member
Joined: 5 years ago
Posts: 680
Topic starter  

@robotbuilder sorry I fell asleep. It's actually Paul McWhorter  raspberry pi lesson 63 the code is only as far as the preview the pi camera code runs no error but the camera doesn't turn on . On the web cam the code runs then error at imshow('Camera',im). I'm hearing picam2 and libcamera are having problems in open cv I'm on thonny thanks😁👍


   
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2042
 

@duce-robot 

Paul's tutorial on the installation of OpenCV and its use seems to start with lesson 45:

I am too busy for the next week or so with other things so I don't have time to work through it myself.   In the meantime it is back to scouring the internet for clues and making sure you made all the right steps.

 

 


   
Duce robot reacted
ReplyQuote