detect card by opencv
detect card by opencv
#make requirements.txt
[root@localhost ~]# vi requirements.txt
imutils==0.5.3
opencv-python==4.1.0.25
numpy==1.16.4
#download offline install files
[root@localhost python]# pip3 download -r requirements.txt
Collecting imutils==0.5.3 (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/b5/94/46dcae8c061e28be31bcaa55c560cb30ee9403c9a4bb2659768ec1b9eb7d/imutils-0.5.3.tar.gz
Saved ./imutils-0.5.3.tar.gz
Collecting opencv-python==4.1.0.25 (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/7b/d2/a2dbf83d4553ca6b3701d91d75e42fe50aea97acdc00652dca515749fb5d/opencv_python-4.1.0.25-cp36-cp36m-manylinux1_x86_64.whl
Saved ./opencv_python-4.1.0.25-cp36-cp36m-manylinux1_x86_64.whl
Collecting numpy==1.16.4 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/87/2d/e4656149cbadd3a8a0369fcd1a9c7d61cc7b87b3903b85389c70c989a696/numpy-1.16.4-cp36-cp36m-manylinux1_x86_64.whl
Saved ./numpy-1.16.4-cp36-cp36m-manylinux1_x86_64.whl
Successfully downloaded imutils opencv-python numpy
[root@localhost python]# ls
app.py imutils-0.5.3.tar.gz j10.jpg j3.png j5.jpg j7.jpg numpy-1.16.4-cp36-cp36m-manylinux1_x86_64.whl requirements.txt
detect_shapes2.py j1.jpg j2.jpg j4.jpg j6.jpg j9.png opencv_python-4.1.0.25-cp36-cp36m-manylinux1_x86_64.whl
#install requirements.txt
[root@localhost python]# pip3 install -r requirements.txt --no-index --find-links .
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting imutils==0.5.3 (from -r requirements.txt (line 1))
Collecting opencv-python==4.1.0.25 (from -r requirements.txt (line 2))
Collecting numpy==1.16.4 (from -r requirements.txt (line 3))
Installing collected packages: imutils, numpy, opencv-python
Running setup.py install for imutils ... done
Successfully installed imutils-0.5.3 numpy-1.16.4 opencv-python-4.1.0.25
[root@localhost python]#
#make requirements.txt
[root@localhost ~]# vi requirements.txt
imutils==0.5.3
opencv-python==4.1.0.25
numpy==1.16.4
#make requirements.txt
[root@localhost ~]# vi requirements.txt
imutils==0.5.3
opencv-python==4.1.0.25
numpy==1.16.4
댓글
댓글 쓰기