Sometimes a black image is returned from the printer's webcam. Not sure if this is a problem w/ the webcam or a delay in HomeAssistant's turning on of the light. Should be checking the returned image, or HomeAssistant to verify the light was turned on.
Sometimes a black image is returned from the printer's webcam. Not sure if this is a problem w/ the webcam or a delay in HomeAssistant's turning on of the light. Should be checking the returned image, or HomeAssistant to verify the light was turned on.
Code snippet to check image brightness:
```py
def brightness( im_file ):
im = Image.open(im_file).convert('L')
stat = ImageStat.Stat(im)
return stat.rms[0]
```
[Source of code snippet](https://stackoverflow.com/questions/3490727/what-are-some-methods-to-analyze-image-brightness-using-python)
Screenshot of the issue:
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Sometimes a black image is returned from the printer's webcam. Not sure if this is a problem w/ the webcam or a delay in HomeAssistant's turning on of the light. Should be checking the returned image, or HomeAssistant to verify the light was turned on.
Code snippet to check image brightness:
Source of code snippet
Screenshot of the issue: