read Barcode is showing error- Undefined function or variable 'readBarcode'.

clc;
clear;
obj=webcam;
img=snapshot(obj);
msg=readBarcode(img);
disp("message="+msg);
After I tried to run this basic program of barcode reading, I found this error message of [Undefined function or variable 'readBarcode'.]
Now, I want to know, why this error happened and what can be done?

답변 (2개)

Star Strider
Star Strider 2021년 5월 26일

2 개 추천

According to the documentation, the readBarcode function was introduced in R2020a.
The version posted is R2019a, so to use it, it will be necessary to upgrade to R2020a.
Jan
Jan 2021년 5월 25일

0 개 추천

Do you have a license for the Computer Vision Toolbox?

댓글 수: 4

how to check that?
I have this Computer Vision Toolbox installed in the matlab.
In 'manage add ons' it is showing that, the computer vision toolbox is installed.
Check this by:
ver
Actually the function should be found, if the toolbox is installed. What does this reply:
which('readBarcode')
Ok, I will try and will get back to you, if the same problem still exists.
Maybe you need to rehash the toolbox cache:
rehash toolboxcache

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

제품

릴리스

R2019a

태그

질문:

2021년 5월 25일

댓글:

2021년 6월 13일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by