I have written an QR Code Scanner application for iOS using ZXingObjC library. I scaned QR code using camera (AVCaptureSession), it worked very well. But when I scan UIImage get from camera roll (UIImagePickerViewController), I am not able to scan some QRCode. I debug, I know that library is not detecting correct position of left bottom corner.
So, my question is " Is there any difference between image take by camera and image copy from PC to iPhone".
Thanks.
I cannot find the answer for my question, but I find a solution for my problem. I don't know "Is there any difference between image take by camera and image copy from PC to iPhone". But now I can scan the UIImage (which before this time, I can't scan). My solution is ROTATE this UIImage a small angle. I don't know that is my error or ZXingObjC error.
I hope it can help who has same problem.
Related
When using iOS devices such as the iPhone (and possibly other devices; not Android devices however), photos taken and uploaded in drupal 8 are rotated to a 90 degree angle.
For example, images taken and uploaded vertical are posted horizontal.
Images taken and uploaded horizontal are posted upside down.
Any help would be appreciated
Many thanks
------------------EDIT---------------
I'm currently using Drupal 8's code, so the code is in its original state.
Is there a way to not change the code and download a module or something which can correct the problem?
Below is an example of how images are automatically rotated from the uploaded/original image and posted image...
Example 1
I am developing a custom camera in which the camera is set to the Image Capture mode. I need to increase the zoom level of camera preview according to the app requirements. The preview currently being displayed is perfect I just need to increase the zoom-out in current preview. I searched over internet but didn't find any solution. Please tell me how can I do this. I am attaching the example image for better understanding. first image is of my camera app and second image is of Scanner Pro app which shows view with more covered area while I focus both the apps for the same object on the same distance. My camera don't have any space but the Scanner camera has spacing all over the image. Both the camera are on the same distance from the paper.
i don't know whether you still need this answer. Probably not, but still for you and everyone else looking out:
When you set the Session Preset, try using SessionPresetPhotofor the device object. This should resolve the weird zoom issue.
Your preview view is probably spilling over the edge of the screen. Make sure it is a 4:3 aspect ratio and that it doesn’t overflow your screen edges. With that you should see more of your image.
In my app I do image post processing in real time and want to have source image, without this feature.
Who knows how or have some ideas about it?
I am developing a Phonegap application for IOS and I want to use Capture plugin for it. I have installed the plugin using CLI and added permissions in the config.xml file but the plugin os not working it do not show any output or error.
Basically the problem I have is with the image orientation when image captured from the camera. The image rotates in landscape direction.
I have tried to read the exif data in PHP but IOS trims the exif data from image before sending it to the server
I have installed the capture plugin but it is not working on IOS 7.1
I just need to make the orientation of the image right when taken from the camera.
Within the .getPicture() call you can set the option
correctOrientation: true
This solved my problem of portrait images turning horizontal however on my LG G2 significant lag was added during the capture process when this flag was set. I'm still trying to figure out a server-side fix but with some EXIF data being stripped it's a bit challenging.
Docs explain a little more:
http://plugins.cordova.io/#/package/org.apache.cordova.camera
correctOrientation: Rotate the image to correct for the orientation of the device during capture. (Boolean)
I want to capture a image from a web cam and i want to print dat captured image in desired size.
consider taking a screenshot programatically and cropping it. if this is not possible, you should talk to the hardware directly by using the driver.
also please provide more info on os, webcam make and programming platform,