Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-029
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-029
2023-029
Commits
a10e3287
Commit
a10e3287
authored
Sep 05, 2023
by
janithgamage1.ed
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/UI-API-Connect
parents
b16b1677
b8e51d59
Changes
13
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1578 additions
and
1174 deletions
+1578
-1174
Project/Backend/Server_Node/yarn.lock
Project/Backend/Server_Node/yarn.lock
+1078
-1079
Project/Backend/Server_Python/controllers/translate_controler.py
.../Backend/Server_Python/controllers/translate_controler.py
+10
-1
Project/Backend/Server_Python/controllers/video_to_sign_language_controller.py
...r_Python/controllers/video_to_sign_language_controller.py
+16
-0
Project/Backend/Server_Python/main.py
Project/Backend/Server_Python/main.py
+24
-11
Project/Backend/Server_Python/node_modules/.yarn-integrity
Project/Backend/Server_Python/node_modules/.yarn-integrity
+10
-0
Project/Backend/Server_Python/requirements.txt
Project/Backend/Server_Python/requirements.txt
+2
-1
Project/Backend/Server_Python/yarn.lock
Project/Backend/Server_Python/yarn.lock
+4
-0
Project/Frontend/SignConnectPlus/package.json
Project/Frontend/SignConnectPlus/package.json
+2
-5
Project/Frontend/SignConnectPlus/src/pages/ssl-translate/process/process.tsx
...gnConnectPlus/src/pages/ssl-translate/process/process.tsx
+3
-3
Project/Frontend/SignConnectPlus/src/pages/video-to-sign-language/VideoTranslate/VideoTranslate.tsx
.../video-to-sign-language/VideoTranslate/VideoTranslate.tsx
+86
-72
Project/Frontend/SignConnectPlus/src/pages/video-to-sign-language/VideoTranslate/VideoTranslate.tsx.bkp
...eo-to-sign-language/VideoTranslate/VideoTranslate.tsx.bkp
+336
-0
Project/Frontend/SignConnectPlus/src/utils/locales/en.json
Project/Frontend/SignConnectPlus/src/utils/locales/en.json
+2
-2
Project/Frontend/SignConnectPlus/yarn.lock
Project/Frontend/SignConnectPlus/yarn.lock
+5
-0
No files found.
Project/Backend/Server_Node/yarn.lock
View file @
a10e3287
This diff is collapsed.
Click to expand it.
Project/Backend/Server_Python/controllers/translate_controler.py
View file @
a10e3287
import
os
from
fastapi
import
APIRouter
,
File
,
HTTPException
,
Query
,
UploadFile
from
pydantic
import
BaseModel
import
tensorflow
as
tf
...
...
@@ -18,7 +19,15 @@ class ImageRequest(BaseModel):
# Load your Keras model
# model = tf.keras.models.load_model('../ML_Models/sign_language_to_text/models/sign_language_model.h5')
model
=
None
model_file_path
=
'../ML_Models/sign_language_to_text/models/sign_language_model.h5'
# Check if the model file exists
if
os
.
path
.
exists
(
model_file_path
):
# Load the Keras model if the file exists
model
=
tf
.
keras
.
models
.
load_model
(
model_file_path
)
else
:
model
=
None
CLASSES
=
mappings
.
classes
NUM_CLASSES
=
len
(
mappings
.
classes
)
# number of classes
IMG_SIZE
=
224
# image size
...
...
Project/Backend/Server_Python/controllers/video_to_sign_language_controller.py
View file @
a10e3287
...
...
@@ -5,6 +5,7 @@ import speech_recognition as sr
from
fastapi
import
APIRouter
,
File
,
HTTPException
,
UploadFile
from
fastapi.responses
import
JSONResponse
from
pymongo.mongo_client
import
MongoClient
from
bson
import
ObjectId
from
core.logger
import
setup_logger
...
...
@@ -26,6 +27,21 @@ router = APIRouter()
logger
=
setup_logger
()
# @router.get("/rest_pyton/items")
# async def read_root():
# return {"message": "Hello, World!"}
@
router
.
get
(
"/rest_pyton/items"
)
async
def
read_items
():
items
=
[]
for
item
in
items_collection
.
find
():
item_dict
=
dict
(
item
)
item_dict
[
'_id'
]
=
str
(
item_dict
[
'_id'
])
# Convert _id to a string
items
.
append
(
item_dict
)
return
{
"items"
:
items
}
@
router
.
post
(
"/rest_pyton/uploaded_video"
)
async
def
uploaded_video
(
file
:
UploadFile
=
File
(
...
)):
try
:
...
...
Project/Backend/Server_Python/main.py
View file @
a10e3287
from
fastapi
import
FastAPI
from
controllers
import
translate_controler
,
users_controller
,
video_to_sign_language_controller
from
controllers
import
(
translate_controler
,
users_controller
,
video_to_sign_language_controller
,
)
from
fastapi.responses
import
RedirectResponse
from
fastapi.middleware.cors
import
CORSMiddleware
from
pymongo.mongo_client
import
MongoClient
...
...
@@ -33,7 +37,6 @@ async def shutdown_db_client():
app
.
mongodb_client
.
close
()
logger
=
setup_logger
()
app
.
include_router
(
users_controller
.
router
)
...
...
@@ -47,16 +50,26 @@ origins = [
"http://localhost:8080"
,
"http://localhost:8004"
,
"http://localhost:3000"
,
"http://127.0.0.1:8000"
"http://127.0.0.1:8000"
,
"127.0.0.1:55553"
,
"http://localhost:52823"
,
"http://localhost:53826"
,
"http://localhost:51373"
,
"http://localhost:51489"
,
"https://v6p9d9t4.ssl.hwcdn.net"
,
"https://64f66d39fdef493229b2ddd9--lambent-unicorn-97396a.netlify.app"
]
app
.
add_middleware
(
CORSMiddleware
,
app
.
add_middleware
(
CORSMiddleware
,
allow_origins
=
origins
,
allow_credentials
=
True
,
allow_methods
=
[
"*"
],
allow_headers
=
[
"*"
])
allow_headers
=
[
"*"
],
)
@
app
.
get
(
'/'
)
@
app
.
get
(
"/"
)
async
def
root
():
url
=
app
.
docs_url
or
'/docs'
url
=
app
.
docs_url
or
"/docs"
return
RedirectResponse
(
url
)
Project/Backend/Server_Python/node_modules/.yarn-integrity
0 → 100644
View file @
a10e3287
{
"systemParams": "win32-x64-93",
"modulesFolders": [],
"flags": [],
"linkedModules": [],
"topLevelPatterns": [],
"lockfileEntries": {},
"files": [],
"artifacts": {}
}
\ No newline at end of file
Project/Backend/Server_Python/requirements.txt
View file @
a10e3287
...
...
@@ -7,3 +7,4 @@ moviepy==1.0.3
SpeechRecognition==3.10.0
tk==0.1.0
requests==2.31.0
pymongo==4.5.0
\ No newline at end of file
Project/Backend/Server_Python/yarn.lock
0 → 100644
View file @
a10e3287
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
Project/Frontend/SignConnectPlus/package.json
View file @
a10e3287
...
...
@@ -96,6 +96,7 @@
"react-table-sticky"
:
"^1.1.3"
,
"react-timer-hook"
:
"^3.0.5"
,
"react-to-print"
:
"^2.14.12"
,
"react-unity-webgl"
:
"^9.4.3"
,
"react-webcam"
:
"^7.1.1"
,
"react-window"
:
"^1.8.9"
,
"react-zoom-pan-pinch"
:
"^3.0.7"
,
...
...
@@ -110,11 +111,7 @@
"util"
:
"^0.12.5"
,
"uuid"
:
"^9.0.0"
,
"web-vitals"
:
"^3.3.1"
,
"yup"
:
"^1.1.1"
,
"@material-ui/core"
:
"^4.12.4"
,
"@mui/icons-material"
:
"^5.14.6"
,
"react-material-file-upload"
:
"^0.0.4"
,
"react-webcam"
:
"^7.1.1"
"yup"
:
"^1.1.1"
},
"scripts"
:
{
"start"
:
"react-app-rewired start"
,
...
...
Project/Frontend/SignConnectPlus/src/pages/ssl-translate/process/process.tsx
View file @
a10e3287
...
...
@@ -154,7 +154,7 @@ const Process = () => {
};
return
(
<>
<
MainCard
content=
{
false
}
>
<
MainCard
content=
{
false
}
title=
"Translate Sinhala Sign Language into Text Here"
>
<
ScrollX
>
{
/* content here */
}
...
...
@@ -233,7 +233,7 @@ const Process = () => {
step=
{
10
}
marks
min=
{
10
}
max=
{
1
1
0
}
max=
{
1
0
0
}
/>
<
h4
>
Speed -
{
speed
}
</
h4
>
</
Grid
>
...
...
@@ -331,7 +331,7 @@ const Process = () => {
step=
{
10
}
marks
min=
{
10
}
max=
{
1
1
0
}
max=
{
1
0
0
}
/>
<
h4
>
Speed -
{
speed
}
</
h4
>
</
Grid
>
...
...
Project/Frontend/SignConnectPlus/src/pages/video-to-sign-language/VideoTranslate/VideoTranslate.tsx
View file @
a10e3287
This diff is collapsed.
Click to expand it.
Project/Frontend/SignConnectPlus/src/pages/video-to-sign-language/VideoTranslate/VideoTranslate.tsx.bkp
0 → 100644
View file @
a10e3287
This diff is collapsed.
Click to expand it.
Project/Frontend/SignConnectPlus/src/utils/locales/en.json
View file @
a10e3287
...
...
@@ -161,7 +161,7 @@
"learning-curriculums-subscribed"
:
"My Courses"
,
"learning-lead-board"
:
"Lead Board"
,
"learning-feedback"
:
"Feedback"
,
"ssl-translate"
:
"SSL Translat
e
"
,
"ssl-translate"
:
"SSL Translat
ion
"
,
"emotion-detection"
:
"Emotion Detection"
,
"audio-detection"
:
"Audio Detection"
,
"video-detection"
:
"Video Detection"
,
...
...
Project/Frontend/SignConnectPlus/yarn.lock
View file @
a10e3287
...
...
@@ -11116,6 +11116,11 @@ react-transition-group@^4.4.0, react-transition-group@^4.4.5:
loose-envify "^1.4.0"
prop-types "^15.6.2"
react-unity-webgl@^9.4.3:
version "9.4.3"
resolved "https://registry.yarnpkg.com/react-unity-webgl/-/react-unity-webgl-9.4.3.tgz#c13cadb8fd447d817a128e6e05975c4f4c9b8f74"
integrity sha512-P/NhKil8EZRtT3q87DC0EgxdNd3c5wa34DMWr5128r2bZojgVIJJu+b20RtGaJpW4lxg6SB2PNN4+R2QujKlDw==
react-webcam@^7.1.1:
version "7.1.1"
resolved "https://registry.yarnpkg.com/react-webcam/-/react-webcam-7.1.1.tgz#e6290b192cde0d2a1039051a019a18e998d7fb39"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment