Ask Your Question
1

Draw a transparent green rectangle on onCameraFrame

asked 2019-01-21 04:27:43 -0500

mika singh gravatar image

Hello i was tried to draw a transparent green rectangle in onCameraFrame in my application. my application just tried to detect the rectangle and draw transparent green rectangle in onCameraFrame.

how can i do this anyone have an idea?

please guide me.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-01-22 01:16:18 -0500

berak gravatar image

there is no support for transparency here.

what you can do is:

  • split() your image into channels
  • draw your rect into the green channel only
  • merge() the channels back
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-01-21 04:27:43 -0500

Seen: 38 times

Last updated: Jan 22