View: 396|Reply: 2

CV2 Module Error and Servo Malfunction on Rasptank

[Copy link]

1

Threads

1

Posts

5

Credits

Newbie

Rank: 1

Credits
5
Post time 2020-3-13 21:25:30 | Show all posts |Read mode
I have recently been working on constructing the Rasptank and am having a couple problems. When attempting to run the server file on the pi, I get the following error:pi@raspberrypi:~ $ python3 adeept_rasptank/server/server.py
Traceback (most recent call last):
  File "adeept_rasptank/server/server.py", line 21, in <module>
    import FPV
  File "/home/pi/adeept_rasptank/server/FPV.py", line 17, in <module>
    import imutils
  File "/usr/local/lib/python3.5/dist-packages/imutils/__init__.py", line 8, in <module>
    from .convenience import translate
  File "/usr/local/lib/python3.5/dist-packages/imutils/convenience.py", line 65, in <module>
    def resize(image, width=None, height=None, inter=cv2.INTER_AREA):
AttributeError: module 'cv2' has no attribute 'INTER_AREA'

The only way to not have this error is if instead of launching server.py, I launch serverTest.py. When doing this, at least of two of servos do not work controlling the arm. Also, when connecting to the Rasptank when the client is running the normal client.py and the pi is running serverTest.py, the camera does not show. I have verified everything is plugged into the proper connectors. Thanks in advance for the help



Reply

Use magic Report

19

Threads

214

Posts

746

Credits

Senior member

Rank: 4

Credits
746
Post time 2021-2-5 18:36:20 | Show all posts
Please refer to the latest materials and manuals: https://www.adeept.com/learn/detail-34.html If your problem has not been resolved, please provide us with a detailed report (including product model, error report, pictures, etc.): support@adeept.com
Reply

Use magic Report

19

Threads

214

Posts

746

Credits

Senior member

Rank: 4

Credits
746
Post time 2021-2-5 18:46:31 | Show all posts
It is recommended to use the WEB controller to control the robot and run the webserver.py program
Reply

Use magic Report

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

Points Rules