facebookresearch / playtorch

PlayTorch is a framework for rapidly creating mobile AI experiences.
https://playtorch.dev/
MIT License
829 stars 100 forks source link

Load Image from link #196

Closed BILLXZY1215 closed 1 year ago

BILLXZY1215 commented 1 year ago

Area Select

react-native-pytorch-core (core package)

Description

Hi, I'm wondering if it is possible to input an image url (native storage on mobile) rather than capture an image, to transfer the link to the Image object? Then we can do some image classification tasks more easliy.

raedle commented 1 year ago

@BILLXZY1215, are you looking to use an image picker to select images from the device's camera roll?

If yes, then the answer is "yes". There is an example PlayTorch Snack:

https://snack.playtorch.dev/@raedle/image-classification-with-image-picker