You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
the .html file is generated but the pictures doesn't #6
I installed visual-logging correctly I guess. When I try demo.py the images are not linked in the generated webpage. I get a small question mark image instead of the original image.
I've obviously changed the file name string in cv2.imread
@i also have this issue. I'm using python3.6. The issue seems to be that the base64 encoding is in binary mode. E.g.
If I hand edit it to remove the b'...' it works fine. That is the image should look like:
The fix is to change line 56 of visual-logging/vlogging/init.py to:
"data": base64.b64encode(data).decode(),
Notice the addition of ".decode()". That will suppress the spurious b'...' at least on python 3.6.
This is a bug when using it with python3.
It has already been fixed in #4 in the repository but the pip version is not updated.
Vote on #7 to get it updated.
This was the Python 3 base64-encoding bug — images embedded as b'...' byte literals instead of base64 text. It has long been fixed in master, and v2.0 (#19) adds tests covering image embedding on Python 3.9–3.13. Closing.
I installed visual-logging correctly I guess. When I try demo.py the images are not linked in the generated webpage. I get a small question mark image instead of the original image.
I've obviously changed the file name string in cv2.imread