I think when you receive the BLOB (the image) from INDI, one of the fields is "format". So you may have to wait until you actually receive an image before deciding what type it is.

Also, one of the standard INDI properties is CCD_CFA, which has information needed for debayering (if appropriate).

Read More...