Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ece479_final_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chiehc3
ece479_final_project
Commits
097a7c74
Commit
097a7c74
authored
1 year ago
by
jcgs2503
Browse files
Options
Downloads
Patches
Plain Diff
convert tflite to onnx
parent
35265ee7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mppose.py
+5
-2
5 additions, 2 deletions
mppose.py
requirements.txt
+48
-197
48 additions, 197 deletions
requirements.txt
with
53 additions
and
199 deletions
mppose.py
+
5
−
2
View file @
097a7c74
...
@@ -34,14 +34,17 @@ while cap.isOpened():
...
@@ -34,14 +34,17 @@ while cap.isOpened():
image
=
cv2
.
cvtColor
(
cv2
.
flip
(
image
,
1
),
cv2
.
COLOR_BGR2RGB
)
image
=
cv2
.
cvtColor
(
cv2
.
flip
(
image
,
1
),
cv2
.
COLOR_BGR2RGB
)
image
.
flags
.
writeable
=
False
image
.
flags
.
writeable
=
False
results
=
pose
.
process
(
image
)
results
=
pose
.
process
(
image
)
if
results
.
pose_landmarks
:
data
[
"
pose
"
].
append
(
results
.
pose_landmarks
)
data
[
"
pose
"
].
append
(
results
.
pose_landmarks
)
image
.
flags
.
writeable
=
True
image
.
flags
.
writeable
=
True
image
=
cv2
.
cvtColor
(
image
,
cv2
.
COLOR_RGB2BGR
)
image
=
cv2
.
cvtColor
(
image
,
cv2
.
COLOR_RGB2BGR
)
mp_drawing
.
draw_landmarks
(
mp_drawing
.
draw_landmarks
(
image
,
results
.
pose_landmarks
,
mp_pose
.
POSE_CONNECTIONS
)
image
,
results
.
pose_landmarks
,
mp_pose
.
POSE_CONNECTIONS
)
out
.
write
(
image
)
out
.
write
(
image
)
print
(
data
)
with
open
(
"
pose_data.json
"
,
"
w
"
)
as
f
:
with
open
(
"
pose_data.json
"
,
"
w
"
)
as
f
:
json
.
dump
(
data
,
f
)
json
.
dump
(
data
,
f
)
...
...
This diff is collapsed.
Click to expand it.
requirements.txt
+
48
−
197
View file @
097a7c74
# This file may be used to create an environment using:
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# $ conda create --name <env> --file <this file>
# platform: win-64
# platform: win-64
_tflow_select
=2.3.0
=gpu
absl-py
=2.1.0
=pypi_0
abseil-cpp
=20230802.0
=h5da7b33_2
astunparse
=1.6.3
=pypi_0
absl-py
=2.1.0
=pyhd8ed1ab_0
bzip2
=1.0.8
=h2bbff1b_5
aiohttp
=3.9.3
=py38h2bbff1b_0
aiosignal
=1.3.1
=pyhd8ed1ab_0
astor
=0.8.1
=py38haa95532_0
asttokens
=2.0.5
=pyhd3eb1b0_0
astunparse
=1.6.3
=py_0
async-timeout
=4.0.3
=py38haa95532_0
attrs
=23.2.0
=pyh71513ae_0
backcall
=0.2.0
=pyhd3eb1b0_0
blinker
=1.7.0
=pyhd8ed1ab_0
brotli
=1.0.9
=h2bbff1b_7
brotli-bin
=1.0.9
=h2bbff1b_7
brotli-python
=1.0.9
=py38hd77b12b_7
bzip2
=1.0.8
=he774522_0
c-ares
=1.27.0
=hcfcfb64_0
ca-certificates
=2024.3.11
=haa95532_0
ca-certificates
=2024.3.11
=haa95532_0
cached-property
=1.5.2
=py_0
certifi
=2024.2.2
=pypi_0
cached_property
=1.5.2
=pyha770c72_1
charset-normalizer
=3.3.2
=pypi_0
cachetools
=5.3.2
=pyhd8ed1ab_0
expat
=2.5.0
=hd77b12b_0
certifi
=2024.2.2
=py38haa95532_0
flatbuffers
=24.3.25
=pypi_0
cffi
=1.16.0
=py38h2bbff1b_0
gast
=0.5.4
=pypi_0
charset-normalizer
=3.3.2
=pyhd8ed1ab_0
google-pasta
=0.2.0
=pypi_0
click
=8.1.7
=py38haa95532_0
grpcio
=1.62.1
=pypi_0
colorama
=0.4.6
=py38haa95532_0
h5py
=3.10.0
=pypi_0
comm
=0.1.2
=py38haa95532_0
idna
=3.6
=pypi_0
contourpy
=1.0.5
=py38h59b6b97_0
keras
=3.1.1
=pypi_0
cryptography
=42.0.2
=py38h89fc84f_0
libclang
=18.1.1
=pypi_0
cudatoolkit
=11.2.2
=h7d7167e_13
cudnn
=8.1.0.77
=h3e0f4f4_0
cycler
=0.11.0
=pyhd3eb1b0_0
debugpy
=1.6.7
=py38hd77b12b_0
decorator
=5.1.1
=pyhd3eb1b0_0
executing
=0.8.3
=pyhd3eb1b0_0
flatbuffers
=23.5.26
=h63175ca_1
fonttools
=4.25.0
=pyhd3eb1b0_0
freetype
=2.12.1
=ha860e81_0
frozenlist
=1.4.1
=py38h91455d4_0
gast
=0.4.0
=pyhd3eb1b0_0
giflib
=5.2.1
=h8cc25b3_3
google-auth
=2.28.1
=pyhca7485f_0
google-auth-oauthlib
=0.4.6
=pyhd8ed1ab_0
google-pasta
=0.2.0
=pyhd3eb1b0_0
grpc-cpp
=1.48.2
=h6772dbd_4
grpcio
=1.48.2
=py38h6772dbd_4
gtest
=1.14.0
=h59b6b97_0
h5py
=2.10.0
=py38h5e291fa_0
hdf5
=1.10.4
=h7ebc959_0
icc_rt
=2022.1.0
=h6049295_2
icu
=73.1
=h6c2663c_0
idna
=3.6
=pyhd8ed1ab_0
imageio
=2.33.1
=py38haa95532_0
imageio-ffmpeg
=0.4.9
=pypi_0
importlib-metadata
=7.0.1
=py38haa95532_0
importlib_metadata
=7.0.1
=hd3eb1b0_0
importlib_resources
=6.1.1
=py38haa95532_1
intel-openmp
=2019.4
=245
ipykernel
=6.28.0
=py38haa95532_0
ipython
=8.12.2
=py38haa95532_0
jedi
=0.18.1
=py38haa95532_1
jpeg
=9e
=h2bbff1b_1
jupyter_client
=8.6.0
=py38haa95532_0
jupyter_core
=5.5.0
=py38haa95532_0
keras
=2.4.3
=hd3eb1b0_0
keras-applications
=1.0.8
=py_1
keras-base
=2.4.3
=pyhd3eb1b0_0
keras-preprocessing
=1.1.2
=pyhd3eb1b0_0
kiwisolver
=1.4.4
=py38hd77b12b_0
krb5
=1.20.1
=h5b6d351_0
lerc
=3.0
=hd77b12b_0
libabseil
=20230802.0
=cxx17_h63175ca_3
libaec
=1.1.2
=h63175ca_1
libblas
=3.9.0
=18_win64_mkl
libbrotlicommon
=1.0.9
=h2bbff1b_7
libbrotlidec
=1.0.9
=h2bbff1b_7
libbrotlienc
=1.0.9
=h2bbff1b_7
libcblas
=3.9.0
=18_win64_mkl
libclang
=14.0.6
=default_hb5a9fac_1
libclang13
=14.0.6
=default_h8e68704_1
libcurl
=8.5.0
=h86230a5_0
libdeflate
=1.17
=h2bbff1b_1
libffi
=3.4.4
=hd77b12b_0
libffi
=3.4.4
=hd77b12b_0
libhwloc
=2.9.3
=default_haede6df_1009
markdown
=3.6
=pypi_0
libiconv
=1.17
=hcfcfb64_2
markdown-it-py
=3.0.0
=pypi_0
liblapack
=3.9.0
=18_win64_mkl
markupsafe
=2.1.5
=pypi_0
libmklml
=2019.0.5
=haa95532_0
mdurl
=0.1.2
=pypi_0
libpng
=1.6.43
=h19919ed_0
ml-dtypes
=0.3.2
=pypi_0
libpq
=12.17
=h906ac69_0
namex
=0.0.7
=pypi_0
libprotobuf
=3.20.3
=h23ce68f_0
numpy
=1.26.4
=pypi_0
libsodium
=1.0.18
=h62dcd97_0
onnx
=1.16.0
=pypi_0
libsqlite
=3.45.1
=hcfcfb64_0
openssl
=3.0.13
=h2bbff1b_0
libssh2
=1.10.0
=he2ea4bf_2
opt-einsum
=3.3.0
=pypi_0
libtiff
=4.5.1
=hd77b12b_0
optree
=0.11.0
=pypi_0
libwebp-base
=1.3.2
=h2bbff1b_0
pip
=23.3.1
=py312haa95532_0
libxml2
=2.12.5
=hc3477c8_0
protobuf
=3.20.3
=pypi_0
libzlib
=1.2.13
=hcfcfb64_5
python
=3.12.2
=h1d929f7_0
lz4-c
=1.9.4
=h2bbff1b_0
requests
=2.31.0
=pypi_0
m2w64-gcc-libgfortran
=5.3.0
=6
rich
=13.7.1
=pypi_0
m2w64-gcc-libs
=5.3.0
=7
setuptools
=68.2.2
=py312haa95532_0
m2w64-gcc-libs-core
=5.3.0
=7
sqlite
=3.41.2
=h2bbff1b_0
m2w64-gmp
=6.1.0
=2
tensorboard
=2.16.2
=pypi_0
m2w64-libwinpthread-git
=5.0.0.4634.697f757
=2
tensorboard-data-server
=0.7.2
=pypi_0
markdown
=3.5.2
=pyhd8ed1ab_0
tensorflow
=2.16.1
=pypi_0
markupsafe
=2.1.5
=py38h91455d4_0
tensorflow-intel
=2.16.1
=pypi_0
matplotlib
=3.7.2
=py38haa95532_0
termcolor
=2.4.0
=pypi_0
matplotlib-base
=3.7.2
=py38h4ed8f06_0
tf2onnx
=1.16.1
=pypi_0
matplotlib-inline
=0.1.6
=py38haa95532_0
tk
=8.6.12
=h2bbff1b_0
mkl
=2022.1.0
=h6a75c08_874
typing-extensions
=4.10.0
=pypi_0
msys2-conda-epoch
=20160418
=1
mtcnn
=0.1.1
=pypi_0
multidict
=6.0.5
=py38h91455d4_0
munkres
=1.1.4
=py_0
nest-asyncio
=1.6.0
=py38haa95532_0
netron
=7.5.7
=pypi_0
numpy
=1.23.5
=py38h90ce339_0
oauthlib
=3.2.2
=py38haa95532_0
opencv-python
=4.9.0.80
=pypi_0
openjpeg
=2.4.0
=h4fc8c34_0
openssl
=3.2.1
=hcfcfb64_0
opt_einsum
=3.3.0
=pyhd3eb1b0_1
packaging
=23.2
=pyhd8ed1ab_0
parso
=0.8.3
=pyhd3eb1b0_0
pickleshare
=0.7.5
=pyhd3eb1b0_1003
pillow
=10.2.0
=py38h2bbff1b_0
pip
=24.0
=pyhd8ed1ab_0
platformdirs
=4.2.0
=pyhd8ed1ab_0
ply
=3.11
=py38_0
pooch
=1.8.1
=pyhd8ed1ab_0
prompt-toolkit
=3.0.43
=py38haa95532_0
protobuf
=3.20.3
=py38hd77b12b_0
psutil
=5.9.0
=py38h2bbff1b_0
pthreads-win32
=2.9.1
=hfa6e2cd_3
pure_eval
=0.2.2
=pyhd3eb1b0_0
pyasn1
=0.5.1
=pyhd8ed1ab_0
pyasn1-modules
=0.3.0
=pyhd8ed1ab_0
pycparser
=2.21
=pyhd3eb1b0_0
pygments
=2.15.1
=py38haa95532_1
pyjwt
=2.8.0
=pyhd8ed1ab_1
pyopenssl
=24.0.0
=py38haa95532_0
pyparsing
=3.0.9
=py38haa95532_0
pyqt
=5.15.10
=py38hd77b12b_0
pyqt5-sip
=12.13.0
=py38h2bbff1b_0
pyreadline
=2.1
=py38_1
pysocks
=1.7.1
=py38haa95532_0
python
=3.8.18
=h1aa4202_0
python-dateutil
=2.8.2
=pyhd3eb1b0_0
python-flatbuffers
=23.5.26
=pyhd8ed1ab_0
python_abi
=3.8
=2_cp38
pyu2f
=0.1.5
=pyhd8ed1ab_0
pywin32
=305
=py38h2bbff1b_0
pyyaml
=6.0.1
=py38h2bbff1b_0
pyzmq
=25.1.2
=py38hd77b12b_0
qt-main
=5.15.2
=h19c9488_10
re2
=2022.04.01
=hd77b12b_0
requests
=2.31.0
=py38haa95532_1
requests-oauthlib
=1.3.1
=pyhd8ed1ab_0
rsa
=4.9
=pyhd8ed1ab_0
scipy
=1.10.1
=py38h1aea9ed_3
setuptools
=69.1.1
=pyhd8ed1ab_0
sip
=6.7.12
=py38hd77b12b_0
six
=1.16.0
=pyhd3eb1b0_1
snappy
=1.1.10
=h6c2663c_1
sqlite
=3.45.1
=hcfcfb64_0
stack_data
=0.2.0
=pyhd3eb1b0_0
tbb
=2021.11.0
=h91493d7_1
tensorboard
=2.10.1
=pyhd8ed1ab_0
tensorboard-data-server
=0.6.1
=py38haa95532_0
tensorboard-plugin-wit
=1.8.1
=py38haa95532_0
tensorflow
=2.3.0
=mkl_py38hd19cc29_0
tensorflow-base
=2.3.0
=mkl_py38ha8c2253_0
tensorflow-estimator
=2.3.0
=pypi_0
tensorflow-gpu
=2.3.0
=he13fc11_0
tensorflow-hub
=0.8.0
=pyhe6710b0_0
termcolor
=2.4.0
=pyhd8ed1ab_0
tf-estimator-nightly
=2.4.0.dev2020101001
=pypi_0
tk
=8.6.13
=h5226925_1
tomli
=2.0.1
=py38haa95532_0
tornado
=6.3.3
=py38h2bbff1b_0
traitlets
=5.7.1
=py38haa95532_0
typing-extensions
=4.9.0
=py38haa95532_1
typing_extensions
=4.9.0
=py38haa95532_1
tzdata
=2024a
=h04d1e81_0
tzdata
=2024a
=h04d1e81_0
ucrt
=10.0.22621.0
=h57928b3_0
urllib3
=2.2.1
=pypi_0
urllib3
=2.2.1
=pyhd8ed1ab_0
vc
=14.2
=h21ff451_1
vc
=14.3
=hcf57466_18
vs2015_runtime
=14.27.29016
=h5e58377_2
vc14_runtime
=14.38.33130
=h82b7239_18
werkzeug
=3.0.2
=pypi_0
vs2015_runtime
=14.38.33130
=hcb4865c_18
wheel
=0.41.2
=py312haa95532_0
wcwidth
=0.2.5
=pyhd3eb1b0_0
wrapt
=1.16.0
=pypi_0
werkzeug
=3.0.1
=pyhd8ed1ab_0
xz
=5.4.6
=h8cc25b3_0
wheel
=0.42.0
=pyhd8ed1ab_0
zlib
=1.2.13
=h8cc25b3_0
win_inet_pton
=1.1.0
=py38haa95532_0
wrapt
=1.16.0
=py38h91455d4_0
xz
=5.4.5
=h8cc25b3_0
yaml
=0.2.5
=he774522_0
yarl
=1.9.4
=py38h91455d4_0
zeromq
=4.3.5
=hd77b12b_0
zipp
=3.17.0
=py38haa95532_0
zlib
=1.2.13
=hcfcfb64_5
zstd
=1.5.5
=hd43e919_0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment