This commit is contained in:
Fam Zheng 2025-04-25 08:21:47 +01:00
parent cdb29bbc57
commit bf0c892f1a
2 changed files with 0 additions and 20 deletions

View File

@ -42,8 +42,6 @@ ALG_FILES = \
$(shell find -L \ $(shell find -L \
alg/qrtool \ alg/qrtool \
alg/wechat_qrcode \ alg/wechat_qrcode \
alg/roi_lib.py \
alg/roi-verify.py \
alg/models/ \ alg/models/ \
) \ ) \
) )
@ -84,11 +82,6 @@ deploy-api-prod:
kubectl --kubeconfig deploy/kubeconfig.themblem set image deploy api emblem=$(IMAGE) kubectl --kubeconfig deploy/kubeconfig.themblem set image deploy api emblem=$(IMAGE)
kubectl --kubeconfig deploy/kubeconfig.themblem rollout status --timeout=1h deploy api kubectl --kubeconfig deploy/kubeconfig.themblem rollout status --timeout=1h deploy api
deploy-roi-worker:
curl -X POST https://euphon-alert-23358.famzheng.workers.dev/ -d 'Deploying ROI Worker to emblem-s1: $(IMAGE)'
kubectl --kubeconfig deploy/kubeconfig.emblem-s1 set image deploy roi-worker alg=$(IMAGE)
kubectl --kubeconfig deploy/kubeconfig.emblem-s1 rollout status --timeout=1h deploy roi-worker
test: FORCE test: FORCE
cd api; ./manage.py migrate && ./manage.py test tests cd api; ./manage.py migrate && ./manage.py test tests

View File

@ -86,19 +86,6 @@ int dot_cmd(char **argv, int argc)
} }
static void get_bin(Mat &orig, Mat &out)
{
Mat gray;
Mat filtered;
Point start;
Rect roi_rect;
cvtColor(orig, gray, COLOR_BGR2GRAY);
convertScaleAbs(gray, gray, 2);
// bilateralFilter(gray, filtered, 9, 150, 150, BORDER_DEFAULT);
medianBlur(gray, gray, 9);
threshold(gray, out, 128, 255, THRESH_BINARY);
}
static static
void usage(const char *name, vector<string> &cmds) void usage(const char *name, vector<string> &cmds)
{ {