View: 1208|Reply: 5

Picar B camera issues

[Copy link]

1

Threads

2

Posts

11

Credits

Newbie

Rank: 1

Credits
11
Post time 2021-1-18 02:03:27 | Show all posts |Read mode
We are struggling with our Raspberry Pi car.  When we try to run the server after the initial set up it does not connect through the windows browser.  Using SSH to log in and then killall and run the python server we get the following error message:

sudo python3 adeept_picar-b/server/webServer.py
......................pause..........................
......................pause..........................
Starting camera thread.
VIDEOIO ERROR: V4L: can't open camera by index 0
Exception in thread Thread-6:
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_picar-b/server/base_camera.py", line 94, in _thread
    for frame in frames_iterator:
  File "/home/pi/adeept_picar-b/server/camera_opencv.py", line 433, in frames
    raise RuntimeError('Could not start camera.')
RuntimeError: Could not start camera.



We are not sure how to proceed from here?  Can anyone help.  As you might have guessed we are not very technically minded!!
Reply

Use magic Report

0

Threads

2

Posts

6

Credits

Newbie

Rank: 1

Credits
6
Post time 2021-1-18 04:46:20 | Show all posts
check your camera connection, this solved my issue. The cable needs to be connected the proper way, compare it on the Video (there you usually see it a bit better ;-) )
Reply

Use magic Report

0

Threads

3

Posts

26

Credits

Newbie

Rank: 1

Credits
26
Post time 2021-1-21 19:44:54 | Show all posts
If you have a Raspberry Pi 4, there is two slots. Check if you haven't plugged the camera on the display slot by mistake (it happened to me)

Reply

Use magic Report

0

Threads

2

Posts

14

Credits

Newbie

Rank: 1

Credits
14
Post time 2021-1-22 13:20:22 | Show all posts
I have the same issue. see below. I will take the rasptank apart tomorrow to see if this is error with the camera install. wish me good luck
pi@raspberrypi:~ $ sudo killall python3
pi@raspberrypi:~ $ sudo python3 adeept_rasptank/server/webServer.py
......................pause..........................
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 425, in frames
    raise RuntimeError('Could not start camera.')
RuntimeError: Could not start camera.
Reply

Use magic Report

1

Threads

2

Posts

11

Credits

Newbie

Rank: 1

Credits
11
 Author| Post time 2021-1-23 22:47:48 | Show all posts
1610138502 replied at 2021-1-21 07:44 PM
If you have a Raspberry Pi 4, there is two slots. Check if you haven't plugged the camera on the dis ...

Thank you - that was the solution.  I'm an idiot!!
Reply

Use magic Report

0

Threads

2

Posts

14

Credits

Newbie

Rank: 1

Credits
14
Post time 2021-1-24 15:57:55 | Show all posts
1611292567 replied at 2021-1-22 01:20 PM
I have the same issue. see below. I will take the rasptank apart tomorrow to see if this is error wi ...

resolved: As suspected, camera was incorrectly installed. corrected the camera install and rasptank working now. Hurray!!!
Reply

Use magic Report

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

Points Rules