Electric fences work well with cattle, it would have to be low voltage as not to kill the birds, birds are intelligent so I'm sure they would learn quickly.
I think it is a much better idea than nets in which I have seen trapped and dead pigeons and had to call the rspca