title: How to convert Keras model to Darknet model?
body: <p>I am having a project using keras (tensorflow backend) to train data and using opencv dnn (cv2.dnn) to detect object. 
  And when I used keras model on code using opencv dnn model , I had an error: 
  <strong><em>cv2.error: OpenCV(4.0.0) /io/opencv/modules/dnn/src/dnn.cpp:3644: error: (-2:Unspecified error) Cannot determine an origin framework of files: model_architecture.json, model_weights.h5 in function 'readNet'</em></strong></p>
  
  <p>I am looking for method to process this error and have been known that Keras saves the model weights (.h5), the model architecture (.json) (<em><a href="https://jovianlin.io/saving-loading-keras-models/" rel="nofollow noreferrer">https://jovianlin.io/saving-loading-keras-models/</a></em>), but darknet uses model weights (.weights) and model architecture (.cfg). 
  I thougth I must to convert keras model to darknet model, but i don't know how?
  So, can you show me how to fix this problem. 
  Thank you!</p>