title: Keras functional API: Combine CNN model with a RNN to to look at sequences of images
body: <p>So i was stuck with a question on how to combine a CNN with a RNN in Keras. While posting the question someone pointed me out that this is the correct way to approach the problem. Apparently i just overlooked something in the original code, which made me answer my own question. </p>
  
  <p>The original problem is as follows:</p>
  
  <p>How do you create a model in Keras that has sequences of images as the input, with a CNN 'looking' at each individual image and the sequence of the CNN output being fed into a RNN?</p>
  
  <p>To make it more clear:  </p>
  
  <p>Model one: a CNN that looks at single images.<br>
  Model two: a RNN that at the sequences of the output of the CNN from model one.</p>
  
  <p>So for example the CNN should see 5 images and this sequence of 5 outputs from the CNN should be passed on to the RNN. </p>
  
  <p>The input data is in the following format:<br>
  (number_of_images, width, height, channels) = (4000, 120, 60, 1)</p>