YV12 picture format

306 views
Skip to first unread message

JaRo

unread,
Oct 30, 2015, 11:48:40 AM10/30/15
to OpenALPR
Hi,

is in method "recognize" usable YV12 picture format.
https://en.wikipedia.org/wiki/YUV#Y.27UV420p_.28and_Y.27V12_or_YV12.29_to_RGB888_conversion

We have some IP cameras, which produce stream using this format.

Of course is me clear, that i can make conversion, but....

JaRo


Matt

unread,
Oct 31, 2015, 12:07:18 AM10/31/15
to OpenALPR
The recognize function has a few overloads.  The one that takes raw pixel values is mainly a way to efficiently transfer data from OpenCV Mat without including all the libraries in alpr.h.  I believe it's BGR format.  There is another recognize function that takes a byte array, and that is looking for encoded image data (e.g., JPG, PNG, BMP, etc.).

JaRo

unread,
Oct 31, 2015, 9:54:03 AM10/31/15
to OpenALPR
Hi,

at first (no offense) of course i know about overloads. YV12 is 12bit per pixel YUV420 format

https://msdn.microsoft.com/en-us/library/windows/desktop/dd206750%28v=vs.85%29.aspx

and i am not sur if any of overloads is applicable for this format.

Regards
JaRo


Dňa sobota, 31. októbra 2015 5:07:18 UTC+1 Matt napísal(-a):

Matt

unread,
Oct 31, 2015, 1:48:03 PM10/31/15
to OpenALPR
You'll need to convert it to either an encoded format (e.g., JPEG/PNG/TIF/etc) or to raw RGB first.

-Matt
Reply all
Reply to author
Forward
0 new messages