You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I know this question is a bit old, but hopefully this answer helps anyone running into this in the future.)
If the features dataframe is empty, you'll see this exception. This happened to me when I was trying to update the scikit-image interface; when I implemented the scikit-image method calls incorrectly, no features were detected, and the dataframe was empty. If you try
print(features)
and see that the dataframe is empty, that's what's causing the error. The fix is to make sure you're detecting features in each image. You can modify the loop over each frame to show the labeled features in the frame, to check what's going on.
When I use:
tp.annotate(features[features.frame==id_example], img_example)
I get the following error:
AttributeError Traceback (most recent call last)
in ()
----> 1 tp.annotate(features[features.frame==id_example], img_example)
C:\Users\Fayaz\AppData\Local\Enthought\Canopy\User\lib\site-packages\pandas\core\generic.pyc in getattr(self, name)
2667 if name in self._info_axis:
2668 return self[name]
-> 2669 return object.getattribute(self, name)
2670
2671 def setattr(self, name, value):
AttributeError: 'DataFrame' object has no attribute 'frame'
The text was updated successfully, but these errors were encountered: