View: 499|Reply: 1

AWR 4WD Smart Car Kit: errors

[Copy link]

1

Threads

1

Posts

17

Credits

Newbie

Rank: 1

Credits
17
Post time 2023-10-14 02:11:45 | Show all posts |Read mode
Hi,

I followed the instructions in this tutorial:
https://www.adeept.com/video/static1/itemsfile/511343Tutorial.pdf

I downloaded the repo to my raspberry pi 4:
git clone https://github.com/adeept/Adeept_AWR.git

then I did: sudo python3 Adeept_AWR/setup.py

Then shutdown, connecting the camera and the HAT and reboot - but I can't open the web page http://192.168.x.xxx:5000/

Manually running
sudo python3 webServer.py
shows:
mpu6050 disconnected, ARM MODE ON
......................pause..........................
Starting camera thread.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Failed to allocate required memory.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (914) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/home/axl/Adeept_AWR/server/base_camera.py", line 94, in _thread
    for frame in frames_iterator:
  File "/home/axl/Adeept_AWR/server/camera_opencv.py", line 448, in frames
    yield cv2.imencode('.jpg', img)[1].tobytes()
cv2.error: OpenCV(4.5.1) ../modules/imgcodecs/src/loadsave.cpp:934: error: (-215:Assertion failed) !image.empty() in function 'imencode'
Reply

Use magic Report

0

Threads

51

Posts

189

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
189
Post time 2023-11-2 15:42:10 | Show all posts
It may be caused by incompatibility between the Raspberry Pi image file and some dependent libraries.
Please download and burn Raspberry Pi OS (Legacy) according to the content "Method one" in the link below, then configure SSH and WiFi, download the product code and run the setup.py program.

Link: https://www.adeept.com/learn/tutorial-247.html
Reply

Use magic Report

0

Threads

1

Posts

10

Credits

Newbie

Rank: 1

Credits
10
Post time 2023-11-3 22:36:30 | Show all posts
Edited by 1699021973 at 2023-11-16 01:27 PM

I also have been struggling with this problem recently.
Indeed, only Raspberry Pi OS (Legacy) is capable to work without issues. But setup.py is not tuned to new versions of dependencies. To solve this, you can use the one from my fork here:
https://github.com/majki09/Adeept_AWR/tree/master

Don't forget to enable Legacy camera support with raspi-config.

Hope you will get this working like me!
Reply

Use magic Report

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

Points Rules