Skip to content

Failed to verify the SSL certificate. #45

@wscxwen

Description

@wscxwen

Why do I download the .pt file to the local computer? The SSL certificate verification fails.
requests.exceptions.SSLError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /Eric-Canas/qrdet/releases/download/v2.0_release/qrdet-s.pt (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)')))

My code is as follows:
from qreader import QReader
import cv2
import os
qreader = QReader(model_path="./models/qrdet-s.pt")
image = cv2.cvtColor(cv2.imread("2_5#A190348579_crop0.jpg"), cv2.COLOR_BGR2RGB)
decoded_text = qreader.detect_and_decode(image=image)
print(decoded_text)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions