How to create multiple ROIs

the second approach is right. how did you set config-width and config-height? is the ROI beyond the frame? you can try two small ROI first.