Comments (10)
There seems to be a typo in your command. You've missed 's' from the package name. It's keras
pip install keras==2.2.4
from alpr-unconstrained.
There seems to be a typo in your command. You've missed 's' from the package name. It's keras
pip install keras==2.2.4
Sorry for the typo. I will correct it.
In fact, that attempt was just made for the material of the previous post. I did encountered the same error on the other packages.
NumPy 1.14 and Keras 2.2.4 are okay, but TensorFlow 1.5.0 and OpenCV 2.4.9 are not.
(python27) C:>pip install TensorFlow==1.5.0
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
ERROR: Could not find a version that satisfies the requirement TensorFlow==1.5.0 (from versions: none)
ERROR: No matching distribution found for TensorFlow==1.5.0
(python27) C:>pip install tensorflow==1.5.0
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
ERROR: Could not find a version that satisfies the requirement tensorflow==1.5.0 (from versions: none)
ERROR: No matching distribution found for tensorflow==1.5.0
(python27) C:>pip install OpenCV==2.4.9
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
ERROR: Could not find a version that satisfies the requirement OpenCV==2.4.9 (from versions: none)
ERROR: No matching distribution found for OpenCV==2.4.9
from alpr-unconstrained.
Upgrade pip for tensorflow. Also, numpy>=1.19 and OpenCV>=3 will work
from alpr-unconstrained.
Upgrading pip doesn't work for me. For Python 2.7, the newest is pip-20.2.3.
Is there anything I can try? Thank you.
(python27) C:>python -V
Python 2.7.18 :: Anaconda, Inc.
(python27) C:>python -m pip install -U pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting pip
Downloading https://files.pythonhosted.org/packages/4e/5f/528232275f6509b1fff703c9280e58951a81abe24640905de621c9f81839/pip-20.2.3-py2.py3-none-any.whl (1.5MB)
|████████████████████████████████| 1.5MB 2.0MB/s
Installing collected packages: pip
Found existing installation: pip 19.3.1
Uninstalling pip-19.3.1:
Successfully uninstalled pip-19.3.1
Successfully installed pip-20.2.3
(python27) C:>pip install tensorflow==1.5.0
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement tensorflow==1.5.0 (from versions: none)
ERROR: No matching distribution found for tensorflow==1.5.0
(python27) C:>pip install OpenCV==2.4.9
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement OpenCV==2.4.9 (from versions: none)
ERROR: No matching distribution found for OpenCV==2.4.9
(python27) C:>pip install OpenCV==2.4.13.6
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement OpenCV==2.4.13.6 (from versions: none)
ERROR: No matching distribution found for OpenCV==2.4.13.6
(python27) C:>pip install OpenCV==3.4.1
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement OpenCV==3.4.1 (from versions: none)
ERROR: No matching distribution found for OpenCV==3.4.1
from alpr-unconstrained.
For opencv:
pip install opencv-python
For tensorflow:
pip install tensorflow==1.5.1
from alpr-unconstrained.
I encountered the following error when installing opencv-python.
Fortunately, the solution can be found on stackoverflow and it works for me.
https://stackoverflow.com/questions/63346648/python-2-7-installing-opencv-via-pip-virtual-environment
(python27) C:>pip install opencv-python
Collecting opencv-python
Downloading opencv-python-4.3.0.38.tar.gz (88.0 MB)
|████████████████████████████████| 88.0 MB 73 kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: 'g:\anaconda3\envs\python27\python.exe' 'g:\anaconda3\envs\python27\lib\site-packages\pip_vendor\pep517_in_process.py' get_requir
es_for_build_wheel 'f:\temp\tmp5giz_o'
cwd: f:\temp\pip-install-kijnfc\opencv-python
Complete output (22 lines):
Traceback (most recent call last):
File "g:\anaconda3\envs\python27\lib\site-packages\pip_vendor\pep517_in_process.py", line 280, in
main()
File "g:\anaconda3\envs\python27\lib\site-packages\pip_vendor\pep517_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "g:\anaconda3\envs\python27\lib\site-packages\pip_vendor\pep517_in_process.py", line 114, in get_requires_for_build_wheel
return hook(config_settings)
File "f:\temp\pip-build-env-tszbkr\overlay\Lib\site-packages\setuptools\build_meta.py", line 146, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "f:\temp\pip-build-env-tszbkr\overlay\Lib\site-packages\setuptools\build_meta.py", line 127, in _get_build_requires
self.run_setup()
File "f:\temp\pip-build-env-tszbkr\overlay\Lib\site-packages\setuptools\build_meta.py", line 243, in run_setup
self).run_setup(setup_script=setup_script)
File "f:\temp\pip-build-env-tszbkr\overlay\Lib\site-packages\setuptools\build_meta.py", line 142, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 448, in
main()
File "setup.py", line 99, in main
% {"ext": re.escape(sysconfig.get_config_var("EXT_SUFFIX"))}
File "g:\anaconda3\envs\python27\lib\re.py", line 210, in escape
s = list(pattern)
TypeError: 'NoneType' object is not iterable
Pip is still unable to find tensorflow on Python 2.7.
(python27) C:>pip install tensorflow==1.5.1
ERROR: Could not find a version that satisfies the requirement tensorflow==1.5.1 (from versions: none)
ERROR: No matching distribution found for tensorflow==1.5.1
(python27) C:>pip install tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
======================Python 3.8.3=======================
Found several tensorflow packages on Python 3.8.3
(base) C:>pip install tensorflow==1.5.1
ERROR: Could not find a version that satisfies the requirement tensorflow==1.5.1 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1)
ERROR: No matching distribution found for tensorflow==1.5.1
(base) C:>pip install tensorflow
Collecting tensorflow
Downloading tensorflow-2.3.1-cp38-cp38-win_amd64.whl (342.5 MB)
|██▌ | 27.7 MB 1.7 MB/s eta 0:03:11
from alpr-unconstrained.
@saswat0
I forgot to mention I am on Windows 10.
It may be the reason I cannot get tensorflow for Python 2.7...
from alpr-unconstrained.
Check out this version. It's in python3
https://github.com/saswat0/License-Plate-Recognition/tree/Python3
from alpr-unconstrained.
@saswat0
Thank you very much.
I also want share some amateur's ideas. Just amateur's little ideas...
I noticed that some people made YOLO (even v4) support on TensorFlow, such as
- https://github.com/hunglc007/tensorflow-yolov4-tflite
- https://github.com/SoloSynth1/tensorflow-yolov4
- https://github.com/sicara/tf2-yolov4
- https://pypi.org/project/yolov4/
Maybe it is possible to replace darknet with them, so you don't need to rely on darknet to do the vehicle detection.
I also noticed that TensorFlow 2.0+ supports Keras API as tf.keras. Maybe you can also get rid of the Keras, too.
- https://www.tensorflow.org/api_docs/python/tf/keras
- https://www.pyimagesearch.com/2019/10/21/keras-vs-tf-keras-whats-the-difference-in-tensorflow-2-0/
You might be able to do the entire work with TensorFlow 2.0+ solely without building/installing darknet/Keras.
from alpr-unconstrained.
Darknet is optimised for YOLO. Using tensorflow or pytorch will result in much lesser fps than darknet alone. In fact, the only part that doesn't use darknet in this project is the license plate detection (wpod net in tensorflow) and causes the maximum lag in the entire pipeline
Keras just sits on top of tensorflow and essentially just reduces the number of lines of code. All the computations take place in tensorflow in the backend anyway. Also, migrating the entire architecture to tf2.0 will call for lots of changes
Thanks for the feedback though. I'll try to incorporate these things if possible
from alpr-unconstrained.
Related Issues (20)
- the model does not detect the LP if the picture was only the LP HOT 8
- The OCR operation only
- Unable to load wpod model HOT 2
- using python2.7:vehicle-detection.py, line 28, vehicle_net = dn.load_net(vehicle_netcfg, vehicle_weights, 0) ctypes.ArgumentError: argument 1: wrong type # HOT 3
- Does someone ever tried to convert this to TensorFlow Lite to make it work on Android ? HOT 1
- about"bash get-networks.sh" HOT 1
- not detecting any cars from the sample images as well can it be because of python 3.7 ?? HOT 1
- affinex and affiney in loss.py
- training loss
- Explanation for detect_lp() two input params which are hardcoded
- 403 Forbidden for 'bash get-networks.sh' HOT 5
- Loss error HOT 1
- 'bash get-networks.sh' not working. HOT 1
- Running on google colab not detecting any car on test directory provided after fixing issue for running using python 3 HOT 4
- Website unreachable HOT 1
- List index out of range HOT 1
- License Plate Recognition in EVA multimedia database system
- Prediction Score
- Performance measurement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpr-unconstrained.