[cairo] Cairo and OPenCV

Deepak Kumar JAIN deepak19dec at gmail.com
Fri Sep 9 10:38:10 PDT 2011


Hello Bill,
Thanks for the reply.

When I write the text in black in Cairo and see the resultant image in
OpenCV, the text is becomes white.
Also the stride factor is always confusing me and also the BIt Depth in
openCV and Cairo.

Can you please tell about that?

Thanks,
Deepak

On Fri, Sep 9, 2011 at 7:33 PM, Bill Spitzak <spitzak at gmail.com> wrote:

> Draw a rectangle to make sure the problem is not text-only. It might also
> show more clearly if the skew is caused by a wrong stride factor.
>
> Also useful is to draw solid red, green, blue rectangles, to check for the
> channels being in the wrong order. Or draw the text "red" in red, etc, to
> make sure the colors are not confused.
>
> Deepak Kumar JAIN wrote:
>
>> Hello All,
>>
>> Have anyone worked with Cairo with OpenCV. I am trying to load an jpg
>> image through OpenCv and then creating the image surface through image data.
>> After putting some text on the surface, I am again trying to copy the image
>> surface into openCv image format so that i can save the resultant image into
>> Jpeg format. But when I see the image, I see the text but its distorted and
>> seems like some loss of data occurred. I am trying to see into it but I am
>> not able to figure out where is the data loss occurring.
>>
>> It will be of immense help to me if someone can through some light on
>> where I can go wrong.
>>
>> Thanks & regards,
>> Deepak Kumar JAIN
>>
>> --
>> www.deepakkumarjain.co.cc <http://www.deepakkumarjain.**co.cc<http://www.deepakkumarjain.co.cc>
>> >
>>
>>
>> "/I err therefore I am /"- Saint Augustine
>>
>>
>> ------------------------------**------------------------------**
>> ------------
>>
>> --
>> cairo mailing list
>> cairo at cairographics.org
>> http://lists.cairographics.**org/mailman/listinfo/cairo<http://lists.cairographics.org/mailman/listinfo/cairo>
>>
>


-- 

Thanks & Regards,
Deepak Kumar JAIN
Internship student,
Orange Labs,France Telecom,
Rennes, France
Contact: +33(0)6 31 15 44 66
www.deepakkumarjain.co.cc

"*I err therefore I am *"- Saint Augustine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110909/70a36351/attachment.html>


More information about the cairo mailing list