Skip to content
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

QR Code Detector: WARNING: An illegal reflective access operation has occurred #24

Open
simon-staal opened this issue Jun 5, 2023 · 1 comment

Comments

@simon-staal
Copy link

Creating a QR Code detector using a FactoryFiducial(np.uint8) causes the following warnings to be produced:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by py4j.reflection.ReflectionShim (file:/home/pi/test/.venv/lib/python3.9/site-packages/pyboof/PyBoof-all.jar) to method java.util.ArrayList$Itr.next()
WARNING: Please consider reporting this to the maintainers of py4j.reflection.ReflectionShim
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

This can be recreated with:

import numpy as np
import pyboof as pb

ff = pb.FactoryFiducial(np.uint8)
qcd = ff.qrcode() # Causes warnings to be generated

This happens on both Ubuntu 22.04 and Raspbian Bullseye, using the latest release of PyBoof 0.43.1 (although it may have also been happening with earlier versions as well).

@lessthanoptimal
Copy link
Owner

More of a Py4J issue than PyBoof. They are accessing some internal java API I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants