How can I do what this app does? How is this technique called? - image

recently I saw an app in the playstore:
https://play.google.com/store/apps/details?id=com.donalddraws.app
(Not trying to make this political, I couldnt find another example)
Basically, you give an image of a given size to the app and the app will put the image inside the video, resizing and transforming the image automatically so it looks like it is part of the video.
So the programmer have to let the app know where the image should be placed and how it should be transformed.
Example video: https://www.youtube.com/watch?v=Zvf3yeZYUiI
I tried searching information, but couldnt find much, maybe I am not using the right terms.
It probably looks like a broad question, but I'm just looking for the name of the technique or a small introduction (preferably Python, but other languages would be fine too).
Thank you!

Related

Identify logos on PNG without AI Services

So, I don't believe that exists someway to "read" a PNG through its binary code, or something like that, but I have zero knowledge on Image Processing or Computer Vision, and so, I can't be sure if that are ways to do it or not.
To be clear: I want to know if there are ways to identify the image of a Logo using an image of the Logo as reference but through methods that use only the binary of the image.
Thanks in advance
If the logo is known, and not distorted a lot (logo printed on a scarf is not as good as on a flat surface), there is technologies that can achieve that:
It is a template matching problem, see https://docs.opencv.org/4.5.2/d4/dc6/tutorial_py_template_matching.html.

How to detect if the image taken is selfie using image processing

I am doing a project,where I need to determine if the image is self taken or not? I am confused whether to use machine learning approach or image processing ? Machine learning approach may not give me very effective results.I am looking for image processing method.Can anyone help me out here..?? I can detect the faces in the image but that is not enough.
Machine learning will work way better in my opinion. With few exemples you should get a correct result. But it won't be perfect.
If you want something more occurate you will need other detailed. For exemple if it is a smartphone application you know if the front camera was used. Maybe another great source of data is the accelerometer because selfies are not taken the same way of regular picture.
If you have faces in the picture and another relevant indicator you probably can state that the picture is a selfie.

find similar image in library to photo

I work at a printer where we generate thumbnails of artwork for orders and store them in a folder before printing.
I'm looking for a code library that will allow us to take a photo of a printed item and look through the library of thumbnails for the design.
Just wondered if anyone knows of a library or api that could do this?
Thanks
David
pHash is one solution.
There are others but that mainly depends on your requirements: do you only want to identify identical images, if not, what types of transformations do you want to be able to capture etc.
In general you should look for near duplicate image search.
#david-jennings there are numerous methods to look for similar images in libraries. Remember that google already does this in google images.
Your problem falls under the scope of Content Based Image Retrieval (CBIR), which aims at looking for images with similarities in their content. MPEG-7 is a standard established many years ago to address these issues and the research field is very active with new techniques being developed constantly.
The main idea in CBIR is to extract some kind of a signature from an image and try to match it with all previously extracted signatures of all images in your database. Which method to use depends upon the specifics of your problem... According to your initial post I suppose that probably the use of SHIFT is going to do the work for you...
You may implement such a system using OpenCV with C/C++/Java/etc., or something more "scientific" using MATLAB.

Placing images on top of other images in wxpython

I know this question is pretty basic, and I'm sorry for posting it, but I literally have spent the last hour googling and I still havent found an answer.
I coded a blackjack game using pygame, and want to convert it to wxpython mostly as a way to learn wxpython. In pygame the graphics are easy, I have a base image I display (basically just the table), and then I can just display other images on top of it as the action unfolds, for example the cards. Each time the player hits I just draw a new card in a different position. When The hand is over and I want to go to the next hand, I just display the base image again, and it covers everything up and viola! Its really simple all I have to use is blit() and pygame.display.update().
I cant seem to find anyway to do this in wxpython. All the examples I find are for drawing items in new widgets, or drawing vector graphics over an image, or opening new frames with images, etc.
any help is greatly appreciated, thank you very much.
--Daniel
The AlphaDrawing example in the wxPython demo shows how to overlap multiple drawings. This uses wx.GraphicContext / wx.GCDC. If you look at the documentation, you'll note that it has CreateBitmapFromImage and CreateBitmap methods that probably apply to what you want to do. See also the DragImage demo and the following links for related information:
wx python card game
http://rummy-py.sourceforge.net/ (look at the original that was done in wx)
I found this post, which reading the comments, does a good job of showing me want I was looking for.
Delete image in wxpython?

Animation tools

I realize this is not strictly programming related, but hopefully you will let me get away with it.
My group is trying to put together a very short (2 minutes or so) "film" about a new feature to our product. The feature is trying to solve a particular problem a lot of our customers have. We do not want to go with live action for displaying the description of the problem we are trying to solve because we feel that the production value of anything we could come up with would be incredibly low and turn off our viewers. So we would like to make an animation (basically floating clip-art that is animated moving from place to place) while we have someone narrate the problem description.
While flash seems to be a good solution I have some problems with it:
I need to capture this in a movie format like avi
It needs to be captured in 1080p, 720p and regular TV def.
Does anyone have a suggestion for a piece of software that can get me where I need to go?
Free is good, but I think I could get my boss to lay down some scratch for this.
Thanks!
For just some basic here-is-the-screen-this-is-a-slide kinda thing you could use Windows MovieMaker, free and standard.
And here you have some tips on how to create your own screen-captured-AVI file for input.

Resources