This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +9
-4
lines changed Expand file tree Collapse file tree 6 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ sudo snap install cmake --classic
9292sudo apt-get update
9393# nasm for ffmpeg
9494# libusb-1.0-0-dev for MYRIAD plugin
95+ sudo apt update
9596sudo apt install build-essential git pkg-config python3-dev nasm python3 virtualenv libusb-1.0-0-dev chrpath shellcheck
9697
9798# for ngraph
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def __len__(self):
1515
1616setuptools .setup (
1717 name = 'opencv-python-inference-engine' ,
18- version = '2021.09 .10' ,
18+ version = '2021.10 .10' ,
1919 url = "https://github.com/banderlog/opencv-python-inference-engine" ,
2020 maintainer = "Kabakov Borys" ,
2121 license = 'MIT, Apache 2.0' ,
Original file line number Diff line number Diff line change 2424
2525green " RESET GIT SUBMODULES"
2626# git checkout dev
27- # use `git fetch --tags && git checkout tags/<tag>` for update
27+ # for update use `git submodule update --init --recursive --jobs=4`
28+ # cd submodule dir and `git fetch --tags && git checkout tags/<tag>`
2829git submodule update --init --recursive --depth=1 --jobs=4
2930# restore changes command will differ between GIT versions (e.g., `restore`)
3031git submodule foreach --recursive git checkout .
Original file line number Diff line number Diff line change 4848green " GET MODELS"
4949
5050if [ ! -d " rateme" ]; then
51- ./venv_t/bin/pip3 install --python-version 3 rateme -U --no-deps -t ./
51+ ./venv_t/bin/pip3 install " https://github.com/banderlog/ rateme/releases/download/v0.1.1/rateme-0.1.1.tar.gz "
5252fi
5353
5454# urls, filenames and checksums are from:
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ def test_dnn_module(self):
1212 img = cv2 .imread ('dislike.jpg' )
1313 answer = model .predict (img )
1414 self .assertEqual (answer , 'dislike' )
15+ print ('rateme: passed' )
1516
1617 def test_inference_engine (self ):
1718 img = cv2 .imread ('helloworld.png' )
@@ -22,11 +23,13 @@ def test_inference_engine(self):
2223 recognizer12 = TextRecognizer ('./text-recognition-0012.xml' )
2324 answer = recognizer12 .do_ocr (img , bboxes )
2425 self .assertEqual (answer , ['hello' , 'world' ])
26+ print ('text detection and recognition: passed' )
2527
2628 def test_ffmpeg (self ):
2729 cap = cv2 .VideoCapture ('short_video.mp4' )
2830 answer , img = cap .read ()
2931 self .assertTrue (answer )
32+ print ('video opening: passed' )
3033
3134
3235if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments