visual-logging
visual-logging copied to clipboard
the .html file is generated but the pictures doesn't
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.
I see the same behavior.
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.
Try updated version
Works for me now.