forked from rydercalmdown/pet_detector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 823 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
RASPBERRY_PI_IP=10.0.0.89
RASPBERRY_PI_USERNAME=pi
.PHONY: install
install:
@cd deployment && bash install_raspberry_pi.sh
.PHONY: run
run:
@. env/bin/activate && cd src && python app.py
.PHONY: copy
copy:
@echo "Copying to raspberry pi"
rsync -r $(shell pwd) --exclude env --exclude data $(RASPBERRY_PI_USERNAME)@$(RASPBERRY_PI_IP):/home/$(RASPBERRY_PI_USERNAME)
.PHONY: focus
focus:
@echo "Taking camera photo for focus"
@ssh $(RASPBERRY_PI_USERNAME)@$(RASPBERRY_PI_IP) raspistill -o /home/pi/pet_detector/focus.jpg
@scp $(RASPBERRY_PI_USERNAME)@$(RASPBERRY_PI_IP):/home/pi/pet_detector/focus.jpg ./focus.jpg
.PHONY: shell
shell:
@echo "Connecting to raspberry pi"
@ssh $(RASPBERRY_PI_USERNAME)@$(RASPBERRY_PI_IP)
.PHONY: download-model
download-model:
@cd deployment && bash download_pretrained_model.sh