Turning on more lint checkers, warning for cameras that ignore resolution setting
This commit is contained in:
parent
ae2ec1864f
commit
3f0564f253
3 changed files with 6 additions and 2 deletions
|
|
@ -189,6 +189,7 @@ class SimulatedCamera(BaseCamera):
|
|||
It's likely to be highly inefficient - raw and/or uncompressed captures using
|
||||
binary image formats will be added in due course.
|
||||
"""
|
||||
logging.warning(f"Simulation camera doen't respect {resolution} setting")
|
||||
return self.generate_frame()
|
||||
|
||||
@thing_action
|
||||
|
|
@ -201,6 +202,7 @@ class SimulatedCamera(BaseCamera):
|
|||
|
||||
This function will produce a JPEG image.
|
||||
"""
|
||||
logging.warning(f"Simulation camera doen't respect {resolution} setting")
|
||||
frame = self.capture_array()
|
||||
jpeg = cv2.imencode(".jpg", frame)[1].tobytes()
|
||||
exif_dict = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue