What keeps someone from putting the pill in a glass of vinegar and letting the shell dissolve?
The highly miniaturized high res, full color camera will identify violators. Then the miniaturized explosive charge detonates.
Or just chew it to pieces.