Unreal How to Feed Images into Open CV Lens Distortion Calibrator

I’m currently trying to use the OpenCv Lens Distortion plugin that comes installed by default with the Virtual Production example in Unreal 4.27 to try and create a camera undistortion texture for my camera. So far I have had no issue getting this to work with by manually setting the lens distortion parameters (K[1-6], P1, P2, etc.) but now I want to automatically generate this data using a series of images from my camera. To do this I threw together a blueprint (couldn’t get access to OpenCV from C++ scripts) that takes a directory, grabs all jpg files and feeds them into the calibrator.

enter image description here

Unfortunately no matter what I try the calibrator refuses to accept any of my test images, and since this is a blueprint I can’t really debug the problem any more, all I know is that the FeedImage node returns false for every image. I’ve tried searching for documentation or tutorials using OpenCV Lens Distortion but for some reason it is a completely undocumented feature besides a couple pages saying the nodes exist and 2 or 3 questions on this answer hub asking how to turn the distortion variables into a texture. If anyone knows what I might be missing please let me know.

enter image description here

Just for reference, here is a sample of one of my test images:

  • Board Width: 10
  • Board Height: 7
  • Square Size: 3.2727 cm

I was able to get OpenCV working directly in another program using a python script but I would like to have this working in Unreal to minimize the amount of programs needed. Obviously the functions are difference since Python deals directly with OpenCv while Unreal is using a blueprint wrapper but at least I know the images and calibrator settings should be valid.

I also want to mention I saw the Lens Distortion plugin mentioned in this post, but unfortunately it does not seem to have the ability to accept images to generate a lens distortion model, it simply builds one using the k1, k2, k3, p1, p2 parameters and camera matrix values.

What is the most intelligent way to store tiny SVG images in S3 Bucket for a single web page consumption?

All image assets need to be loaded for home page (not the case where each image is for a different page).

If I understand correctly, if each image gets stored in a different bucket Object, then we are opening a new HTTP connection for each download.

Will it be faster if I store all SVGs within the same object?

Is it worth considering gzip compression? (or any other kind of compression?)

How do I calculate Field of View and camera position from 2 images?

I am trying to re-construct the camera logic of RE4 that is applied when the player aims a gun.

I have attached a hack to RE4 which enables the user to change the camera’s FOV. Because of that I already know that the FOV for aiming with a gun is 50. The FOV during normal gameplay is 75.

I have then taken 2 screenshots:

  • Screenshot #1 shows normal / idle gameplay
  • Screenshot #2 shows aiming gun gameplay

These are the 2 screenshots. The red frame indicates the area that is still visible when the player aims. As one can see, the left side is heavily cropped while the right side is not cropped at all. This makes me wonder what the logic is here.

I have tried to replicate this behaviour, but I don’t manage to make my scene look exactely like that.

I would therefore like to ask if there is perhaps a mathematical approach that I can use to calculate the camera position offset that is being applied when the player aims his gun.

Thank you!

enter image description here

enter image description here

body mass index (BMI) calculator with cool images

I'm selling my website
body mass index or BMI http://glutenfreespoon.com/

This website will help your visitors calculate their BMI (Body Mass Index)

Why this niche is important?
Weight has been one of the things most people have become focused on in later years
The body mass index or BMI as it’s usually shortened is a simple method, devised in order to determine, based on the height and current weight of a person whether or not they need to start working on…

body mass index (BMI) calculator with cool images

How to deliver webp format of images to WP REST API

I use WP Offload Media Lite plugin to offload upload image to S3. I use raw S3 URL (not CDN) and choose remove file in server option. Then I use EWWW Image Optimizer plugin to convert image on S3 to .webp format. I run bulk optimize and there are .webp copies on S3. Then I choose JS Webp Rewriting to delivery .webp to my site (because I use Nginx) and it works well. But my partner request me deliver .webp to WP Rest api too. Because when he call : http://domain.com/wp-json/wp/v2/posts?_embed&slug=this-is-post-slug (GET) , it returns response that has only .jpeg, not .webp. I’m not familiar with WP rest api. How could I do that?

Multiple images on page, but google to only crawl certain ones

Say I have a page with a main image of a product at the top and several related product images at bottom. When I google the main product, the google search results also show up the main product image and also the related product images, claiming to be the main product. Is there a way I can stop google from crawling certain images on the page, by adding a tag to the images I don’t want google to crawl, like a no-crawl?

Optimizing images for web, WordPress Genesis theme by Studiopress changing the size and format, why?

I am very talented for 3D design and I have wonderful images I would like to share. However, logical things are not my best side and especially applied computer sciences and etc. It has nothing to with art. However not giving my art appropriate show it deserves and an appropriate website, can ruin my chances as an artist.

So I have a wordpress website that will be very image heavy..

I have some doubts here so please if you want to help me, answer my questions in a numerated way so I do not get lost. I am a noob for these things.

  1. Why does my Genesis theme by studiopress keep changing the images compression as well as their size?
  2. Why does my compression in "export for web, in photoshop even matter then when genesis changes it then again?"
  3. Are there preferred resolutions that google prefers and likes besides telling me a general rule such as "google likes fast loading so smaller resolution can give you some speed"
  4. I have played with amazon lambda and have implemented an open source solution for on the fly image processing called "Thumbor". It creates images based on url parameters and thus it can deliver millions of images if users request them, yet they do not really exist on the server memory in the traditional sense. They remain spread across the CDN etc. Do you think this type of solution is smart? I have seen professional websites use it to show their renders and to SEO position their renders. I wonder if it makes any sense for me to use it as well? I will have minimum of 60 000 original images (then because wordpress creates different sizes of each image, we are then talking about maybe 300 000 images?!) In a maximum scenario I am talking about 500 000 original images. That would be really a lot. I will be happy if I achieve 60 000 original renders uploaded. So is 60 000 original images too much for a wordpress and S3 amazon bucket? I run a pretty decent ec2 instance with multiple cores and have 99% google speed rank so far.
  5. What are these plugins that offer image compression and then the whole lazy loading thing. I understand the lazy loading. but what about the compression? Let’s say I upload an image called BWM.jpg and then I install this plugin, what does it to the database? Does it create a new image now BMWcompressed.jpg? So in my database I have 2 images now? Right?
  6. Do such plugins replace the need for photoshop export for web function?
  7. I have seen this JFIF format? What is that? How can that be saved at all? Using what applications ? Like, really why so many websites use jpeg and not JFIF? I mean I have seen some professional websites use JFIF but then again… websites really big ones, do not use that format. Why?
  8. Do you want a beer or something non-alcoholic coca cola for helping me out with these questions? You can write me your paypal in messages or something…