6#ifndef __OPENCV_BARCODE_HPP__
7#define __OPENCV_BARCODE_HPP__
9#include <opencv2/core.hpp>
23 NONE, EAN_8, EAN_13, UPC_A, UPC_E, UPC_EAN_EXTENSION
26static inline std::ostream &operator<<(std::ostream &out,
const BarcodeType &barcode_type)
30 case BarcodeType::EAN_8:
33 case BarcodeType::EAN_13:
36 case BarcodeType::UPC_E:
39 case BarcodeType::UPC_A:
42 case BarcodeType::UPC_EAN_EXTENSION:
43 out <<
"UPC_EAN_EXTENSION";
59 CV_WRAP
BarcodeDetector(
const std::string &prototxt_path =
"",
const std::string &model_path =
"");
70 CV_WRAP
bool detect(InputArray img,
OutputArray points)
const;
81 CV_WRAP
bool decode(InputArray img, InputArray points, CV_OUT std::vector<std::string> &decoded_info, CV_OUT
82 std::vector<BarcodeType> &decoded_type)
const;
91 CV_WRAP
bool detectAndDecode(InputArray img, CV_OUT std::vector<std::string> &decoded_info, CV_OUT
92 std::vector<BarcodeType> &decoded_type,
OutputArray points = noArray())
const;
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
Definition: barcode.hpp:52
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74