yahoo / open_nsfw

Not Suitable for Work (NSFW) classification using deep neural network Caffe models.
BSD 2-Clause "Simplified" License
5.87k stars 1.05k forks source link

Replace PIL and StringIO by OpenCV #18

Closed LiuXiaolong19920720 closed 5 months ago

LiuXiaolong19920720 commented 8 years ago

My platform is Windows 7 with Python 2.7. There is a bug about StringIO I can not fix, so I replace the StringIO and PIL module by OpenCV. Delete defined resize() function and replace it by cv2.resize(). And use cv2.imread() to read images. It then work well.

yahoocla commented 8 years ago

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:

yahoocla commented 8 years ago

CLA is valid!

realzheng commented 8 years ago

But the output score is different.