Hacker News new | past | comments | ask | show | jobs | submit login

If you want to do this in much faster than realtime, calculate the transform once and apply it e.g. using OpenCVs remap (1).

1: http://docs.opencv.org/doc/tutorials/imgproc/imgtrans/remap/...




I have played a little bit with OpenCV in the past (http://silveiraneto.net/tag/opencv/) but I wouldn't know how to do it with OpenCV, while with ImageMagick it seems simple. I'd love to see an example with OpenCV as I could use it one day in real time with the camera input.


Here is how it would work in OpenCV:

https://gist.github.com/stschake/445aea35a3c9846573ad

I'm getting 50fps with the imshow, 100 without on an ooold Q6600. That said, remap is basically memory-bandwidth limited.


I always assumed OpenCV was about computer vision, and I'm (pleasantly!) surprised it's this extensive. Does this mean it's good as a general-purpose image processing library? Not a fan of Imagemagick and have been looking for something better and faster.


With OpenCV, it doesn't get any simpler than this:

http://www.pyimagesearch.com/2014/05/05/building-pokedex-pyt...

It's even written in Python.


if the camara and tv are stationary, sure. The most interest is being able to calculate the transformation and then apply in faster than realtime - especially for AR/VR applications as you can move around and it would still work.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: