[{"data":1,"prerenderedAt":1039},["ShallowReactive",2],{"blog-\u002Fblog\u002F2025\u002F11\u002Fbuilding-label-scanner-with-flowfuse":3},{"id":4,"title":5,"body":6,"description":12,"extension":1029,"meta":1030,"navigation":573,"path":1035,"seo":1036,"stem":1037,"__hash__":1038},"blog\u002Fblog\u002F2025\u002F11\u002Fbuilding-label-scanner-with-flowfuse.md","Building a Label Scanner with FlowFuse for Product Labels & Serial Numbers",{"type":7,"value":8,"toc":1022},"minimark",[9,13,16,19,31,34,44,47,52,63,68,84,122,140,144,147,158,168,173,229,237,243,250,258,263,274,277,311,317,321,324,377,388,397,401,404,419,857,867,873,876,880,883,942,945,957,960,965,968,985,989,992,995,998,1001,1011,1018],[10,11,12],"p",{},"In production environments, labels are everywhere! Products have Serial Numbers and Lot Codes, Packages have Batch IDs and Dates. These are often critical to the processes for packaging, tracking, logging, inventory and so on.",[10,14,15],{},"Many companies still do this manually. Someone types in each code as products move through the line. It's repetitive, time-consuming work - mistakes are inevitable.",[10,17,18],{},"That's where OCR comes in. Optical Character Recognition (OCR) uses cameras to automatically read and extract text from labels and product markings. Instead of manual data entry, a camera simply captures the image and the system pulls out the information you need. It's a straightforward solution that's already being deployed in modern manufacturing facilities worldwide.",[10,20,21,28],{},[22,23],"img",{"alt":24,"src":25,"dataZoomable":26,"width":27},"Part with Serial No","\u002Fblog\u002F2025\u002F11\u002Fimages\u002Fserial-no-on-part.png","",400,[29,30,24],"em",{},[10,32,33],{},"For example, take a look at the image above. When processed with OCR, it returns the following text:",[35,36,41],"pre",{"className":37,"code":39,"language":40},[38],"language-text","Serial No: XYZ123456789\n","text",[42,43,39],"code",{"__ignoreMap":26},[10,45,46],{},"This tutorial shows you how you can build an OCR system using FlowFuse that can capture images from cameras, extract text from product labels, lot codes, and serial numbers, validate and parse the extracted data, store results in a database or trigger downstream workflows.",[48,49,51],"h2",{"id":50},"getting-started","Getting Started",[10,53,54,55,62],{},"Before we dive in, make sure you have a running FlowFuse instance.\nIf you do not have one yet, you can ",[56,57,61],"a",{"href":58,"rel":59},"https:\u002F\u002Fapp.flowfuse.com\u002F",[60],"nofollow","sign up for the 14-day free trial"," and get a hosted instance running in under two minutes.",[64,65,67],"h3",{"id":66},"installing-required-nodes","Installing Required Nodes",[10,69,70,71,74,75,79,80,83],{},"To perform text extraction from images, you’ll need to install the ",[42,72,73],{},"@sumit_shinde_84\u002Fnode-red-contrib-simple-ocr"," node in your FlowFuse instance.\nThis node uses the Tesseract OCR engine under the hood to recognize text from image files or image buffers.\nTo capture images and build a dashboard, you’ll also need the ",[76,77,78],"strong",{},"FlowFuse Dashboard"," and ",[76,81,82],{},"Webcam"," packages.",[85,86,87,95,102],"ol",{},[88,89,90,91,94],"li",{},"Open your ",[76,92,93],{},"FlowFuse"," editor.",[88,96,97,98,101],{},"From the main menu, select ",[76,99,100],{},"Manage palette → Install",".",[88,103,104,105],{},"Search for and install the following packages one by one:",[106,107,108,112,117],"ul",{},[88,109,110],{},[42,111,73],{},[88,113,114],{},[42,115,116],{},"@flowfuse\u002Fnode-red-dashboard",[88,118,119],{},[42,120,121],{},"@sumit_shinde_84\u002Fnode-red-dashboard-2-ui-webcam",[10,123,124,125,128,129,132,133,135,136,139],{},"Once installed, you’ll see the ",[76,126,127],{},"simple-ocr"," node under the ",[76,130,131],{},"Function"," category and the ",[76,134,82],{}," widget under the ",[76,137,138],{},"dashboard 2.0"," category in the left sidebar.",[64,141,143],{"id":142},"building-the-scanner","Building the Scanner",[10,145,146],{},"Now, let’s build a scanner dashboard that you can open on a mobile device, allowing the phone to act as a scanner for capturing product labels and serial numbers.",[10,148,149,153],{},[22,150],{"alt":151,"src":152},"Label Scanner Built with FlowFuse","\u002Fblog\u002F2025\u002F11\u002Fimages\u002Fflowfuse-scanner.gif",[29,154,155],{},[156,157,151],"span",{},[10,159,160,161,163,164,167],{},"To capture images directly from your browser, you can use the ",[76,162,78],{}," along with the ",[76,165,166],{},"Webcam widget",", let's install them first.",[169,170,172],"h4",{"id":171},"configuring-the-webcam-node","Configuring the Webcam Node",[85,174,175,181,184,191,216],{},[88,176,177,178,180],{},"Drag the ",[76,179,82],{}," widget onto your canvas.",[88,182,183],{},"Double-click the node to open its configuration.",[88,185,186,187,190],{},"Create a new ui group for it to render the feed (for example, ",[29,188,189],{},"OCR Scanner",").",[88,192,177,193,196,197,200,201,204,205,208,209,212,213,101],{},[76,194,195],{},"Button"," widget onto the canvas and set its label to ",[76,198,199],{},"Scan",". Select the appropriate ",[76,202,203],{},"group",", check ",[76,206,207],{},"Enable pointerdown event",", and set the ",[76,210,211],{},"payload"," to ",[42,214,215],{},"\"capture\"",[88,217,218,219,222,223,225,226,228],{},"Click ",[76,220,221],{},"Done",". When the button is clicked, it will send the ",[42,224,215],{}," payload, which will trigger the ",[76,227,82],{}," widget to capture an image.",[10,230,231,235],{},[22,232],{"alt":233,"src":234,"dataZoomable":26},"Scan Label Button Widget Configuration","\u002Fblog\u002F2025\u002F11\u002Fimages\u002Fscan-label-button.png",[29,236,233],{},[85,238,240],{"start":239},6,[88,241,242],{},"Deploy the flow",[10,244,245,246,249],{},"When deployed, this flow creates a dashboard interface with a live camera preview and a large Scan Label button. Each time you click Scan Label, the captured image is sent as a ",[42,247,248],{},"msg.payload.image"," containing a image buffer.",[251,252,253],"blockquote",{},[10,254,255],{},[29,256,257],{},"Tip: To correct a flipped or mirrored camera preview, open the three-dot menu (⋮) on the webcam widget and enable \"Mirror Image\".",[259,260,262],"h5",{"id":261},"handling-high-resolution-images","Handling High-Resolution Images",[10,264,265,266,269,270,273],{},"When capturing an image, if you encounter an error stating that the image size exceeds ",[76,267,268],{},"Dashboard 2.0’s"," ",[42,271,272],{},"maxHttpBufferSize",", you’ll need to reduce the image resolution or quality — otherwise, the dashboard connection may reset.",[10,275,276],{},"To fix this:",[85,278,279,285,300],{},[88,280,281,282,284],{},"Double-click the ",[76,283,82],{}," widget.",[88,286,287,288,291,292,295,296,299],{},"Adjust the ",[76,289,290],{},"image width",", ",[76,293,294],{},"height",", and ",[76,297,298],{},"quality"," parameters.",[88,301,302,303,306,307,310],{},"By default, these are set to ",[76,304,305],{},"640×480"," resolution and ",[76,308,309],{},"0.8"," quality.",[10,312,313,314,101],{},"You can also check the image size from the webcam output using ",[42,315,316],{},"msg.payload.sizeBytes",[169,318,320],{"id":319},"adding-the-ocr-node","Adding the OCR Node",[10,322,323],{},"Now, let’s add an OCR node to extract text from the captured images.",[85,325,326,338,344,359,369],{},[88,327,328,329,332,333,212,336,101],{},"Drag a ",[76,330,331],{},"Change"," node onto the canvas and set ",[42,334,335],{},"msg.payload",[42,337,248],{},[88,339,328,340,343],{},[76,341,342],{},"Simple OCR"," node onto the canvas.",[88,345,346,347,349,350,352,353,355,356,358],{},"Connect the output of the ",[76,348,82],{}," widget to the ",[76,351,331],{}," node, and then connect the ",[76,354,331],{}," node’s output to the ",[76,357,342],{}," node.",[88,360,361,362,365,366,368],{},"Add a ",[76,363,364],{},"Debug"," node and connect it to the ",[76,367,342],{}," node to view the results.",[88,370,218,371,373,374,101],{},[76,372,221],{},", then ",[76,375,376],{},"Deploy",[10,378,379,380,383,384,387],{},"Next, open the dashboard by clicking the ",[76,381,382],{},"Dashboard 2.0"," button in the right sidebar. Then, click the ",[76,385,386],{},"Scan Label"," button — the first click will activate your camera (make sure to grant your browser permission to access it).",[10,389,390,391,393,394,396],{},"Position the label in front of the camera, focus on it, and click ",[76,392,199],{}," again. The recognized text will appear in the ",[76,395,364],{}," panel.\nNow, you need to validate and trim the recognized text, and add a visual indicator to show a successful scan. Let’s set that up next.",[169,398,400],{"id":399},"validating-and-parsing-the-extracted-text","Validating and Parsing the Extracted Text",[10,402,403],{},"The OCR node returns raw text that may contain extra whitespace, line breaks, or unwanted characters. Let's add validation and parsing logic:",[85,405,406,411,416],{},[88,407,408,409,343],{},"Drag another ",[76,410,131],{},[88,412,413,414,358],{},"Connect it after the ",[76,415,127],{},[88,417,418],{},"Add the following code:",[35,420,424],{"className":421,"code":422,"language":423,"meta":26,"style":26},"language-javascript shiki shiki-themes github-light github-dark","\u002F\u002F Extract and clean OCR text\nlet text = (msg.payload.text || msg.payload || \"\")\n  .replace(\u002F[\\r\\n]+\u002Fg, ' ')\n  .replace(\u002F[^\\w\\s:]\u002Fg, '')\n  .replace(\u002F\\s+\u002Fg, ' ')\n  .trim();\n\n\u002F\u002F Match part number\nlet match = text.match(\u002F(?:Part\\s*No|No)[:\\s]+([0-9A-Z]{6,12})\u002Fi);\nlet part = match?.[1]?.trim() || null;\n\n\u002F\u002F Validate format: 6 digits + 2 letters + 2 digits\nlet valid = part ? \u002F^\\d{6}[A-Z]{2}\\d{2}$\u002F.test(part) : false;\n\n\u002F\u002F Build payload\nmsg.payload = {\n  success: valid,\n  partNumber: valid ? part : null,\n  timestamp: new Date().toISOString(),\n  notificationMsg: valid\n    ? `Label successfully scanned: ${part}`\n    : \"Scan failed — Invalid or unreadable label.\"\n};\n\nreturn msg;\n","javascript",[42,425,426,434,466,501,532,558,568,575,581,643,675,680,686,741,746,752,763,769,786,807,813,828,837,843,848],{"__ignoreMap":26},[156,427,430],{"class":428,"line":429},"line",1,[156,431,433],{"class":432},"sJ8bj","\u002F\u002F Extract and clean OCR text\n",[156,435,437,441,445,448,451,454,457,459,463],{"class":428,"line":436},2,[156,438,440],{"class":439},"szBVR","let",[156,442,444],{"class":443},"sVt8B"," text ",[156,446,447],{"class":439},"=",[156,449,450],{"class":443}," (msg.payload.text ",[156,452,453],{"class":439},"||",[156,455,456],{"class":443}," msg.payload ",[156,458,453],{"class":439},[156,460,462],{"class":461},"sZZnC"," \"\"",[156,464,465],{"class":443},")\n",[156,467,469,472,476,479,482,486,489,491,494,496,499],{"class":428,"line":468},3,[156,470,471],{"class":443},"  .",[156,473,475],{"class":474},"sScJk","replace",[156,477,478],{"class":443},"(",[156,480,481],{"class":461},"\u002F",[156,483,485],{"class":484},"sj4cs","[\\r\\n]",[156,487,488],{"class":439},"+",[156,490,481],{"class":461},[156,492,493],{"class":439},"g",[156,495,291],{"class":443},[156,497,498],{"class":461},"' '",[156,500,465],{"class":443},[156,502,504,506,508,510,512,515,518,521,523,525,527,530],{"class":428,"line":503},4,[156,505,471],{"class":443},[156,507,475],{"class":474},[156,509,478],{"class":443},[156,511,481],{"class":461},[156,513,514],{"class":484},"[",[156,516,517],{"class":439},"^",[156,519,520],{"class":484},"\\w\\s:]",[156,522,481],{"class":461},[156,524,493],{"class":439},[156,526,291],{"class":443},[156,528,529],{"class":461},"''",[156,531,465],{"class":443},[156,533,535,537,539,541,543,546,548,550,552,554,556],{"class":428,"line":534},5,[156,536,471],{"class":443},[156,538,475],{"class":474},[156,540,478],{"class":443},[156,542,481],{"class":461},[156,544,545],{"class":484},"\\s",[156,547,488],{"class":439},[156,549,481],{"class":461},[156,551,493],{"class":439},[156,553,291],{"class":443},[156,555,498],{"class":461},[156,557,465],{"class":443},[156,559,560,562,565],{"class":428,"line":239},[156,561,471],{"class":443},[156,563,564],{"class":474},"trim",[156,566,567],{"class":443},"();\n",[156,569,571],{"class":428,"line":570},7,[156,572,574],{"emptyLinePlaceholder":573},true,"\n",[156,576,578],{"class":428,"line":577},8,[156,579,580],{"class":432},"\u002F\u002F Match part number\n",[156,582,584,586,589,591,594,597,599,601,605,607,610,613,616,619,622,624,626,629,632,635,637,640],{"class":428,"line":583},9,[156,585,440],{"class":439},[156,587,588],{"class":443}," match ",[156,590,447],{"class":439},[156,592,593],{"class":443}," text.",[156,595,596],{"class":474},"match",[156,598,478],{"class":443},[156,600,481],{"class":461},[156,602,604],{"class":603},"sA_wV","(?:Part",[156,606,545],{"class":484},[156,608,609],{"class":439},"*",[156,611,612],{"class":603},"No",[156,614,615],{"class":439},"|",[156,617,618],{"class":603},"No)",[156,620,621],{"class":484},"[:\\s]",[156,623,488],{"class":439},[156,625,478],{"class":603},[156,627,628],{"class":484},"[0-9A-Z]",[156,630,631],{"class":439},"{6,12}",[156,633,634],{"class":603},")",[156,636,481],{"class":461},[156,638,639],{"class":439},"i",[156,641,642],{"class":443},");\n",[156,644,646,648,651,653,656,659,662,664,667,669,672],{"class":428,"line":645},10,[156,647,440],{"class":439},[156,649,650],{"class":443}," part ",[156,652,447],{"class":439},[156,654,655],{"class":443}," match?.[",[156,657,658],{"class":484},"1",[156,660,661],{"class":443},"]?.",[156,663,564],{"class":474},[156,665,666],{"class":443},"() ",[156,668,453],{"class":439},[156,670,671],{"class":484}," null",[156,673,674],{"class":443},";\n",[156,676,678],{"class":428,"line":677},11,[156,679,574],{"emptyLinePlaceholder":573},[156,681,683],{"class":428,"line":682},12,[156,684,685],{"class":432},"\u002F\u002F Validate format: 6 digits + 2 letters + 2 digits\n",[156,687,689,691,694,696,698,701,704,706,709,712,715,718,720,723,725,727,730,733,736,739],{"class":428,"line":688},13,[156,690,440],{"class":439},[156,692,693],{"class":443}," valid ",[156,695,447],{"class":439},[156,697,650],{"class":443},[156,699,700],{"class":439},"?",[156,702,703],{"class":461}," \u002F",[156,705,517],{"class":439},[156,707,708],{"class":484},"\\d",[156,710,711],{"class":439},"{6}",[156,713,714],{"class":484},"[A-Z]",[156,716,717],{"class":439},"{2}",[156,719,708],{"class":484},[156,721,722],{"class":439},"{2}$",[156,724,481],{"class":461},[156,726,101],{"class":443},[156,728,729],{"class":474},"test",[156,731,732],{"class":443},"(part) ",[156,734,735],{"class":439},":",[156,737,738],{"class":484}," false",[156,740,674],{"class":443},[156,742,744],{"class":428,"line":743},14,[156,745,574],{"emptyLinePlaceholder":573},[156,747,749],{"class":428,"line":748},15,[156,750,751],{"class":432},"\u002F\u002F Build payload\n",[156,753,755,758,760],{"class":428,"line":754},16,[156,756,757],{"class":443},"msg.payload ",[156,759,447],{"class":439},[156,761,762],{"class":443}," {\n",[156,764,766],{"class":428,"line":765},17,[156,767,768],{"class":443},"  success: valid,\n",[156,770,772,775,777,779,781,783],{"class":428,"line":771},18,[156,773,774],{"class":443},"  partNumber: valid ",[156,776,700],{"class":439},[156,778,650],{"class":443},[156,780,735],{"class":439},[156,782,671],{"class":484},[156,784,785],{"class":443},",\n",[156,787,789,792,795,798,801,804],{"class":428,"line":788},19,[156,790,791],{"class":443},"  timestamp: ",[156,793,794],{"class":439},"new",[156,796,797],{"class":474}," Date",[156,799,800],{"class":443},"().",[156,802,803],{"class":474},"toISOString",[156,805,806],{"class":443},"(),\n",[156,808,810],{"class":428,"line":809},20,[156,811,812],{"class":443},"  notificationMsg: valid\n",[156,814,816,819,822,825],{"class":428,"line":815},21,[156,817,818],{"class":439},"    ?",[156,820,821],{"class":461}," `Label successfully scanned: ${",[156,823,824],{"class":443},"part",[156,826,827],{"class":461},"}`\n",[156,829,831,834],{"class":428,"line":830},22,[156,832,833],{"class":439},"    :",[156,835,836],{"class":461}," \"Scan failed — Invalid or unreadable label.\"\n",[156,838,840],{"class":428,"line":839},23,[156,841,842],{"class":443},"};\n",[156,844,846],{"class":428,"line":845},24,[156,847,574],{"emptyLinePlaceholder":573},[156,849,851,854],{"class":428,"line":850},25,[156,852,853],{"class":439},"return",[156,855,856],{"class":443}," msg;\n",[251,858,859],{},[10,860,861,862,866],{},"Tip: You don’t need to know JavaScript to create a function for validating and extracting the label text you’re scanning — just tell the ",[56,863,865],{"href":864},"\u002Fblog\u002F2025\u002F07\u002Fflowfuse-ai-assistant-better-node-red-manufacturing\u002F","FlowFuse Expert"," what you want, and it will generate it for you.",[85,868,869],{"start":503},[88,870,218,871,101],{},[76,872,221],{},[10,874,875],{},"This function cleans the text, validates that something was detected, and attempts to extract structured data like serial numbers or part numbers using regular expressions.",[169,877,879],{"id":878},"adding-visual-feedback","Adding Visual Feedback",[10,881,882],{},"Users need immediate feedback when a scan succeeds or fails. Let's add both visual indicators:",[85,884,885,890,898,904,932,935],{},[88,886,328,887,889],{},[76,888,331],{}," node onto the canvas and connect it to the validation Function node.",[88,891,892,893,212,895,101],{},"Configure the Change node to set ",[42,894,335],{},[42,896,897],{},"msg.payload.notificationMsg",[88,899,328,900,903],{},[76,901,902],{},"ui-notification"," widget onto the canvas.",[88,905,906,907],{},"Double-click the ui-notification node to configure it:\n",[106,908,909,916,925],{},[88,910,911,912,915],{},"Select or create a ",[76,913,914],{},"UI Base"," configuration",[88,917,918,919,212,922],{},"Set the ",[76,920,921],{},"position",[76,923,924],{},"center",[88,926,927,928,931],{},"Optionally, configure the ",[76,929,930],{},"timeout"," duration (e.g., 3000ms for 3 seconds)",[88,933,934],{},"Connect the Change node output to the ui-notification node input.",[88,936,218,937,79,939,941],{},[76,938,221],{},[76,940,376],{}," the flow.",[10,943,944],{},"Now when you scan a label:",[106,946,947,954],{},[88,948,949,950,953],{},"If the scan is successful, you'll see a green notification with \"Label successfully scanned: ",[156,951,952],{},"part number","\"",[88,955,956],{},"If the scan fails, you'll see a warning notification with \"Scan failed — Invalid or unreadable label\"",[10,958,959],{},"Your OCR scanning system is now complete! You can test it by opening the dashboard on your mobile device, positioning a product label in front of the camera, and clicking the Scan button. The system will capture the image, extract the text, validate it, and provide immediate visual feedback on the scan result.",[961,962],"render-flow",{":height":963,"flow":964},"300","W3siaWQiOiI2MDRmNDY2ZDIyZTExNTdiIiwidHlwZSI6Imdyb3VwIiwieiI6IjljZjgyYjY4YmI4OWU4Y2UiLCJzdHlsZSI6eyJzdHJva2UiOiIjYjJiM2JkIiwic3Ryb2tlLW9wYWNpdHkiOiIxIiwiZmlsbCI6IiNmMmYzZmIiLCJmaWxsLW9wYWNpdHkiOiIwLjUiLCJsYWJlbCI6dHJ1ZSwibGFiZWwtcG9zaXRpb24iOiJudyIsImNvbG9yIjoiIzMyMzMzYiJ9LCJub2RlcyI6WyJhMjFjM2M0N2QxZjFjZjEwIiwiM2E3MWU4MDA0MTVhMzk2NiIsImNlMzgzODU2MjkzZmU3ZTgiLCI4ODU4ZGE5ZDAxNjdmYTU5IiwiNDUwOTNmZGQ5ZThjNzM3NCIsIjIyM2JiMDYwYmQ4OTZiZTAiLCJjNGE5MWY1YjUyYTljNDY5IiwiMDIwZTExZTc0MDE1NDQ4OSIsIjZhZDZiYWQ2OTVjMzRjN2IiLCIzMWQyZWIzN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2Q3IiwicHJpbWFyeSI6IiMwMDk0Y2UiLCJiZ1BhZ2UiOiIjZWVlZWVlIiwiZ3JvdXBCZyI6IiNmZmZmZmYiLCJncm91cE91dGxpbmUiOiIjY2NjY2NjIn0sInNpemVzIjp7ImRlbnNpdHkiOiJkZWZhdWx0IiwicGFnZVBhZGRpbmciOiIxMnB4IiwiZ3JvdXBHYXAiOiIxMnB4IiwiZ3JvdXBCb3JkZXJSYWRpdXMiOiI0cHgiLCJ3aWRnZXRHYXAiOiIxMnB4In19LHsiaWQiOiJiNWI4YmZiZTU2Yzg3NjA1IiwidHlwZSI6Imdsb2JhbC1jb25maWciLCJlbnYiOltdLCJtb2R1bGVzIjp7IkBzdW1pdF9zaGluZGVfODQvbm9kZS1yZWQtY29udHJpYi1zaW1wbGUtb2NyIjoiMC4xLjEiLCJAc3VtaXRfc2hpbmRlXzg0L25vZGUtcmVkLWRhc2hib2FyZC0yLXVpLXdlYmNhbSI6IjEuMS4yIiwiQGZsb3dmdXNlL25vZGUtcmVkLWRhc2hib2FyZCI6IjEuMjkuMCJ9fV0=",[10,966,967],{},"If you want to fully automate this process, you can set up a fixed camera positioned where products pass through on the production line. This approach eliminates manual scanning, but it will require proper camera mounting, lighting setup, and trigger mechanisms to capture images at the right moment as products move past the camera.",[10,969,970,971,975,976,979,980,984],{},"Furthermore, you can push scanned label data to a database. The easiest way to do this is using ",[56,972,974],{"href":973},"\u002Fblog\u002F2025\u002F08\u002Fgetting-started-with-flowfuse-tables\u002F","FlowFuse Tables",", which is a built-in database service managed by FlowFuse. You'll find the ",[76,977,978],{},"query"," node in the palette that not only simplifies setup by connecting to the FlowFuse Tables database without any setup, it also has access to the integrated FlowFuse Expert, allowing you to ",[56,981,983],{"href":982},"\u002Fblog\u002F2025\u002F09\u002Fai-assistant-flowfuse-tables\u002F","generate queries using natural language"," — no SQL skills required!",[48,986,988],{"id":987},"what's-next?","What's Next?",[10,990,991],{},"You've just built a working OCR system that turns any mobile device into a label scanner. It captures images, reads text, validates the data, and gives instant feedback—all without writing hundreds of lines of code.",[10,993,994],{},"This is just the starting point. Your system can grow with your needs: connect it to your inventory database, add support for different label formats, set up multiple scanning stations, or integrate it with your existing ERP system. The foundation is there.",[10,996,997],{},"Also, this OCR scanner is just one piece of what's possible with FlowFuse. Imagine connecting all your manufacturing systems—machine data, quality checks, inventory tracking, production metrics—into a unified industrial data platform where everything flows together seamlessly.",[10,999,1000],{},"FlowFuse helps manufacturers like you break down data silos and build connected, intelligent operations. From shop floor to top floor, your data works together.",[10,1002,1003,269,1006,1010],{},[76,1004,1005],{},"See it in action.",[56,1007,1009],{"href":1008},"\u002Fbook-demo\u002F","Book a demo"," and discover how FlowFuse can transform your entire facility—not just your label scanning.",[10,1012,1013,1014,101],{},"Or start building today with our ",[56,1015,1017],{"href":58,"rel":1016},[60],"14-day free trial",[1019,1020,1021],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sA_wV, html code.shiki .sA_wV{--shiki-default:#032F62;--shiki-dark:#DBEDFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":26,"searchDepth":436,"depth":436,"links":1023},[1024,1028],{"id":50,"depth":436,"text":51,"children":1025},[1026,1027],{"id":66,"depth":468,"text":67},{"id":142,"depth":468,"text":143},{"id":987,"depth":436,"text":988},"md",{"navTitle":5,"excerpt":1031},{"type":7,"value":1032},[1033],[10,1034,12],{},"\u002Fblog\u002F2025\u002F11\u002Fbuilding-label-scanner-with-flowfuse",{"title":5,"description":12},"blog\u002F2025\u002F11\u002Fbuilding-label-scanner-with-flowfuse","jGRAlOB85lemlhw-Hk96VZXPGWi1IdMdsAPRi_y1SQU",1780132428659]