UWARG Computer Vision
qr_identifier.h
1 /*
2  This file is part of WARG's computer-vision
3 
4  Copyright (c) 2015, Waterloo Aerial Robotics Group (WARG)
5  All rights reserved.
6 
7  Redistribution and use in source and binary forms, with or without
8  modification, are permitted provided that the following conditions are met:
9  1. Redistributions of source code must retain the above copyright
10  notice, this list of conditions and the following disclaimer.
11  2. Redistributions in binary form must reproduce the above copyright
12  notice, this list of conditions and the following disclaimer in the
13  documentation and/or other materials provided with the distribution.
14  3. Usage of this code MUST be explicitly referenced to WARG and this code
15  cannot be used in any competition against WARG.
16  4. Neither the name of the WARG nor the names of its contributors may be used
17  to endorse or promote products derived from this software without specific
18  prior written permission.
19 
20  THIS SOFTWARE IS PROVIDED BY WARG ''AS IS'' AND ANY
21  EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23  DISCLAIMED. IN NO EVENT SHALL WARG BE LIABLE FOR ANY
24  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31 
32 #ifndef QR_IDENTIFIER_H_INCLUDED
33 #define QR_IDENTIFIER_H_INCLUDED
34 
35 #include <string>
36 #include <memory>
37 #include <opencv2/core/core.hpp>
38 #include <zbar.h>
39 
49 std::unique_ptr<std::string> qr_identifier(cv::Mat & img);
50 
51 #endif // QR_IDENTIFIER_H_INCLUDED