Python : RuntimeWarning: overflow encountered Python : RuntimeWarning: overflow encountered numpy numpy

Python : RuntimeWarning: overflow encountered


I think you are trying to create an int32 which is outside the allowed range. As per answer to SO question below, the maximum is 2**31-1.

I don't know pyOpenTld (or your code) but possibly try changing the type of A + B - C + value or cols*j+i, which might be the problem if it is part of a loop.

Also have a look at this answer which describes it quite well.

Here is more information on numpy dtypes and their allowed range.