I want to overlay 3D pie chart on my camera feed using ARKit. How can I achieve this?
I found tutorial to create bar chart here https://github.com/Boris-Em/ARCharts
However I din't find any similar code base to draw pie chart. PLease suggest how to draw dynamic pie chart that take input values.
Related
I am trying to use OpenCV to detect an Aruco marker in the image below, specifically the one on clearly visible on the headphones. It has been working earlier, but it seems to have a hard time detecting it for most locations. It is clearly in view. Is the image too blurry? Are there things I can change?
I'm looking for a guide on how to take a 2D image (Jpeg/PNG) and apply it to a 3D object template programmatically.
The specific use case I am trying to replicate is taking a picture and applying it to a 3D picture frame, similarly to how Cart Magician does (https://cartmagician.com/) where you can upload an image and then applies it to a picture frame object template that they provide which then renders the object with the image that can be viewed with Google AR.
Could anyone help or point me in the right direction?
Thanks in advance!
This is the AR frame with image, the image should be interchangeable.
You can create a ViewRenderable surrounded by the 3D model of a painting frame. The ViewRenderable will have the 2D image put on it.
need to draw curved polygon in ARScene like on a picture
Using swift code only.
Any ideas ?
You can draw a curved Polygonal Model in ARKit/SceneKit using several polygons, not single one. For nice curvature 30 to 100 polygons needed.
But if you meant whether ARKit/SceneKit supports NURBS Models like Maya or 3dsMax does – the answer is NO. You have an API only for Poly Modeling.
For further information please read the following SO post.
In Shapchat's photo editor, there is a scissor tool extract object with guiding lines (by drawing edges of object want to extract).
I wanted to implement that tool with openCV, but I am totally new to openCV. I searched openCV documents and tutorials, but I have no idea how to use and combine functions of finding contours, image moments, and edge extraction.
The easiest way to do this is:
Start with OpenCV's grabcut demo here
Add code to draw a polygon using mouse events, or touch events.
Use the the polygon to initialize foreground region of grabcut segmentation.
You can also look at dlib's image segmentation, in which case the region cut by scissors can be used to extract parts of the segmented image.
My image is cannot post so the link is my picture
I want to draw a chart like the image in iOS app
I use the CorePlot to help me to make this
My Question:
How to draw 3 barPlot whit 3 kinds color
How to draw a barPlot from the CPTXYAxis 0 to -4000 in the Upside down way
Any help would be appreciate
Thanks all
A Core Plot graph can have as many plots as you need. They can be the same type or a mixture of different types. Use the identifier property to uniquely identify each plot and check it in the datasource to determine which plot is asking for data. Several Core Plot example apps have multiple plots in a graph; the Plot Gallery is a good place to start.
The "Plot Space Demo" in the Plot Gallery also shows how to "reverse" an axis. Just give it a negative length.