Skip to content

Commit 79467a7

Browse files
committed
generate marker
1 parent fdfaa7e commit 79467a7

14 files changed

+72
-1
lines changed

.vscode/settings.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"terminal.background": "#1D1F21",
4+
"terminal.foreground": "#C5C8C6",
5+
"terminalCursor.background": "#C5C8C6",
6+
"terminalCursor.foreground": "#C5C8C6",
7+
"terminal.ansiBlack": "#1D1F21",
8+
"terminal.ansiBlue": "#3971ED",
9+
"terminal.ansiBrightBlack": "#969896",
10+
"terminal.ansiBrightBlue": "#3971ED",
11+
"terminal.ansiBrightCyan": "#3971ED",
12+
"terminal.ansiBrightGreen": "#198844",
13+
"terminal.ansiBrightMagenta": "#A36AC7",
14+
"terminal.ansiBrightRed": "#CC342B",
15+
"terminal.ansiBrightWhite": "#FFFFFF",
16+
"terminal.ansiBrightYellow": "#FBA922",
17+
"terminal.ansiCyan": "#3971ED",
18+
"terminal.ansiGreen": "#198844",
19+
"terminal.ansiMagenta": "#A36AC7",
20+
"terminal.ansiRed": "#CC342B",
21+
"terminal.ansiWhite": "#C5C8C6",
22+
"terminal.ansiYellow": "#FBA922"
23+
}
24+
}

Keyword_finder/keyword_finder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
b = item.splitlines()
1010

1111
words = b[0].split()
12+
1213

1314
for word in words:
1415
counts.setdefault(word, 0)
@@ -20,7 +21,7 @@
2021
key=lambda x: x[+1])
2122

2223

23-
f = open("output.txt", "w")
24+
f = open("output.txt", "w")
2425

2526
num = 0
2627
for t in result:

Marker_generator/Readme.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
# **Generate Marker**
3+
## best for AR and VR and job describtion
4+
## ![txt2img-stable2](marker_image/marker_image0.png)
5+
6+
7+
```python
8+
9+
import cv2 as cv
10+
from cv2 import aruco
11+
12+
13+
Input1 = input("MARKER SIZE :: ")
14+
Input2 = input("MARKER Num :: ")
15+
16+
market_dict = cv.aruco.getPredefinedDictionary(cv.aruco.DICT_6X6_250)
17+
18+
MARKER_SIZE = int(Input1)
19+
20+
for ID in range(int(Input2)):
21+
marker_image = aruco.generateImageMarker(market_dict,ID ,MARKER_SIZE )
22+
23+
24+
cv.imshow("img" , marker_image)
25+
cv.imwrite(f"marker_image/marker_image{ID}.png" ,marker_image)
26+
cv.waitKey(1)
27+
28+
```

Marker_generator/marker_generator.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import cv2 as cv
2+
from cv2 import aruco
3+
4+
5+
Input1 = input("MARKER SIZE :: ")
6+
Input2 = input("MARKER Num :: ")
7+
8+
market_dict = cv.aruco.getPredefinedDictionary(cv.aruco.DICT_6X6_250)
9+
10+
MARKER_SIZE = int(Input1)
11+
12+
for ID in range(int(Input2)):
13+
marker_image = aruco.generateImageMarker(market_dict,ID ,MARKER_SIZE )
14+
15+
16+
cv.imshow("img" , marker_image)
17+
cv.imwrite(f"marker_image/marker_image{ID}.png" ,marker_image)
18+
cv.waitKey(1)
2.89 KB
Loading
3.07 KB
Loading
3.03 KB
Loading
2.9 KB
Loading
3.04 KB
Loading
2.9 KB
Loading

0 commit comments

Comments
 (0)