Neurolingua
commited on
Commit
•
12a66cc
1
Parent(s):
5b2ec93
Update teacher_function.py
Browse files- teacher_function.py +1 -9
teacher_function.py
CHANGED
@@ -38,15 +38,7 @@ def extract_text_from_image(image_path):
|
|
38 |
return text
|
39 |
|
40 |
|
41 |
-
|
42 |
-
images = convert_from_path(pdf_path)
|
43 |
-
final_text = ""
|
44 |
-
for image in images:
|
45 |
-
image_cv = np.array(image)
|
46 |
-
image_cv = cv2.cvtColor(image_cv, cv2.COLOR_RGB2BGR)
|
47 |
-
text = pytesseract.image_to_string(image_cv)
|
48 |
-
final_text += text
|
49 |
-
return final_text
|
50 |
|
51 |
|
52 |
def evaluate(question, answer, max_marks):
|
|
|
38 |
return text
|
39 |
|
40 |
|
41 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
|
44 |
def evaluate(question, answer, max_marks):
|