photo

Python Tkinter Images Tearing On Scroll

Python Tkinter Images Tearing On Scroll Question: I’m working on a project to create a GUI application to display images as clickable buttons in Tkinter. I have the functionality completed where the images appear in a scroll-able grid on the GUI. However, when scrolling up or down there is terrible screen tearing with the images. …

Total answers: 3

How to display user's image in Microsoft Graph using python

How to display user's image in Microsoft Graph using python Question: I tried using GET https://graph.microsoft.com/v1.0/me/photo/$value to get the user’s image/photo but it only returns an HTTP 200 status code. How can I get the binary data? I’ve also tried using the content.property as suggested in a similar post but get a .format is not …

Total answers: 4

open cv error: (-215) scn == 3 || scn == 4 in function cvtColor

open cv error: (-215) scn == 3 || scn == 4 in function cvtColor Question: I’m currently in Ubuntu 14.04, using python 2.7 and cv2. When I run this code: import numpy as np import cv2 img = cv2.imread(‘2015-05-27-191152.jpg’,0) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) it returns: File “face_detection.py”, line 11, in <module> gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) …

Total answers: 17