インプットプラグインを単体で動かす - hasegaw/IkaLog GitHub Wiki
インプットプラグインを単体で動かす
CVCapture
dhcp44-82:IkaLog hasegaw$ export PYTHONPATH=.
dhcp44-82:IkaLog hasegaw$ python3 ikalog/inputs/cvcapture.py
0: Input source 1
1: Input source 2
2: Input source 3
3: Input source 4
4: Input source 5
5: Input source 6
6: Input source 7
7: Input source 8
8: Input source 9
9: Input source 10
Please input number (or name) of capture device: 0
<__main__.CVCapture object at 0x10e588518>: initalizing capture device 0
(ウインドウが表示される)
AVFoundationCapture (for MacOS X)
dhcp44-82:IkaLog hasegaw$ export PYTHONPATH=.
dhcp44-82:IkaLog hasegaw$ python3 ikalog/inputs/osx/avfoundation_capture.py
2015-10-22 16:56:05.402 Python[4652:460945] Device[0]: FaceTime HD Camera
2015-10-22 16:56:05.402 Python[4652:460945] Device[1]: Blackmagic UltraStudio Mini Recorder
Please input number of capture device: 1
<__main__.AVFoundationCapture object at 0x10f0b4b38>: initializing capture device 1
2015-10-22 16:56:12.291 Python[4652:460945] Seleted capture device: Blackmagic UltraStudio Mini Recorder | uniqueID:(snip) | modelID:UltraStudio Mini Recorder