class_docstr: The post process for Differentiable Binarization (DB).
class_docstr_tok: ["The","post","process","for","Differentiable","Binarization","(","DB",")","."]
code: def __call__(self, outs_dict, shape_list):
      pred = outs_dict["maps"]
  
      pred = pred[:, 0, :, :]
      segmentation = pred > self.thresh
  
      boxes_batch = []
      for batch_index in range(pred.shape[0]):
          src_h, src_w, ratio_h, ratio_w = shape_list[batch_index]
  
          mask = segmentation[batch_index]
          tmp_boxes, tmp_scores = self.boxes_from_bitmap(
              pred[batch_index], mask, src_w, src_h
          )
  
          boxes_batch.append(tmp_boxes)
      return boxes_batch
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import cv2
  import numpy
  import pyclipper
  from PIL import ImageDraw
  from shapely.geometry import Polygon
label_desc: Use image node_id 7 for calling the DBPostProcess obj's underlying member method code with example usage: obj.__call__(outs_dict, shape_list) and returns: boxes_batch