openCVライブラリを使用して(Javaアダプタを介して)、画像上の画像オブジェクトを検出できます。そのためには、サークルのネットワークをトレーニングする必要があります。
まさにあなたのケース(おそらくこのソリューションは一般的ではないでしょう)に関して、画像をセグメントに分割し、条件として使用して色を変えることができます。以下の擬似コードを参照してください。
//build color switching list
List<Point> colorSwitches = ...
for(each horizontal line from image){
for(each pixel from line){
if(color of previous pixel != color of current pixel){
colorSwitches.add(currentPoint)
}
}
}
// so, you have detected margins of your image objects; now we need to merge neighbor pixels into image objects, where image object is collection of margin points(you should create this class)
List<ImageObject> imageObjects = ...
for(each color switch){
if(current pixel is connected with pixels from existing image objects){
// returns image object neared with current point
getRelatedImageObject(imageObjects).add(currentPoint);
}else{
imageObjects.add(new ImageObject(currentPixel));
}
}
// now we have list of objects from image, and we need to match objects
わかりました、必要なことを行う方法の一般的な行です。より正確に必要な場合は、より詳細に説明しようとします。また、私に直接連絡することもできます
それがあなたを助けることを願っています。