Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ imgList = [cv2.imread(f'model/street/{imgPath}') for imgPath in listImg]
|
|
89 |
indexImg = 0
|
90 |
|
91 |
|
92 |
-
Function to process the video frame from the webcam
|
93 |
def process_video_frame(frame: av.VideoFrame, detector, segmentor, imgList, indexImg, keys, session_state)-> av.VideoFrame:
|
94 |
# Convert the frame to a numpy array (BGR format)
|
95 |
image = frame.to_ndarray(format="bgr24")
|
|
|
89 |
indexImg = 0
|
90 |
|
91 |
|
92 |
+
# Function to process the video frame from the webcam
|
93 |
def process_video_frame(frame: av.VideoFrame, detector, segmentor, imgList, indexImg, keys, session_state)-> av.VideoFrame:
|
94 |
# Convert the frame to a numpy array (BGR format)
|
95 |
image = frame.to_ndarray(format="bgr24")
|