def get_ROI_dictlist(ROI):
    """Return the dictionary for picam ROIs from the special type of parameter used in pylablib and picam for ROIs"""
    RDL = []
    for k in ROI._fields:
        RDL.append({'title': k, 'name': k, 'type': 'int', 'value': getattr(ROI, k)})
    return RDL