The current implementation of the Camera library does not support Camera.takePicture () function within the interrupt service routine (ISR). Kernel panic is expected. Unfortunately, but the same will be with the Spresense SDK.