SohaibShafiq1

Results 6 comments of SohaibShafiq1

I found the other solution as well. (image-url=The url of the image user wants to classify.) import numpy as np image_bytes = io.BytesIO(image-url) image = Image.open(image_bytes) result=classifier.classify(np.array(image)) It worked.

No No, urls are supported too. image_bytes = io.BytesIO(image-url) image = Image.open(image_bytes) result=classifier.classify(image) then: in .virtaulenv>(venv-name)>lib>site-packages>nudenet>image_utils.py>load_img Previous: if isinstance(path, type("")): img = pil_image.open(path) else: path = cv2.cvtColor(path, cv2.COLOR_BGR2RGB) img =...

But if nudenet edit this from their end it will be good. Because when i will deploy the app, the actuall files be the files of nudenet not mine(image_utils.py file)....

I found the other solution as well. (image-url=The url of the image user wants to classify.) import numpy as np image_bytes = io.BytesIO(image-url) image = Image.open(image_bytes) result=classifier.classify(np.array(image)) It worked.

> https://images.pexels.com/photos/617278/pexels-photo-617278.jpeg can you please paste you code here. I still not able to see the option in toolbar