init
12
data.csv
Normal file
@@ -0,0 +1,12 @@
|
||||
#,X,Y,Z,Planeet
|
||||
2,-0.98181527372170,0.00000000000000,-0.18983879552606,
|
||||
3,-0.73564182776852,0.64449044863310,-0.20847820715387,
|
||||
4,-0.73564182776852,-0.64449044863310,-0.20847820715387,
|
||||
11,-0.33732482508860,-0.39831700267993,0.85296865578697,
|
||||
1,-0.20847820715387,0.73564182776852,-0.64449044863310,
|
||||
10,0.00000000000000,-0.18983879552606,-0.98181527372170,
|
||||
7,0.33732482508860,-0.39831700267993,-0.85296865578697,
|
||||
6,0.39831700267993,-0.85296865578697,-0.33732482508860,
|
||||
9,0.39831700267993,-0.85296865578697,0.33732482508860,Zauber
|
||||
8,0.64449044863310,-0.20847820715387,0.73564182776852,
|
||||
5,0.98181527372170,0.00000000000000,-0.18983879552606,
|
||||
|
75
finder.py
Normal file
@@ -0,0 +1,75 @@
|
||||
import cv2
|
||||
from matplotlib import pyplot as plt
|
||||
from numpy import floor
|
||||
|
||||
method = cv2.TM_SQDIFF_NORMED
|
||||
|
||||
# Read the images from the file
|
||||
energy_image = cv2.imread('glyphs-a-energy.png', cv2.IMREAD_GRAYSCALE)
|
||||
large_image = cv2.imread('radofdispear.png', cv2.IMREAD_GRAYSCALE)
|
||||
|
||||
orb = cv2.ORB_create()
|
||||
|
||||
# screenshot = cv2.resize(large_image, down_points, interpolation= cv2.INTER_LINEAR)
|
||||
|
||||
|
||||
for i in range(64):
|
||||
mod8 = i % 8
|
||||
|
||||
x1 = (int(floor(i / 8))) * 256
|
||||
y1 = (int(mod8)) * 192
|
||||
|
||||
x2 = x1 + 256
|
||||
y2 = y1 + 192
|
||||
|
||||
# print(x1, y1, x2, y2)
|
||||
small_image = energy_image[y1:y2, x1:x2]
|
||||
# print(small_image)
|
||||
plt.imshow(small_image)
|
||||
plt.show()
|
||||
|
||||
kp1, des1 = orb.detectAndCompute(small_image, None)
|
||||
kp2, des2 = orb.detectAndCompute(large_image, None)
|
||||
|
||||
img1 = small_image
|
||||
img2 = large_image
|
||||
|
||||
# result = cv2.matchTemplate(small_image, large_image, method)
|
||||
|
||||
# print(result)
|
||||
bf = cv2.BFMatcher(cv2.NORM_HAMMING, crossCheck=True)
|
||||
# Match descriptors.
|
||||
matches = bf.match(des1, des2)
|
||||
# Sort them in the order of their distance.
|
||||
matches = sorted(matches, key=lambda x: x.distance)
|
||||
# Draw first 10 matches.
|
||||
img3 = cv2.drawMatches(img1, kp1, img2, kp2, matches[:10], None, flags=cv2.DrawMatchesFlags_NOT_DRAW_SINGLE_POINTS)
|
||||
|
||||
img3 = cv2.resize(img3, dsize=(int(3840 / 2), int(2180 / 2)))
|
||||
|
||||
cv2.imshow('output', img3)
|
||||
cv2.waitKey(0)
|
||||
break
|
||||
# break
|
||||
# # We want the minimum squared difference
|
||||
# mn, _, mnLoc, _ = cv2.minMaxLoc(result)
|
||||
# #
|
||||
# # Draw the rectangle:
|
||||
# # Extract the coordinates of our best match
|
||||
# MPx, MPy = mnLoc
|
||||
#
|
||||
# print(MPx, MPy)
|
||||
# #
|
||||
# # # Step 2: Get the size of the template. This is the same size as the match.
|
||||
# # trows, tcols = small_image.shape[:2]
|
||||
# #
|
||||
# # # Step 3: Draw the rectangle on large_image
|
||||
# # cv2.rectangle(large_image, (MPx, MPy), (MPx + tcols, MPy + trows), (0, 0, 255), 2)
|
||||
# cv2.imshow('output', small_image)
|
||||
# cv2.waitKey(0)
|
||||
# break
|
||||
# # Display the original image with the rectangle around the match.
|
||||
# cv2.imshow('output', large_image)
|
||||
#
|
||||
# # The image is only displayed if we call this
|
||||
#
|
||||
BIN
glyphs-a-energy.png
Normal file
|
After Width: | Height: | Size: 362 KiB |
BIN
glyphs/glyph-a-1.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-10.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
glyphs/glyph-a-11.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-12.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
glyphs/glyph-a-13.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-14.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-15.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-16.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-17.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
glyphs/glyph-a-18.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-19.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-2.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-20.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-21.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-22.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-23.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-24.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
glyphs/glyph-a-25.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-26.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-27.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
glyphs/glyph-a-28.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
glyphs/glyph-a-29.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-3.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-30.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-31.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-32.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-33.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-34.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-35.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-36.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-37.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-38.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-39.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-4.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-40.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
glyphs/glyph-a-41.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
glyphs/glyph-a-42.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-43.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-44.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-45.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
glyphs/glyph-a-46.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-47.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-48.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-49.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-5.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-50.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-51.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-52.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-53.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-54.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-55.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
glyphs/glyph-a-56.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-57.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-58.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-59.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-6.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
glyphs/glyph-a-60.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-61.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-62.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
glyphs/glyph-a-63.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
glyphs/glyph-a-64.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
glyphs/glyph-a-7.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
glyphs/glyph-a-8.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
glyphs/glyph-a-9.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
glyphs/glyph-b-1.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
glyphs/glyph-b-10.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-11.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-12.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
glyphs/glyph-b-13.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
glyphs/glyph-b-14.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-15.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-16.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
glyphs/glyph-b-17.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-18.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-19.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-2.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
glyphs/glyph-b-20.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-21.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
glyphs/glyph-b-22.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
glyphs/glyph-b-23.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-24.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
glyphs/glyph-b-25.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-26.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
glyphs/glyph-b-27.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-28.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-29.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
glyphs/glyph-b-3.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
glyphs/glyph-b-30.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-31.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
glyphs/glyph-b-32.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
glyphs/glyph-b-33.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
glyphs/glyph-b-34.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-35.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-36.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
glyphs/glyph-b-37.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
glyphs/glyph-b-38.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
glyphs/glyph-b-39.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |