简体   繁体   中英

Detecting Object in an image with Python Pil

I want to Detect objects in an image by using simple python pil codes.

For example Open an image and tell me how many objects are in the image but not too professional.

Can someone help?

I don't think PIL/Pillow is the correct tool for this. I have successfully implemented object detection on images by using opencv (installing pyopencv and importing cv2). The install was not so straight forward, but once you are able to import cv2 then it is just a matter of calling cv2.matchTemplate with the correct parameters. Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM