View: 2493|Reply: 8

Rasp Tank Camera Issues

[Copy link]

1

Threads

2

Posts

13

Credits

Newbie

Rank: 1

Credits
13
Post time 2021-7-1 03:02:16 | Show all posts |Read mode
Dear All,

I also expierience the camera start issue. All cables are properly connected, I also tried different cables and camera modules I had from another project.
I am using a Raspberry Pi 4b (2GB).

Thiss is the return code I get. Does anybody have an Idea?
I also tried enabling the camera Interface manually - also didn't solve the problem.



Starting camera thread.
VIDEOIO ERROR: V4L: can't open camera by index 0
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/adeept_rasptank/server/base_camera.py", line 94, in _thread
    for frame in frames_iterator:
  File "/home/pi/adeept_rasptank/server/camera_opencv.py", line 427, in frames
    raise RuntimeError('Could not start camera.')
RuntimeError: Could not start camera.


Reply

Use magic Report

1

Threads

2

Posts

15

Credits

Newbie

Rank: 1

Credits
15
Post time 2021-7-10 08:33:54 | Show all posts
Are you absolutely sure your camera is seated properly? Try pulling out your camera ribbon, and put it in properly. This is shown in the following link: https://projects.raspberrypi.org/en/projects/getting-started-with-picamera/2. The animation shows how to properly insert your camera ribbon. If the problem persists, try making sure the ribbon isn't bent, and the lights on the camera module show working conditions. A red light should continuously be on, and occasionally a green light would flash. If it still isn't working, try replacing the ribbon or module if you have another. If not, or all the previous fails, it cannot be a hardware issue. At this point, enable the following through raspi-config command, in the interfaces option: Camera, I2C. If it doesn't work, then, you can make sure no 2 operations on the module are happening at the same time.
Reply

Use magic Report

1

Threads

2

Posts

13

Credits

Newbie

Rank: 1

Credits
13
 Author| Post time 2021-7-18 16:22:17 | Show all posts
Thank you for your help. I figured out that it seems to be a hardware problem with my camera unit. I have tried the same compilation on a different  raspi-board and the camera had worked. I am now going to replace the raspi board and think that this will solve the problem.
Reply

Use magic Report

0

Threads

1

Posts

10

Credits

Newbie

Rank: 1

Credits
10
Post time 2021-12-24 02:01:25 | Show all posts
I think I'm having the same issue. I get this back from my cmd window:
VIDEOIO ERROR: V4L: can't open camera by index 0
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/adeept_rasptank/server/base_camera.py", line 94, in _thread
    for frame in frames_iterator:
  File "/home/pi/adeept_rasptank/server/camera_opencv.py", line 427, in frames
    raise RuntimeError('Could not start camera.')
RuntimeError: Could not start camera.

I noticed that when I plugged in my camera for the first time, I got the red led to turn on. Then when I rebooted my raspberry pi, it no longer turned on. Could this be a hardware issue?
Reply

Use magic Report

0

Threads

6

Posts

26

Credits

Newbie

Rank: 1

Credits
26
Post time 2022-1-20 04:33:18 | Show all posts
In case anybody is running the latest raspberry PI operation system - based on Debian Bullseye - you might find camera problems. Bullseye introduced fully new libraries for the picamera. It is not yet fully integrated into Python. Whether or not this is the root cause for my camera problems I don't know yet. I am currently re-installing raspberry PI operating system based on Debian Buster.
Reply

Use magic Report

0

Threads

4

Posts

12

Credits

Newbie

Rank: 1

Credits
12
Post time 2022-8-30 20:22:57 | Show all posts
You will have to enable the camera on the new OS Upgrade...

https://www.youtube.com/watch?v=E7KPSc_Xr24&t=26s
Reply

Use magic Report

0

Threads

4

Posts

12

Credits

Newbie

Rank: 1

Credits
12
Post time 2022-8-30 20:23:34 | Show all posts
You will have to enable the camera on the new OS Upgrade...

https://www.youtube.com/watch?v=E7KPSc_Xr24&t=26s
Reply

Use magic Report

0

Threads

4

Posts

12

Credits

Newbie

Rank: 1

Credits
12
Post time 2022-8-30 20:24:32 | Show all posts
1638982355 replied at 2022-1-20 04:33 AM
In case anybody is running the latest raspberry PI operation system - based on Debian Bullseye - you ...

You will have to enable the camera on the new OS Upgrade...
[color=var(--newCommunityTheme-linkText)]https://www.youtube.com/watch?v=E7KPSc_Xr24&t=26s

Reply

Use magic Report

0

Threads

4

Posts

12

Credits

Newbie

Rank: 1

Credits
12
Post time 2022-8-30 20:26:00 | Show all posts
You will have to enable the camera on the new OS Upgrade...
[color=var(--newCommunityTheme-linkText)]https://www.youtube.com/watch?v=E7KPSc_Xr24&t=26s

Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules