Python image Processing (8): Edge detection

Source: Internet
Author: User

Happy Shrimp

http://blog.csdn.net/lights_joy/

Welcome reprint, but please keep the author information


Once a single area plant image has been obtained, the next step seems to be to try to classify these areas. The identification of plant species by form and vein is obviously an intuitive approach, but the application of such methods is limited by the existence of realistic conditions such as leaf overlap and illumination. Nonetheless, we still want to look at the effects of such methods. Similarly, this article does not intend to do theoretical explanation, just want to understand The implementation of Python means.


Try edge detection first.


This is the color image we got earlier, but since edge detection can only use single-channel images, let 's try it first. g component Detection effect:


(b, g, r) = Cv2.split (src) edge_g = cv2. Canny (g, Max.) cv2.imshow (' Edge ', Edge_g)

it's simple. Canny edge Detection, the results are as follows:



Due to lack of knowledge, temporarily unable to do further analysis of this image, eh, continue!








??

Python image Processing (8): Edge detection

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.