-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e635f96
commit 0058cbc
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import cv2 | ||
import numpy as np | ||
|
||
new_input_x=cv2.imread('OutSample1 (1).png') | ||
temp=new_input_x | ||
|
||
def rowcat(letter): | ||
global new_input_x | ||
input_letter = cv2.imread('OutSample'+str(letter)+' (1).png') | ||
for xcount in range(1,10):#changed from 7 to 12 | ||
i = 1+xcount | ||
new_input_x = cv2.imread('OutSample'+str(letter)+' ('+str(i)+').png') | ||
new_input_x = np.concatenate((input_letter,new_input_x), axis=1) | ||
input_letter= new_input_x | ||
return new_input_x | ||
|
||
def colcat(): | ||
column=np.concatenate((rowcat(1),rowcat(2),rowcat(3),rowcat(4),rowcat(5),rowcat(6)), axis=0) | ||
return column | ||
|
||
cv2.imwrite('/home/varun/opencv/Trails/Test/gridout.png', colcat()) |