kopia lustrzana https://github.com/OpenDroneMap/NodeODM
commit
e53a95f9c7
|
@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y curl gpg-agent
|
||||||
RUN curl --silent --location https://deb.nodesource.com/setup_10.x | bash -
|
RUN curl --silent --location https://deb.nodesource.com/setup_10.x | bash -
|
||||||
RUN apt-get install -y nodejs unzip p7zip-full && npm install -g nodemon && \
|
RUN apt-get install -y nodejs unzip p7zip-full && npm install -g nodemon && \
|
||||||
ln -s /code/SuperBuild/install/bin/untwine /usr/bin/untwine && \
|
ln -s /code/SuperBuild/install/bin/untwine /usr/bin/untwine && \
|
||||||
|
ln -s /code/SuperBuild/install/bin/entwine /usr/bin/entwine && \
|
||||||
ln -s /code/SuperBuild/install/bin/pdal /usr/bin/pdal
|
ln -s /code/SuperBuild/install/bin/pdal /usr/bin/pdal
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "NodeODM",
|
"name": "NodeODM",
|
||||||
"version": "2.1.0",
|
"version": "2.1.1",
|
||||||
"description": "REST API to access ODM",
|
"description": "REST API to access ODM",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -50,6 +50,20 @@ if [ ! -z "$pointcloud_input_path" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if hash entwine 2>/dev/null; then
|
||||||
|
if [ ! -e "entwine_pointcloud" ]; then
|
||||||
|
entwine build --threads $(nproc) --tmp "entwine_pointcloud-tmp" -i "$pointcloud_input_path" -o entwine_pointcloud
|
||||||
|
else
|
||||||
|
echo "Entwine point cloud is already built."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
if [ -e "entwine_pointcloud-tmp" ]; then
|
||||||
|
rm -fr "entwine_pointcloud-tmp"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if hash untwine 2>/dev/null; then
|
if hash untwine 2>/dev/null; then
|
||||||
if [ ! -e "entwine_pointcloud" ]; then
|
if [ ! -e "entwine_pointcloud" ]; then
|
||||||
untwine --temp_dir "entwine_pointcloud-tmp" --files "$pointcloud_input_path" --output_dir entwine_pointcloud
|
untwine --temp_dir "entwine_pointcloud-tmp" --files "$pointcloud_input_path" --output_dir entwine_pointcloud
|
||||||
|
@ -61,23 +75,14 @@ if [ ! -z "$pointcloud_input_path" ]; then
|
||||||
if [ -e "entwine_pointcloud-tmp" ]; then
|
if [ -e "entwine_pointcloud-tmp" ]; then
|
||||||
rm -fr "entwine_pointcloud-tmp"
|
rm -fr "entwine_pointcloud-tmp"
|
||||||
fi
|
fi
|
||||||
elif hash entwine 2>/dev/null; then
|
|
||||||
if [ ! -e "entwine_pointcloud" ]; then
|
|
||||||
entwine build --threads $(nproc) --tmp "entwine_pointcloud-tmp" -i "$pointcloud_input_path" -o entwine_pointcloud
|
|
||||||
else
|
|
||||||
echo "Entwine point cloud is already built."
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleanup
|
if [ ! -e "entwine_pointcloud" ]; then
|
||||||
if [ -e "entwine_pointcloud-tmp" ]; then
|
echo "Checking if PotreeConverter is available..."
|
||||||
rm -fr "entwine_pointcloud-tmp"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "Entwine is not installed, checking if PotreeConverter is available instead..."
|
|
||||||
if hash PotreeConverter 2>/dev/null; then
|
if hash PotreeConverter 2>/dev/null; then
|
||||||
PotreeConverter "$pointcloud_input_path" -o potree_pointcloud --overwrite -a RGB CLASSIFICATION
|
PotreeConverter "$pointcloud_input_path" -o potree_pointcloud --overwrite -a RGB CLASSIFICATION
|
||||||
else
|
else
|
||||||
echo "PotreeConverter is also not installed, will skip generation of Potree point cloud"
|
echo "PotreeConverter is not installed, will skip generation of Potree point cloud"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Ładowanie…
Reference in New Issue