Stroke outline of captured object - object

For a project, I have to follow a little chopper that's painted green. I want to follow the helicopter with a webcam and have the outline stroked on my screen. How would you do this?
I am using Processing for this.

Related

Fabric JS - making collage under PNG mask

Our team is working on creating an online collage.
[https://jsfiddle.net/Lfz1bp7r/3/]
Characteristically, the collage should be under the mask of the PNG file. At this stage we are trying different libraries. Attention on fabricJS. The collage scheme is implemented using SVG paths. The first problem was tracking mouse events in SVG pathways. Implemented manually. The main problem is to add a new picture, which should be above the collage but below the mask. Manipulations with globalCompositeOperation do not help. There are no layers in the fabricJS.
So the question is - will the fabricJS allow you to implement the addition of a new picture on top of the collage, but under the PNG mask? It's possible?
Thank you very much in advance!
FabricJS includes two ways to draw on top of the canvas above the standard object and controls layers. You can set an overlayImage, and you can use the after:render event to run additional draw commands on the canvas context. See the Bounding Rectangle demo for a simple example of how to do this.
See How Fabric Canvas Layering Works.

Recognize dark rectangles with Open CV - Node.js

I'm trying to do some image recognition using Open CV. I want to detect the position of a dark rectangle in a game called Diablo 2.
After detecting the position of the rectangle, I will extract the text of that rectangle using OCR.
I've prepared some examples using Photoshop of where are those rectangles located.
On the left you can see the game screenshot, on the right I've pointed out the dark rectangles using a red rectangle, that's the place I want to detect using OpenCV.
Which OpenCV method should I use to detect those dark rectangles?
I'm not sure if Open CV is capable of doing this kind of pattern recognition, would be great if anyone can point me out how to do it.

How to change color of a rectangle element in Enterprise architect Whiteboard diagram

I am new to EA, and for my high level layered architecture, I just want to draw a whiteboard diagram with few rectangles. I want to change the colour of the rectangles, However, the right click context pop for colour is not changing my rectangle colour. Any inputs on this is soo appreciated...Thanks
You can't change it. Those elements are created with the help of shape scripts. If you take for example the rounded rectangle you see that they don't regard the user color settings. You can either manipulate the shape scripts in the Whiteboard MDG yourself or ask Sparx for a new feature. (If you want to see a change in your lifetime I'd recommend the first.)
Alternatively just draw a Boundary which can be set to Solid which enables color filling.

get color on click texture three.js

(sorry for my bad english)
I'm using Three.js to create a panorama. I would like to know if it is possible to get the color of a texture which I clicked on?
For that, I already have created a sphere and I can get the 3D coordinates on the sphere where I clicked (using, raycaster, projection,...).
The texture on the sphere is a ".png" with transparency. The area I would like to detect is colored :
Could you help me?

In Android - how can I fill a view or drawing by a specific percantage?

How can I fill a bitmap in Android with a specific background, with only a percentage of it being covered, like below?
There would be a icon in the middle as well so the fill would have to be behind what is drawn. I tried using a gradient, but it wasn't fruitful.
Edit: Another image:
Assuming the Processing 67% is a textview and the green is the background that fills 67% of that Textview, how would you accomplish this in Android?
You can try using Arc here is the reference Arc Android Developers
and here is a great tutorial that might be of help to you: How to draw semicircle on Android Canvas.
other than that, would require a bit more of your code to help you out.

Resources