Open Shameendra opened 5 years ago
Hi, I imagine you get syntax errors, no ? Your code is not indented correctly (for instance the class Scene), or have missing parenthese (in return of the function kps_to_BB).
Hi , thanks for the reply. The indentations are not an issue and also the missing parentheses. Those are errors while pasting the code here. The issue i have is in how to randomly transform a card and paste it in a new background in the line,
self.img1, self.bbs1=augment(self.img1, transform_1cover)
i get errors like"missing one argument:seq" or "something like KeypointsOnImage is not iterable" when i try to pass kps as an argument, or even errors like 'list' object has no attribute 'keypoints' in the function def kps_to_bb(kps) I was wondering how to change the code such that i paste the entire card and the 4 corners as keypoints and transform them is such a way that it also returns bounding box coordinates of entire card
The error "missing one argument" seems very clear. You give only 2 arguments in the call to augment, while you should give 3 (missing argument: list_kps).
yes i understood that. i tried it and it gives me the above mentioned errors. i will try to solve myself in the meantime, but if you have any suggestions, it would be very helpful
Hi, i was wondering that i wanted to generate a scene with just the card, without the hulls and my bounding box encloses the card. I have been trying to modify your code to do this but always run into errors. Could you take a look and advise what i am doing wrong. My code is:
`
Scenario with 1 card: