-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'numpy.ndarray' object has no attribute '_get_object_id' #21
Comments
I have tried converting the np.array detector.detect(pb.ndarray_to_boof(frame)) But I now get a |
Actually, I believe that this error was cause by me slicing/cropping the frame before converting it to a BoofCV image: while(True):
success, frame = cam.read()
if not success:
break
else:
# frame = my_crop_function(frame) # I had this line here that I omitted to mention
boof_img = pb.ndarray_to_boof(frame).
detector.detect(boof_img)
print("Detected a total of {} QR Codes".format(len(detector.detections))) I am not sure why this caused an error, but this is most likely an issue with NumPy. I am now facing another issue however, this time with Py4J:
which comes from the line detector.detect(boof_img) Am I still doing something wrong here? |
Sorry for taking so long to get back. That looks like a python <-> Java issue. The path should exist. I'm wondering if somehow the classpath is messed up. Can you provide an image that triggers this issue and I will try to replicate it? |
Hey, thanks for getting back to me. It appears than just a blank image created with
causes the error above. Could there perhaps be something wrong with my installation of Java? I have installed both the |
Hi, I am encountering the following error
AttributeError: 'numpy.ndarray' object has no attribute '_get_object_id'
.I am using PyBoof
0.41
on Python3.9.2
, with numpy1.24.1
.I am trying to run the following code on a Rasberry Pi 4B (Raspbian):
But I get the following error from the line
detector.detect(frame)
:AttributeError: 'numpy.ndarray' object has no attribute '_get_object_id'
What am I doing wrong here?
The text was updated successfully, but these errors were encountered: