class_docstr: The post process for Differentiable Binarization (DB).
class_docstr_tok: ["The","post","process","for","Differentiable","Binarization","(","DB",")","."]
code: def __init__(self, params):
      self.thresh = params["thresh"]
      self.box_thresh = params["box_thresh"]
      self.max_candidates = params["max_candidates"]
      self.unclip_ratio = params["unclip_ratio"]
      self.score_mode = params["det_db_score_mode"]
      self.min_size = 3
      self.dilation_kernel = None
  
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 1 to create a new DBPostProcess object from inherited base classes: object with example: obj = DBPostProcess(params)