Views
No views yet
1from handler import TBClassifier
2import cv2
3
4classifier = TBClassifier()
5image = cv2.imread("path/to/xray.jpg")
6result = classifier.predict(image)
7print(f"Prediction: {result['prediction']}, Confidence: {result['confidence']:.4f}")