I'm using a project using OpenCV for detecting a card that will be place on a atable. I have successfully detect it using Canny Edge. However, for different image the parameter must be tuned manually. I wish for my project to be worked with every image without manually tune the parameter. What Should I do?
相关问题
- How to get the background from multiple images by
- Try to load image with Highgui.imread (OpenCV + An
- CV2 Image Error: error: (-215:Assertion failed) !s
- Is it a bug of opencv RotatedRect?
- How do I apply a perspective transform with more t
相关文章
- Behavior of uniforms after glUseProgram() and spee
- opencv fails to build with ipp support enabled
- Code completion is not working for OpenCV and Pyth
- Face unlock code in Android open source project?
- How to smooth the blocks of a 3D voxel world?
- How to compile a c++ application using static open
- how to calculate field of view of the camera from
- Why cv2.rectangle sometimes return np.ndarray, whi
If your image consist of Distinct Background & Foreground, You can get the threshold for that automatically as follows explained in this paper http://www.academypublisher.com/proc/isip09/papers/isip09p109.pdf.
CODE:
You can also refer this thread.
You can use Helmholtz principle to adaptively find the lower and higher thresholds of the Canny edge detector.
You can refer the following link for the paper and the implementation in OpenCV C++.