Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

961 protect from empty camera image #967

Merged
merged 11 commits into from
Dec 23, 2021

Commits on Dec 13, 2021

  1. Protect warm PiCamera and CiscCamera until frame is available

    - prior code just waited a couple of seconds.
    - this new code now starts asking for frames and will wait
      until a frame is return or a timeout happens
    - Generally this is a more reliable and faster way to warm
      the camera; if it is going to work it will return a frame
      quickly.  So start up is faster.
    - The warmup code also declares a better  error if the camera can't
      start; it raises the error in the camera part rather than
      downstream where the image is used or later in the pipeline.
      That makes it easier to diagnose what is going on.
    Ezward committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    5be5320 View commit details
    Browse the repository at this point in the history
  2. Protect cv_control.py from None image

    - if the camera returns a None image the code would
      crash.  That could happen with the prior CISC camera
      if it did not start properly.  However, that error
      was confusing.
    - Now this code will simply ignore an None image.
    Ezward committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    6784c7b View commit details
    Browse the repository at this point in the history
  3. Make cv_control debug window optional

    - added --debug flag. if this is passed to 'drive' command
      then debug window is shown.  Otherwise it does not.
    - this fixes an issue when using a headless OS on the
      donkeycar; open cv cannot create a debug window and so crashes.
    Ezward committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    3756e6c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    db9bff4 View commit details
    Browse the repository at this point in the history
  5. Added warmup routine to webcam

    - this guarantees we can produce frames before the camera
      is used
    - also detects if pygame is not installed and prints instructions
    Ezward committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    c8fd658 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

  1. Configuration menu
    Copy the full SHA
    2f80aab View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2021

  1. Configuration menu
    Copy the full SHA
    85e8800 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    47c9660 View commit details
    Browse the repository at this point in the history
  3. Add config for camera index in WEBCAM

    - if both a CSIC camera and a USB camera are connected then
      there will be more than one camera available
    - The current code always just choose index 0
    - This change allows the index to be chose with
      cfg.CAMERA_INDEX, which defaults to zero
    Ezward committed Dec 17, 2021
    Configuration menu
    Copy the full SHA
    32b2cb0 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2021

  1. Configuration menu
    Copy the full SHA
    07c123a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    240412f View commit details
    Browse the repository at this point in the history