Skip to content
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

how can I get the image with the bounding boxes like this #96

Open
lhs21 opened this issue Mar 30, 2021 · 2 comments
Open

how can I get the image with the bounding boxes like this #96

lhs21 opened this issue Mar 30, 2021 · 2 comments

Comments

@lhs21
Copy link

lhs21 commented Mar 30, 2021

I can evaluate the results with eval_caltech , and I get the eval-newOcc=heavy.txt/eval-newAll.txt/eval-newReasonable.txt successfully. and the MR-2 are good, 45.7 , 57.6 , 4.65 。But when I try to use the results which is in the file(output/valresults/caltech/h/off/) to draw bounding boxes on the test image.I get the image like this . it has too many wrong bounding boxex. I don't know what's the matter . the code I write is added in test_caltech.py.

row=np.shape(boxes)[0]
for i in range(0,row):
....a=boxes[i]
....cv2.rectangle(img,(a[0],a[1]),(a[2],a[3]),(0,255,0), 2)
cv2.imwrite('./test/' + str(set)+str(video)+str(frame_number-1) + '.jpg', img)

set06V0001049
set10V0111349

i'm writing the graduation thesis ,so it'll help me a lot if you can tell me what's the problem,
thank you very much

@lhs21 lhs21 closed this as completed May 9, 2021
@lhs21 lhs21 reopened this May 27, 2021
@lhs21
Copy link
Author

lhs21 commented May 27, 2021

another dataset:citypersons,
how can I get the image with the bounding boxes

@sunshineInmoon
Copy link

你好,我也遇到了相同的问题,请问你解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants