# Detecting and fetching the pokemon card only

**URL:** <https://forum.opencv.org/t/detecting-and-fetching-the-pokemon-card-only/7555>\
**Category:** Python\
**Tags:** edge-detection\
**Created:** [February 14, 2022, 5:13am UTC](https://forum.opencv.org/t/detecting-and-fetching-the-pokemon-card-only/7555 "2022-02-14T05:13:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmdayyy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/ahmdayyy/32/4493_2.png) [@ahmdayyy](https://forum.opencv.org/u/ahmdayyy)\
**Post date:** [February 14, 2022, 5:13am UTC](https://forum.opencv.org/t/detecting-and-fetching-the-pokemon-card-only/7555/1 "2022-02-14T05:13:56Z")

</div>

I’ve got a pokemon card, I apply edge detection and get its edges, what I want now is to fetch the card only and calculate the length of border on pokemon card on each side. What I cannot understand is, how to fetch the card from a stale background, and then get its borders.  
 ![img](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/8/8277d476de087b8ef13368fe1573ebdcf86d9994.png)  
now, what I want is, to detect the distance or length of borders.  
By border I mean, the outer yellow edges of the card.

---

<div class="post-metadata">

**Author:** ![sturkmen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/sturkmen/32/13_2.png) [@sturkmen](https://forum.opencv.org/u/sturkmen)\
**Post date:** [February 14, 2022, 10:23am UTC](https://forum.opencv.org/t/detecting-and-fetching-the-pokemon-card-only/7555/2 "2022-02-14T10:23:53Z")

</div>

please show the original image
