docstr: Convert image array (assuming OpenCV BGR format) to image tensor.
  
  Parameters
  ----------
  image : np.ndarray
      OpenCV BGR image.
  
  Returns
  -------
  torch.tensor
      Tensor image with 4 dimension [batch, channel, width, height].
docstr_tok: ["Convert","image","array","(","assuming","OpenCV","BGR","format",")","to","image","tensor",".","Parameters","--","--","--","--","--","image",":","np.ndarray","OpenCV","BGR","image",".","Returns","--","--","--","-","torch.tensor","Tensor","image","with","4","dimension","[","batch",",","channel",",","width",",","height","]","."]
code: def image_array2tensor(self, image):
      """
      Convert image array (assuming OpenCV BGR format) to image tensor.
  
      Parameters
      ----------
      image : np.ndarray
          OpenCV BGR image.
  
      Returns
      -------
      torch.tensor
          Tensor image with 4 dimension [batch, channel, width, height].
      """
      return (
          torch.from_numpy(image).permute(2, 0, 1).float().unsqueeze(0)
      )
  
imports: import os
  import math
  import yaml
  from shapely.geometry import Polygon
  import PIL.Image
  import numpy
  import cv2
  import pyclipper
  import torch
  from .model.constructor import Configurable
label_desc: Use image node_id 8 for calling the DBNet obj's underlying member method code with example usage: obj.image_array2tensor(image) and returns: torch