diff --git a/Makefile b/Makefile index 8cd5993..e784a36 100644 --- a/Makefile +++ b/Makefile @@ -42,8 +42,6 @@ ALG_FILES = \ $(shell find -L \ alg/qrtool \ alg/wechat_qrcode \ - alg/roi_lib.py \ - alg/roi-verify.py \ 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 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 cd api; ./manage.py migrate && ./manage.py test tests diff --git a/alg/qrtool.cpp b/alg/qrtool.cpp index f1bdd35..c5f2cc3 100644 --- a/alg/qrtool.cpp +++ b/alg/qrtool.cpp @@ -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 void usage(const char *name, vector &cmds) {