I am developing Android Application, in my application user will take photo using the camera, that photo has to be uploaded to this url http://images.google.com/searchbyimage I want to know how to upload the file to this URL and how to parse the response and display the images in the Grid.
Google image search is based on meta data and actual file properties. So what you want to get done may not work as you wish to as it will be completely different image.
It might work only with landmarks, for example if you take photo of big ben and search picture on google that might find things related to Big Ben. Same with brands, if you take picture of Coke bottle that might work. But if you take picture of say somebody or some object that will not work I am afraid.
Related
I want to know whether i can parse the source link of an video from a site.
I've seen apps doing same.
for example how can i parse video links from the site
http://www.hotstar.com/movies/2-states/1000034502/watch
i don't know how the scrapping works but any direction to the work may help.
The app i found doing same is called Videoder.
here is the screenshot i captured
ScreenShot
I know we can extract text from image using ocr. But I need to extract the text present in video, like those in video lectures. Or in other words is it possible to transcribe a video to text. Is that possible? If so please suggest me how to do it in java or any other language.
My naive linux driven approach would be:
check: does the OCR work in my operating system?
extract some samples from the video using the normal runner. Each runner (for example VLC) has such a functionality.
check: how good is the OCR in extracting text from image files?
check: how good is the OCR in extracting text from image files with the background the video is providing?
get software to extract frames from videos in batch -> there is various software which allows to create contact-sheets, this should also be able to extract images in full resolution at abitrary points in time out of the video. Full resolution might be necessary to allow the OCR to work. Perhaps you can clip the images first, if you know, that the text is positioned in fixed rectangles.
Worst case you let OCR analyse each frame of the movie.
That mostly depends on how good and how fast your OCR is working. Everything else to me is very proven software. The language might be bash-shell-script, since the components will probably be separate linux programs. As I mentioned, it depends on the quality, performance and runtime environment of your OCR.
Yes, You can do that and there are 3 ways you can achieve it.
Split, Classify and train on your own.
Get a performance server,
A. Extract images from the video
B. Develop and Train your machine learning model. You can use tensor flow to do the same.
Note: If you prefer to train models on your own, make sure you have enough time as sometime the developing and training requires few months and you should have data to train them.
Use an OCR framework
USE API(Freemium model). There are many available in the market. Just google them and your will have many in hand.
I want to write a program which allows me to download the video of a certain link and store it into database. I am able to retrieve the link of the video but I can't download it into my computer or database. Lets say my link is "www.abcde.com/12345" and when i click this link, I can watch the video. So How do I download/store this video into my database using java ? I read about inputstream, httpconnection and getV , filereader and whatnot but I just dont know where to start.
1. Link
The link you enter by browser to watch a video is rather not going to be link which you can use in your application to download the content of a file. Link you enter by browser is probably a reference to some web video player
In your java application a link to original resource file with the video content will be neccessary.
2. Database storage of a video
Do you really need to store video content in a database?
There are plenty more options (like for example storing only reference to file path)
I reccomend you to read this article
https://wiki.postgresql.org/wiki/BinaryFilesInDB
I store images type TEXT which contains the URL of this image in my SQLite database, I want to get in my application in android these images and then display it on buttons
i just want to know how can i do it, some suggestion please
Since you fist need to download the images, I suggest you google for something like "android load images" or "android download images". You will find many good tutorials and libraries.
I need to make a java program which takes a directory of images and displays them one at a time - Fair enough. However, alongside this picture viewer I need a text box in which the user may comment about this individual picture. This should then be saved to the image so that if I ended execution and re-run the program loading the same directory again the comment attached to the specific image remains. Similarly if I move on to a different picture and come back the comment remains.
I know this can be achieved in multiple ways but im not sure how to best approach it.
Does anyone have an advice for me? All help is greatly appreciated
Thanks :)
Are you looking for EXIF ? This works with TIFF, JPEG, PNG and other common image formats. It looks a better fit to your requirements than dealing with XML files containing the image metadata.