wrapper.py 455 Bytes
__author__ = 'chunk'

import os, sys
from subprocess import Popen, PIPE, STDOUT
from common import *

timer = Timer()
timer.mark()

os.environ["CLASSPATH"] = "../libs/F5/"
cmd = 'java Embed %s %s -e ../res/toembed  -p password -c "stegan by chunk  "'
p = Popen(cmd % ('../res/lopez.jpg', '../res/lopez.jpg'), shell=True, stdout=PIPE, stderr=STDOUT)

list_ipdesc = [line.strip('\n') for line in p.stdout.readlines()]
print list_ipdesc

timer.report()