Hi all
I found this error in a previous post of video inference and seems to be fixed. but here trying to understand the crack detection feature for an image i am getting this similar issue:
from roboflow import Roboflow
import supervision as sv
import cv2
from PIL import Image
rf = Roboflow(api_key="xxxxxxxxxxxxxxxxxxxxx")
project = rf.workspace().project("crack-bphdr")
model = project.version(2).model
# Load an image
image = Image.open("20220720_140859.jpg")
# Run inference on the image
result = model.predict(image, confidence=40, overlap=30).json()
I am getting the following error
result = model.predict(image, confidence=40, overlap=30).json() ^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'predict'
any idea how to deal with this one?
cheers