Ask Your Question

Draw a transparent green rectangle on onCameraFrame [closed]

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 reopen merge delete

Closed for the following reason spam or advertising by mshabunin
close date 2019-04-04 06:44:28.707416

1 answer

Sort by ยป oldest newest most voted

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

Question Tools

1 follower


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

Seen: 221 times

Last updated: Jan 22 '19