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

Aperture size should be odd between 3 and 7 #26

Open
graiSoft1982 opened this issue Aug 12, 2020 · 0 comments
Open

Aperture size should be odd between 3 and 7 #26

graiSoft1982 opened this issue Aug 12, 2020 · 0 comments

Comments

@graiSoft1982
Copy link

graiSoft1982 commented Aug 12, 2020

Start CameraOpenCv.Exe sample and change apperture size to 4 and the program throw an exception.
Aperture size should be odd between 3 and 7
Filename:C:\projects\opencv-files\opencv\modules\imgproc\src\canny.cpp

" at OpenCvSharp.NativeMethods.<>c.<.cctor>b__1591_0(ErrorCode status, String funcName, String errMsg, String fileName, Int32 line, IntPtr userData)
at OpenCvSharp.NativeMethods.imgproc_Canny1(IntPtr src, IntPtr edges, Double threshold1, Double threshold2, Int32 apertureSize, Int32 l2Gradient)
at OpenCvSharp.Cv2.Canny(InputArray src, OutputArray edges, Double threshold1, Double threshold2, Int32 apertureSize, Boolean L2gradient)
at SDKTemplate.OcvOp.Canny(SoftwareBitmap input, SoftwareBitmap output, Algorithm algorithm) in C:\Users\Username\Downloads\opencvsharp_samples-master\CameraOpenCV\OcvOp.cs:line 145
at SDKTemplate.Scenario1_ExampleOperations.ColorFrameReader_FrameArrivedAsync(MediaFrameReader sender, MediaFrameArrivedEventArgs args) in C:\Users\Username\Downloads\opencvsharp_samples-master\CameraOpenCV\Scenario1_ExampleOperations.xaml.cs:line 217"

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

1 participant