ankush-me / SynthText

Code for generating synthetic text images as described in "Synthetic Data for Text Localisation in Natural Images", Ankush Gupta, Andrea Vedaldi, Andrew Zisserman, CVPR 2016.
http://www.robots.ox.ac.uk/~vgg/data/scenetext/
Apache License 2.0
2.04k stars 622 forks source link

some question about libfribidi.so(Arabic) #163

Open softwaregitgub opened 5 years ago

softwaregitgub commented 5 years ago

Traceback (most recent call last): File "E:/py/SynthTextPython3/gen.py", line 19, in from synthgen import * File "E:\py\SynthTextPython3\synthgen.py", line 20, in import text_utils as tu File "E:\py\SynthTextPython3\text_utils.py", line 20, in import fribidi File "E:\py\SynthTextPython3\fribidi.py", line 26, in _libfribidi = ctypes.CDLL("libfribidi.so") File "D:\Anaconda3\envs\py35\lib\ctypes__init.py", line 351, in init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块。

Where can i find the libfribidi.so?

softwaregitgub commented 5 years ago

stay: getting data.. -> done Storing the output in: results/SynthText.h5 0 of 4 ** instance # : 0 Traceback (most recent call last): File "/home/stay/Desktop/SynthTextPython3/synthgen.py", line 668, in render_text regions['homography_inv'][ireg]) File "/home/stay/Desktop/SynthTextPython3/synthgen.py", line 508, in place_text render_res = self.text_renderer.render_sample(font,collision_mask) File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 346, in render_sample txt_arr,txt,bb = self.render_curved(font, text) File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 176, in render_curved return self.render_multiline(font, word_text) File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 144, in render_multiline word = fribidi.log2vis(word, None, fribidi.ParType.RTL) File "/home/stay/Desktop/SynthTextPython3/fribidi.py", line 675, in log2vis input_utf32_p = _pyunicode_to_utf32_p(unicode_text) File "/home/stay/Desktop/SynthTextPython3/fribidi.py", line 131, in _pyunicode_to_utf32_p _libfribidi.fribidi_utf8_to_unicode(utf8_p, utf8_len, utf32_p) File "/home/stay/anaconda3/envs/tf/lib/python3.6/ctypes/init.py", line 357, in getattr func = self.getitem(name) File "/home/stay/anaconda3/envs/tf/lib/python3.6/ctypes/init.py", line 362, in getitem func = self._FuncPtr((name_or_ordinal, self)) AttributeError: /home/stay/anaconda3/lib/libfribidi.so: undefined symbol: fribidi_utf8_to_unicode

stay:AttributeError: /home/stay/anaconda3/pkgs/fribidi-1.0.5-h7b6447c_0/lib/libfribidi.so: undefined symbol: fribidi_utf8_to_unicode

ankush-me commented 5 years ago

@softwaregitgub not sure where is this file fribidi.py from.

FatemehShamsi commented 3 years ago

stay: getting data.. -> done Storing the output in: results/SynthText.h5 0 of 4 instance # : 0 Traceback (most recent call last): File "/home/stay/Desktop/SynthTextPython3/synthgen.py", line 668, in render_text regions['homography_inv'][ireg]) File "/home/stay/Desktop/SynthTextPython3/synthgen.py", line 508, in place_text render_res = self.text_renderer.render_sample(font,collision_mask) File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 346, in render_sample txt_arr,txt,bb = self.render_curved(font, text) File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 176, in render_curved return self.render_multiline(font, word_text) File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 144, in render_multiline word = fribidi.log2vis(word, None, fribidi.ParType.RTL) File "/home/stay/Desktop/SynthTextPython3/fribidi.py", line 675, in log2vis input_utf32_p = _pyunicode_to_utf32_p(unicode_text) File "/home/stay/Desktop/SynthTextPython3/fribidi.py", line 131, in _pyunicode_to_utf32_p _libfribidi.fribidi_utf8_to_unicode(utf8_p, utf8_len, utf32_p) File "/home/stay/anaconda3/envs/tf/lib/python3.6/ctypes/init.py", line 357, in getattr func = self.getitem(name) File "/home/stay/anaconda3/envs/tf/lib/python3.6/ctypes/init.py", line 362, in getitem** func = self._FuncPtr((name_or_ordinal, self)) AttributeError: /home/stay/anaconda3/lib/libfribidi.so: undefined symbol: fribidi_utf8_to_unicode

stay:AttributeError: /home/stay/anaconda3/pkgs/fribidi-1.0.5-h7b6447c_0/lib/libfribidi.so: undefined symbol: fribidi_utf8_to_unicode

Did you solve the problem? I have the same problem