/webcam.Stop();
try{
if (pictureBox1.Image != null)
{
Reader reader = new MultiFormatReader();
Bitmap b = new Bitmap(pictureBox1.Image);
LuminanceSource source = new RGBLuminanceSource(b, b.Width, b.Height);
BinaryBitmap image = new BinaryBitmap(new HybridBinarizer(source));
Result result = reader.decode(image);
string text = result.Text;
MessageBox.Show(text);
}
}
catch { }