This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am jruivo-dev on github. | |
* I am jruivo (https://keybase.io/jruivo) on keybase. | |
* I have a public key ASAqIVaa_eWerEIvAqTi_00K_7qfToWRLMrynDeX10-7PQo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google.colab import files | |
uploaded = files.upload() | |
for fn in uploaded.keys(): | |
print('User uploaded file "{name}" with length {length} bytes'.format( | |
name=fn, length=len(uploaded[fn]))) | |
dog = uploaded['dog.jpg'] | |
img = cv2.imdecode(np.frombuffer(dog, np.uint8), cv2.IMREAD_COLOR) |