AI Visual Inspection for Small Factories in India: What Works and What to Check First
How camera-based defect detection works on castings, forgings, machined and fabricated parts, where it pays off for an Indian MSME, and how to run a safe pilot before you buy.

Editorial note: This guide explains a practical sourcing process. Requirements vary by product and destination; confirm regulatory, tax, legal and customs questions with qualified professionals.
What AI visual inspection actually is
A visual inspection system is a camera, a light, a way to hold or move the part, and software that decides whether the image shows a good part or a defect. The “AI” is usually a model that has been shown many pictures of good and bad parts and learns the difference. Older machine-vision systems used fixed rules, such as measuring a hole diameter in pixels. Newer systems learn from examples, which makes them better at things that are hard to write rules for: surface scratches, porosity marks, flash, cracks, missing features and cosmetic flaws.
It is not magic and it does not replace the inspection plan. It does the repetitive looking, so people can spend their time on the judgement calls, the measurements that need instruments and the root-cause work.
Where it pays off in Indian factories
Visual inspection is worth considering when the same kind of part is checked many times a day, when the defects are visible to the eye, and when a missed defect is expensive. That describes much of what is made in the clusters buyers search: castings and forgings in Rajkot and Kolhapur, auto components around Pune and Chennai, fasteners and hand tools in Ludhiana, and brass and electrical parts in Jamnagar.
It tends to work less well on one-off jobs, on very small batches, on parts whose defects are inside the material, and on defects that even experienced inspectors argue about. If your people disagree about what counts as a reject, a camera will not settle it. Fix the written standard first.
- Repetitive parts checked all shift, such as rings, washers, bushes, caps and fittings
- Surface defects: scratches, dents, burrs, flash, rust, coating gaps, missing threads
- Assembly checks: is every pin, clip, seal or label present and in the right place
- Print and marking checks: part number, date code and logo are readable and correct
- Final check before packing, where one wrong part reaching a customer is costly
What a working setup needs
Most failures come from the physical setup, not the software. The same defect can disappear or appear depending on the angle and colour of the light. A shiny machined face needs different lighting from a rough casting. Vibration, dust, oil mist and changing daylight from a shop-floor window all upset a system that worked in the vendor’s demo.
Plan for a fixed light, a fixed camera position, a repeatable way of presenting the part, and a cover that keeps dust and light out. Ask the vendor to show the system working in a place like your own shop, not only in a clean room, and to test it on your real parts, including the worst ones.
- Camera and lens suited to the smallest defect you need to catch
- Controlled lighting and an enclosure against shop-floor light and dust
- A jig, conveyor or turntable so every part is shown the same way
- A computer that does the work on site, so it runs without internet
- A reject mechanism or at least a clear alarm, and a place to see the failed images
The part everyone underestimates: examples of defects
A learning system needs examples. It needs many pictures of good parts, which are easy, and enough pictures of each type of defect, which are not, because a good factory does not make many defects. Ask how many defect images the vendor needs, who will collect them and how long it takes. If the answer is “a few hundred per defect type”, check that you can actually find that many.
Some systems can learn from good parts alone and flag anything unusual. This helps when defects are rare, but it can also flag harmless variation. Whichever approach is used, agree in writing how the system will be tested: which parts, how many, and what counts as a pass.
Measure it the way a customer would
Two numbers matter. The first is how many bad parts the system misses, because those reach your customer. The second is how many good parts it rejects, because those cost you material and time. A system can be tuned to catch almost every defect by rejecting too many good parts, or the other way round. Decide in advance which error you can tolerate.
Test with a set of parts you have already sorted by hand, including borderline ones, and keep that set aside so the system is never trained on it. Run the system on it, compare the results and look at every disagreement. That one afternoon will tell you more than a brochure.
Run a small pilot before you buy
Choose one part, one defect type that hurts you most and one line. Run the system beside your current inspection for a few weeks without letting it reject anything, and compare. If it matches or beats your people on the cases that matter, switch it on for that line. If not, you have learned cheaply.
During the pilot, check who changes the settings when a new batch or a new colour of material arrives, how the system is updated, and what happens when the vendor’s engineer is not available. A system your own technician cannot restart is a risk.
Costs and contracts to ask about
Ask for the full cost, not only the first purchase: cameras and lights, the computer, installation, training, changes when a new part is added, spare parts, and any yearly licence or support fee. Be careful with offers that put the software in the vendor’s cloud and charge every month; an inspection line that stops when the internet or the subscription stops is a poor deal. Prefer systems that run on your own machine and that you can keep using.
Ask who owns the images and the trained model. If you later change vendor, you should be able to take your data with you. Ask for a written statement of what the system is guaranteed to detect on your parts.
If you are the buyer, not the factory
Buyers can ask suppliers how they inspect, without insisting on any particular technology. Useful questions are which defects are checked by eye and which by instrument or camera, how inspection results are recorded, how a failed part is traced back to a batch, and how the inspection method is checked against a master sample. A supplier with a modest but disciplined manual process can be a better bet than one with a camera nobody trusts.
To find suppliers whose products and processes match your drawing, start from the category and city pages on SourceLoka and then ask these questions in your first enquiry.
What to expect on different kinds of parts
Machined parts are the easiest starting point. Their shape is stable, the surface is clean and the defects, such as burrs, chatter marks, missing holes and damaged threads, are usually visible. Turned parts that fall off a machine in large numbers, such as bushes, pins and fittings, suit a simple station with a conveyor or turntable.
Castings and forgings are harder. Surfaces are rough and vary from piece to piece, so the system must learn which roughness is normal. Sand-casting surface finish, fettling marks and paint can all confuse a model. Many foundries get better results by checking specific zones, such as a sealing face or a machined boss, instead of the whole part.
Fabricated and welded items bring large size and shiny, curved surfaces, which make lighting difficult. Cameras can still check for missing brackets, wrong hole patterns or weld presence, but weld quality itself usually needs trained inspectors and the tests your standard requires, such as dye-penetrant or radiography.
Fasteners, springs, rings and other small parts moving in bulk can be sorted at speed. Ask the vendor how many parts per minute the station handles on your part, and how it avoids overlapping or tumbling parts.
Turn inspection into records your customer can use
A good system does more than reject parts. It stores the image, the time, the batch and the result, so that when a customer complains you can look up what was seen on that day. That traceability is valuable for automotive, railway, pump and export buyers who ask for batch records.
Decide early how long images are kept, where, and who can see them. A year of images from a busy station can fill a computer quickly, so plan storage and backup. Agree who may change the limits, and keep a log of every change so that a reject decision can always be explained.
Why pilots fail, and how to avoid it
The usual reasons are the same everywhere. The test parts were cleaner than real production. Defects were too rare to train on. Lighting changed between day and night shift. Nobody on site could adjust the system, so it was switched off after the vendor’s engineer left. Or the standard for “reject” was never written down, so people argued with the machine.
Prevent these by testing on real production parts from several days, writing the reject standard with pictures, training two people on site and agreeing a support response time in the contract.
Questions to ask any vendor
Use the same questions with every vendor, so you can compare them fairly. Write the answers down, and ask for the important ones in the quotation.
- Which of my real parts have you tested, and what were the results?
- How many defect examples do you need, and who collects them?
- What happens when a new part, colour or batch is introduced, and who does it?
- Does it work with no internet, and where are the images stored?
- What is the total cost over five years, including licences and support?
- Who owns the images and the trained model if I change vendor?
- What is your support response time, and who is on site near me?
Official sources and further reading
We used primary government and standards-body material for factual checks. Source pages can change; confirm current requirements before ordering.
- IndiaAI Mission Government of India, IndiaAI
- ZED certification for MSMEs Ministry of MSME
- Ministry of Micro, Small and Medium Enterprises Ministry of MSME