When address contain non-latin symbols recongition fails

Bug #633072 reported by s.r
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QuiEstLa
High
Guillaume Hain

Bug Description

I just test it via test_client and put image from my Картинки/2010/01/ folder (Картинки (russian) - Images). And recognition breaks with message about wrong ascii or something like this.

Revision history for this message
s.r (sergeyreym) wrote :

Traceback:
[OpenCVClient1][DEBUG] Loading picture file at /home/sergey/Картинки/2010/01/PC260002.JPG (opencvclient.py:94)
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/home/sergey/tttt/quiestla/quiestla/common/quiestlaworker.py", line 64, in run
    self.__opencv_client.search_from_this_file(quiestlatask.get_path())
  File "/home/sergey/tttt/quiestla/quiestla/common/opencvclient.py", line 100, in search_from_this_file
    self.__image = cvLoadImage(str(path));
UnicodeEncodeError: 'ascii' codec can't encode characters in position 13-20: ordinal not in range(128)

Revision history for this message
Guillaume Hain (zedtux) wrote :

Thank you for your report !

I will check it quickly.

Changed in quiestla:
importance: Undecided → High
assignee: nobody → zedtux (zedtux)
Revision history for this message
Guillaume Hain (zedtux) wrote :

Could you try it again please ?

Changed in quiestla:
status: New → Fix Committed
Revision history for this message
s.r (sergeyreym) wrote :

Now deamon creates files in folder *.quiestlaallfaces.jpg, *.quiestlaallfaces.small.jpg and *.result.jpg, but when I click on the "Draw and open" it fails (it looks like same problem but now in client). And error in terminal (rough translation):
> Working with path /home/sergey/Картинки/2010/07/01/P6300063.JPG
> END OF Thread
> URL rendering error: Error occurs in getting file info «/home/sergey/Картинки/2010/07/01/P6300063.JPG.result.jpg»: No such file or directory

But such file exists.

Revision history for this message
Guillaume Hain (zedtux) wrote :

Ok, it should because your file is a little big, so drawing faces areas take some seconds, and the test client don't wait until the end. If you click again on "Draw and open", it will open the generated file (And regenerate it ....)

But the important thing here is the result.

You should check the file *.result.jpg

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers