Guitar1145 / chrometophone

Automatically exported from code.google.com/p/chrometophone
0 stars 0 forks source link

Detect QR code on page #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please answer the questions about build version and network, will save
developers a lot of time !

What steps will reproduce the problem?
1.detect qr code

A feature that would be very convenient would be to recognize QR code embedded 
in the page and send the QR code link and not the page URL.

The rationale is if there is a QR code in the page, it's for mobile !
So it's natural to send the mobile specific QR code link and not the page url .

What do you think ?

That being said, I love this new froyo feature !
(i think that the apk should be part of the froyo distribution)

Cheers, 
B.

Original issue reported on code.google.com by legabert...@gmail.com on 6 Aug 2010 at 3:07

GoogleCodeExporter commented 9 years ago
It would be quite difficult for an extension to detect if QR codes exsisted in 
every page loaded, as this would require some sort of image processing.

However, lots of people use the Google Charts API to create QR codes, from 
which the URL could be extracted. Doing this in the main function mightn't be 
the best idea, however it might be an option in the Firefox extension which has 
the option to right click on an image to send it.
How about that?

Original comment by patrick....@gmail.com on 6 Aug 2010 at 3:22

GoogleCodeExporter commented 9 years ago
Well, i'm not a chrome developer extension, but i found out that the QR codes 
are just calls to Google Chart API. And the said calls embed the urls.

(I look at the download page for chrometophone : )

http://code.google.com/p/chrometophone/downloads/detail?name=chrometophone-andro
id.apk&can=2&q=

So, I figured that the extension would be able to find the call to the chart 
API and extract the URL.
Well, that's theory :)

Again, i don't know how to get this working, but the code for the RSS chrome 
extension : 

http://src.chromium.org/viewvc/chrome/trunk/src/chrome/test/data/extensions/subs
cribe_page_action/sniff_common.js?view=markup

... seems to be a good start. The code parse the page for a link to a rss feed.

What do you think ?

PS : of course, if many QR codes are found (which is always possible), that's 
more complicated. Maybe all the links shall be sent...

Original comment by legabert...@gmail.com on 6 Aug 2010 at 3:56

GoogleCodeExporter commented 9 years ago
The point I was making was that not all QR codes ust the Chart API, however 
lots of them do.
I'll look into setting it as a context menu option for the Firefox extension.

Original comment by patrick....@gmail.com on 6 Aug 2010 at 4:01

GoogleCodeExporter commented 9 years ago
Code has been committed for next version of the Firefox extension to recognise 
if an image being sent is a Google Charts QR code and will send the URI instead 
of the image URL. This will only work if the image is sent from the right-click 
menu.

The issue will remain open until similar functionality can be included in the 
Chrome release.

Original comment by patrick....@gmail.com on 6 Aug 2010 at 10:41

GoogleCodeExporter commented 9 years ago
As Chrome 6 is now stable, what about adding this functionality using the 
"chrome.experimental.infobars" API.
i.e. once a user loads a page containing a QR code, they are prompted to send 
it to their phone using ChromeToPhone

The same could be done for Market links also.

Original comment by patrick....@gmail.com on 2 Sep 2010 at 11:23

GoogleCodeExporter commented 9 years ago
as we are now on Chrome 13.0 already, is there any improvement? The QR codes 
are everywhere these days, and the market links are a pain in the *** because 
chrome can't open it itself (yet?). this would be a very nice feature.

Original comment by markroli...@gmail.com on 10 Jun 2011 at 3:01

GoogleCodeExporter commented 9 years ago
Issue 276 has been merged into this issue.

Original comment by aml...@gmail.com on 5 Jul 2011 at 8:55