Coder Social home page Coder Social logo

Comments (7)

murtazahassan avatar murtazahassan commented on July 17, 2024

hi , this could be caused due to opencv version .
have a look at this
https://stackoverflow.com/questions/46652754/python-opencv-valueerror-too-many-values-to-unpack?rq=1

from tello-object-tracking.

aliasimoglu avatar aliasimoglu commented on July 17, 2024

hi nice video i learnt a lot from it and while i was typing and lissening to you everything whent great untill i tryed to test your script its starts normal but then it gives me this error and i dont know if you can help?

Traceback (most recent call last):
File "ObjectTrackingTello.py", line 149, in
getContours(imgDil, imgContour)
File "ObjectTrackingTello.py", line 76, in getContours
contours, hierarchy = cv2.findContours(img.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
ValueError: too many values to unpack (expected 2)

did you solve this issue?

from tello-object-tracking.

aliasimoglu avatar aliasimoglu commented on July 17, 2024

@DSBxASSASSIN did you solve error

from tello-object-tracking.

DSBxASSASSIN avatar DSBxASSASSIN commented on July 17, 2024

from tello-object-tracking.

aliasimoglu avatar aliasimoglu commented on July 17, 2024

thank you so much to respond

from tello-object-tracking.

aliasimoglu avatar aliasimoglu commented on July 17, 2024

@DSBxASSASSIN i change the this code: contours, hierarchy = cv2.findContours(img.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
I write this code: (_, contours, hierarchy) = cv2.findContours(img.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
end I am using computer camera for this reason this code cap = cv2.VideoCapture(0) it has to practec in zero

from tello-object-tracking.

DSBxASSASSIN avatar DSBxASSASSIN commented on July 17, 2024

from tello-object-tracking.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.