7 views
Problem: I have a numpy array like result = np.array([[[289, 354, 331], [291, 206, 66], [242, 70, 256]], [[210, 389, 342], [273, 454, 218], [255, 87, 256]], [[127, 342, 173], [450, 395, 147], [223, 228, 401]]]) and i'm trying ... And i'm getting this error TypeError: Cannot cast array data from dtype('float64') to dtype('int32') according to the rule 'safe' What am i doing wrong? Thanks in advance

asked
Apr 24
munim01
21k points