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
92
92
sudo apt-get update
93
93
# nasm for ffmpeg
94
94
# libusb-1.0-0-dev for MYRIAD plugin
95
+ sudo apt update
95
96
sudo apt install build-essential git pkg-config python3-dev nasm python3 virtualenv libusb-1.0-0-dev chrpath shellcheck
96
97
97
98
# for ngraph
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def __len__(self):
15
15
16
16
setuptools .setup (
17
17
name = 'opencv-python-inference-engine' ,
18
- version = '2021.09 .10' ,
18
+ version = '2021.10 .10' ,
19
19
url = "https://github.com/banderlog/opencv-python-inference-engine" ,
20
20
maintainer = "Kabakov Borys" ,
21
21
license = 'MIT, Apache 2.0' ,
Original file line number Diff line number Diff line change 24
24
25
25
green " RESET GIT SUBMODULES"
26
26
# 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>`
28
29
git submodule update --init --recursive --depth=1 --jobs=4
29
30
# restore changes command will differ between GIT versions (e.g., `restore`)
30
31
git submodule foreach --recursive git checkout .
Original file line number Diff line number Diff line change 48
48
green " GET MODELS"
49
49
50
50
if [ ! -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 "
52
52
fi
53
53
54
54
# 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):
12
12
img = cv2 .imread ('dislike.jpg' )
13
13
answer = model .predict (img )
14
14
self .assertEqual (answer , 'dislike' )
15
+ print ('rateme: passed' )
15
16
16
17
def test_inference_engine (self ):
17
18
img = cv2 .imread ('helloworld.png' )
@@ -22,11 +23,13 @@ def test_inference_engine(self):
22
23
recognizer12 = TextRecognizer ('./text-recognition-0012.xml' )
23
24
answer = recognizer12 .do_ocr (img , bboxes )
24
25
self .assertEqual (answer , ['hello' , 'world' ])
26
+ print ('text detection and recognition: passed' )
25
27
26
28
def test_ffmpeg (self ):
27
29
cap = cv2 .VideoCapture ('short_video.mp4' )
28
30
answer , img = cap .read ()
29
31
self .assertTrue (answer )
32
+ print ('video opening: passed' )
30
33
31
34
32
35
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments