I've found a really amazing wallpaper and later found out that it was a modified version of the original picture (which is an album cover).
Is anyone aware of the program or script being used in order to produce such kind of picture given any input?
Original picture:
Processed picture:
Zoom to the processed picture to see the style:
Is anyone aware of the program or script being used in order to produce such kind of picture given any input?
I am aware of one computer vision area called "Style transfer" using deep neural networks. There is this famous paper on this topic.
A few GitHub repos:
https://github.com/lengstrom/fast-style-transfer
https://github.com/fzliu/style-transfer
https://github.com/anishathalye/neural-style
i would say it can be done eadily by script. I am building an art generator called the BoredArt Club and using PHP GDlib for image manip. But if I wanted to use imageMagicK i could do more and it has a windows commandline option.
as for online tools... look at LunaPic and imgonline (UA i think)... they have masking tools and textures, etc fun stuff
I have a bash shell script that uses ImageMagick that will do something similar. See my script, weave
Here is an example:
Input:
Processed:
Related
I'm experimenting with the beautiful frankmocap, feeding a video and getting a quite accurate hands and body tracking. This tool also outputs a .pkl file (which I'm not familiar with) for each frame.
I'd like to convert these files into a usable 3D file but 1. I've discovered I can't use glob.h with ffmpeg on Windows and 2. I cant' get them converted in .fbx.
Along with frankmocap, I've tried VIBE but I still end up with the same problem.
Using miniconda3.
I hope someone can help me! Thank you for your time.
Someone has taken a useful script made for VIBE and adapted it to work with FrankMocap keypoints.
The script takes a folder of PKL frames generated by FrankMocap and then uses Blender to animate them into an FBX rig. It doesn't currently include the hands though, which is something I'm currently trying to solve in it myself (and how I found your question).
Link to the script: https://github.com/facebookresearch/frankmocap/files/5750266/fbx_output_FRANKMOCAP.zip
I like reading the PoC||GTFO issues and one thing I found remarkable when I first discovered it, was the "polyglot" nature of their PDF files.
Let met explain: when you consider for example their 8th issue, you may unzip files from it; execute the encryption they are talking about by running it as a script and even better(worse?) with their 9th issue you can even play it as a music file!
I'm currently in the process of writing small scripts every week and writing each time a little one page PDF in LaTeX to explain the said scripts. So I would really enjoy being able to create the same kind of PDF files. Sadly they explained (partly) in their first issue how to include zip files, but they did so through three small sketches of cmd lines without actual explanations.
So my question is basically :
how can one create such a polyglot PDF file containing stuff like a zip as well as being a shell script which may be run using arguments just like normal scripts?
I'm asking here about the process of creation, not just an explanation of how this is possible. The ideal way for me would that there are already some scripts or programs allowing to create easily such PDF files.
I've tried to search the net for the keywords "polyglot files" and others of the kind and wasn't able to find any useful matches. Maybe this process has another name?
I've already read the presentation by Julia Wolf which explains how things works, but I sadly haven't had time to apply the knowledge there to real world, because I'm sadly not used to play with file headers and the way a PDF is constructed.
EDIT:
Okay, I've read more and found the 7th edition of PoC||GTFO to be really informative concerning this subject. I may end up being able to create my own scripts to do such polyglot PDF files if I have some more time to consider it.
I played around with polyglots myself after attending Ange's talks and also talking to him in person. You really need to understand the file formats to be able to nest them into each other.
However, long story short, here are some links I found extremely useful for creating polyglots:
Some older Google Code Trunk
PoC of the polyglot stuff
Especially the second link (to github) will help you creating polyglots, but also understanding how they are working and how they are implemented. Since it is mostly Python stuff and very well / clean written, it is very useful and easy to follow.
I feel dissecting some file formats would be a good place to start. You can find many file format specifications for different file types through Google, but they can be a tough read and will likely take you some time to translate into whatever language you are using.
PDF: https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf
ELF: https://www.cs.cmu.edu/afs/cs/academic/class/15213-s00/doc/elf.pdf
ZIP: http://kat.sdf.org/zip_file_format.txt
The language(s) you select will need a way to read and write raw bytes (not just ascii alphanumeric), so perhaps C would be good for more direct access to memory. Some Python tricks could help with open sourcing the scripts easily.
To dissect the files, you may want to build a tool kinda like https://github.com/kvesel/zipbrk/ to take them apart, then put them all back together in a polyglot format. For example, zip does not require the section headers to be at the start (or even contiguous for that matter), and PDF magic number can appear in multiple places within the file as well. I also believe I recall a polyglot tool being included in one of the PoC||GTFO publishings (maybe issue 8 or 2??) as a polyglot in the pdf file.
Don't forget the hackers bible! :)
https://nostarch.com/gtfo
For example, how does CAD save such a 3d shape?
I mean, does it save it like something:
points = [[0,0,0],[0,1,0],[1,1,0],[1,0,0]]
lines = [[points[1], points[2]],[points[2],points[3]]]
Because I want to draw some 3d shapes(in python and render it in webpages), and I want to know how they are stored in files.
As you can see from web-sites such as this one, there's no "one format to rule them all." Every CAD program (like every other computer program ...) wound up defining "its own, app-specific format." AutoCAD is just one of many. But there are also various "standard" (sic ...) formats ... almost-inevitably "XML-based" ... which were specifically designed to allow model-information to be shared among programs. Typically, you "export" the model to one of these formats.
"And then, you Google to find where somebody else(!) has already perfected a Python module that knows how to read that file-format." You can be quite sure that you will not have to write-and-debug that code yourself. (After all, "you are not the first soul to have needed to do this sort of thing ...")
Normally, you don't try to deal with "the application's native format," because, even if the vendor in question actually saw fit to publish it, it contains "everything, including the kitchen sink." Stuff that you don't need. An "export file" is usually preferable for (and, was designed for ...) this very reason.
you may consider use Autodesk 3d webgl viewer technology, see a running sample for end-users at https://360.autodesk.com/viewer and check the full API (REST & JavaScript) at https://developer.autodesk.com/
I want two compare two voice files and find difference between them.
Suppose I have an original file of a music track and another file that is read out of that music by me, I want two compare these two files and find difference between their phonemes. Actually the words aren't important for me, the important thing is similarity in phonemes and I want to find something like the percentage of similarity. I prefer to implement something with Python.
You could try audio fingerprinting using fpcalc in Chromaprint.
Chromaprint is the core component of the AcoustID project.
The audio fingerprinting is done using fpcalc in Chromaprint.
fpcalc should be placed in the same directory as the Python script.
Python bindings for Chromaprint acoustic fingerprinting and the Acoustid API.
https://pypi.python.org/pypi/pyacoustid
Bellow is an example article with python demo code.
Comparing Non-Identical Audio Files for Duplicate Content with Cross-Correlated Fingerprints
http://www.randombytes.org/audio_comparison.html
How does Chromaprint work?
http://oxygene.sk/2011/01/how-does-chromaprint-work/
I had spent so many hours failing to find a line graph generator for my benchmark results that I just wanted to plug in. I tried quite a few like Google's chart API but it still seemed confusing or not graceful looking, I am clueless.
Examples of benchmark images I wished to make something like are this:
What specific applications /web services do you recommend for generating something even close to this? I want something "neat".
You can use python mathplotlib, which generates beautiful graphs like:
(Source code)
I use gnuplot. It is not a lib, but a separate executable file. You can output plotting data to one file, and plotting commands in another - script file, which refer to data file. Then call gnuplot with this script file.
Another way is to use qwt. It is a real library, but it depends on Qt. If you already use Qt in your project, it is very straigth way to plot graphs. If not, then just use gnuplot