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

Doesn't show or save any frames on Windows 10. #1245

Open
noluvv opened this issue Oct 24, 2024 · 1 comment
Open

Doesn't show or save any frames on Windows 10. #1245

noluvv opened this issue Oct 24, 2024 · 1 comment

Comments

@noluvv
Copy link

noluvv commented Oct 24, 2024

Description

gocv doesn't show or save any frames. using "gocv.NewWindow()" just shows a black screen, and attempting to save any frames will result in an unusable video file.

Steps to Reproduce

  1. Download opencv 4.10.0
  2. Install gocv 0.39.0
  3. Try to run main.go file with gocv imported, get "exit status 0xc0000135" error code
  4. Add "C:\opencv\build\install\x64\mingw\bin" to system path
  5. Install opencv 4.10.0 using "win_build_opencv.cmd script"
  6. Try to run main.go file with gocv imported, see that the pop-up window just shows a black screen and that frames aren't recorded to video files.

Your Environment

  • Macbook Pro running Bootcamp. Windows 10 Home Edition, 10.0.19045 Build 19045
  • OpenCV version used: 4.10.0
  • Installed OpenCV using "win_build_opencv.cmd"
  • GoCV version used: 0.39.0
  • Go version: 1.23.2 windows/amd64
  • Did you run the env.sh or env.cmd script before trying to go run or go build? No.
@nicotina04
Copy link

nicotina04 commented Dec 27, 2024

Make sure you added the opencv path C:\opencv\build\install\x64\mingw\bin
I solved this issue to add the path and reopen powershell window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants