Commit 2723ecc3 authored by dasharatha.vamshi's avatar dasharatha.vamshi

good sample to no defect

parent 96194fcf
......@@ -232,7 +232,7 @@ class Welspun_Classifier(ModelWrapper):
color=(0, 0, 255),
thickness=2,
fontScale=1, fontFace=cv2.LINE_AA)
if self.counter % 5 == 0:
if self.counter % 50 == 0:
self.send_payload("Mix Color Detected", resized_frame, "Mix Color " + str(prob[0]), "#472020",
"#ed2020",
"sound_1")
......@@ -240,11 +240,11 @@ class Welspun_Classifier(ModelWrapper):
self.counter = 0
elif a == 2 and x[2] > 0.95:
resized_frame = cv2.resize(frame, (64, 64))
cv2.putText(frame, text="Split Defect Detected", org=(50, 50),
cv2.putText(frame, text="Short Defect Detected", org=(50, 50),
color=(0, 0, 255),
thickness=2,
fontScale=1, fontFace=cv2.LINE_AA)
if self.counter % 5 == 0:
if self.counter % 50 == 0:
self.send_payload("Short Tile Detected", resized_frame, "Short Tile " + str(prob[2]), "#472020",
"#ed2020",
"sound_1")
......@@ -256,7 +256,7 @@ class Welspun_Classifier(ModelWrapper):
color=(0, 0, 255),
thickness=2,
fontScale=1, fontFace=cv2.LINE_AA)
if self.counter % 5 == 0:
if self.counter % 50 == 0:
self.send_payload("Split Defect Detected", resized_frame, "Split " + str(prob[3]), "#472020", "#ed2020",
"sound_1")
logger.info(f"Probability: {prob}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment