You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It uses Open Computer Vision to find the hole. However we probably don't want to depend on that and could try a more naive implementation:
Divide the image in squares of equal aspect ratio as the image, to be seen how many divisions are needed
For each square start at the center, read a pixel, move up down left right (cross) until you find a pixel that does not equal the original pixel + threshold.
For all the resulting squares take the biggest one (there will probably be duplicates)
Do some checks to make sure we have a square att least x % of the original image
Then for config
read vpinball ini
find b2s fulldmd position
get the scale for the fulldmd image by comparing dimensions
scale the biggert square we found
configure PinmameDMD and FlexDMD windows according to the found scaled square.
There is an existing tool that does this:
https://github.com/Le-Syl21/dmd-config
It uses Open Computer Vision to find the hole. However we probably don't want to depend on that and could try a more naive implementation:
Then for config
see also vpinball/b2s-backglass#70
The text was updated successfully, but these errors were encountered: