How to use an opencv function in a keras layer? Python
I would like to know how I can use a OpenCV function like Akaze inside of a Keras layer So the model would look like this
input
output1 = model_a(input)
opencv_output = opencv_layer(input)
merge_output = Concate(output1, opencv_output )(axis=-1)
.....
Any suggestions on how to do this will be appreciated. I dont want to do the preprocessing in the start as I am doing image augmentation and dont know how the image will change (rotate, flip ext). If you know a good way of doing this in the image augmentation method I would be open to hearing about it as well. Please and thank you.
why would you want to do that ?
why does it need to be part of the network (instead of being a "data preprocessing" step) ?
do you need gpu support for the underlying (tf ?) graph ?
It is because I am controlling which image is getting it done to