Ask Your Question
1

Draw a transparent green rectangle on onCameraFrame [closed]

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

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
1

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

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

Stats

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

Seen: 474 times

Last updated: Jan 22 '19