Closed Ar-Ray-code closed 2 years ago
Thank you for the great repository. :smile:
I propose a modification to convert to np.ndarray, as the process of creating the program required compositing with other images.
Use get_ndarray() to convert for OpenCV.
get_ndarray()
... image = QRImage(qr, module_size=8) if USE_NUMPY: import cv2 img = image.get_ndarray() cv2.imshow("img", img) cv2.waitKey(0) cv2.destroyAllWindows()
As this is a very simple change, no changes are made to the Requirements.
@Ar-Ray-code Thank you for your contribution! Looks good to add the option use numpy. This feature will be in the next release.
This is released in the version 0.2.0.
Thank you for the great repository. :smile:
I propose a modification to convert to np.ndarray, as the process of creating the program required compositing with other images.
Use
get_ndarray()
to convert for OpenCV.As this is a very simple change, no changes are made to the Requirements.