This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import cv2 | |
| import numpy as np | |
| FULL = "full.jpg" | |
| CROP = "crop.jpg" | |
| def template_matching(full, template, start=0.1, stop=1.0, step=0.1): | |
| crop_full = cv2.resize(template, tuple(np.roll(full.shape, 1))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import cv2 | |
| import numpy as np | |
| from math import sqrt, acos | |
| from optparse import OptionParser | |
| #FULL = "full.jpg" | |
| #CROP = "crop.jpg" | |
| #FULL = "pleiades_hyades_50percent.jpg" | |
| #CROP = "pleiades_hyades_50percent_crop.jpg" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| find . -name "*.jpg" -type f -print0 | while read -d $'\0' file | |
| do | |
| #echo "$file" | |
| # get resolution via jhead | |
| res=$(jhead "$file" 2>/dev/null | grep Resolution) | |
| # extract x and y resolution | |
| x=$(echo $res | awk '{print $3}') | |
| y=$(echo $res | awk '{print $5}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * $Id: scanbd.conf 241 2017-04-19 07:53:25Z wimalopaan $ | |
| * | |
| * scanbd - KMUX scanner button daemon | |
| * | |
| * Copyright (C) 2008 - 2017 Wilhelm Meier (wilhelm.wm.meier@googlemail.com) | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 2 of the License, or |