This is the sample program that can see the decode result of barcode data on Watson IoT.

Dependencies:   AsciiFont DisplayApp GR-PEACH_video LCD_shield_config LWIPBP3595Interface_STA_for_mbed-os USBDevice

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Reader.h Source File

Reader.h

00001 #ifndef __READER_H__
00002 #define __READER_H__
00003 
00004 /*
00005  *  Reader.h
00006  *  zxing
00007  *
00008  *  Copyright 2010 ZXing authors All rights reserved.
00009  *
00010  * Licensed under the Apache License, Version 2.0 (the "License");
00011  * you may not use this file except in compliance with the License.
00012  * You may obtain a copy of the License at
00013  *
00014  *      http://www.apache.org/licenses/LICENSE-2.0
00015  *
00016  * Unless required by applicable law or agreed to in writing, software
00017  * distributed under the License is distributed on an "AS IS" BASIS,
00018  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00019  * See the License for the specific language governing permissions and
00020  * limitations under the License.
00021  */
00022 
00023 #include <zxing/BinaryBitmap.h>
00024 #include <zxing/Result.h>
00025 #include <zxing/DecodeHints.h>
00026 
00027 namespace zxing {
00028 
00029  class Reader : public Counted {
00030   protected:
00031    Reader() {}
00032   public:
00033    virtual Ref<Result> decode(Ref<BinaryBitmap> image);
00034    virtual Ref<Result> decode(Ref<BinaryBitmap> image, DecodeHints hints) = 0;
00035    virtual ~Reader();
00036 };
00037 
00038 }
00039 
00040 #endif // __READER_H__