View: 1154|Reply: 7

RaspTank camera not starting

[Copy link]

1

Threads

2

Posts

13

Credits

Newbie

Rank: 1

Credits
13
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

13

Credits

Newbie

Rank: 1

Credits
13
 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

20

Threads

216

Posts

757

Credits

Senior member

Rank: 4

Credits
757
Post time 2021-2-5 12:04:21 | Show all posts
1609518450 replied at 2021-1-2 01:56 AM
Fixed my own problem! It would help if I plugged in the camera to the correct port!

OK
Reply

Use magic Report

20

Threads

216

Posts

757

Credits

Senior member

Rank: 4

Credits
757
Post time 2021-2-5 12:04:46 | Show all posts
1609775601 replied at 2021-1-5 06:44 AM
Great. You plugged in the place of display?
Another source of camera error is the sunny connector no ...

Thank you
Reply

Use magic Report

0

Threads

8

Posts

22

Credits

Newbie

Rank: 1

Credits
22
Post time 2021-6-22 08:20:56 | Show all posts
Hey man, I thought that I'm the only one who is having some problem with this RaspTank camera not starting issue. If I remember correctly this is my 3rd time to experience this issue and it is starting to get annoying. I hope that someone from this forum can help us on fixing this issue with the RaspTank camera. Anybody here playing school girls simulator? install the app for free and experience a great simulator game. Watch the trailer of the game here https://www.youtube.com/watch?v=2KQduUZhARs
Reply

Use magic Report

0

Threads

1

Posts

8

Credits

Newbie

Rank: 1

Credits
8
Post time 2022-2-12 00:30:51 | Show all posts
I am having the same issue and same error code coming back. The camera module lights up if plugs into the other port on the pi, right above the sd card, but not in the other. Any suggestions? broken pi port perhaps?
Reply

Use magic Report

0

Threads

19

Posts

51

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
51
Post time 2022-5-5 17:40:23 | Show all posts
This is because the Raspberry Pi will automatically run the program webServer.py when it is turned on. The webServer.py program will occupy the camera. If the program related to the camera is run again, the program will report an error. When you need to run the program manually, you need to stop the automatic running program.
On the Raspberry Pi command line enter:
  1. sudo killall python3
Copy the Code
(to abort the autorun program)
Reply

Use magic Report

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

Points Rules