'Defect detection by image analysis - in ImageJ

I am trying to detect a defect in a product with the help of image analysis and in the course, would like to use ImageJ.

Experiment - I shall mount the product on a holder and with the help of webcam, see live image. At imageJ, I select 'Straight' line selection. Defect can be on any side of product, so I would rotate the product at fixed interval, and webcam will be live all this time.

What I need to know - I need fixed number of image capture or say intensity capture. So if I rotate the product in 10 sec, want 10 intensity measurement at equal interval, and this measurement should go to excel automatically or upon click of a button.

I need to know how to capture intensity at fixed interval, record it, and send it to excel. I need to record product ID with this data.

What I have done - I have installed webcam plugin. I want to know excel connectivity, fixed time intensity capture, adding product ID in export data.

Once data goes in excel, I can calculate the defect presence by comparing max intensity out of those 10 images at each location.

I have very little knowledge of ImageJ, but I can learn some short code if needed for ImageJ etc based on my current knowledge on Excel, sql, DAX etc.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source