shreyaspapi / licence-plate-recognition-python-opencv

MIT License
3 stars 5 forks source link

Sourcery refactored master branch #2

Closed sourcery-ai[bot] closed 22 hours ago

sourcery-ai[bot] commented 4 years ago

Branch master refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch origin sourcery/master
git merge --ff-only FETCH_HEAD
git reset HEAD^
sourcery-ai[bot] commented 4 years ago

Sourcery Code Quality Report (beta)

✅  Merging this PR will increase code quality in the affected files by 0.02 out of 10.

Quality metrics Before After Change
Complexity 6.73 6.60 -0.13 🔵
Method Length 94.52 94.05 -0.47 🔵
Quality 7.71 7.73 0.02 🔵
Other metrics Before After Change
Lines 448 447 -1
Changed files Quality Before Quality After Quality Change
DetectChars.py 7.29 7.32 0.03 🔵
Preprocess.py 8.84 8.86 0.02 🔵

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Overall Recommendation
DetectChars.py detectCharsInPlates 49 530.34 1.28 Reduce complexity. Split out functionality
DetectChars.py recognizeCharsInPlate 2 166.91 6.39 Split out functionality

Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Let us know what you think of it via email or our Gitter!