Adding on what YYoon said, the example from TensorFlow/Examples is not meant to run with whatever tflite file you insert into the project. You have to do a lot of changes, but it is a good start without the need to write all the boilerplate code for the camera for example.
First of all I have not seen a 5th dimension. If you had input of [1,224,224,3] or [1,3,224,224] for the image your job would have been more easy. So what is this 5th dimension? You have to provide more info and a notebook to check. If this is a 3D dimension I have not found a camera that can provide this type of information. What are the inputs at the notebook? Are they 3D images?