visual-logging icon indicating copy to clipboard operation
visual-logging copied to clipboard

the .html file is generated but the pictures doesn't

Open at0mb0y opened this issue 7 years ago • 5 comments

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

at0mb0y avatar Apr 09 '17 08:04 at0mb0y

@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.

scarrico avatar Jun 09 '17 03:06 scarrico

I see the same behavior.

headdab avatar Sep 27 '17 17:09 headdab

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.

diiigle avatar Jan 07 '18 15:01 diiigle

Try updated version

dchaplinsky avatar May 16 '18 07:05 dchaplinsky

Works for me now.

headdab avatar May 17 '18 19:05 headdab