Skip to content

Commit

Permalink
Merge branch 'develop' into 'main'
Browse files Browse the repository at this point in the history
R22.09.01

See merge request Openncc/opennccframe!4
  • Loading branch information
EC-Zed committed Sep 8, 2022
2 parents a4c183a + 45488fa commit e2b844c
Show file tree
Hide file tree
Showing 39 changed files with 268 additions and 8,049 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
opennccframe (22.09.01) unstable; urgency=medium

* R22.09.01 (Closes: #nnnn) <nnnn is the bug number of your ITP>

-- Zed <[email protected]> Wed, 7 Sept 2022 14:37:11 +0800
opennccframe (22.02.01) unstable; urgency=medium

* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
Expand Down
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ifeq ($(wildcard nnstmp),)
git clone https://github.com/nnstreamer/nnstreamer nnstmp
endif
cd nnstmp;\
git checkout 1356c2a43cd25fb94 && git reset --hard
git checkout 47bcd119 && git reset --hard
# config the nnstreamer
cd ${NCCFRAME_SOURCE_ROOT_PATH};\
cp 0001-Filter-Decoder-Add-option-for-ncc-and-fix-bug-of-box.patch ${NNSTREAMER_SOURCE_ROOT_PATH}
Expand Down
28 changes: 17 additions & 11 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# auto: means automatic detect the $libdir
if [ -z $1 ];then
echo "Please input cmd as (sudo ./install [<platform>]). "
echo "[<platform>]: [ubuntu][rk3568][raspi4][auto]"
exit
platform="auto"
else
platform=$1
fi

if [ -z $2 ];then
Expand All @@ -15,7 +15,7 @@ else
destdir=$2
fi

multiarch=$(dpkg-architecture -qDEB_HOST_MULTIARCH)
#multiarch=$(dpkg-architecture -qDEB_HOST_MULTIARCH)
project_path=$(cd `dirname $0`;pwd)
install_pkg_path=$destdir/usr/lib/pkgconfig
install_path=$destdir/usr/lib/openncc
Expand Down Expand Up @@ -45,26 +45,32 @@ if [ ! -d "$rule_path" ];then
mkdir -p $rule_path
fi

if [ $1 = "ubuntu" ] || [ $1 = "rk3568" ] || [ $1 = "raspi4" ];then
echo "Starting to install OpenNCC Native libs for $1"
cd $resource_path/$1/
if [ $platform = "ubuntu" ] || [ $platform = "rk3568" ] || [ $platform = "raspi4" ];then
echo "Starting to install OpenNCC Native libs for $platform"
cd $resource_path/$platform/
./install.sh $install_path
elif [ $1 = "auto" ];then
if [[ `uname -a` =~ "x86_64" ]]; then
elif [ $platform = "auto" ]; then
if [[ `uname -m` =~ "x86_64" ]]; then
install_arch=ubuntu
elif [[ `uname -a` =~ "ARM-V8" ]]; then
elif [[ `uname -m` =~ "aarch64" ]]; then
install_arch=rk3568
elif [[ `uname -a` =~ "ARMv7l" ]]; then
elif [[ `uname -m` =~ "armv7l" ]]; then
install_arch=raspi4
else
install_arch=unknown
echo "Unknown platform!"
echo "Please input cmd as (sudo ./install [<platform>]). "
echo "[<platform>]: [ubuntu][rk3568][raspi4]"
exit
fi
echo "Detected ARCH: $install_arch "
cd $resource_path/$install_arch/
./install.sh $install_path
else
echo "Unknown platform!"
echo "Please input cmd as (sudo ./install [<platform>]). "
echo "[<platform>]: [ubuntu][rk3568][raspi4][auto]"
exit
fi

cp $firmware_path/* $install_path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"blob": "face-detection-adas-0001",
"blob": "age-gender-recognition-retail-0013",
"Function": " the input image is in bgr_planar_u8 format, and converts it into BGR_PLANAR_FP16 format. The tensor output is fp32 format",

"nccVideoConvert": {
Expand All @@ -24,7 +24,6 @@
"extInputs2": [0],
"extInputs3": [0],
"outputTensor": [1,1,200,7],
"outputTensor2": [0],
"outputType": "CV_FP16",
"linkOut" : "nccTensorConvert"
},
Expand All @@ -34,7 +33,7 @@
"linkIn" : "nccInference",
"inputTensor": [1,1,200,7],
"inputType": "CV_FP16",
"outputTensor1": [1,1,200,7],
"outputTensor": [1,1,200,7],
"outputType": "CV_FP32",
"linkOut" : "output"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"blob": "face-detection-adas-0001",
"blob": "age-gender-recognition-retail-0013",
"Function": " the input image is in YUV420 format, supports image clipping and scaling, and converts it into BGR_PLANAR_FP16 format. The tensor output is fp32 format",

"nccVideoConvert": {
Expand All @@ -23,8 +23,7 @@
"extInputs1": [0],
"extInputs2": [0],
"extInputs3": [0],
"outputTensor1": [1,1,200,7],
"outputTensor2": [0],
"outputTensor": [1,1,200,7],
"outputType": "CV_FP16",
"linkOut" : "nccTensorConvert"
},
Expand All @@ -34,7 +33,7 @@
"linkIn" : "nccInference",
"inputTensor": [1,1,200,7],
"inputType": "CV_FP16",
"outputTensor1": [1,1,200,7],
"outputTensor": [1,1,200,7],
"outputType": "CV_FP32",
"linkOut" : "output"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"extInputs1": [0],
"extInputs2": [0],
"extInputs3": [0],
"outputTensor": [1,1,200,7],
"outputTensor2": [0],
"outputTensor": [1,1,200,7],
"outputType": "CV_FP16",
"linkOut" : "nccTensorConvert"
},
Expand All @@ -34,7 +33,7 @@
"linkIn" : "nccInference",
"inputTensor": [1,1,200,7],
"inputType": "CV_FP16",
"outputTensor1": [1,1,200,7],
"outputTensor": [1,1,200,7],
"outputType": "CV_FP32",
"linkOut" : "output"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"extInputs1": [0],
"extInputs2": [0],
"extInputs3": [0],
"outputTensor1": [1,1,200,7],
"outputTensor2": [0],
"outputTensor": [1,1,200,7],
"outputType": "CV_FP16",
"linkOut" : "nccTensorConvert"
},
Expand All @@ -34,7 +33,7 @@
"linkIn" : "nccInference",
"inputTensor": [1,1,200,7],
"inputType": "CV_FP16",
"outputTensor1": [1,1,200,7],
"outputTensor": [1,1,200,7],
"outputType": "CV_FP32",
"linkOut" : "output"
}
Expand Down

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit e2b844c

Please sign in to comment.