Text this: Real-time active constraint generation and enforcement for surgical tools using 3D detection and localisation network