Text this: Multistage pig identification using a sequential ear tag detection pipeline