ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Rotate webcam image?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Pawel

Poland
33 Posts

Posted - May 16 2019 :  14:21:44  Show Profile  Reply
is it possible to rotate live captured view from the webcam (rotation by 90 degrees or 180 degrees)
and then capture and save an image with rotated orientation?

xequte

4714 Posts

Posted - May 16 2019 :  18:05:54  Show Profile  Reply
Hi

How does this web cam stream its content? As a series of images?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Pawel

Poland
33 Posts

Posted - May 17 2019 :  06:07:27  Show Profile  Reply
I do not know that, but I found this solution

ImageEnView1.Layer[0].Rotate(90)


Picture is rotated as I want, but captured jpg file should be 480x640px size but it is 640x480px (cropped with white borders on both sides).
Go to Top of Page

xequte

4714 Posts

Posted - May 19 2019 :  04:10:21  Show Profile  Reply
Hi

So the image is not being captured at the correct resolution? What code are you using to capture it?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Pawel

Poland
33 Posts

Posted - May 20 2019 :  04:15:47  Show Profile  Reply

ImageEnView1.Layer[0].Rotate(90);

ImageEnView1.LayersMergeAll();

ImageEnView1.update;
ImageEnView1.IO.SaveToFileJpeg('C:\image.jpg');

Go to Top of Page

xequte

4714 Posts

Posted - May 21 2019 :  01:00:19  Show Profile  Reply
You should not need to use layers. Just use:

ImageEnView1.Proc.Rotate(90);

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Pawel

Poland
33 Posts

Posted - May 21 2019 :  02:24:10  Show Profile  Reply
ImageEnView1.Proc.Rotate(90) does rotate my view only for short time (one frame?) and then get back to normal view.
Go to Top of Page

xequte

4714 Posts

Posted - May 21 2019 :  19:48:23  Show Profile  Reply
That is correct.

After each frame is acquired, you should rotate it.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: