# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import copy import os.path import threading import wx import cv2 from ikalog.utils import Localization from ikalog.ui.events import * _ = Localization.gettext_translation('IkaUI', fallback=True).gettext class FileDropTarget(wx.FileDropTarget): def __init__(self, observer): wx.FileDropTarget.__init__(self) self.observer = observer def OnDropFiles(self, x, y, filenames): self.observer.on_drop_files(x, y, filenames) return True class InputFilePanel(wx.Panel): def __init__(self, *args, **kwargs): wx.Panel.__init__(self, *args, **kwargs)
import time import traceback import wx from ikalog.utils import IkaUtils, Localization Localization.print_language_settings() # from ikalog.engine import * from ikalog import outputs from ikalog.engine import * from ikalog.ui.panel import * from ikalog.ui import VideoCapture, IkaLogGUI _ = Localization.gettext_translation('IkaUI', fallback=True).gettext def IkaUI_main(): IkaUtils.dprint(_('Hello!')) application = wx.App() input_plugin = VideoCapture() engine = IkaEngine(keep_alive=True) engine.close_session_at_eof = True engine.set_capture(input_plugin) # 設定画面を持つ各種 Output Plugin # -> 設定画面の生成とプラグインリストへの登録 outputs_with_gui = [
# See the License for the specific language governing permissions and # limitations under the License. # import gettext import os import sys import time import cv2 import numpy as np from ikalog.inputs.filters import WarpFilter from ikalog.utils import IkaUtils, Localization _ = Localization.gettext_translation('screencapture', fallback=True).gettext class ScreenCapture(object): ''' ScreenCapture input plugin This plugin depends on python-pillow ( https://pillow.readthedocs.org/ ). This plugin now supports only IkaLog.py. You can use this plugin if you modify IkaConfig.py ``` from ikalog.inputs.screencapture import ScreenCapture class IkaConfig: def config(self): source = ScreenCapture() ``` '''
# See the License for the specific language governing permissions and # limitations under the License. # import gettext import os import sys import time import cv2 import numpy as np from ikalog.inputs.filters import WarpFilter from ikalog.utils import IkaUtils, Localization _ = Localization.gettext_translation('screencapture', fallback=True).gettext class ScreenCapture(object): ''' ScreenCapture input plugin This plugin depends on python-pillow ( https://pillow.readthedocs.org/ ). This plugin now supports only IkaLog.py. You can use this plugin if you modify IkaConfig.py ``` from ikalog.inputs.screencapture import ScreenCapture class IkaConfig: def config(self): source = ScreenCapture() ``` ''' from_file = False