Skip to content

Commit cc775db

Browse files
committed
add v2
1 parent 1ec6177 commit cc775db

File tree

14 files changed

+405
-15
lines changed

14 files changed

+405
-15
lines changed

Angel Finder_cv/angelFinder.py

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# owner2plusai
2+
import cv2 as cv
3+
import math
4+
5+
image_path = "s (7).jpg"
6+
img = cv.imread(image_path)
7+
8+
9+
point_list = []
10+
11+
def mouse_point(event,x,y,flag,params):
12+
13+
if event == cv.EVENT_LBUTTONDOWN:
14+
15+
#drow line from point 1 to point 2
16+
size = len(point_list)
17+
if size != 0 and size % 3 !=0:
18+
cv.line(img ,tuple(
19+
point_list[round((size-1)/3)*3]) ,(x,y), (0,255,0),3)
20+
21+
# show click mouse
22+
cv.circle(img,(x,y),5,(0,255,0),cv.FILLED)
23+
point_list.append([x,y])
24+
25+
26+
def grad(pts1,pts2):
27+
return ((pts2[1]-pts1[1]) / (pts2[0]-pts1[0]))
28+
29+
30+
def get_angel(point_list):
31+
pts1,pts2,pts3 = point_list[-3:]
32+
33+
m1 = grad(pts1,pts2)
34+
m2 = grad(pts1,pts3)
35+
36+
# tan(a) = m2 - m1 /1 +(m2 *m1)
37+
angR = math.atan((m2 - m1)/(1 + (m2 * m1)))
38+
39+
# round num
40+
ang_round = round(math.degrees(angR))
41+
42+
# absolute value
43+
abs_val = abs(ang_round)
44+
45+
46+
# show text
47+
cv.putText(img, str(abs_val) ,
48+
(pts1[0], pts1[1]),cv.FONT_HERSHEY_COMPLEX ,1 ,(255,0,0),3)
49+
50+
51+
52+
53+
54+
while True:
55+
#check if we have 3 points
56+
if len(point_list) % 3==0 and len(point_list) !=0:
57+
get_angel(point_list)
58+
59+
60+
cv.imshow("image" , img)
61+
cv.setMouseCallback("image",mouse_point)
62+
# break
63+
64+
#refresh
65+
if cv.waitKey(1) & 0xFF == ord("r"):
66+
point_list = []
67+
img = cv.imread(image_path)
68+
# break
69+
elif cv.waitKey(1) & 0xFF == ord("q"):
70+
break

Angel Finder_cv/s (1).jpg

45.4 KB
Loading

Angel Finder_cv/s (2).jpg

237 KB
Loading

Angel Finder_cv/s (5).jpg

77.8 KB
Loading

Angel Finder_cv/s (6).jpg

9.73 KB
Loading

Angel Finder_cv/s (7).jpg

4.22 MB
Loading

RoadDetection_cv/RoadDetection.ipynb

Lines changed: 147 additions & 0 deletions
Large diffs are not rendered by default.

RoadDetection_cv/pp.jpg

51.2 KB
Loading

Trasnlate_subtitle/fa_sub.srt

Whitespace-only changes.

Trasnlate_subtitle/sub.srt

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
1
2+
00:00:00,000 --> 00:00:01,000
3+
(gentle music)
4+
5+
2
6+
00:00:01,000 --> 00:00:02,005
7+
- The unfortunate fact is,
8+
9+
3
10+
00:00:02,005 --> 00:00:05,000
11+
results don't always speak for themselves.
12+
13+
4
14+
00:00:05,000 --> 00:00:07,000
15+
If you want to accelerate your career growth,
16+
17+
5
18+
00:00:07,000 --> 00:00:09,000
19+
it's not just about how hard you work,
20+
21+
6
22+
00:00:09,000 --> 00:00:10,001
23+
how talented you are,
24+
25+
7
26+
00:00:10,001 --> 00:00:12,003
27+
your experience or your skills.
28+
29+
8
30+
00:00:12,003 --> 00:00:13,009
31+
You could be doing the best work,
32+
33+
9
34+
00:00:13,009 --> 00:00:16,004
35+
but if no one knows about you and what you offer,
36+
37+
10
38+
00:00:16,004 --> 00:00:18,009
39+
you'll be continually overlooked.
40+
41+
11
42+
00:00:18,009 --> 00:00:21,009
43+
This is why becoming intentional about your personal brand
44+
45+
12
46+
00:00:21,009 --> 00:00:23,005
47+
could be one of the most powerful
48+
49+
13
50+
00:00:23,005 --> 00:00:25,008
51+
career accelerators for you.
52+
53+
14
54+
00:00:25,008 --> 00:00:27,006
55+
A strong brand puts you on the radar
56+
57+
15
58+
00:00:27,006 --> 00:00:31,002
59+
for exciting career opportunities and greater recognition.
60+
61+
16
62+
00:00:31,002 --> 00:00:33,004
63+
It's essential to help you attract attention,
64+
65+
17
66+
00:00:33,004 --> 00:00:35,005
67+
create interest, develop trust,
68+
69+
18
70+
00:00:35,005 --> 00:00:37,007
71+
and ignite a positive emotion in the minds
72+
73+
19
74+
00:00:37,007 --> 00:00:39,000
75+
and hearts of others
76+
77+
20
78+
00:00:39,000 --> 00:00:41,004
79+
when they so much as think about you.
80+
81+
21
82+
00:00:41,004 --> 00:00:44,000
83+
In this course, I'll help you to develop your reputation
84+
85+
22
86+
00:00:44,000 --> 00:00:45,009
87+
and elevate your personal brand
88+
89+
23
90+
00:00:45,009 --> 00:00:48,002
91+
using insights from psychology, strategy,
92+
93+
24
94+
00:00:48,002 --> 00:00:50,008
95+
marketing, and creative thinking.
96+
97+
25
98+
00:00:50,008 --> 00:00:53,004
99+
I'm Shade Zahrai, an award-winning leadership strategist
100+
101+
26
102+
00:00:53,004 --> 00:00:56,007
103+
and global peak performance consultant to Fortune 500s.
104+
105+
27
106+
00:00:56,007 --> 00:00:58,006
107+
I also specialize in helping professionals
108+
109+
28
110+
00:00:58,006 --> 00:01:00,007
111+
to accelerate their career.
112+
113+
29
114+
00:01:00,007 --> 00:01:02,006
115+
Even if you're an introvert like me,
116+
117+
30
118+
00:01:02,006 --> 00:01:05,000
119+
you'll get the tools to boost your brand,
120+
121+
31
122+
00:01:05,000 --> 00:01:07,000
123+
and your brand is one of the most powerful
124+
125+
32
126+
00:01:07,000 --> 00:01:09,000
127+
and valuable investment you can make
128+
129+
33
130+
00:01:09,000 --> 00:00:56,000
131+
in your confidence, your career, and your life.
132+

0 commit comments

Comments
 (0)