OpenFTC / EasyOpenCV

Finally, a straightforward and easy way to use OpenCV on an FTC robot!
216 stars 99 forks source link

viewport container id #11

Closed rohitdasari0424 closed 4 years ago

rohitdasari0424 commented 4 years ago

Hey, I tried your sample code and it's showing an error when I init saying that the viewport container that the user specified does not exist... How do I fix this problem?

Windwoes commented 4 years ago

Can you provide more details? What phone are you using? What SDK version? Have you modified the activity XML layout in any way?

rohitdasari0424 commented 4 years ago

I'm using the latest version of the FTC SDK with a motorola g5 as the robot controller and a samsung J327A as the driver controller. The specific error was: The view port container that the user specified does not exist. I did : int cameraMonitorViewId = hardwareMap.getAppContext.getResources().getIdentifier("cameraMonitorViewId","id",hardwareMap.AppContext.getPackageName()); and passed that as a parameter to the viewport id in the opencvinternalcamera. I have not modified the activity XML layout in any way.

rohitdasari0424 commented 4 years ago

Capture

Windwoes commented 4 years ago

Does the SDK's vuforia sample work?

Windwoes commented 4 years ago

Also if you could dump the main activity layout using the Layout Inspector that would be helpful too.

Windwoes commented 4 years ago

Are you still having this issue?

rohitdasari0424 commented 4 years ago

On Thu, Mar 5, 2020 at 9:26 AM FROGbots-4634 notifications@github.com wrote:

Are you still having this issue?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenFTC/EasyOpenCV/issues/11?email_source=notifications&email_token=AOS36KR7B237ZYZSOWMIFWLRF6ZB3A5CNFSM4KZVQFMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN5OHKI#issuecomment-595256233, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOS36KRRHD5NEQS45K4I4A3RF6ZB3ANCNFSM4KZVQFMA .

No I fixed it by downloading doge cv and it somehow ended up fixing the problem

Windwoes commented 4 years ago

DogeCV is based off of EasyOpenCV so that doesn't entirely make sense, but ok...

rohitdasari0424 commented 4 years ago

On Thu, Mar 5, 2020 at 2:45 PM FROGbots-4634 notifications@github.com wrote:

DogeCV is based off of EasyOpenCV so that doesn't entirely make sense, but ok...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenFTC/EasyOpenCV/issues/11?email_source=notifications&email_token=AOS36KQPCIHGNYWEI363WKTRF76PJA5CNFSM4KZVQFMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN6UPWY#issuecomment-595412955, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOS36KVSVIPAWI3EJ7VJPHLRF76PJANCNFSM4KZVQFMA .

Yeah, it really doesn’t make sense, but ig it worked and easyopencv is awesome btw👌