Error
When I am trying to run the given code I am getting the error that "no method available to to open png image" .Please look into it
Please provide proper path to your image it should just work fine.
I was running it in jupiter notebook.
I have given like this
image="image1.png"
My image was there in my folder.Then also it is not able to open it
So check the image path if its correct or not, because a lot of people are already using this model and seems to be working fine.
I have a doubt using the below code we can detect table and extract the data inside the table right?
from ultralyticsplus import YOLO, render_result
load model
model = YOLO('foduucom/table-detection-and-extraction')
set model parameters
model.overrides['conf'] = 0.25 # NMS confidence threshold
model.overrides['iou'] = 0.45 # NMS IoU threshold
model.overrides['agnostic_nms'] = False # NMS class-agnostic
model.overrides['max_det'] = 1000 # maximum number of detections per image
set image
image = 'images.png'
perform inference
results = model.predict(image)
observe results
print(results[0].boxes)
render = render_result(model=model, image=image, result=results[0])
render.show()