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
BinaryBitmap.h
00001 #ifndef __BINARYBITMAP_H__ 00002 #define __BINARYBITMAP_H__ 00003 00004 /* 00005 * BinaryBitmap.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/common/Counted.h> 00024 #include <zxing/common/BitMatrix.h> 00025 #include <zxing/common/BitArray.h> 00026 #include <zxing/Binarizer.h> 00027 00028 namespace zxing { 00029 00030 class BinaryBitmap : public Counted { 00031 private: 00032 Ref<Binarizer> binarizer_; 00033 00034 public: 00035 BinaryBitmap(Ref<Binarizer> binarizer); 00036 virtual ~BinaryBitmap(); 00037 00038 Ref<BitArray> getBlackRow(int y, Ref<BitArray> row); 00039 Ref<BitMatrix> getBlackMatrix(); 00040 00041 Ref<LuminanceSource> getLuminanceSource() const; 00042 00043 int getWidth() const; 00044 int getHeight() const; 00045 00046 bool isRotateSupported() const; 00047 Ref<BinaryBitmap> rotateCounterClockwise(); 00048 00049 bool isCropSupported() const; 00050 Ref<BinaryBitmap> crop(int left, int top, int width, int height); 00051 00052 }; 00053 00054 } 00055 00056 #endif /* BINARYBITMAP_H_ */
Generated on Tue Jul 12 2022 18:38:05 by 1.7.2