mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	fix for opencv changes
This commit is contained in:
		
							parent
							
								
									20b4b503f0
								
							
						
					
					
						commit
						cbf26e09a4
					
				| @ -623,7 +623,8 @@ def process_frames( | ||||
|                     idxs = cv2.dnn.NMSBoxes(boxes, confidences, 0.5, 0.4) | ||||
| 
 | ||||
|                     for index in idxs: | ||||
|                         obj = group[index[0]] | ||||
|                         index = index if isinstance(index, np.int32) else index[0] | ||||
|                         obj = group[index] | ||||
|                         if clipped(obj, frame_shape): | ||||
|                             box = obj[2] | ||||
|                             # calculate a new region that will hopefully get the entire object | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user