How can I detect the dark black socket from the dark or very reflective bacground?
1 次查看(过去 30 天)
显示 更早的评论
I need to detect the CCS2 connector of electric cars. It is very dark, with dark and poor textures.
I have some results with intensity transformations using imadjust and gamma correction when I am deparating the connector from the background. Later, I am using morphology.
Still, when I place the camera little far from the connector, 40cm-50cm the image spoils, and the detection fails, specially at daylight. The detection from 20-25cm is 100%.
I am using ZED2i depth camera and diffuse light sources, but the depth image is very poor due to the socket texutes, and now first I need to detect the connector position from the color image.
I would like to use image processing techniques, not deep learning if it is possible (I was thinking about RCNN network, or mask-RCNN, but I can not find the detail description how can I make the training with my own data/images).
I have attached the images too.
Please, any suggestion to improve the detection from 50cm distance (the greater distance would more better).
Naturally, a new camera could help, but the goal is to generate the depth image too, not only the color image.
Thanks!
采纳的回答
Image Analyst
2022-8-3
imadjust won't help. Increasing global brightness or contrast will not help with segmentation. Just think about it and you should know why.
If the connectors are of the same type, you might be able to use normalized cross correlation to find them. Demo attached. But it will depend on the template having the same size as the connector, which is unlikely from images collected from the field.
Otherwise if you had hundreds of photos and wanted to label them all with ground truth of known connector pixels, then you could use segnet.
更多回答(1 个)
Mathias Smeets
2022-8-3
I don't know a specific solution.
However, here is a link that might help. I had a similar (easier) problem and I tried out a lot of different things on this link under 'segmentation techniques'.
Another thing you might try is using the functions imadjust (for enhancing contrast) and imlocalbrighten (for brightening) before you do the actual processing.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!