Rapid methods for the determination of the antibacterial compounds amoxicillin and cephalexin from the beta-lactam group based on visual-colorimetric and colorimetric evaluation using a smartphone camera were developed. The reaction of ninhydrin with the amino groups of antibiotics was chosen as an indicator. The interaction of immobilized ninhydrin with gentamicin on the surface of a solid matrix was evaluated using diffuse reflectance spectroscopy. The stability and the effects of temperature and heating time of the test agents on the course of the reaction were studied. Color scales for the visual-colorimetric determination of amoxicillin and cephalexin were obtained. Linear dependences of the intensities of the Green channel of the RGB color model on the logarithm of antibiotic concentration were plotted. The procedures developed were applied to the analysis of drug samples.