-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run error #3
Comments
I get similar error msg... Traceback (most recent call last): |
Are you able to run my demo, e.g. the test image and video I provided? |
I run demo after modifing error like this.
there are many same error from indexing with float. so I need to cast all this indexes as int, then it works... |
@seewoo79 @JunshengFu Traceback (most recent call last): Can you share the updated code of lane.py which you get after changing the indexes as int ? |
I am getting this error..can you please tell me how to fix it. Process finished with exit code 1 |
@ trohit920. |
@JunshengFu whole_frame[220+h:220+2*h, 20:20+w, :] = undist_birdview |
@lyxlty h/2 or w/2 is float type, need to be converted to int h2 = int(h/2)
w2 = int(w/2)
whole_frame[220 + h2:220 + 2 * h2, 20:20 + w2, :] = undist_birdview
whole_frame[220 + h2:220 + 2 * h2, 40 + w2:40 + w, 0] = cv2.resize((binary_sub * 255).astype(np.uint8),(0, 0), fx=1 / 2, fy=1 / 2)
whole_frame[220 + h2:220 + 2 * h2, 40 + w2:40 + w, 1] = cv2.resize((binary_sub * 255).astype(np.uint8),(0, 0), fx=1 / 2, fy=1 / 2)
whole_frame[220 + h2:220 + 2 * h2, 40 + w2:40 + w, 2] = cv2.resize((binary_sub * 255).astype(np.uint8),(0, 0), fx=1 / 2, fy=1 / 2) |
@Ayysh why h3... It's not defined... Thanks. |
for video?? |
I'm getting this error.....can you please tell me how to fix it Traceback (most recent call last): |
but I doubt that the data may not precise any more after int them , can u plz modify it? |
I get this error, what should I do to solve it? thanks,
|
|
cv2.error: /home/ckt/work/tools/opencv/modules/core/src/arithm.cpp:1987: error: (-209) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function arithm_op
The text was updated successfully, but these errors were encountered: