the function cv2.findContours()
has been changed to return only the contours and the hierarchy and not ret
you should change it to:
contours,hierachy=cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
More Related Contents:
- Python3 how to define one length byte-string?(Solved)
- How can I specify the function type in my type hints?
- String formatting in Python 3
- How to read numbers from file in Python?
- How to use filter, map, and reduce in Python 3
- How to deal with multi-level column names downloaded with yfinance
- Invalid character in identifier
- How to run pip of different version of python using python command?
- Python’s sum vs. NumPy’s numpy.sum
- python tkinter return value from function used in command
- Safely evaluate simple string equation
- Python 3 Map function is not Calling up function
- How to print like printf in Python3?
- Python print statement “Syntax Error: invalid syntax” [duplicate]
- Type hinting / annotation (PEP 484) for numpy.ndarray
- ‘collectstatic’ command fails when WhiteNoise is enabled
- How to convert a binary (string) into a float value?
- Is it possible to define a class constant inside an Enum?
- Python selenium multiprocessing
- Python 3 integer division [duplicate]
- No outlines on bins of Matplotlib histograms or Seaborn distplots
- How to install a package for a specific Python version on Windows 10?
- How to install lxml on Windows
- How do I make my discord.py bot use custom emoji?
- TypeError: ufunc ‘add’ did not contain a loop with signature matching types
- AttributeError: module ‘numpy’ has no attribute ‘__version__’
- Get the object with the max attribute’s value in a list of objects
- Converting string to tuple without splitting characters
- error using pip search (pip search stopped working)
- How do I align text output in Python?