code: def get_confidence(self, real_len, pseudo_len):
      if pseudo_len == 0:
          return 0.0
      return (
          real_len - min(real_len, abs(real_len - pseudo_len))
      ) / real_len
  
file_path: EasyOCR/trainer/craft/data/pseudo_label/make_charbox.py
imports: import os
  import random
  import math
  import numpy
  import cv2
  import torch
  from data import imgproc
  from data.pseudo_label.watershed import exec_watershed_by_version
label_desc: Use image node_id 6 for calling the PseudoCharBoxBuilder obj's underlying member method code with example usage: obj.get_confidence(real_len, pseudo_len) and returns: unknown, int