Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AccelQuasarDragon committed Jul 8, 2023
0 parents commit e00a94d
Show file tree
Hide file tree
Showing 271 changed files with 28,417 additions and 0 deletions.
165 changes: 165 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
Love Trial 720p.mp4
cottonbro studio.mp4
edge_video.mp4
pexels-artem-podrez-6003986 1080p.mp4
pexels-artem-podrez-6003986 720p.mp4
pexels-artem-podrez-6003986.mp4
test/skvideo test.py
【4K⧸60fps⧸MMD】 恋愛裁判 Love Trial YYB 初音MIKU.webm
【4K⧸60fps⧸MMD】 恋愛裁判 Love Trial YYB 初音MIKU.mp3
【4K⧸60fps⧸MMD】 恋愛裁判 Love Trial YYB 初音MIKU.f315.webm
【4K⧸60fps⧸MMD】 恋愛裁判 Love Trial YYB 初音MIKU.f251.webm
pexels-cottonbro-7791121 1080p.mp4
pexels-cottonbro-7791121 720p.mp4
pexels-cottonbro-7791121.mp4
poetry.lock
media
creativecommonsmedia/Elephants Dream charstart.webm
#creativecommonsmedia/
examples/build
examples/dist/MediapipeExample.exe
BigBuckBunny.mp4
Elephants Dream charstart2FULL.webm


# test/
.DS_Store
site



launch.json

# 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/
pip-wheel-metadata/
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/

# 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
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.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/
test/2023 June 9 cleanup/examples/creativecommonsmedia/Elephants Dream 2s.webm
test/2023 June 9 cleanup/examples/creativecommonsmedia/Elephants Dream charstart2.webm
FastCVApp/MediapipeExample.exe
FastCVApp/MediapipeExample.exe
31 changes: 31 additions & 0 deletions FastCVApp/FCVAutils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import os
import time

def fprint(*args):
print(os.getpid(), time.time(), *args, flush = True)

def FCVA_update_resources(*args, sourcelocationVAR = False):
'''
this is to update paths, for example when an app is packaged with pyinstaller
#keyword argument notes: https://treyhunner.com/2018/04/keyword-arguments-in-python/#What_are_keyword_arguments?
'''
import sys
if hasattr(sys, "_MEIPASS"):
# if file is frozen by pyinstaller add the MEIPASS folder to path:
sys.path.append(sys._MEIPASS)
#the path is duplicated, maybe that's why it's running twice?
#possibly pyinstaller updated
print("MMEIPAS APPENDED CORRECT?", sys._MEIPASS)
#solution: when u run the exe, check for the file/folder and if it's there or not > then if not copy it from tmpdir
if sourcelocationVAR:
tempsource = sys._MEIPASS + os.sep + sourcelocationVAR
actualsource = os.getcwd() + os.sep + sourcelocationVAR
print("what is tempsource?", tempsource, not os.path.isfile(actualsource), "actual", actualsource)
if not os.path.isfile(actualsource):
#copy to current directory:
import shutil
tempsourcefolder = os.path.join(*tempsource.split(os.sep)[:-1])
# actualsourcefolder = os.path.join(*actualsource.split(os.sep)[:-1])
actualsourcefolder = os.path.join(*sourcelocationVAR.split(os.sep)[:-1])
shutil.copytree(tempsourcefolder, actualsourcefolder, dirs_exist_ok = True)
# print("copyanything", tempsourcefolder, actualsourcefolder)
Loading

0 comments on commit e00a94d

Please sign in to comment.