View: 44|Reply: 2

RaspTank camera not starting

[Copy link]

1

Threads

2

Posts

11

Credits

Newbie

Rank: 1

Credits
11
Post time 2021-1-2 00:30:06 | Show all posts |Read mode
Hello,

When trying to run the Web server for the RaspTank, the camera will not start.


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.

Any help would be appreciated!

Reply

Use magic Report

1

Threads

2

Posts

11

Credits

Newbie

Rank: 1

Credits
11
 Author| Post time 2021-1-2 01:56:20 | Show all posts
Fixed my own problem! It would help if I plugged in the camera to the correct port!
Reply

Use magic Report

1

Threads

8

Posts

23

Credits

Newbie

Rank: 1

Credits
23
Post time 2021-1-5 06:44:02 | Show all posts
Great. You plugged in the place of display?
Another source of camera error is the sunny connector not properly pressed or the flat bad oriented. I wrote this if someone search for the problem.
Reply

Use magic Report

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

Points Rules