These are not errors but warnings.
They tell you that the result of the operation
x + y
might overflow. Your parameters are of type
uint8
(range 0 to 255). When adding two such values the result may be greater than 255 which can't be stored as
uint8
. Then the result is truncated to 8 bits.
If this can be accepted or not depends.
Googling for the error shows that you are not the first one for this code portions:
python - Runtime Warning overflow encountered in ubyte_scalars - Stack Overflow[
^]