Thank you for the code, but I have two questions about the preprocessing code.
1.yCrop = np.where(mean<1)[0][0] in code #2,why the mean<1, what is the reason for chossing 1 instead of other numbers?
2.What is the function difference between #1 and #2?
code#1smallOutput = outputA[int(height/10):(height - int(height/10)), int(height/10):(height - int(height/10))]
Thank you for the code, but I have two questions about the preprocessing code. 1.
yCrop = np.where(mean<1)[0][0]
in code #2,why the mean<1, what is the reason for chossing 1 instead of other numbers? 2.What is the function difference between #1 and #2? code#1smallOutput = outputA[int(height/10):(height - int(height/10)), int(height/10):(height - int(height/10))]
code#2 ``` frame0 = testarray[0] mean = np.mean(frame0, axis=1) mean = np.mean(mean, axis=1) yCrop = np.where(mean<1)[0][0] testarray = testarray[:, yCrop:, :, :]