在使用numpy对opencv 的matlike类型的数据进行整数化时,有报错AttributeError: module 'numpy' has no attribute 'int0'. Did you mean: 'int8'。
解决方法:将int0改为int64即可,是由于numpy的版本升级int0,int8已不再使用。
在使用numpy对opencv 的matlike类型的数据进行整数化时,有报错AttributeError: module 'numpy' has no attribute 'int0'. Did you mean: 'int8'。
解决方法:将int0改为int64即可,是由于numpy的版本升级int0,int8已不再使用。