Skip to content

Commit

Permalink
Update path & files
Browse files Browse the repository at this point in the history
  • Loading branch information
habijung committed Oct 6, 2021
1 parent 8f85fc6 commit 4e7464a
Show file tree
Hide file tree
Showing 7 changed files with 219 additions and 6 deletions.
154 changes: 154 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@

# Created by https://www.toptal.com/developers/gitignore/api/python,opencv
# Edit at https://www.toptal.com/developers/gitignore?templates=python,opencv

### OpenCV ###
#OpenCV for Mac and Linux
#build and release folders
*/CMakeFiles
*/CMakeCache.txt
*/Makefile
*/cmake_install.cmake
.DS_Store

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# End of https://www.toptal.com/developers/gitignore/api/python,opencv
43 changes: 43 additions & 0 deletions git-push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/bash
# Use only remote : origin

REMOTE_REPO=$(git remote)
WORKING_BRANCH=$(git branch --show-current)

echo -e "\n-> git pull ..."
echo "-> remote : ${REMOTE_REPO}"
echo "-> branch : ${WORKING_BRANCH}"

git pull ${REMOTE_REPO} ${WORKING_BRANCH}

echo "-> git pull complete"
echo "-> git add ..."

git add --all

echo "-> git add complete"
echo "-> git status"

git status

echo "-> git commit ..."

if [ $# -eq 0 ]; then
read -p "-> Enter commit message : " COMMIT_MESSAGE
else
COMMIT_MESSAGE=${1}
fi

git commit -m "${COMMIT_MESSAGE}"

echo "-> git commit complete"
echo "-> git push ..."

git push ${REMOTE_REPO} HEAD:${WORKING_BRANCH}

if [ $? = 0 ]; then
echo -e "-> git push complete\n"
else
git reset --soft HEAD^
echo "-> git push faild. Please check git error message."
fi
File renamed without changes.
File renamed without changes.
9 changes: 7 additions & 2 deletions test-ftn.stackImage.py → test/test-ftn.stackImage.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import cv2
import numpy as np
import ftn
import sys
import os

sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from module import ftn

path = "car-lime.jpg"


path = "../car-lime.jpg"
img = cv2.imread(path)
kernel = np.ones((5, 5), np.uint8)

Expand Down
7 changes: 6 additions & 1 deletion test-ftn.videoText.py → test/test-ftn.videoText.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import cv2
import numpy as np
import time
import ftn
import sys
import os

sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from module import ftn



device = 0
Expand Down
12 changes: 9 additions & 3 deletions test-hsvDetect.py → test/test-hsvDetect.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import cv2
import numpy as np
import ftn
import sys
import os

sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from module import ftn



src = "../car-lime.jpg"

def onChange(pos):
pass

src = "car-lime.jpg"


''' Create HSV Trackbar '''
title = "HSV Detector"
Expand Down

0 comments on commit 4e7464a

Please sign in to comment.