File size: 252 Bytes
0dfe04a
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from huggingface_hub import hf_hub_download
import cv2

REPO_ID = "Mashengshuaiqi/myfirstdataset"
FILENAME = "banana.png"

img = cv2.imread(
    hf_hub_download(repo_id=REPO_ID, filename=FILENAME, repo_type="dataset")
)

print(" ====> ",img.shape )