Python How Can I Extract Image Segment With Specific

Python How Can I Extract Image Segment With Specific