blobs

Best way to count number of “White Blobs” in a Thresholded IplImage in OpenCV 2.3.0

强颜欢笑 提交于 2019-12-13 02:52:37
问题 I need to count the number of white blobs in a Thresholded image. I'm counting small squares on a marker. But due to the poor image quality of the webcam, these squares don't appear as squares. This is why I decided to use Blob detection. This is for an Augmented reality application. Is my decision right? Camera placed near the marker Camera placed far from the marker 回答1: What about the cvFindContours function? It's been a while since I use it but I think you can then iterate in the CvSeq of

counting objects & better way to filling holes

无人久伴 提交于 2019-12-06 09:02:16
问题 I am new to OpenCV and am trying to count the number of objects in an image. I have done this before using MATLAB Image Processing Toolbox and adapted the same approach in OpenCV (Android) also. The first step was to convert an image to gray scale. Then to threshold it and then counting the number of blobs. In Matlab there is a command - "bwlabel", which gives the number of blobs. I couldn't find such thing in OpenCV (again, I am a noob in OpenCV as well as Android). Here is my code, //JPG to

How to get extra information of blobs with SimpleBlobDetector?

你。 提交于 2019-12-03 14:08:38
问题 @robot_sherrick answered me this question, this is a follow-up question for his answer. cv::SimpleBlobDetector in Opencv 2.4 looks very exciting but I am not sure I can make it work for more detailed data extraction. I have the following concerns: if this only returns center of the blob, I can't have an entire, labelled Mat, can I? how can I access the features of the detected blobs like area, convexity, color and so on? can I display an exact segmentation with this? (like with say, waterfall

Javacv Blob detection

别说谁变了你拦得住时间么 提交于 2019-12-03 14:02:29
问题 I would like to use some blob detection in my application which is written in Java and thus using JavaCV instead of OpenCV . I found many classes like: SimpleBlobDetector , CvBlobDetector , CvBlob , ... but I can't find any tutorial or demo/example code to use these in Java. Could anyone please tell me how to use these as I can't figure it out and there's no good documentation for them. Thanks! 回答1: I am just in this moment working on the same problem and have a first solution. There's a lot

How to get extra information of blobs with SimpleBlobDetector?

做~自己de王妃 提交于 2019-12-03 05:09:52
@robot_sherrick answered me this question , this is a follow-up question for his answer. cv::SimpleBlobDetector in Opencv 2.4 looks very exciting but I am not sure I can make it work for more detailed data extraction. I have the following concerns: if this only returns center of the blob, I can't have an entire, labelled Mat, can I? how can I access the features of the detected blobs like area, convexity, color and so on? can I display an exact segmentation with this? (like with say, waterfall) thealmightygrant So the code should look something like this: cv::Mat inputImg = imread(image_file

Javacv Blob detection

守給你的承諾、 提交于 2019-12-03 04:00:40
I would like to use some blob detection in my application which is written in Java and thus using JavaCV instead of OpenCV . I found many classes like: SimpleBlobDetector , CvBlobDetector , CvBlob , ... but I can't find any tutorial or demo/example code to use these in Java. Could anyone please tell me how to use these as I can't figure it out and there's no good documentation for them. Thanks! happyburnout I am just in this moment working on the same problem and have a first solution. There's a lot of approaches out there but unfortunately most of them are ugly and slow. My main goal to this

Persisting Blob Streams with NHibernate

主宰稳场 提交于 2019-12-03 03:07:43
If I have a class declared as: public class MyPersistentClass { public int ID { get; set; } public Stream MyData {get;set; } } How can I use NHibernate's mappings to persist the MyData property to and from the database? Sebastian Markbåge You could use a Stream using a custom type and map it according to your storage needs. But there are some issues with using the Stream object as I mention in my blog series about lazy streaming of BLOBs and CLOBs with NHibernate . What you really need is a Blob object that in turn can create a Stream to read data from. Since Stream contains information about

How to match dangling blobs with file names in Git?

为君一笑 提交于 2019-12-01 09:45:30
问题 I have yet another example of doing a git rm -rf without an initial commit. (I realized I had added lots of useless files and wanted to add some filters.) Now I am left with 23000 dangling blobs with no tree, but with a complete Git history! I'll use a script to loop over the blobnames (using git show 'blobname' > 'filename' ), but can I associate these filenames from the history to the blobs? 回答1: For all of you who did/will do the exact mistake I made, here's the end of the story. First off

python opencv - blob detection or circle detection

心已入冬 提交于 2019-11-30 01:59:52
I am having problems detecting circle areas. I tried it with the HoughCircles function from opencv. However even though the images are pretty similar the parameters for the funtion have to be different in order to detect the cirles. Another approach I tried was to iterate over every pixel and check if the current pixel is white. If this is the case then check if there is a blob object in the area (distance to blob center smaller than a threshold). If there is, append the pixel to the blob, if not then create a new blob. This also didn't work properly. Has anyone a idea how I can make this work

How to get hold of all the blobs in a Blob container which has sub directories levels(n levels)?

僤鯓⒐⒋嵵緔 提交于 2019-11-29 10:26:40
Tried using the ListBlobsSegmentedAsync method , but this returns only the blobs from the main parent directory level .. But I need the entire list of blobs at one go from all the n levels of subdirectories. BlobContinuationToken continuationToken = null; bool useFlatBlobListing = true; BlobListingDetails blobListingDetails = BlobListingDetails.None; int maxBlobsPerRequest = 500; var blobOptions = new BlobRequestOptions (true ); do { var listingResult = await cbDir.ListBlobsSegmentedAsync(useFlatBlobListing, blobListingDetails, maxBlobsPerRequest, continuationToken, null, null);