Drop roi
This commit is contained in:
parent
cdb29bbc57
commit
bf0c892f1a
7
Makefile
7
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
|
||||
|
||||
|
||||
@ -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<string> &cmds)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user