diff --git a/wrappers/python/zxing.cpp b/wrappers/python/zxing.cpp index 3e35d74dba..ab615477f1 100644 --- a/wrappers/python/zxing.cpp +++ b/wrappers/python/zxing.cpp @@ -90,6 +90,8 @@ auto read_barcodes_impl(py::object _image, const BarcodeFormats& formats, bool t } const auto bytes = image.data(); + // Disables the GIL during zxing processing (restored automatically upon completion) + py::gil_scoped_release release; return ReadBarcodes({bytes, width, height, imgfmt, width * channels, channels}, hints); }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: