You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// LocalizationModes are all enabled as default. Barcode reader will automatically switch between the modes and try decoding continuously until timeout or the expected barcode count is reached.
30
+
// Please manually update the enabled modes list or change the expected barcode count to promote the barcode scanning speed.
31
+
// Read more about localization mode members: https://www.dynamsoft.com/barcode-reader/parameters/enum/parameter-mode-enums.html?ver=latest#localizationmode
// DeblurModes are all enabled as default. Barcode reader will automatically switch between the modes and try decoding continuously until timeout or the expected barcode count is reached.
41
+
// Please manually update the enabled modes list or change the expected barcode count to promote the barcode scanning speed.
42
+
//Read more about deblur mode members: https://www.dynamsoft.com/barcode-reader/parameters/enum/parameter-mode-enums.html#deblurmode
// It is a parameter to control the process for scaling up an image used for detecting barcodes with small module size
47
53
sts.ScaleUpModes[0]=EnumScaleUpMode.SUM_AUTO;
48
-
sts.ScaleUpModes[1]=EnumScaleUpMode.SUM_SKIP;
49
-
sts.ScaleUpModes[2]=EnumScaleUpMode.SUM_SKIP;
50
-
sts.ScaleUpModes[3]=EnumScaleUpMode.SUM_SKIP;
51
-
sts.ScaleUpModes[4]=EnumScaleUpMode.SUM_SKIP;
52
-
sts.ScaleUpModes[5]=EnumScaleUpMode.SUM_SKIP;
53
-
sts.ScaleUpModes[6]=EnumScaleUpMode.SUM_SKIP;
54
-
sts.ScaleUpModes[7]=EnumScaleUpMode.SUM_SKIP;
55
-
54
+
55
+
// Parameter 7. Set grayscale transformation modes.
56
+
// By default, the library can only locate the dark barcodes that stand on a light background. "GTM_INVERTED":The image will be transformed into inverted grayscale.
// By setting organizaion ID as "200001", a 7-day trial license will be used for license verification.
103
+
// Note that network connection is required for this license to work.
104
+
//
105
+
// When using your own license, locate the following line and specify your Organization ID.
106
+
// organizationID = "200001";
107
+
//
108
+
// If you don't have a license yet, you can request a trial from https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=dotnet
// There are two ways to configure runtime parameters. One is through PublicRuntimeSettings, the other is through parameters template.
117
124
Console.WriteLine("Decode through PublicRuntimeSettings:");
118
125
{
126
+
// config through PublicRuntimeSettings
119
127
configReadRateFirst(dbr);
128
+
129
+
// Decode barcodes from an image file by current runtime settings. The second parameter value "" means to decode through the current PublicRuntimeSettings.
120
130
results=dbr.DecodeFile(fileName,"");
131
+
132
+
// Output the barcode format and barcode text.
121
133
outputResults(results);
122
134
}
123
135
124
136
Console.WriteLine("\r\n");
125
137
126
138
Console.WriteLine("Decode through parameters template:");
127
139
{
140
+
// config through parameters template
128
141
configReadRateFirstByTemplate(dbr);
142
+
143
+
// Decode barcodes from an image file by template.
0 commit comments