import numpy as np
import cv2


def mask(img_mat):
    gray = cv2.cvtColor(img_mat, cv2.COLOR_BGR2GRAY)
    mask = (gray <= 230).astype(np.float32)
    return mask

2d945e0e1626dc228d1587a2b8c8615ec4ce49ad
<mask token>

<mask token>


def mask(img_mat):
    gray = cv2.cvtColor(img_mat, cv2.COLOR_BGR2GRAY)
    mask = (gray <= 230).astype(np.float32)
    return mask

import numpy as np
import cv2


def mask(img_mat):
    gray = cv2.cvtColor(img_mat, cv2.COLOR_BGR2GRAY)
    mask = (gray <= 230).astype(np.float32)
    return mask
