himansh123
himansh123
Its totally black. Than I used cv2.cvtColor(self.formula, cv2.COLOR_BGR2GRAY) to convert it to Gray image. which showed the threshold image perfectly, but throwed error on this line: formula_rects = self.add_rectangles(self.formula, bounding_boxes)
Here is the error I get when I use: cv2.cvtColor(self.formula, cv2.COLOR_BGR2GRAY) (205, 354) --------------------------------------------------------------------------- ``` ValueError Traceback (most recent call last) in () 16 plt.show() 17 correct = model.filename2formula(files[i]) --->...
OK. I got my mistake. But than again as u said results are not much satisfying. Can you please share the steps on how can I retrain the model?