DSatishchandra commited on
Commit
e72349d
Β·
verified Β·
1 Parent(s): afcac7b

Update services/video_service.py

Browse files
Files changed (1) hide show
  1. services/video_service.py +2 -2
services/video_service.py CHANGED
@@ -17,10 +17,10 @@ class VideoService:
17
  return frames
18
 
19
  def frame_to_pil(self,frame):
20
- try:
21
  frame_rgb= cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
22
  pil_image = Image.fromarray(frame_rgb)
23
- except Exception as e:
24
  print(f"[Error] frame_to_pil conversion failed: {e}")
25
  return None
26
 
 
17
  return frames
18
 
19
  def frame_to_pil(self,frame):
20
+ try:
21
  frame_rgb= cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
22
  pil_image = Image.fromarray(frame_rgb)
23
+ except Exception as e:
24
  print(f"[Error] frame_to_pil conversion failed: {e}")
25
  return None
26