Skip to content

Instantly share code, notes, and snippets.

View mshabunin's full-sized avatar
🌚

Maksim Shabunin mshabunin

🌚
  • Nizhny Novgorod, Russia
  • 18:01 (UTC +03:00)
View GitHub Profile
@mshabunin
mshabunin / logo.cpp
Created January 29, 2020 09:11
Drawing OpenCV logo
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace cv;
using namespace std;
@mshabunin
mshabunin / build_opencv_msvc_arm.sh
Created March 11, 2020 15:37
Build OpenCV for ARM64 in Visual Studio
#!/bin/bash
set -e
cmake -G"Visual Studio 16 2019" \
-A ARM64 \
-DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_SYSTEM_VERSION=10.0 \
-DCMAKE_SYSTEM_PROCESSOR=ARM64 \
-DWITH_IPP=OFF \
@mshabunin
mshabunin / contours.cpp
Created May 14, 2020 13:13
Pixels and contours
#include <iostream>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
using namespace cv;
using namespace std;
int main()

The OpenCV repository has several branches with different contribution policies.

Common rules for all branches

  • Your development branch name must differ from the names of branches in the upstream OpenCV repository, i.e. your branch must NOT be named 2.4, 3.4, 4.x, 5.x, or master/next (it's a technical requirement specific to our continuous integration system to properly test multi-repository patches with opencv_extra/opencv_contrib)
  • Multiple related commits should be squashed into one. A pull request must contain either a single commit, or several unrelated commits (e.g, commit with test + commit with code fix)

QRCode

bool detect(InputArray img, OutputArray points) const;
string decode(InputArray img, InputArray points, OutputArray straight_qrcode = noArray()) const;
string detectAndDecode(InputArray img, 
                       OutputArray points=noArray(), 
                       OutputArray straight_qrcode = noArray()) const;
// + curved
bool detectMulti(InputArray img, OutputArray points) const;
bool decodeMulti(InputArray img,