We define a localised Euler class for isotropic sections, and isotropic cones, in SO(N) bundles. We use this to give an algebraic definition of Borisov-Joyce's sheaf counting invariants on Calabi-Yau 4-folds. When a torus acts, we prove a localisation result. This talk is based on the joint work with Richard. P. Thomas.