machinevision-toolbox-python icon indicating copy to clipboard operation
machinevision-toolbox-python copied to clipboard

module 'numpy' has no attribute 'bool'.

Open FormotherChina opened this issue 11 months ago • 3 comments

Errors in books are a nightmare for the readers and the author! If you spot something that is wrong, or something could be improved (clearer, less confusing, less ambiguous) please log it here. This will help fellow readers of the book, and will improve future editions of the book.

Where is the error? The command matches.subset(100).plot("w") seems to be causing an error while you were running the code from the README.

What is the error? A clear and concise description of how you would like to see the text changed, and why.

Additional context machinevisiontoolbox/ImagePointFeatures.py:1239, in FeatureMatch.getitem(self, i) 1237 inliers = self._inliers[i] 1238 elif isinstance(i, np.ndarray): -> 1239 if np.issubdtype(i.dtype, np.bool): 1240 matches = [m for m, g in zip(self._matches, i) if g] 1241 if self._inliers is not None:

Additional context image

FormotherChina avatar Jul 10 '23 09:07 FormotherChina