Fixed initialization order in sample code to prevent the video callback triggering before the neural network has been loaded