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