Skip to content

Getting an error when running program #91

Description

@mollthecoder

When I run the program with saveVideo = true, I get an error:

terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.5.1) ../modules/videoio/src/cap_ffmpeg.cpp:172: error: (-215:Assertion failed) image.depth() == CV_8U in function 'write'

It runs fine when I turn saveVideo off.
I'm running on a raspberry pi 4, with a 32-bit OS.

$ uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

The error is exactly the same with both Release and Debug builds.
I've already checked, and all of the dependencies are installed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions