View Full Version : FindObjTPA?
I'm Using FindObjectTPA But i don't know how to measure the width and length of the object.
Could some one please help me out?
YoHoJo
03-07-2012, 09:58 AM
Width and Height is just how many pixels long/wide it is you can just like hover your mouse at top left, and then move it to top right (and look at the coordinate on bottom left of simba) and see how many X long it is, and then go up/down and do same for Y.
It doesn't need to be exact, just think of it searching in a box X long and Y wide, and seeing if at least MinCount (number of pixels) of the color you specified were found.
Like for ore in a rock you could do like 25, 25 (appx width/height of a rock) and then make mincout like 15 (pixels of visible ore color) and that would work.
Daniel
03-07-2012, 10:22 AM
Think of the width and length parameters as tolerance. The bigger the area, the higher the tolerance, and therefore the less accurate it becomes and more artifacts it accepts.
Think of Google Maps for example (or any other mapping/GPS system). If you're trying to find where to go in Melbourne and are looking at a high zoom level, then sure, you'll get the general idea. Zoom in, and you become a lot more accurate and get a better idea of what you're looking at. The more you zoom in, the less area you are looking at :)
Thank You Both! You both described it in an easy to take hold of way.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.