You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 1, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: 01 Pi Code/collectData.py
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,20 @@
1
+
# @Author: uday
2
+
# @Date: 2019
3
+
# @Email: udaykumar.1997@gmail.com
4
+
# @Last modified by: uday
5
+
# @Last modified time: 2019
6
+
# @License: apache-2.0
7
+
# @Copyright: #
8
+
# Copyright 2019 Uday Kumar Adusumilli
9
+
#
10
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
11
+
#
12
+
# http://www.apache.org/licenses/LICENSE-2.0
13
+
#
14
+
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
11
+
#
12
+
#http://www.apache.org/licenses/LICENSE-2.0
13
+
#
14
+
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copy file name to clipboardExpand all lines: 01 Pi Code/rTwo.sh
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,20 @@
1
+
# @Author: uday
2
+
# @Date: 2019
3
+
# @Email: udaykumar.1997@gmail.com
4
+
# @Last modified by: uday
5
+
# @Last modified time: 2019
6
+
# @License: apache-2.0
7
+
# @Copyright: #
8
+
# Copyright 2019 Uday Kumar Adusumilli
9
+
#
10
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
11
+
#
12
+
#http://www.apache.org/licenses/LICENSE-2.0
13
+
#
14
+
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copy file name to clipboardExpand all lines: 02 Product Counting Pipeline/.segmentation_1.py
+36-20Lines changed: 36 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,20 @@
1
+
# @Author: uday
2
+
# @Date: 2019
3
+
# @Email: udaykumar.1997@gmail.com
4
+
# @Last modified by: uday
5
+
# @Last modified time: 2019
6
+
# @License: apache-2.0
7
+
# @Copyright: #
8
+
# Copyright 2019 Uday Kumar Adusumilli
9
+
#
10
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
11
+
#
12
+
# http://www.apache.org/licenses/LICENSE-2.0
13
+
#
14
+
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
15
+
16
+
17
+
1
18
importcv2
2
19
importnumpyasnp
3
20
importargparse
@@ -30,36 +47,36 @@ def get_rectangles(contours):
30
47
print("Reading file:", args.input)
31
48
frame=cv2.imread(args.input)
32
49
33
-
hsv=cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
34
-
lower_red=np.array([100,100,100])
35
-
upper_red=np.array([179,255,255])
50
+
hsv=cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
51
+
lower_red=np.array([100,100,100])
52
+
upper_red=np.array([179,255,255])
36
53
37
-
# Here we are defining range of red color in HSV
38
-
# This creates a mask of red coloured
39
-
# objects found in the frame
40
-
mask=cv2.inRange(hsv, lower_red, upper_red)
54
+
# Here we are defining range of red color in HSV
55
+
# This creates a mask of red coloured
56
+
# objects found in the frame
57
+
mask=cv2.inRange(hsv, lower_red, upper_red)
41
58
42
-
# The bitwise and of the frame and mask is done so
43
-
# that only the red coloured objects are highlighted
44
-
# and stored in res
59
+
# The bitwise and of the frame and mask is done so
60
+
# that only the red coloured objects are highlighted
Copy file name to clipboardExpand all lines: 02 Product Counting Pipeline/.segmentation_2.py
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,20 @@
1
+
# @Author: uday
2
+
# @Date: 2019
3
+
# @Email: udaykumar.1997@gmail.com
4
+
# @Last modified by: uday
5
+
# @Last modified time: 2019
6
+
# @License: apache-2.0
7
+
# @Copyright: #
8
+
# Copyright 2019 Uday Kumar Adusumilli
9
+
#
10
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
11
+
#
12
+
# http://www.apache.org/licenses/LICENSE-2.0
13
+
#
14
+
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copy file name to clipboardExpand all lines: 02 Product Counting Pipeline/rip.sh
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,20 @@
1
+
# @Author: uday
2
+
# @Date: 2019
3
+
# @Email: udaykumar.1997@gmail.com
4
+
# @Last modified by: uday
5
+
# @Last modified time: 2019
6
+
# @License: apache-2.0
7
+
# @Copyright: #
8
+
# Copyright 2019 Uday Kumar Adusumilli
9
+
#
10
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
11
+
#
12
+
#http://www.apache.org/licenses/LICENSE-2.0
13
+
#
14
+
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copy file name to clipboardExpand all lines: 03 Leaf Disease Detection Pipeline/load_bb.py
+24-7Lines changed: 24 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,20 @@
1
+
# @Author: uday
2
+
# @Date: 2019
3
+
# @Email: udaykumar.1997@gmail.com
4
+
# @Last modified by: uday
5
+
# @Last modified time: 2019
6
+
# @License: apache-2.0
7
+
# @Copyright: #
8
+
# Copyright 2019 Uday Kumar Adusumilli
9
+
#
10
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
11
+
#
12
+
# http://www.apache.org/licenses/LICENSE-2.0
13
+
#
14
+
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
15
+
16
+
17
+
1
18
importcv2
2
19
importio
3
20
importrandom
@@ -9,14 +26,14 @@
9
26
#old_stdout= sys.stdout
10
27
#sys.stdout = buf = StringIO()
11
28
12
-
# Returns true if two rectangles overlap
29
+
# Returns true if two rectangles overlap
13
30
defdoOverlap(t1, t2):
14
-
rect1_x1=t1[0]
31
+
rect1_x1=t1[0]
15
32
rect1_x2=t1[2]
16
33
rect1_y1=t1[1]
17
34
rect1_y2=t1[3]
18
35
19
-
rect2_x1=t2[0]
36
+
rect2_x1=t2[0]
20
37
rect2_x2=t2[2]
21
38
rect2_y1=t2[1]
22
39
rect2_y2=t2[3]
@@ -29,7 +46,7 @@ def doOverlap(t1, t2):
29
46
if (rect2_y1<=rect1_y1<=rect2_y2orrect2_y1<=rect1_y2<=rect2_y2):
Copy file name to clipboardExpand all lines: 03 Leaf Disease Detection Pipeline/segmentation_2.py
+21-4Lines changed: 21 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,20 @@
1
+
# @Author: uday
2
+
# @Date: 2019
3
+
# @Email: udaykumar.1997@gmail.com
4
+
# @Last modified by: uday
5
+
# @Last modified time: 2019
6
+
# @License: apache-2.0
7
+
# @Copyright: #
8
+
# Copyright 2019 Uday Kumar Adusumilli
9
+
#
10
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
11
+
#
12
+
# http://www.apache.org/licenses/LICENSE-2.0
13
+
#
14
+
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
0 commit comments