'numpy.ndarray' object has no attribute 'rotate'
时间: 2023-10-02 18:03:49 浏览: 279
'numpy.ndarray' object has no attribute 'rotate' 这个错误是由于在numpy数组对象上调用了rotate方法,而numpy数组对象没有rotate方法所导致的。 因此,我们需要使用PIL库中的Image对象来对图像进行旋转。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [pydicom解析dicom并显示,AttributeError: ‘FileMetaDataset‘ object has no attribute ...](https://blog.csdn.net/zhou_xiong1130/article/details/109291061)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [python报错AttributeError: ‘numpy.ndarray‘ object has no attribute ‘rint](https://blog.csdn.net/cslcdfjd/article/details/124063631)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文