class_docstr: VideoGear API provides a special internal wrapper around VidGear's exclusive Video Stabilizer class.
  VideoGear also acts as a Common Video-Capture API that provides internal access for both CamGear and PiGear APIs and their parameters with an exclusive enablePiCamera boolean flag.
  
  VideoGear is ideal when you need to switch to different video sources without changing your code much. Also, it enables easy stabilization for various video-streams (real-time or not)
  with minimum effort and writing way fewer lines of code.
docstr: Safely terminates the thread, and release the respective VideoStream resources.
docstr_tok: ["Safely","terminates","the","thread",",","and","release","the","respective","VideoStream","resources","."]
code: def stop(self):
      """
      Safely terminates the thread, and release the respective VideoStream resources.
      """
      self.stream.stop()
      # logged
      self.__logging and logger.debug("Terminating VideoGear.")
      # clean queue
      if self.__stablization_mode:
          self.__stabilizer_obj.clean()
  
file_path: vidgear/vidgear/gears/videogear.py
imports: import logging
  from .helper import logger_handler, logcurr_vidgear_ver
  from .camgear import CamGear
label_desc: Use image node_id 4 for calling the VideoGear obj's underlying member method code with example usage: obj.stop() without return types