1234567891011121314151617181920 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- """
- demeter service
- name:record_pic.py 处理摄像头的图片数据
- author:rabin
- key:pic/图片名_图片总数_当前序号/gateway/device
- """
- import time
- import json
- from demeter import *
- class Record_pic(object):
- def handle(self, config, value):
- print config['type']
- method = config['type'].split('_')
- name = method[0]
- total = method[1]
- index = method[2]
-
|