feat: 切换后端至PaddleOCR-NCNN,切换工程为CMake
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
This commit is contained in:
58
3rdparty/opencv-4.5.4/samples/install/linux_install_a.sh
vendored
Normal file
58
3rdparty/opencv-4.5.4/samples/install/linux_install_a.sh
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# This file contains documentation snippets for Linux installation tutorial
|
||||
if [ "$1" = "--check" ] ; then
|
||||
sudo()
|
||||
{
|
||||
command $@
|
||||
}
|
||||
fi
|
||||
|
||||
sudo apt update
|
||||
|
||||
# [gcc]
|
||||
sudo apt install -y g++
|
||||
# [gcc]
|
||||
|
||||
# [make]
|
||||
sudo apt install -y make
|
||||
# [make]
|
||||
|
||||
# [cmake]
|
||||
sudo apt install -y cmake
|
||||
# [cmake]
|
||||
|
||||
# [wget]
|
||||
sudo apt install -y wget unzip
|
||||
# [wget]
|
||||
|
||||
# [download]
|
||||
wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip
|
||||
unzip opencv.zip
|
||||
mv opencv-master opencv
|
||||
# [download]
|
||||
|
||||
# [prepare]
|
||||
mkdir -p build && cd build
|
||||
# [prepare]
|
||||
|
||||
# [configure]
|
||||
cmake ../opencv
|
||||
# [configure]
|
||||
|
||||
# [build]
|
||||
make -j4
|
||||
# [build]
|
||||
|
||||
# [check]
|
||||
ls bin
|
||||
ls lib
|
||||
# [check]
|
||||
|
||||
# [check cmake]
|
||||
ls OpenCVConfig*.cmake
|
||||
ls OpenCVModules.cmake
|
||||
# [check cmake]
|
||||
|
||||
# [install]
|
||||
sudo make install
|
||||
# [install]
|
47
3rdparty/opencv-4.5.4/samples/install/linux_install_b.sh
vendored
Normal file
47
3rdparty/opencv-4.5.4/samples/install/linux_install_b.sh
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
# This file contains documentation snippets for Linux installation tutorial
|
||||
if [ "$1" = "--check" ] ; then
|
||||
sudo()
|
||||
{
|
||||
command $@
|
||||
}
|
||||
fi
|
||||
|
||||
sudo apt update
|
||||
|
||||
# [clang]
|
||||
sudo apt install -y clang
|
||||
# [clang]
|
||||
|
||||
# [ninja]
|
||||
sudo apt install -y ninja-build
|
||||
# [ninja]
|
||||
|
||||
# [cmake]
|
||||
sudo apt install -y cmake
|
||||
# [cmake]
|
||||
|
||||
# [git]
|
||||
sudo apt install -y git
|
||||
# [git]
|
||||
|
||||
# [download]
|
||||
git clone https://github.com/opencv/opencv.git
|
||||
git -C opencv checkout master
|
||||
# [download]
|
||||
|
||||
# [prepare]
|
||||
mkdir -p build && cd build
|
||||
# [prepare]
|
||||
|
||||
# [configure]
|
||||
cmake -GNinja ../opencv
|
||||
# [configure]
|
||||
|
||||
# [build]
|
||||
ninja
|
||||
# [build]
|
||||
|
||||
# [install]
|
||||
sudo ninja install
|
||||
# [install]
|
26
3rdparty/opencv-4.5.4/samples/install/linux_quick_install.sh
vendored
Normal file
26
3rdparty/opencv-4.5.4/samples/install/linux_quick_install.sh
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
# This file contains documentation snippets for Linux installation tutorial
|
||||
if [ "$1" = "--check" ] ; then
|
||||
sudo()
|
||||
{
|
||||
command $@
|
||||
}
|
||||
fi
|
||||
|
||||
# [body]
|
||||
# Install minimal prerequisites (Ubuntu 18.04 as reference)
|
||||
sudo apt update && sudo apt install -y cmake g++ wget unzip
|
||||
|
||||
# Download and unpack sources
|
||||
wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip
|
||||
unzip opencv.zip
|
||||
|
||||
# Create build directory
|
||||
mkdir -p build && cd build
|
||||
|
||||
# Configure
|
||||
cmake ../opencv-master
|
||||
|
||||
# Build
|
||||
cmake --build .
|
||||
# [body]
|
28
3rdparty/opencv-4.5.4/samples/install/linux_quick_install_contrib.sh
vendored
Normal file
28
3rdparty/opencv-4.5.4/samples/install/linux_quick_install_contrib.sh
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# This file contains documentation snippets for Linux installation tutorial
|
||||
if [ "$1" = "--check" ] ; then
|
||||
sudo()
|
||||
{
|
||||
command $@
|
||||
}
|
||||
fi
|
||||
|
||||
# [body]
|
||||
# Install minimal prerequisites (Ubuntu 18.04 as reference)
|
||||
sudo apt update && sudo apt install -y cmake g++ wget unzip
|
||||
|
||||
# Download and unpack sources
|
||||
wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip
|
||||
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/master.zip
|
||||
unzip opencv.zip
|
||||
unzip opencv_contrib.zip
|
||||
|
||||
# Create build directory and switch into it
|
||||
mkdir -p build && cd build
|
||||
|
||||
# Configure
|
||||
cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-master/modules ../opencv-master
|
||||
|
||||
# Build
|
||||
cmake --build .
|
||||
# [body]
|
18
3rdparty/opencv-4.5.4/samples/install/linux_verify.sh
vendored
Executable file
18
3rdparty/opencv-4.5.4/samples/install/linux_verify.sh
vendored
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# This script verifies that all shell snippets in the
|
||||
# Linux installation tutorial work (in Ubuntu 18 container)
|
||||
set -e
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
|
||||
docker pull ubuntu:18.04
|
||||
|
||||
for f in $(cd "${SCRIPT_DIR}" && ls -1 linux_*install*.sh) ; do
|
||||
echo "Checking $f..."
|
||||
docker run -it \
|
||||
--volume "${SCRIPT_DIR}":/install:ro \
|
||||
ubuntu:18.04 \
|
||||
/bin/bash -ex /install/$f --check
|
||||
|
||||
done
|
Reference in New Issue
Block a user