Exemplo n.º 1
0
 def declare_outputs(self):  #deklaracja wyjść
     self.declare_output(
         "videoOutput", OutputMessageConnector(self)
     )  #deklaracja wyjścia "videoOutput" będącego interfejsem wyjściowym konektora msg_stream_connector
     self.declare_output("authorizationOnOutput",
                         OutputObjectConnector(self))
     self.declare_output("photosOutput", OutputMessageConnector(self))
Exemplo n.º 2
0
 def declare_outputs(self):  # deklaracja wyjść
     service_names = self.service_params.getAllServiceNames(
     )  # pobieram nazwy wszystkich serwisów, jakie będą podłączone do serwisu master (na ich podstawie są pobierane nazy konektorów)
     for service in service_names:
         connector_name = self.service_params.getOutputVideoConnectorName(
             service
         )  # pobieram nazwę konektora wyjściowego dla obrazu video
         self.declare_output(
             connector_name,
             OutputMessageConnector(self))  # deklaracja konektora
         if service != self.service_params.MASTER_SERVICE:  # wszystkie serwisy oprócz samego serwisu master mają konektor wyjściowy z ustawieniami
             connector_name = self.service_params.getOutputSettingsConnectorName(
                 service
             )  # pobieram nazwę konektora wyjściowego dla ustawień przetwarzania
             self.declare_output(
                 connector_name,
                 OutputObjectConnector(self))  # deklaracja konektora
Exemplo n.º 3
0
 def declare_outputs(self):  #deklaracja wyjść
     self.declare_output("videoOutput", OutputMessageConnector(self))
     self.declare_output("settingsOutput", OutputObjectConnector(self))
Exemplo n.º 4
0
 def declare_outputs(self):
     self.declare_output("out1", OutputMessageConnector(self))
     self.declare_output("out2", OutputMessageConnector(self))
Exemplo n.º 5
0
 def declare_outputs(self):
     """deklaracja wyjść"""
     #deklaracja wyjścia "videoOutput" będącego interfejsem
     #wyjściowym konektora msg_stream_connector
     self.declare_output("videoOutputResized", OutputMessageConnector(self))
Exemplo n.º 6
0
from ComssServiceDevelopment.development import DevServiceController

from GifConverter import video_info

print 'starting stub input script'
if len(sys.argv) < 3:
    print 'provide FFMPEG_BIN and video file as args'
    print 'provided: ' + str(sys.argv[1:])
    exit()
ffmpeg_bin = sys.argv[1]
file_path = sys.argv[2]

config_name = os.path.join(os.path.dirname(__file__), "service.json")
service_controller = DevServiceController(config_name)
service_controller.declare_connection(
    "videoInput", OutputMessageConnector(service_controller))

timer = 2.0  # seconds
send_val = 1


def send_msg():
    global send_val
    print send_val
    # send
    if send_val == 3:
        print '\tsend cmd !'
        msg_obj = {'path': file_path, 'w': w, 'h': h, 'frames': frames}
        msg = json.dumps(msg_obj)
    else:
        msg = "--Nope--"
Exemplo n.º 7
0
 def declare_outputs(self):
     self.declare_output("tcpOutput", OutputMessageConnector(self))
Exemplo n.º 8
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from ComssServiceDevelopment.connectors.tcp.msg_stream_connector import OutputMessageConnector
from ComssServiceDevelopment.development import DevServiceController

import sys
import cv2
import json
from Tkinter import *

service_controller = DevServiceController("src/input_descriptor.json")
service_controller.declare_connection(
    "out1", OutputMessageConnector(service_controller))

hosts = {
    # "resize"        :"localhost:11113",
    "loop_detection": "localhost:11115",
    "gif_encoder": "localhost:11116"
}

fields = ('max_gif_length [s]', 'min_gif_length [s]',
          'min_time_between_gifs [s]', 'max_acceptable_distance',
          'smudge_length [frames]', 'smudge_opacity [0-1]')

start_vals = ('3', '1.5', '0.5', '1000', '5', '0.3')

print '>starting input script'


def _send_params_to_host(host_str, new_params):
Exemplo n.º 9
0
 def declare_outputs(self):  #deklaracja wyjść
     self.declare_output(
         "audioOutput", OutputMessageConnector(self)
     )  #deklaracja wyjścia "videoOutput" będącego interfejsem wyjściowym konektora msg_stream_connector
Exemplo n.º 10
0
 def declare_outputs(self):
     self.declare_output("gifData", OutputMessageConnector(self))