# Revision history [back]

### find all the cards that are above and their center

here my situation .... it is only an example, I not work with static image, I work with camera capture, but the strategy to use to get the result is very similar...

input :

I want to find all the cards that are above and their center... at present to increase the speed of calculation transform the image first in 16 colors .. then filter only red colour zone. 1- transform in 1ch b/w 2-find all contour and contour center point (save in a vector) with an area as large as rectangles (see second image brown circle) 3- iterate vector with center point and compute distance betwen all founded points 4-if the distance satisfies the construction of a rectangle, then the point is good ( second image green lines ) otherwise the line is not saved ( yellow lines ) . The rectangles found are stored in a vector. 5-iterate a vector with rectangle and find center point of founded rectangle.

explain my actual strategy:

this strategy works , but often asked false positives especially if there are a lot of cards . In fact I can also find green rectangles also between two different cards .... this is not good .

Someone with more experience I can suggest a more precise strategy.... and that also uses few resources ? In the examples I showed static images , but the program should run in real-time with images taken by the camera....I have just tray with ORB for example .... but I have not been able to get accurate results and speed with multiple items. ( I did not know how to behave to be precise with ORB ).

Tanks a lot for all suggest

 2 No.2 Revision StevenPuttemans 19876 ●14 ●82 ●205 http://stevenputtemans...

### find all the cards that are above and their center

here Here is my situation .... it is only an example, I do not work with static image, I work with camera capture, but the strategy to use to get the result is very similar...

input : :

I want to find all the cards that are above and their center... at present to increase the speed of calculation transform the image first in 16 colors .. then filter only red colour zone. 1- zone.

1. transform in 1ch b/w 2-find b/w
2. find all contour and contour center point (save in a vector) with an area as large as rectangles (see second image brown circle) 3- circle)
3. iterate vector with center point and compute distance betwen all founded points 4-if points
4. if the distance satisfies the construction of a rectangle, then the point is good ( second image green lines ) otherwise the line is not saved ( yellow lines ) . The rectangles found are stored in a vector. 5-iterate vector.
5. iterate a vector with rectangle and find center point of founded rectangle.

explain my actual strategy: strategy:

this strategy works , but often asked false positives especially if there are a lot of cards . In fact I can also find green rectangles also between two different cards .... this is not good .

Someone with more experience I can suggest a more precise strategy.... and that also uses few resources ? In the examples I showed static images , but the program should run in real-time with images taken by the camera....I have just tray with ORB for example .... but I have not been able to get accurate results and speed with multiple items. ( I did not know how to behave to be precise with ORB ).

Tanks a lot for all suggest

### find all the cards that are above and their center

Here is my situation .... it is only an example, I do not work with static image, I work with camera capture, but the strategy to use to get the result is very similar...

input :

I want to find all the cards that are above and their center... at present to increase the speed of calculation transform the image first in 16 colors .. then filter only red colour zone.

1. transform in 1ch b/w
2. find all contour and contour center point (save in a vector) with an area as large as rectangles (see second image brown circle)
3. iterate vector with center point and compute distance betwen all founded points
4. if the distance satisfies the construction of a rectangle, then the point is good ( second image green lines ) otherwise the line is not saved ( yellow lines ) . The rectangles found are stored in a vector.
5. iterate a vector with rectangle and find center point of founded rectangle.

explain my actual strategy:

this strategy works , but often asked false positives especially if there are a lot of cards . In fact I can also find green rectangles also between two different cards .... this is not good .

Someone with more experience I can suggest a more precise strategy.... and that also uses few resources ? In the examples I showed static images , but the program should run in real-time with images taken by the camera....I have just tray with ORB for example .... but I have not been able to get accurate results and speed with multiple items. ( I did not know how to behave to be precise with ORB ).

Tanks a lot for all suggest

 4 retagged sturkmen 6021 ●3 ●42 ●69 https://github.com/stu...

### find all the cards that are above and their center

Here is my situation .... it is only an example, I do not work with static image, I work with camera capture, but the strategy to use to get the result is very similar...

input :

I want to find all the cards that are above and their center... at present to increase the speed of calculation transform the image first in 16 colors .. then filter only red colour zone.

1. transform in 1ch b/w
2. find all contour and contour center point (save in a vector) with an area as large as rectangles (see second image brown circle)
3. iterate vector with center point and compute distance betwen all founded points
4. if the distance satisfies the construction of a rectangle, then the point is good ( second image green lines ) otherwise the line is not saved ( yellow lines ) . The rectangles found are stored in a vector.
5. iterate a vector with rectangle and find center point of founded rectangle.

explain my actual strategy:

this strategy works , but often asked false positives especially if there are a lot of cards . In fact I can also find green rectangles also between two different cards .... this is not good .

Someone with more experience I can suggest a more precise strategy.... and that also uses few resources ? In the examples I showed static images , but the program should run in real-time with images taken by the camera....I have just tray with ORB for example .... but I have not been able to get accurate results and speed with multiple items. ( I did not know how to behave to be precise with ORB ).

Tanks a lot for all suggest

### [Solved] find all the cards that are above and their center

Here is my situation .... it is only an example, I do not work with static image, I work with camera capture, but the strategy to use to get the result is very similar...

input :

I want to find all the cards that are above and their center... at present to increase the speed of calculation transform the image first in 16 colors .. then filter only red colour zone.

1. transform in 1ch b/w
2. find all contour and contour center point (save in a vector) with an area as large as rectangles (see second image brown circle)
3. iterate vector with center point and compute distance betwen all founded points
4. if the distance satisfies the construction of a rectangle, then the point is good ( second image green lines ) otherwise the line is not saved ( yellow lines ) . The rectangles found are stored in a vector.
5. iterate a vector with rectangle and find center point of founded rectangle.

explain my actual strategy:

this strategy works , but often asked false positives especially if there are a lot of cards . In fact I can also find green rectangles also between two different cards .... this is not good .

Someone with more experience I can suggest a more precise strategy.... and that also uses few resources ? In the examples I showed static images , but the program should run in real-time with images taken by the camera....I have just tray with ORB for example .... but I have not been able to get accurate results and speed with multiple items. ( I did not know how to behave to be precise with ORB ).

Tanks a lot for all suggest