简体   繁体   中英

Preparation for the dataset

I'm looking for the answers for choosing the background of the object detection . Now I'm working on the project of detecting the items using computer vision and , I'm encountering the problem in choosing the background for its , so what the background color should I choose for it in order to reach the best solution , I research about black , white , green ? Thank you !

Black or white should work as they - in addition to having a homogeneous coloration in the background - provide a way to capture noise or unwanted gradients when taking a look at the background only.

I name black and white specifically for their RGB/BGR values. If your objects are color X, you'll want to avoid color X as the background. Keep in mind that your image will (in the case of RGB/BGR) be three matrices with values ranging from 0 to the max value specified by your data type, ie 1 (if float ) or 255 (if uint8 ). You want a background that is distinctively different from your object of interest.

Depending on your specific use case, additional information may or may not be relevant to you. If you are going for cascaded classifiers, the answer to this question contradicts my point. And this one shows some methods for detecting same-colored objects.

The answer to this one might also be interesting for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM