Sample program showing how to connect GR-PEACH into Watson IoT through mbed Connector and Watson's Connector Bridge
Dependencies: AsciiFont DisplayApp GR-PEACH_video LCD_shield_config LWIPBP3595Interface_STA_for_mbed-os USBDevice
QRCodeReader.h
00001 // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 00002 #ifndef __QR_CODE_READER_H__ 00003 #define __QR_CODE_READER_H__ 00004 00005 /* 00006 * QRCodeReader.h 00007 * zxing 00008 * 00009 * Copyright 2010 ZXing authors All rights reserved. 00010 * 00011 * Licensed under the Apache License, Version 2.0 (the "License"); 00012 * you may not use this file except in compliance with the License. 00013 * You may obtain a copy of the License at 00014 * 00015 * http://www.apache.org/licenses/LICENSE-2.0 00016 * 00017 * Unless required by applicable law or agreed to in writing, software 00018 * distributed under the License is distributed on an "AS IS" BASIS, 00019 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00020 * See the License for the specific language governing permissions and 00021 * limitations under the License. 00022 */ 00023 00024 #include <zxing/Reader.h> 00025 #include <zxing/qrcode/decoder/Decoder.h> 00026 #include <zxing/DecodeHints.h> 00027 00028 namespace zxing { 00029 namespace qrcode { 00030 00031 class QRCodeReader : public Reader { 00032 private: 00033 Decoder decoder_; 00034 00035 protected: 00036 Decoder& getDecoder(); 00037 00038 public: 00039 QRCodeReader(); 00040 virtual ~QRCodeReader(); 00041 00042 Ref<Result> decode(Ref<BinaryBitmap> image, DecodeHints hints); 00043 }; 00044 00045 } 00046 } 00047 00048 #endif // __QR_CODE_READER_H__
Generated on Thu Jul 14 2022 21:25:54 by 1.7.2