Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lfbw/lfbw.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import queue
from cmapy import cmap
from matplotlib import colormaps
import copy
from pathlib import Path
import urllib.request

Expand Down Expand Up @@ -328,7 +327,7 @@ def next_frame():
(self.width, self.height))

def compose_frame(self, frame):
mask = copy.copy(self.classifier.segment(frame))
mask = self.classifier.segment(frame)

if self.threshold < 1:
cv2.threshold(mask, self.threshold, 1, cv2.THRESH_BINARY, dst=mask)
Expand Down
Loading