i have a array response from a api and i got this poly:
poly = [(0,525),(961,525),(961,1003),(0,1003)]
i need to multiply each item for 0.35, them my code was it:
poly = ak.Array(poly) * (35/100)
i got a <class 'awkward1.highlevel.Array'>
object then i changed it to a np array
poly = np.array(poly)
but this is converted to a wrong format
[( 0. , 183.75) (336.35, 183.75) (336.35, 351.05) ( 0. , 351.05)]
i need that my resultant array to be this as np.array int32
:
[[0, 184], [336, 184], [336, 351], [0, 351]]
some one can help me please?