video_capture.py 538 B

1234567891011121314151617
  1. # -*- coding:utf-8 -*-
  2. import os, sys, time
  3. from ssat_sdk.device_manage.capturecard_manager import *
  4. from ssat_sdk.utils import LoggingUtil
  5. Device_Type = "ccard_cd750"
  6. class VideoCapture():
  7. def __init__(self):
  8. if "ccard_cd750" == Device_Type.lower():
  9. self.vcap = CCardManager()
  10. LoggingUtil.printLog(u"初始化VideoCapture(视频采集卡CD750)")
  11. '''
  12. 截取电视屏幕,保存图片到指定路径。
  13. '''
  14. def takePicture(self, picpath):
  15. return self.vcap.takePicture(picpath)