using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ThoughtWorks.QRCode.Codec;
using ThoughtWorks.QRCode.Codec.Data;
namespace ImageToQR
{
class Program
{
static string QRImgPath = @"E:\项目\支付\文档\收款码\未处理\支付宝";
static string ImgType = @"*.jpg";
/// <summary>
/// 识别指定目录下的全部二维码图片(默认是PNG)
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
try
{
string[] files;
if (args.Length > 0)
{
//args[0]为CMD里exe后的第一个参数 ImgType默认配置的*.png
files = Directory.GetFiles(args[0], ImgType);
}
else
{
//读取指定路劲(QRDecodeConsoleApp.exe.config里配置的路劲)
files = Direc
使用ThoughtWorks.QRCode识别图片中的二维码
最新推荐文章于 2022-11-25 15:42:12 发布