This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.19.4-alpine3.16 as builder | |
COPY ./main.go ./ | |
RUN go build -o /app ./main.go | |
FROM alpine:3.16 | |
COPY --from=builder /app . | |
USER nobody | |
ENTRYPOINT ["./app"] | |
CMD ["--shutdown.delay=0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.19.4-alpine3.16 as builder | |
COPY ./main.go ./ | |
RUN go build -o /app ./main.go | |
FROM alpine:3.16 | |
COPY --from=builder /app . | |
USER nobody | |
ENTRYPOINT ["./app"] | |
CMD ["--shutdown.delay=0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import cv2 as cv | |
import numpy as np | |
import argparse | |
parser = argparse.ArgumentParser(description='Code for Feature Matching with FLANN tutorial.') | |
parser.add_argument('--input1', help='Path to input image 1.', default='box.png') | |
parser.add_argument('--input2', help='Path to input image 2.', default='box_in_scene.png') | |
parser.add_argument('--input3', help='Path to input image 2.', default='box_in_scene.png') | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import cv2 | |
img = cv2.imread(sys.argv[1]) | |
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) | |
ret, binary = cv2.threshold(gray, 0, 255, cv2.THRESH_OTSU) | |
print(binary.shape) | |
cv2.imwrite("output.jpg", binary) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enter your network definition here. | |
# Use Shift+Enter to update the visualization. | |
name: "VGG_ILSVRC_16_layers" | |
layer { | |
name: 'input-data' | |
type: 'Python' | |
top: 'data' | |
top: 'im_info' | |
top: 'gt_boxes' | |
python_param { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "VGG_ILSVRC_16_layers" | |
layer { | |
name: 'input-data' | |
type: 'Python' | |
top: 'data' | |
top: 'im_info' | |
top: 'gt_boxes' | |
python_param { | |
module: 'roi_data_layer.layer' | |
layer: 'RoIDataLayer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Skip to content | |
Search or jump to… | |
Pull requests | |
Issues | |
Marketplace | |
Explore | |
@yutaroyamanaka | |
Learn Git and GitHub without any code! |