dice icon indicating copy to clipboard operation
dice copied to clipboard

DICe unable to read unicode image file paths (for example Chinese characters)

Open yangl96 opened this issue 5 years ago • 5 comments

I'm from China, and try to use the DICe for deformation calculation. However, I have found that the images address with Chinese character can be loaded and viewed but can't generate grid. Thank you for your works, and it would be more popular for DICe in China if you can solve this problem.

yangl96 avatar Dec 11 '19 01:12 yangl96

Could you be more specific about what you mean by "can't generate grid". I'm not sure I understand exactly what the problem is. Thanks.

dicengine avatar Dec 11 '19 12:12 dicengine

2019-12-14T19_57_40 Ye, what I want to express is that the 'Automatic detection of the speckled potions of the image'. You may see the attachment below, image load failure.

yanglGitHub avatar Dec 14 '19 11:12 yanglGitHub

If possible, could you post an example image we could use to debug the issue?

On Dec 14, 2019, at 4:58 AM, yanglGitHub [email protected] wrote:



[2019-12-14T19_57_40]https://user-images.githubusercontent.com/51121929/70848416-16908680-1eac-11ea-9a64-655104876dc0.png Ye, what I want to express is that the 'Automatic detection of the speckled potions of the image'. You may see the attachment below, image load failure.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/dicengine/dice/issues/153?email_source=notifications&email_token=ADT7TOQY6FGQGO72HXWN6FTQYTC7DA5CNFSM4JZHNEV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG4A67Q#issuecomment-565710718, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADT7TOUGCQFTIGHJGXO7HUTQYTC7DANCNFSM4JZHNEVQ.

dicengine avatar Dec 14 '19 12:12 dicengine

ok, you may find two images with Chinese character here, https://drive.google.com/file/d/1VypaI4bvfve9gdfPv8buPniM4xXUW7EG/view?usp=sharing https://drive.google.com/file/d/14qLA6VAMDPqILitMr5i32SHNDRahZyRI/view?usp=sharing

yanglGitHub avatar Dec 15 '19 02:12 yanglGitHub

We're not likely to have the bandwidth soon to enable reading unicode images, but I will keep this issue open as a feature request in case we do.

Here's a stack overflow post on how one could do this if so inspired and wanted to create a pull request https://stackoverflow.com/questions/43360543/open-image-files-with-unicode-names-using-imread

dicengine avatar Dec 16 '19 17:12 dicengine