Tweaked deprecation warnings
This commit is contained in:
parent
f2a2d880f2
commit
a844efc8c8
1 changed files with 6 additions and 5 deletions
|
|
@ -172,16 +172,17 @@ class BaseCamera(metaclass=ABCMeta):
|
|||
|
||||
def start_worker(self, **_) -> bool:
|
||||
"""Start the background camera thread if it isn't running yet."""
|
||||
logging.debug(
|
||||
logging.warning(
|
||||
"`start_worker` method has been deprecated and is no longer required. Please avoid calling this method."
|
||||
)
|
||||
return True
|
||||
|
||||
def get_frame(self):
|
||||
"""Return the current camera frame."""
|
||||
logging.debug(
|
||||
"`camera.get_frame` method has been deprecated. Please use `camera.stream.getframe()."
|
||||
)
|
||||
"""
|
||||
Return the current camera frame.
|
||||
|
||||
Just an alias of self.stream.getframe()
|
||||
"""
|
||||
return self.stream.getframe()
|
||||
|
||||
def __enter__(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue