Commit 4b29b90b779c9d58fa9d8fd7023f9a4105cd7bf8

Authored by Wesnydy Ribeiro
1 parent 67ec496c

Add text fonts

@@ -70,6 +70,8 @@ COPY ./core/PikaManager.py /root/PikaManager.py @@ -70,6 +70,8 @@ COPY ./core/PikaManager.py /root/PikaManager.py
70 COPY ./core/processManager.py /root/processManager.py 70 COPY ./core/processManager.py /root/processManager.py
71 COPY ./core/logger.py /root/logger.py 71 COPY ./core/logger.py /root/logger.py
72 72
  73 +COPY ./fonts/ /root/fonts/
  74 +
73 COPY ./translate-api/ /root/translate-api/ 75 COPY ./translate-api/ /root/translate-api/
74 76
75 COPY ./vlibras-translate/ /root/vlibras-translate/ 77 COPY ./vlibras-translate/ /root/vlibras-translate/
@@ -81,6 +83,7 @@ COPY ./unityVideo/ /root/unityVideo/ @@ -81,6 +83,7 @@ COPY ./unityVideo/ /root/unityVideo/
81 ENV VLIBRAS_VIDEO_CREATOR="/root/unityVideo/videoCreator.x86_64" 83 ENV VLIBRAS_VIDEO_CREATOR="/root/unityVideo/videoCreator.x86_64"
82 ENV VLIBRAS_VIDEO_LIBRAS="/root/storage/libras" 84 ENV VLIBRAS_VIDEO_LIBRAS="/root/storage/libras"
83 ENV VLIBRAS_VIDEO_SCREENS="/root/storage/frames" 85 ENV VLIBRAS_VIDEO_SCREENS="/root/storage/frames"
  86 +ENV TEXT_FONTS="/root/fonts/FreeSans.ttf"
84 87
85 #Translator environment variables 88 #Translator environment variables
86 ENV HUNPOS_TAGGER="/root/vlibras-libs/aelius/bin/hunpos-tag" 89 ENV HUNPOS_TAGGER="/root/vlibras-libs/aelius/bin/hunpos-tag"
core/renderer.py
@@ -189,7 +189,7 @@ def run(ch, method, properties, body): @@ -189,7 +189,7 @@ def run(ch, method, properties, body):
189 189
190 # Post processor functions 190 # Post processor functions
191 def watermark(input_video, output_video, text): 191 def watermark(input_video, output_video, text):
192 - fontfile = "/usr/share/fonts/truetype/freefont/FreeSans.ttf" 192 + fontfile = os.getenv("TEXT_FONTS")
193 193
194 filter_graph = ','.join( 194 filter_graph = ','.join(
195 [ 195 [
fonts/FreeSans.ttf 0 → 100644
No preview for this file type