lessthanoptimal / PyBoof

Python wrapper around the BoofCV Computer Vision Library
Apache License 2.0
64 stars 12 forks source link

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

Open simon-staal opened 1 year ago

simon-staal commented 1 year ago

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 commented 1 year ago

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