File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 55
66import requests
77from PIL import Image
8+ from numpy import ndarray
89
910from roboflow .config import API_URL , CLIP_FEATURIZE_URL , DEMO_KEYS
1011from roboflow .core .project import Project
@@ -292,7 +293,11 @@ def active_learning(
292293 print ("inference reference point: " , inference_model )
293294 print ("upload destination: " , upload_project )
294295
295- globbed_files = glob .glob (raw_data_location + "/*" + raw_data_extension )
296+ # check if raw data type is cv2 frame
297+ if type (raw_data_location is type (ndarray )):
298+ globbed_files = [raw_data_location ]
299+ else :
300+ globbed_files = glob .glob (raw_data_location + "/*" + raw_data_extension )
296301
297302 image1 = globbed_files [0 ]
298303 similarity_timeout_counter = 0
You can’t perform that action at this time.
0 commit comments