node-facenet icon indicating copy to clipboard operation
node-facenet copied to clipboard

jpeg error

Open bingo9062 opened this issue 7 years ago • 6 comments

Hi zixia: When i recognize jpeg format picture i got: TypeError: Cannot read property 'md5' of undefined and it is ok with jpg format picture. It is my configuration error?

bingo9062 avatar Nov 28 '17 09:11 bingo9062

I did not met this error message before. I can have a look for you if you can provide the steps to re produce this error.

huan avatar Nov 28 '17 14:11 huan

After lots of test i found the problem:

1.There are two picture,one is compressed by we chat which can be recognized rightly. the other is the raw picture which is 1.7mb which can not be recognized lol. After compressing the picture by myself it is ok.

output 666

2.I found that the system cannot recognize picture which is rotated like

output

bingo9062 avatar Dec 04 '17 06:12 bingo9062

Glad to hear from you that you find out the problem. Cheers!

huan avatar Dec 04 '17 16:12 huan

thanks zixia!i am closing the issue

bingo9062 avatar Dec 04 '17 23:12 bingo9062

Would you like to send a PR to help facenet could be able to rotate the jpeg file automatically to prevent this problem?

If so, that would be awesome.

huan avatar Dec 05 '17 04:12 huan

https://github.com/zhangyuanwei/node-images I use this 3rd part tool for resizing and rotating pictures q02z7cg0fpr1plnwqr n1wu I will try to automatically to prevent this problem after final exam lol

bingo9062 avatar Dec 05 '17 07:12 bingo9062