일정 시간마다 주차장에 설치된 라즈베리 파이 카메라로부터 주차장 이미지를 가져오고, detectron2를 이용하여 주차장 full/empty 여부를 제공해주는 서버.
-
detectron2 설치
-
maskrcnn_benchmark 설치
git clone https://github.com/facebookresearch/maskrcnn-benchmark.git cd maskrcnn-benchmark python setup.py build develop
-
flask 설치
pip install flask pip install flask-cors
-
set constant.py
PI_IP = rasberry pi ip CFG_FILE = local cfg path(.yaml) MODEL_PATH = model path(.pth)
(set
static
folder too) -
run
sudo python3 main.py
to local host (POST)
{
"mode" : "local" or "url",
"imageUrl" : imageUrl or empty
}