ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Rotation problem with WIA acquire?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
stuartclennett@gmail.com Posted - Oct 17 2016 : 11:22:02
Hi,

Just testing out acquiring via WIA and I've hit an issue with some of my images. Using the AllAcquire demo, the images aspect ratio appears to be portrait, but the image data is landscape with a weird crop. See screen shot of AllAcquire:



This is how the image should look (middle image in the above screen shot):



This is only via WIA - WPD seems to acquire the image normally. Looks like it might be an auto-rotation issue?

I can supply the original image if needed.

Cheers
Stuart

Stuart Clennett
Delphi Berlin 10.1

*edit - updated the imgur links to img tags.
10   L A T E S T    R E P L I E S    (Newest First)
stuartclennett@gmail.com Posted - Jan 12 2017 : 10:35:35
Thanks Francesco.

I browsed the same device (with the same images) that was giving me issues with importing. There's a slight rotation issue, but otherwise the full size image is correct, and not "split" as in my original report.




Does this tell you anything?

Stuart

Stuart Clennett
Delphi Berlin 10.1
stuartclennett@gmail.com Posted - Jan 12 2017 : 05:57:22
HI Nigel,

Sorry for huge delay in responding, only just back in the office after extended leave.

To be honest, I'm not sure how check which drivers are installed on my machine etc. so its hard to say which driver is being used. Is there anyway to find out?

Thanks

Stuart Clennett
Delphi Berlin 10.1
xequte Posted - Nov 16 2016 : 04:09:08
Hi Stuart

I would have expected it to time-out after a reasonable period too. Does it only happen with this one buggy driver?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
stuartclennett@gmail.com Posted - Nov 15 2016 : 10:08:11
Hi Nigel,

As an update to this - I think you're right about the WIA drivers. I've had a couple of crashes involving the WIA driver -- hung the app during acquisition & had to end-task it. After that the WIA drivers disappear from the system until next re-boot.

With that in mind - I don't suppose there's any way to deal with this that I'm missing - like a timeout or something?

Cheers

Stuart Clennett
Delphi Berlin 10.1
stuartclennett@gmail.com Posted - Oct 31 2016 : 15:30:37
Hi Nigel,

Thanks for that info -- I'll have to figure out what the WIA driver is.

Cheers,
Stuart

Stuart Clennett
Delphi Berlin 10.1
xequte Posted - Oct 30 2016 : 18:30:45
Hi Stuart

By default, Windows does not allow acquisition from cards/drives via WIA, so you must have a driver that provides that functionality. I expect that is where it is failing (or at least that is what is causing an incompatbility with ImageEn).

When I use WPD it works as expected.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
stuartclennett@gmail.com Posted - Oct 27 2016 : 05:20:37
Hi Nigel,

The device was just a micro SD card. So I copied the image to a USB stick (creating the DCIM folder structure manually) & the problem persists.

So D/L this image, pop it in a \DCIM\Camera\ folder on a USB stick & use the WIA acqusition demo :)

https://www.dropbox.com/s/pw14e1u3e8y83qk/X_20141218_110145.jpg?dl=0

Cheers,
Stu

Stuart Clennett
Delphi Berlin 10.1
xequte Posted - Oct 26 2016 : 20:36:45
Hi Stuart

This is not an easy one to debug without the device. You would be best to step through the code comparing the data (properties, etc.) going into the WIA class. Determine what is different and try making changes it to narrow down the cause.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
stuartclennett@gmail.com Posted - Oct 18 2016 : 05:15:06
Hi Nigel,

In the WIAScanner demo - the image is acquired rotated to landscape - even though the WIA UI shows it correctly rotated to portrait. The orientation & rotation settings were both Portrait.

WIAScanner does not, however, produce the "split" effect shown in the original screen grab.

I altered the Orientation and Rotation options to various settings in WIAScanner (i.e. portrait, - but nothing seemed to affect the rotation at all - the image was acquired exactly the same every time.

The device is a micro SD card in a USB reader/adapter originally used in a phone.

All the other images on that device acquired okay (i.e. correctly rotated, no errors in the image data)

I tried AllAcquire and my own app - the "split image" error still occurred. Would you be able to figure out the differences in the two apps? I'm new to ImageEn & image acquisition -- there's so many properties it could take me weeks :-)

This is a screen shot of my app:



& of the WIAScanner demo app:



(The AllAcquire demo screen shot is in the original msg above)

Let me know if you need the original image.

Thanks


Stuart Clennett
Delphi Berlin 10.1
xequte Posted - Oct 17 2016 : 18:13:18
Hi Stuart

Does it happen in the WIA demo too? Do any of the WIA properties affect it? Does it happen with all images on that device?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com