Class QualitySettings
Tên không gian: Aspose.BarCode.BarCodeRecognition Tổng hợp: Aspose.BarCode.dll (25.4.0)
QualitySettings cho phép thiết lập chất lượng nhận dạng và tốc độ bằng tay.Bạn có thể nhanh chóng cài đặt QualitySettings với các cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt cài đặt.Giá trị mặc định của QualitySettings là NormalQuality.
[XmlSerialization(Name = "Aspose.BarCode.Reader.Properties.QualitySettings")]
public sealed class QualitySettings
Inheritance
Thành viên thừa kế
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Mẫu này cho thấy cách sử dụng QualitySettings với BarCodeReader
//set HighPerformance recogition mode
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39Extended, DecodeType.Code128))
{
reader.QualitySettings = QualitySettings.HighPerformance;
foreach (BarCodeResult result in reader.ReadBarCodes())
Console.WriteLine(result.CodeText);
}
//set HighQuality recognition mode
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39Extended, DecodeType.Code128))
{
reader.QualitySettings = QualitySettings.HighQuality;
foreach (BarCodeResult result in reader.ReadBarCodes())
Console.WriteLine(result.CodeText);
}
//set HighPerformance recogition mode for low sized barcodes
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39Extended, DecodeType.Code128))
{
reader.QualitySettings = QualitySettings.HighPerformance;
reader.QualitySettings.XDimension = XDimensionMode.Small;
foreach (BarCodeResult result in reader.ReadBarCodes())
Console.WriteLine(result.CodeText);
}
//set HighPerformance recogition mode for low quality barcodes
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39Extended, DecodeType.Code128))
{
reader.QualitySettings = QualitySettings.HighPerformance;
reader.QualitySettings.BarcodeQuality = BarcodeQualityMode.Low;
foreach (BarCodeResult result in reader.ReadBarCodes())
Console.WriteLine(result.CodeText);
}
Properties
AllowIncorrectBarcodes
Cho phép động cơ để nhận ra các mã thanh có số lượng kiểm lỗi hoặc giá trị sai. chế độ có thể được sử dụng để nhận ra mã thanh bị hư hỏng với văn bản sai.
[XmlSerialization(Type = XmlSerializationType.Element)]
public bool AllowIncorrectBarcodes { get; set; }
Giá trị bất động sản
BarcodeQuality
chế độ cho phép các phương pháp để nhận ra các yếu tố mã vạch với chất lượng được lựa chọn. yếu tố mã vạch với chất lượng thấp hơn yêu cầu các phương pháp cứng hơn làm chậm nhận ra.
[XmlSerialization(Type = XmlSerializationType.Element)]
public BarcodeQualityMode BarcodeQuality { get; set; }
Giá trị bất động sản
ComplexBackground
chế độ cho phép hoặc ngăn chặn việc nhận biết thêm các mã thanh màu trên hình ảnh màu.
[XmlSerialization(Type = XmlSerializationType.Element)]
public ComplexBackgroundMode ComplexBackground { get; set; }
Giá trị bất động sản
Deconvolution
chế độ deconvolution (phục hồi hình ảnh) mà xác định mức độ suy thoái hình ảnh. ban đầu deconvolution là một chức năng có thể khôi phục hình ảnh suy thoái(được biến đổi) bởi bất kỳ chức năng tự nhiên nào như blur, trong khi có được hình ảnh bằng máy ảnh. Vì chúng ta không thể phát hiện được một tính năng ảnh làm hư hỏng bức ảnh,Chúng ta phải kiểm tra tốt nhất biết chức năng như sắc nét hoặc toán học morphology.
[XmlSerialization(Type = XmlSerializationType.Element)]
public DeconvolutionMode Deconvolution { get; set; }
Giá trị bất động sản
HighPerformance
HighPerformance công nhận chất lượng cài đặt trước. mã thanh chất lượng cao được công nhận tốt trong chế độ này.
public static QualitySettings HighPerformance { get; }
Giá trị bất động sản
Examples
Mẫu này cho thấy cách sử dụng chế độ HighPerformance
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39Extended, DecodeType.Code128))
{
reader.QualitySettings = QualitySettings.HighPerformance;
foreach (BarCodeResult result in reader.ReadBarCodes())
Console.WriteLine(result.CodeText);
}
HighQuality
HighQuality nhận dạng chất lượng Preset. Preset này được phát triển cho mã thanh chất lượng thấp. cho phép phát hiện mã thanh bị hư hỏng cao.
public static QualitySettings HighQuality { get; }
Giá trị bất động sản
Examples
Mẫu này cho thấy cách sử dụng chế độ HighQuality
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39Extended, DecodeType.Code128))
{
reader.QualitySettings = QualitySettings.HighQuality;
foreach (BarCodeResult result in reader.ReadBarCodes())
Console.WriteLine(result.CodeText);
}
InverseImage
chế độ cho phép hoặc ngăn chặn việc nhận biết thêm các mã thanh trên hình ảnh có màu sắc ngược (độ sáng).
[XmlSerialization(Type = XmlSerializationType.Element)]
public InverseImageMode InverseImage { get; set; }
Giá trị bất động sản
MaxQuality
MaxQuality công nhận chất lượng Preset. Preset này được phát triển để công nhận tất cả các mã thanh có thể, ngay cả mã thanh không chính xác.
public static QualitySettings MaxQuality { get; }
Giá trị bất động sản
Examples
Mẫu này cho thấy cách sử dụng chế độ MaxQuality
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39Extended, DecodeType.Code128))
{
reader.QualitySettings = QualitySettings.MaxQuality;
foreach (BarCodeResult result in reader.ReadBarCodes())
Console.WriteLine(result.CodeText);
}
MinimalXDimension
Kích thước tối thiểu của XDimension trong pixel được sử dụng với UseMinimalXDimension.
[XmlSerialization(Type = XmlSerializationType.Element)]
public float MinimalXDimension { get; set; }
Giá trị bất động sản
NormalQuality
NormalQuality công nhận chất lượng Preset. Thích hợp cho hầu hết các mã thanh
public static QualitySettings NormalQuality { get; }
Giá trị bất động sản
Examples
Mẫu này cho thấy cách sử dụng NormalQuality Mode
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39Extended, DecodeType.Code128))
{
reader.QualitySettings = QualitySettings.NormalQuality;
foreach (BarCodeResult result in reader.ReadBarCodes())
Console.WriteLine(result.CodeText);
}
XD kích thước
chế độ nhận dạng đặt kích thước (từ 1 đến vô hạn) của yếu tố mã thanh tối thiểu: ô matrix hoặc thanh.
[XmlSerialization(Type = XmlSerializationType.Element)]
public XDimensionMode XDimension { get; set; }