The simple-image-debayer library allows you to debayer images in a directory. It uses OpenCV for the debayering underneath the hood.