code: def __init__(
      self,
      model_path,
      video_path,
      save_path,
      in_size,
      halo_effect,
      auto_light_matching,
      relighting_factor,
      recoloring_factor,
      skybox_center_crop,
      rain_cap_path,
      skybox_img,
      skybox_video,
      is_video,
      is_rainy,
      is_show,
  ):
      self.in_size = in_size
      self.is_show = is_show
      self.cap = cv2.VideoCapture(video_path)
      self.m_frames = int(self.cap.get(cv2.CAP_PROP_FRAME_COUNT))
      self.fps = self.cap.get(cv2.CAP_PROP_FPS)
      self.out_size = int(self.cap.get(cv2.CAP_PROP_FRAME_WIDTH)), int(
          self.cap.get(cv2.CAP_PROP_FRAME_HEIGHT)
      )
  
      self.model = paddle.jit.load(
          model_path,
          model_filename="__model__",
          params_filename="__params__",
      )
      self.model.eval()
  
      self.skyboxengine = SkyBox(
          out_size=self.out_size,
          skybox_img=skybox_img,
          skybox_video=skybox_video,
          halo_effect=halo_effect,
          auto_light_matching=auto_light_matching,
          relighting_factor=relighting_factor,
          recoloring_factor=recoloring_factor,
          skybox_center_crop=skybox_center_crop,
          rain_cap_path=rain_cap_path,
          is_video=is_video,
          is_rainy=is_rainy,
      )
      path, _ = os.path.split(save_path)
      if path == "":
          path = "."
      if not os.path.exists(path):
          os.mkdir(path)
      self.video_writer = cv2.VideoWriter(
          save_path,
          cv2.VideoWriter_fourcc(*"MP4V"),
          self.fps,
          self.out_size,
      )
  
file_path: PaddleHub/modules/video/Video_editing/SkyAR/skyfilter.py
imports: import os
  import cv2
  import paddle
  import numpy
  from .skybox import SkyBox
label_desc: Use image node_id 1 to create a new SkyFilter object  with example: obj = SkyFilter(model_path, video_path, save_path, in_size, halo_effect, auto_light_matching, relighting_factor, recoloring_factor, skybox_center_crop, rain_cap_path, skybox_img, skybox_video, is_video, is_rainy, is_show)