Selaa lähdekoodia

remove 2 unnesservcery files from git

master
Andreas Demmelbauer 3 vuotta sitten
vanhempi
commit
be0a043249
2 muutettua tiedostoa jossa 0 lisäystä ja 240 poistoa
  1. +0
    -197
      mask.svg
  2. +0
    -43
      thermal-image-extractor.py

+ 0
- 197
mask.svg Näytä tiedosto

@@ -1,197 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
width="1920"
height="1080"
viewBox="0 0 1920 1080"
version="1.1"
id="svg8"
sodipodi:docname="mask.svg"
inkscape:version="1.1 (ce6663b3b7, 2021-05-25)"
enable-background="new"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<style
id="style212248">
#image156515 {
fill:#f00;
}
</style>
<defs
id="defs2">
<filter
style="color-interpolation-filters:sRGB;"
inkscape:label="Blur"
id="filter156128"
x="-0.225"
y="-0.28125"
width="1.45"
height="1.5625">
<feGaussianBlur
stdDeviation="20 20"
result="fbSourceGraphic"
id="feGaussianBlur156126" />
<feColorMatrix
result="fbSourceGraphicAlpha"
in="fbSourceGraphic"
values="0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"
id="feColorMatrix156166" />
<feGaussianBlur
id="feGaussianBlur156168"
stdDeviation="20 20"
result="fbSourceGraphic"
in="fbSourceGraphic" />
<feColorMatrix
result="fbSourceGraphicAlpha"
in="fbSourceGraphic"
values="0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"
id="feColorMatrix156188" />
<feGaussianBlur
id="feGaussianBlur156190"
stdDeviation="20 20"
result="blur"
in="fbSourceGraphic" />
</filter>
<mask
maskUnits="userSpaceOnUse"
id="mask156376">
<rect
id="rect156378"
width="640"
height="512"
x="762.2807"
y="227.90842"
style="fill:#ffffff;filter:url(#filter156128)"
transform="matrix(0.77703373,0,0,0.74018882,207.24036,100.70559)" />
</mask>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.28748238"
inkscape:cx="1087.0231"
inkscape:cy="-401.76375"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
scale-x="1"
inkscape:window-width="1920"
inkscape:window-height="1016"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
inkscape:pagecheckerboard="0" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-11.249983)"
style="">
<g
id="g155860"
transform="translate(-728.00885,-195.75467)"
mask="url(#mask156376)">
<image
width="640"
height="512"
preserveAspectRatio="none"
xlink:href="source_images_full/20200621_125946_R.jpg"
id="image155751"
x="728.00885"
y="207.00465" />
</g>
<image
width="640"
height="512"
preserveAspectRatio="none"
xlink:href="source_images_full/20200621_125920_R.jpg"
id="image156515"
x="780"
y="-80.464302"
style="" />
<image
width="640"
height="512"
preserveAspectRatio="none"
xlink:href="source_images_full/20200621_125921_R.jpg"
id="image156527"
x="1368.5714"
y="616.67853" />
<image
width="640"
height="512"
preserveAspectRatio="none"
xlink:href="source_images_full/20200621_125922_R.jpg"
id="image156539"
x="1751.8823"
y="-283.38199" />
<image
width="640"
height="512"
preserveAspectRatio="none"
xlink:href="source_images_full/20200621_125924_R.jpg"
id="image156563"
x="1785.2552"
y="-97.210777" />
<image
width="640"
height="512"
preserveAspectRatio="none"
xlink:href="source_images_full/20200621_125923_R.jpg"
id="image156551"
x="1772.9646"
y="-189.51526" />
<image
width="640"
height="512"
preserveAspectRatio="none"
xlink:href="source_images_full/20200621_125925_R.jpg"
id="image156575"
x="1800.0695"
y="1.4803357" />
<image
width="640"
height="512"
preserveAspectRatio="none"
xlink:href="source_images_full/20200621_125926_R.jpg"
id="image156587"
x="1810.1398"
y="115.43749" />
<image
width="640"
height="512"
preserveAspectRatio="none"
xlink:href="source_images_full/20200621_125927_R.jpg"
id="image156599"
x="1830.4902"
y="197.49077" />
<path
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 2391.8823,-283.38199 78.6079,480.87276"
id="path156735" />
</g>
</svg>

+ 0
- 43
thermal-image-extractor.py Näytä tiedosto

@@ -1,43 +0,0 @@
import cv2
# import flirimageextractor
# flir = flirimageextractor.FlirImageExtractor()
# flir.process_image('source_images_full/20200621_125936_R.jpg',RGB=True)
# c = flir.get_metadata('source_images_full/20200621_125936_R.jpg')
# img = flir.extract_embedded_image()

import flirimageextractor
from matplotlib import cm
import numpy as np
# flir = flirimageextractor.FlirImageExtractor()
# flir.process_image('source_images_full/20200621_125936_R.jpg')
# flir.save_images()
# flir.plot()



flir = flirimageextractor.FlirImageExtractor()
flir.process_image('source_images_full/20200621_125936_R.jpg')
# img = flir.save_images() #min=0,max=64,
# print(dir(img))
# print(img)
thermal_img_np = flir.thermal_image_np
h,w = thermal_img_np.shape
# print(flir.flir_img_bytes())

print(thermal_img_np)
print(type(thermal_img_np[0][0]))
print(h)
print(w)

# cv2.imdecode(thermal_img_np)

multiplied_image = cv2.multiply(thermal_img_np, 1000)

cv2.imwrite('color_img.png', multiplied_image.astype(np.uint16))



# img.astype('uint8')

# image = cv2.imdecode(thermal_img_np,4)
# print('Image Dimensions :', image.shape)

Ladataan…
Peruuta
Tallenna