-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug fixes, add convenience tools in deploy
- Loading branch information
Showing
6 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.vscode | ||
__pycache__ | ||
*.egg-info/ | ||
*.egg-info/ | ||
build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh | ||
chmod +x install_pivariety_pkgs.sh | ||
./install_pivariety_pkgs.sh -p libcamera_dev | ||
./install_pivariety_pkgs.sh -p libcamera_apps | ||
./install_pivariety_pkgs.sh -p imx519_kernel_driver | ||
|
||
sudo apt install -y python2 | ||
sudo apt install -y raspberrypi-kernel-headers | ||
sudo apt install -y gstreamer1.0-tools | ||
mkdir /home/pi/$(uname -r) | ||
|
||
# download kernel source code | ||
cd ~ | ||
sudo apt install git bc bison flex libssl-dev | ||
sudo wget https://raw.githubusercontent.com/RPi-Distro/rpi-source/master/rpi-source -O /usr/local/bin/rpi-source && sudo chmod +x /usr/local/bin/rpi-source && /usr/local/bin/rpi-source -q --tag-update | ||
rpi-source -d $(uname -r) | ||
|
||
# compile driver | ||
cd ~ | ||
git clone --branch v0.12.5 https://github.com/umlaeute/v4l2loopback.git | ||
cd v4l2loopback | ||
make clean && make | ||
make && sudo make install | ||
sudo depmod -a | ||
|
||
# use v4l2loopback | ||
sudo modprobe v4l2loopback video_nr=3 | ||
gst-launch-1.0 libcamerasrc ! 'video/x-raw,width=1920,height=1080' ! videoconvert ! tee ! v4l2sink device=/dev/video3 | ||
|
||
# install | ||
sudo apt install python3-opencv | ||
git clone https://github.com/jehontan/vision_localization.git | ||
echo 'export PATH=$PATH:${HOME}/.local/bin' >> ~/.bashrc | ||
|
||
# autofocus | ||
libcamera-still -t 0 --keypress |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<html> | ||
<body> | ||
<img src='http://camera1.local:5127/preview' height=420px/> | ||
<img src='http://camera2.local:5127/preview' height=420px/> | ||
<br> | ||
<img src='http://camera3.local:5127/preview' height=420px/> | ||
<img src='http://camera4.local:5127/preview' height=420px/> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="vision_localization", | ||
version="0.0.1", | ||
version="1.0.0", | ||
author="Je Hon Tan", | ||
author_email="[email protected]", | ||
description="Vision-based localization using ArUco markers.", | ||
|
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
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