View: 134|Reply: 0

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

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

Points Rules