Skip to content

Commit 596612e

Browse files
committed
Fix optional import cv2 crash
1 parent 268e8ec commit 596612e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/core/computer/display/display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
import requests
1313
from ...utils.lazy_import import lazy_import
1414
from ..utils.recipient_utils import format_to_recipient
15-
import cv2
1615
from screeninfo import get_monitors # for getting info about connected monitors
1716

1817

1918
# Still experimenting with this
2019
# from utils.get_active_window import get_active_window
2120

2221
# Lazy import of optional packages
22+
cv2 = lazy_import("cv2")
2323
pyautogui = lazy_import("pyautogui")
2424
np = lazy_import("numpy")
2525
plt = lazy_import("matplotlib.pyplot")

0 commit comments

Comments
 (0)