It looks like you're new here. If you want to get involved, click one of these buttons!
I want to check if cut_box is not empty, i will save cut_box to image
cut_box = db.DBox(sub_x2, sub_y2, sub_x1, sub_y1) if cut_box is empty: print("box is empty") else: print("box is not empty") layout_view.save_image_with_options(sub_image_path, pixel_size, pixel_size, 0, 0, 0, cut_box, False)
Here is an example of cut_box is empty images (just a full white image)
Thanks and best regard,