I am working in a personal project on Android and I would like to add images captured from Webcams into the app, e.g from here:
https://www.skylinewebcams.com/en/webcam/united-states/new-york/new-york/new-york-manhattan.html
My problem is the Webcams are in Flash and I want to show in the app just a picture.jpg or .png captured , so I am thinking:
1.- Getting a webCam screenshot using the webcam url (will called with a cronojob)
2.- Saving the screenshot in a database
3.- Showing the screenshot in the app
I am trying with tools like www.screenshotlayer.com or www.whoapi.com but the problems I have are:
WebCam is not loaded when the script gets the screenshot, so in the screenshot is just exhibited the loader.
The screenshot does not contain the image captured (like the image I am attaching getting from screenshotlayer.com)
Any idea about how solve this?
I've encountered the same problem and have to switch to http://browshot.com The do support flash elements.
Related
I'm using the Android Emulator (version 28.0.23-5264690) to develop an app that uses QR codes. The Virtual Scene feature for the camera on the emulator has an option to add your own images to the scene:
When using the emulator with a camera app, you can import an image in PNG or JPEG format to be used within a virtual scene. To choose an image for use in a virtual scene, click Add image in the Camera -> Virtual scene images tab in the Extended controls dialog.
This feature can be used to import custom images such as QR codes for use with any camera-based app.
However, I've tried adding both JPG's and PNG's in the Emulator settings, but they never show up in the virtual scene in either the stock camera app or my own app. I've tried restarting the emulator as well, but still no luck.
Any idea what could be wrong?
I just found this piece of text at the Android emulator documentation for augmented reality:
To view these image locations in the scene, launch your emulator, then move the camera to the dining room area through the door behind the camera’s starting position.
So apparently the images show up in a different room than the one you start out in. By using the movement commands described in the link above, you have to walk into the "dining room", which is through the door behind the dog. There the images are displayed on the wall and the table.
Sadly, the QR code scanner Flutter library I'm using doesn't respond to the QR code, so I'm stuck on using a physical device anyway.
I have a multi platform app - iOS and Android.
One of the features in the app is to capture images. I have a toggle switch in the app settings which allows the user to save the image to the device picture album if the switch is enabled.
This is an issue I can only produce in Android. Even without the toggle switch enabled, the captured photos still save to the device. I have tested this on Android 4.4.2 and 6.0
It does not do this in iOS.
There is nothing in my code to suggest that the photo should still be saved, I have checked it over and over.
Has anyone else come across this? If so what can be done to rectify the issue?
Thanks,
This is simply how FireMonkey captures images on Android. It saves a captured image to a file before handing the pixel data to you. And it does not provide access to the captured image's filename so you can remove the file afterwards.
FireMonkey has an IFMXCameraService interface with a TakePhoto() method, which accepts a NeedSaveToAlbum option:
Taking Pictures Using FireMonkey Interfaces
However, it is currently broken on Android:
RSP-13118: [Android] TTakePhotoFromCameraAction saves Image on Disk unexpectedly
RSP-15820: IFMXCameraService TakePhoto , NeedSaveToAlbum False not working
Until that is fixed, you could use JNI to access Android's camera APIs directly, then you can do whatever you want with the images.
This is the first time I'm trying to take a photo using Phonegap and I've got a small issue!
I can take a photo using the cordova camera plugin which opens the default camera app on the device. This works!
However, I would like to take a photo silently. For example, show a page of text and take a photo programmatically without the preview/default camera app ever showing.
Is there a way to do this currently? I've even looked into taking a silent video in order to extract a single frame.
Something along the lines of this (Take a picture in iOS without UIImagePicker and without preview it) but within Cordova/Phonegap is what's needed.
if you want to take picture specifically or screenshot will do the work for you????? because there is already plugin available for screenshot in cordova which doesn't need user interaction.
Is there a way to save an image to the camera roll directory directly? I was using CameraRoll.addBitmapData() call but that converts the bitmapData to a JPEG and all transparency is lost. And also, the image is being heavily compressed. So I would like to save a PNG with transparency to the camera roll directory.
I'm using Adobe AIR 3.6 and testing on Android 4.latest on a Google Nexus 7.
So I'm able to save an image to the camera roll successfully! The problem now is the native Android Image Gallery app doesn't recognize any images I put there except if I restart the device. It also has a problem with thumbnails (they show a different image or are simply a black background).
Here's what I found:
DCIM – This folder is for Photos and contains another folder named Camera which contains all of the photos and videos taken by the phone’s camera (Created by the OS)
Download – Will be automatically create as needed for downloaded files. Source
Pictures - Not sure.
What doesn't work
Image Gallery doesn't reflect new images added to the directory until the device is restarted. The thumbnails are also incorrect as I stated above.
I've noticed in the Camera directory there is a .ds_store type of file and another directory for thumbnails. Other directories besides DCIM / Camera do not appear to have this file.
UPDATE
I found out that it's a known issue that the camera roll does not refresh! If it is an AIR only problem or not I don't know. But there is an extension to refresh the image gallery after you add the image. http://extensionsforair.com/extensions/refresh-gallery/. I haven't tried it.
Other posts...
I have successfully converted an image to PDF with the iText library in the android device, Samsung Galaxy Tab. There is no issue in viewing the PDF in Galaxy Tab. But, when I send the generated file via. email and open in it HTC desire or my PC the image is very much enlarged. What could be the issue?
Would anyone please help?
I solved the issue by resizing the image to be converted to pdf, keeping the aspect ratio. This new image was used to create the PDF.