Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
Welspun-Classification
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
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dasharatha.vamshi
Welspun-Classification
Commits
d6db6b41
Commit
d6db6b41
authored
Feb 12, 2021
by
dasharatha.vamshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
good sample to no defect
parent
292db864
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
119 additions
and
2 deletions
+119
-2
.idea/.gitignore
.idea/.gitignore
+3
-0
.idea/inspectionProfiles/Project_Default.xml
.idea/inspectionProfiles/Project_Default.xml
+82
-0
.idea/inspectionProfiles/profiles_settings.xml
.idea/inspectionProfiles/profiles_settings.xml
+6
-0
.idea/misc.xml
.idea/misc.xml
+4
-0
.idea/modules.xml
.idea/modules.xml
+8
-0
.idea/vcs.xml
.idea/vcs.xml
+6
-0
.idea/welspun-classification.iml
.idea/welspun-classification.iml
+8
-0
scripts/welspun_classifier.py
scripts/welspun_classifier.py
+2
-2
No files found.
.idea/.gitignore
0 → 100644
View file @
d6db6b41
# Default ignored files
/shelf/
/workspace.xml
.idea/inspectionProfiles/Project_Default.xml
0 → 100644
View file @
d6db6b41
<component
name=
"InspectionProjectProfileManager"
>
<profile
version=
"1.0"
>
<option
name=
"myName"
value=
"Project Default"
/>
<inspection_tool
class=
"PyChainedComparisonsInspection"
enabled=
"true"
level=
"WEAK WARNING"
enabled_by_default=
"true"
>
<option
name=
"ignoreConstantInTheMiddle"
value=
"true"
/>
</inspection_tool>
<inspection_tool
class=
"PyPackageRequirementsInspection"
enabled=
"true"
level=
"WARNING"
enabled_by_default=
"true"
>
<option
name=
"ignoredPackages"
>
<value>
<list
size=
"48"
>
<item
index=
"0"
class=
"java.lang.String"
itemvalue=
"scikit-image"
/>
<item
index=
"1"
class=
"java.lang.String"
itemvalue=
"scipy"
/>
<item
index=
"2"
class=
"java.lang.String"
itemvalue=
"opencv-python"
/>
<item
index=
"3"
class=
"java.lang.String"
itemvalue=
"torch"
/>
<item
index=
"4"
class=
"java.lang.String"
itemvalue=
"torchvision"
/>
<item
index=
"5"
class=
"java.lang.String"
itemvalue=
"absl-py"
/>
<item
index=
"6"
class=
"java.lang.String"
itemvalue=
"protobuf"
/>
<item
index=
"7"
class=
"java.lang.String"
itemvalue=
"rsa"
/>
<item
index=
"8"
class=
"java.lang.String"
itemvalue=
"tensorflow-estimator"
/>
<item
index=
"9"
class=
"java.lang.String"
itemvalue=
"opt-einsum"
/>
<item
index=
"10"
class=
"java.lang.String"
itemvalue=
"python-dateutil"
/>
<item
index=
"11"
class=
"java.lang.String"
itemvalue=
"cycler"
/>
<item
index=
"12"
class=
"java.lang.String"
itemvalue=
"gast"
/>
<item
index=
"13"
class=
"java.lang.String"
itemvalue=
"numpy"
/>
<item
index=
"14"
class=
"java.lang.String"
itemvalue=
"pyasn1"
/>
<item
index=
"15"
class=
"java.lang.String"
itemvalue=
"requests"
/>
<item
index=
"16"
class=
"java.lang.String"
itemvalue=
"importlib-metadata"
/>
<item
index=
"17"
class=
"java.lang.String"
itemvalue=
"pyasn1-modules"
/>
<item
index=
"18"
class=
"java.lang.String"
itemvalue=
"requests-oauthlib"
/>
<item
index=
"19"
class=
"java.lang.String"
itemvalue=
"tensorflow"
/>
<item
index=
"20"
class=
"java.lang.String"
itemvalue=
"tensorboard-plugin-wit"
/>
<item
index=
"21"
class=
"java.lang.String"
itemvalue=
"zipp"
/>
<item
index=
"22"
class=
"java.lang.String"
itemvalue=
"oauthlib"
/>
<item
index=
"23"
class=
"java.lang.String"
itemvalue=
"astunparse"
/>
<item
index=
"24"
class=
"java.lang.String"
itemvalue=
"urllib3"
/>
<item
index=
"25"
class=
"java.lang.String"
itemvalue=
"pyparsing"
/>
<item
index=
"26"
class=
"java.lang.String"
itemvalue=
"Cython"
/>
<item
index=
"27"
class=
"java.lang.String"
itemvalue=
"Markdown"
/>
<item
index=
"28"
class=
"java.lang.String"
itemvalue=
"google-auth-oauthlib"
/>
<item
index=
"29"
class=
"java.lang.String"
itemvalue=
"Werkzeug"
/>
<item
index=
"30"
class=
"java.lang.String"
itemvalue=
"kiwisolver"
/>
<item
index=
"31"
class=
"java.lang.String"
itemvalue=
"tqdm"
/>
<item
index=
"32"
class=
"java.lang.String"
itemvalue=
"yolov5processor"
/>
<item
index=
"33"
class=
"java.lang.String"
itemvalue=
"tensorboard"
/>
<item
index=
"34"
class=
"java.lang.String"
itemvalue=
"future"
/>
<item
index=
"35"
class=
"java.lang.String"
itemvalue=
"matplotlib"
/>
<item
index=
"36"
class=
"java.lang.String"
itemvalue=
"cachetools"
/>
<item
index=
"37"
class=
"java.lang.String"
itemvalue=
"grpcio"
/>
<item
index=
"38"
class=
"java.lang.String"
itemvalue=
"Keras"
/>
<item
index=
"39"
class=
"java.lang.String"
itemvalue=
"google-auth"
/>
<item
index=
"40"
class=
"java.lang.String"
itemvalue=
"idna"
/>
<item
index=
"41"
class=
"java.lang.String"
itemvalue=
"Pillow"
/>
<item
index=
"42"
class=
"java.lang.String"
itemvalue=
"cython"
/>
<item
index=
"43"
class=
"java.lang.String"
itemvalue=
"keras"
/>
<item
index=
"44"
class=
"java.lang.String"
itemvalue=
"imgaug"
/>
<item
index=
"45"
class=
"java.lang.String"
itemvalue=
"opencv-contrib-python"
/>
<item
index=
"46"
class=
"java.lang.String"
itemvalue=
"paho-mqtt"
/>
<item
index=
"47"
class=
"java.lang.String"
itemvalue=
"pymongo"
/>
</list>
</value>
</option>
</inspection_tool>
<inspection_tool
class=
"PyPep8NamingInspection"
enabled=
"true"
level=
"WEAK WARNING"
enabled_by_default=
"true"
>
<option
name=
"ignoredErrors"
>
<list>
<option
value=
"N802"
/>
<option
value=
"N806"
/>
<option
value=
"N801"
/>
</list>
</option>
</inspection_tool>
<inspection_tool
class=
"PyUnresolvedReferencesInspection"
enabled=
"true"
level=
"WARNING"
enabled_by_default=
"true"
>
<option
name=
"ignoredIdentifiers"
>
<list>
<option
value=
"cv2.imresize"
/>
<option
value=
"detectron2.model_zoo.get_config_file"
/>
<option
value=
"detectron2.model_zoo.get_checkpoint_url"
/>
</list>
</option>
</inspection_tool>
</profile>
</component>
\ No newline at end of file
.idea/inspectionProfiles/profiles_settings.xml
0 → 100644
View file @
d6db6b41
<component
name=
"InspectionProjectProfileManager"
>
<settings>
<option
name=
"USE_PROJECT_PROFILE"
value=
"false"
/>
<version
value=
"1.0"
/>
</settings>
</component>
\ No newline at end of file
.idea/misc.xml
0 → 100644
View file @
d6db6b41
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.7"
project-jdk-type=
"Python SDK"
/>
</project>
\ No newline at end of file
.idea/modules.xml
0 → 100644
View file @
d6db6b41
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/.idea/welspun-classification.iml"
filepath=
"$PROJECT_DIR$/.idea/welspun-classification.iml"
/>
</modules>
</component>
</project>
\ No newline at end of file
.idea/vcs.xml
0 → 100644
View file @
d6db6b41
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$"
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
.idea/welspun-classification.iml
0 → 100644
View file @
d6db6b41
<?xml version="1.0" encoding="UTF-8"?>
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</module>
\ No newline at end of file
scripts/welspun_classifier.py
View file @
d6db6b41
...
...
@@ -256,13 +256,13 @@ class Welspun_Classifier(ModelWrapper):
pass
else
:
resized_frame
=
cv2
.
resize
(
frame
,
(
64
,
64
))
cv2
.
putText
(
frame
,
text
=
"
Good Sample
"
,
org
=
(
50
,
50
),
cv2
.
putText
(
frame
,
text
=
"
No Defect
"
,
org
=
(
50
,
50
),
color
=
(
0
,
0
,
255
),
thickness
=
2
,
fontScale
=
1
,
fontFace
=
cv2
.
LINE_AA
)
if
self
.
counter
%
25
==
0
:
self
.
send_payload
(
"
Good Sample"
,
resized_frame
,
"Good Sample
"
,
"#044b04"
,
"#24dc24"
,
"sound_1"
)
self
.
send_payload
(
"
No Defect"
,
resized_frame
,
"No Defect
"
,
"#044b04"
,
"#24dc24"
,
"sound_1"
)
logger
.
info
(
f
"Probability: {prob}"
)
self
.
counter
=
0
# if prob[0] > 0.9:
...
...
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