Skip to content

Commit c5cf3b9

Browse files
compressing repo by hosting models on drive
1 parent 910c936 commit c5cf3b9

File tree

9 files changed

+106
-7
lines changed

9 files changed

+106
-7
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@ env.bak/
4444
venv.bak/
4545

4646
# others
47-
test.py
47+
test.py
48+
49+
res10_300x300_ssd_iter_140000.caffemodel

07. Face Detection/README.md

Whitespace-only changes.

22. Optical Character Recognition/README.md

Whitespace-only changes.

CONTRIBUTING.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributing to Algorithms and Data Structures
2+
3+
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
4+
5+
- Reporting a bug
6+
- Discussing the current state of the code
7+
- Submitting a fix
8+
- Proposing new features
9+
- Becoming a maintainer
10+
11+
12+
## Steps to contribute
13+
14+
* Comment on the issue you want to work on. Make sure it's not assigned to someone else.
15+
16+
* If you think an algorithm is missing, create an issue.
17+
18+
### Making a PR
19+
20+
- Make sure you have been assigned the issue to which you are making a PR.
21+
- If you make PR before being assigned, It will be labeled `invalid` and closed without merging.
22+
23+
* Fork the repo and clone it on your machine.
24+
* Add a upstream link to main branch in your cloned repo
25+
```
26+
git remote add upstream https://github.com/codePerfectPlus/ComputerVision-Essentials
27+
```
28+
* Keep your cloned repo upto date by pulling from upstream (this will also avoid any merge conflicts while committing new changes)
29+
```
30+
git pull upstream master
31+
```
32+
* Create your feature branch
33+
```
34+
git checkout -b <feature-name>
35+
```
36+
* Commit all the changes
37+
```
38+
git commit -am "Meaningful commit message"
39+
```
40+
* Push the changes for review
41+
```
42+
git push origin <branch-name>
43+
```
44+
* Create a PR from our repo on Github.
45+
46+
### Additional Notes
47+
48+
* Code should be properly commented to ensure it's readability.
49+
* If you've added code that should be tested, add tests as comments.
50+
* Make sure your code properly formatted.
51+
* Issue that pull request!
52+
53+
## Issue suggestions/Bug reporting
54+
55+
When you are creating an issue, make sure it's not already present. Furthermore, provide a proper description of the changes. If you are suggesting any code improvements, provide through details about the improvements.
56+
57+
**Great Issue suggestions** tend to have:
58+
59+
- A quick summary of the changes.
60+
- In case of any bug provide steps to reproduce
61+
- Be specific!
62+
- Give sample code if you can.
63+
- What you expected would happen
64+
- What actually happens
65+
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
66+
67+
## License
68+
69+
By contributing, you agree that your contributions will be licensed under its [MIT License](http://choosealicense.com/licenses/mit/).
70+
71+
72+
## References
73+
74+
This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)

Media/people-walking.mp4

-8.25 MB
Binary file not shown.

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- [License](#license)
1313
- [Citation](#citation)
1414
- [Author](#author)
15+
- [Extra Downloads](#extra-downloads)
1516

1617
## Introduction
1718

@@ -25,17 +26,16 @@ Computer vision tasks include methods for acquiring, processing, analyzing and u
2526

2627
## Used Libraries/Packages
2728

28-
- **OpenCV** - OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library.
29+
- **OpenCV** - OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library.
30+
- **PixelLib** - PixelLib is a library created for performing image and video segmentation using few lines of code.
2931
- **CVLib** - A simple, high level, easy-to-use open source Computer Vision library for Python.
30-
- **Dlib** - Dlib is a general purpose cross-platform software library written in the programming language C++.
32+
- **Dlib** - Dlib is a general purpose cross-platform software library written in the programming language C++.
3133
- **PIL/Pillow** - Python Imaging Library is a free and open-source additional library for the Python programming language that adds support for opening, manipulating, and saving many different image file formats
32-
- **Keras** - Keras is the most used deep learning framework among top-5 winning teams on Kaggle.
34+
- **Keras** - Keras is the most used deep learning framework among top-5 winning teams on Kaggle.
3335
- **Tensorflow** - TensorFlow is a free and open-source software library for machine learning.
3436
- **Pytessarct** - Python-tesseract is an optical character recognition (OCR) tool for python. That is, it will recognize and “read” the text embedded in images.
35-
- **IPSDK** - IPSDK offers a comprehensive and optimized range of functionalities for 2D and 3D image processing.
3637
- **scikit-image** - scikit-image is an open-source image processing library for the Python programming language. It includes algorithms for segmentation, geometric transformations, color space manipulation, analysis, filtering, morphology, feature detection, and more.
3738
- **Matplotlib** - Matplotlib is a cross-platform, data visualization and graphical plotting library for Python and its numerical extension NumPy.
38-
- **mahotas** - Mahotas is a computer vision and image processing library for Python.
3939

4040
## How To Run
4141

@@ -51,6 +51,12 @@ pipenv shell
5151

5252
NOTE- check the [guide](https://www.tensorflow.org/install) for tenosflow installation for your CPU/GPU. for using tensorflow-gpu install the CUDA-11.0 and necessary libraries.
5353

54+
Large models and files hosted on google drive. **For downloading them run [utils.py](utils.py)**
55+
56+
```bash
57+
python utils.py
58+
```
59+
5460
## Usage
5561

5662
Computer vision allows the computer to perform the same kind of tasks as humans with the same efficiency. There are a two main task which are defined below:
@@ -66,7 +72,6 @@ contributers
6672

6773
## Roadmap
6874

69-
More Data Analysis With Kaggle and improvement in previous Codes
7075

7176
## Contributing
7277

@@ -107,3 +112,7 @@ Coelho, L.P. 2013. Mahotas: Open source software for scriptable computer vision.
107112
- Language : Python
108113
- Github : <https://github.com/codePerfectPlus>
109114
- Website : <http://codeperfectplus.herokuapp.com>
115+
116+
## Extra Downloads
117+
118+
1. FaceDetection Caffee Models
-10.2 MB
Binary file not shown.

requirements.txt

1.67 KB
Binary file not shown.

utils.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from google_drive_downloader import GoogleDriveDownloader as gdd
2+
3+
download_dict = {
4+
"16gAKScYAW0bZkyRgcLF71x28du_mLY8-": "assets/res10_300x300_ssd_iter_140000.caffemodel",
5+
"1jUIwxXjxz8oC7I2Ta9vtiozsB4i95043": "Media/people-walking.mp4"
6+
}
7+
8+
for file_id, dest_path in download_dict.items():
9+
10+
gdd.download_file_from_google_drive(file_id=file_id,
11+
dest_path=dest_path,
12+
unzip=True)
13+
14+

0 commit comments

Comments
 (0)