ByteScout Barcode Reader SDK - ASP.NET MVC C# - Read From Live Camera - ByteScout

ByteScout Barcode Reader SDK – ASP.NET MVC C# – Read From Live Camera

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Reader SDK – ASP.NET MVC C# – Read From Live Camera

How to read from live camera in ASP.NET MVC C# and ByteScout BarCode Reader SDK

Tutorial on how to read from live camera in ASP.NET MVC C#

Learn how to read from live camera in ASP.NET MVC C# with this source code sample. ByteScout BarCode Reader SDK can read from live camera. It can be used from ASP.NET MVC C#. ByteScout BarCode Reader SDK is the barcode decoder with support for code 39, code 128, QR Code, Datamatrix, GS1, PDF417 and all other popular barcodes. Can read barcodes from images, pdf, tiff documents and live web camera. Supports noisy and damaged documents, can split and merge pdf and tiff documents based on barcodes. Can export barcode decoder results to XML, JSON, CSV and into custom data structures.

ASP.NET MVC C# code samples for ASP.NET MVC C# developers help to speed up coding of your application when using ByteScout BarCode Reader SDK. In your ASP.NET MVC C# project or application you may simply copy & paste the code and then run your app! This basic programming language sample code for ASP.NET MVC C# will do the whole work for you to read from live camera.

ByteScout free trial version is available for download from our website. It includes all these programming tutorials along with source code samples.

Try it today: Get 60 Day Free Trial or sign up for Web API

!!!ReadmeFIRST.txt
      
This sample supports all browsers by using 2 modes: (required mode is automatically detected by the javascript) - HTML5 based web camera capture (supported by Google Chrome, Firefox, Safari, Safari on iOS browsers) - Flash based web camera capture (supported by Internet Explorer 9+ and any browser with flash support) IMPORTANT about HTML5 webcamera support (Chrome, Firefox, Safari on desktop and iOS): it is required to run your website (even test website) via SSL connection. Otherwise, web camera won't initialize at all as it requies SSL connection. Visual Studio 2008/2010 or higher is required for this sample to run! 1) Install evaluation copy of BarCode Reader SDK from www.bytescout.com 2) in Visual Studio use File - Open - Web-Site.. and open the folder with this sample 3) Add a reference to ByteScout BarCode Reader dll using the menu: Website - Add Reference (find Bytescout Barcode Reader SDK on .NET tab, select and click OK to add a reference) 4) Right-click on "Default.aspx" file and select "Set As Start Page" 5) Run the project in debug mode 6) Visual Studio will run your project in Internet Explorer or another browser If it run Internet Explorer then better copy the link from the IE and copy-and-paste to another browser with HTML5 web cam support like Google Chrome, Firefox or Safari 7) When browser asks for permission to access web-cam click "Allow" to allow access to web cam 8) click "START BARCODE SCAN.." button so the page will start automatically to grab frames from video and sending it to server-side code to read barcodes using Barcode Reader SDK 9) IMPORTANT: barcode should be in focus. Some webcams are not focusing on small barcodes, you may need to adjust the focus on your webcam so it will work OK with small images like barcodes 10) Click Stop to stop barcode scanning Select barcode type to scan if need to scan a particular barcode type (by default scans for all known types) TESTING: - we recommend to use the Conveyor plugin to test your web app from local net or public url: https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti

Try it today: Get 60 Day Free Trial or sign up for Web API

BarcodeReader.sln
      
Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "app", "app\BarcodeReader.csproj", "{A6EE57E5-62C7-4567-9BC0-E573686BF043}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {A6EE57E5-62C7-4567-9BC0-E573686BF043}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A6EE57E5-62C7-4567-9BC0-E573686BF043}.Debug|Any CPU.Build.0 = Debug|Any CPU {A6EE57E5-62C7-4567-9BC0-E573686BF043}.Release|Any CPU.ActiveCfg = Release|Any CPU {A6EE57E5-62C7-4567-9BC0-E573686BF043}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal

Try it today: Get 60 Day Free Trial or sign up for Web API

MORE INFORMATION

Get 60 Day Free Trial or Visit ByteScout BarCode Reader SDK page

Explore ByteScout BarCode Reader SDK documentation

WEB API VERSION

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next