python 쓰다가 exe 빌드 계속 오류나서 빡쳐서 c#으로 넘어왔는데
visual studio에서 자꾸 오류가 나서 vscode로 바꿔서 하니까 되길래
dll 따로 github에서 다운받아서 추가시켜줘서 해결했음
근데 이제 opencvsharp.opencvexception 'size.width>0 && size.height>0' 오류가 남
경로 문제라 절대경로로 넣으면 된다는데
원래 내 경로는 절대경로임...
문제되는 부분은 이부분에서
VideoCapture input_vid = new VideoCapture(input_path);
Mat frame = new Mat();
while (input_vid.PosFrames != input_vid.FrameCount)
{
input_vid.Read(frame);
Cv2.ImShow("frame", frame);
Cv2.WaitKey(33);
}
input_vid.PosFrames != input_vid.FrameCount 여기서 뻑남
댓글 1