Answers for "how to convert datatype of numpy array from float32 to int16"

4

change type of array python

arr=arr.astype('uint8')
Posted by: Guest on March-20-2020

Code answers related to "how to convert datatype of numpy array from float32 to int16"

Python Answers by Framework

Browse Popular Code Answers by Language