[Q] how to get a live feed of the camera in native C++ on Google Glass - Glass Q&A

We are looking for a way to get a live feed of the camera in native C++ on
Google Glass. Our plan is to setup a CameraListener that will act as a
callback for when a image is recorded.
Right now, the problem comes in the camera connection process. So far, we
have tried to set up a SurfaceTexture to use with
android::Camera::setPreviewTexture(), and android::Camera::startPreview().
The application gets a reference to the Camera successfully, but when we
call setPreviewTexture with a SurfaceTexture that has been created via
OpenGL, the application crashes.

dkottas said:
We are looking for a way to get a live feed of the camera in native C++ on
Google Glass. Our plan is to setup a CameraListener that will act as a
callback for when a image is recorded.
Right now, the problem comes in the camera connection process. So far, we
have tried to set up a SurfaceTexture to use with
android::Camera::setPreviewTexture(), and android::Camera::startPreview().
The application gets a reference to the Camera successfully, but when we
call setPreviewTexture with a SurfaceTexture that has been created via
OpenGL, the application crashes.
Click to expand...
Click to collapse
have you checked out BBQScreen?

Related

Need video chat / conference testers

I recently published my ReelPortal video chat/conference software for Android 2.2 (using Adobe AIR 2.5) at the AppsLib market:
http://appslib.com/applications/app.html?ida=31520
I don't have a G Tablet, but would like to compile a list of devices that the app works on. So I'm looking for testers out there.
Please provide feedback if you try it. Thanks.
For more info on testing, please visit www.ReelPortal.com.
I just added another version reelportalX.apk (version 1.0.1). This version is working fine now. I suggest using it instead of the older one.
You must get Adobe AIR 2.5.1 from Android Market, or you can download the Adobe AIR SDK (http://www.adobe.com/products/air/sdk/), and get it in subdirectory runtimes\air\android\emulator, or runtimes\air\android\device. I found that Adobe doesn't allow posting the AIR apk on a website. Note: don't use the AIR link in post #6.
If you want to test chat with other folks around the world, please join the "xda" room (all lower case). Capacity is limited .
firewater2003:
Install Adobe Air 2.5.1 from here: http://download.pandaapp.com/?app=soft&controller=android&action=show&f_id=2291
Beware of TNT dashboard:
MoonPops: I kept getting the black screen while starting up ReelPortal in the TNT dashboard home, but it works fine in the Android Home Classic screen interface.
Firmwares that were confirmed to work:
Stock TNT 3588 (do NOT use TNT dashboard)
TnT 4.1.0
TNT lite 5.01
VEGAn-TAB-v1.0.0B5.1
can not find adobe air in market... running tnt 3.1.2
when I launch reelportal app, it get a blank screen
I did find adobe air 2.5 and installed it from another source.
I installed Adobe Air and your. apk and everything installed fine. Web cam and interface came up and seems to work fine. Only problem is, I don't have anyone to chat with, so I don't know how well that works......lol.
worked between my Droid 1 and my Gtablet.
insight3fl said:
when I launch reelportal app, it get a blank screen
I did find adobe air 2.5 and installed it from another source.
Click to expand...
Click to collapse
I found an APK for Air here:
http://forum.xda-developers.com/showthread.php?p=6571754
I was going to try between my Gtab and emulator.
Air installs ok on my emulator, but reelportal.apk says "application did not install" ...
Jim
insight3fl said:
when I launch reelportal app, it get a blank screen
I did find adobe air 2.5 and installed it from another source.
Click to expand...
Click to collapse
Same experience here. Stock 3389 with performance pack. Grabbed Air from another XDA post (2.5.15320). It just comes up to a blank screen.
Can those who got it to work link the apk they located?
reelportal said:
I recently published my ReelPortal video chat/conference software for Android 2.2 (using Adobe AIR 2.5) at the AppsLib market.
I don't have a G Tablet, but would like to compile a list of devices that the app works on. So I'm looking for testers out there.
Please provide feedback if you try it. Thanks.
Enclosed is the apk file. For more info on testing, please visit the ReelPortal website.
Click to expand...
Click to collapse
Hi,
I found this:
http://reelportal.blogspot.com/
Is this your website?
If I'm understanding how this works (when it works), these chats go through your chat server, and the way that we would do one-to-one video chats would basically to "join" a chat on your chat server?
Thanks,
Jim
Installed air and reelportal. Just a black screen for me too, running TnT lite 3.1.3
reelportal.com
Jim:
Yes, that's my "readme" page for my ReelPortal dot com site. Sorry I'm not allowed to post any links .
You are correct on the server. It routes the data from the clients to each other. However, the clients can also do peer-2-peer with each other (this is the default mode). When first started, the clients all connect to my server to sign on. The server checks for name conflict and room availability, and authorizes the session. If you are in a room, the server connects you to all the clients in the room automatically. Of course, you can call individual person if you know their name(nick). You can also disconnect from any client you want.
In p2p mode, all video/audio traffic goes directly from client to client(s). The server doesn't have to process it. If you select client/server mode, then the server receives your stream and distribute it to all subscribing clients. This lessen your uplink bandwidth if you have multiple subscribers.
The next version will allow you to specify your own server. And yes, you can run your own server on linux, windows, or macOS. And perhaps other platforms too, if you are inclined to do so. An older server version is currently available from my download page, but I will release the newer version in conjunction with the next client.
www.reelportal.com
kxs783kms said:
I installed Adobe Air and your. apk and everything installed fine. Web cam and interface came up and seems to work fine. Only problem is, I don't have anyone to chat with, so I don't know how well that works......lol.
Click to expand...
Click to collapse
To test, you can actually call yourself . Once connected, press button 7 (P2P), and select "Send to Server" mode. Then, press one of the "blue head" on the right, then press the ">" button on the dialog. A list will appear, and your nickname is the always the first one on the list. Click it, and you should see your own stream feeding back to you. Basically:
Your video ----> Server -----> Your device
Or if you have a computer, just run the web client on your computer, join the same room on both devices, or call the other's nick to establish connection. Hope that helps.
Link http://www.ReelPortal.com
insight3fl said:
when I launch reelportal app, it get a blank screen
I did find adobe air 2.5 and installed it from another source.
Click to expand...
Click to collapse
If it's a blank white screen, then perhaps it's not finding the server. Is your internet connection available or slow? Ideally, I should have some status indicator to be a bit more user friendly.
I also tried the adobe air file posted here, but reelportal apk only opens to a blank screen still. What are we doing wrong?
copc:
thanks for posting the link.
tcrews said:
worked between my Droid 1 and my Gtablet.
Click to expand...
Click to collapse
cool..thanks. how's the usability? can u hear/see ok on both ends?
insight3fl said:
I also tried the adobe air file posted here, but reelportal apk only opens to a blank screen still. What are we doing wrong?
Click to expand...
Click to collapse
can u retry...if the install was ok, then i suspect either the connection is slow, or my server is busy.
I ran a brief loopback test under low 4g in Philadelphia. Performance looked good but I was unable to select front camera on EVO. I will play with this some more but front camera access is a must.
Sent from my PC36100 using Tapatalk
Dante_l1 said:
I ran a brief loopback test under low 4g in Philadelphia. Performance looked good but I was unable to select front camera on EVO. I will play with this some more but front camera access is a must.
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
Thanks. Apparently, the front camera can't be access at this time . I googled this:
"AIR does not currently support the front camera.
In fact, the Android OS does not natively support the front camera. The device manufacturer provides a separate Java library that makes the camera available to Java apps."
I wonder if Android 2.3 supports multiple cams.
Also, is the front camera access problem the same for all tablet devices? Or is it device dependent?
To answer my own question: android 2.3 supports multiple cameras.
http://developer.android.com/sdk/android-2.3.html

Xperia Z3C Live on YouTube Unable To Sign In

Hi there. Been using the Z3C all week and really enjoying it, but I've found one persistent problem with one of the built-in apps and am hoping someone here might be able to point me in the right direction for getting a fix.
I'm unable to get the Live On YouTube camera app (v 01.00.21) to sign in to my Google account. Firing up the app, I get the page requiring me to read and accept the terms and conditions of use. Fine, accepted. I then get the popup outlining the permissions - no problem, accepted. After this message disappears, I get a few seconds of the "loading" animation and then a popup tells me "Your YouTube account does not have the necessary permissions to create a live stream. Want to change your permissions now? ||No|Yes||".
When the error first occurred it was right enough - logging into YouTube on desktop I was able to establish that I didn't have live streaming enabled but despite now having enabled it, the camera app still returns the error saying my account doesn't have the necessary permissions. If I hit "Yes" it loads a YouTube URL and now when I land on the site there's a popup saying "You are already enabled for this feature".
I've tried wiping all the Live On YouTube application data via settings, I've tried uninstalling the app and reinstalling, but I keep getting hit with this error.
Can anyone suggest anything else I might want to try to get this feature working? Or does anyone have a suggestion of a better place to ask the question if it doesn't belong in this forum?
I can get mine working or at least set up ok, however, upon trying to run the option I just get a 'Creating Live Event' dialogue that stays on forever.
Its rather annoying I can do a share to my social media network of choice, so people can get to the right web page to see my live event, I just can't seem to get the phone to actually start streaming, despite setting up youtube ok. Has anyone yet managed to do a youtube live broadcast from their phone, and if so, can they detail what they did please.
I had this issue too. It was because I had 2 youtube profiles on my google account, so I enabled Live permissions on both profiles, and it worked.
Burlingtonrox said:
I had this issue too. It was because I had 2 youtube profiles on my google account, so I enabled Live permissions on both profiles, and it worked.
Click to expand...
Click to collapse
We have a winner!
I was using YT under my original username, not realising that this meant my G+ identity had a whole separate profile on YT. Switched over to the "real name" profile and found live streaming wasn't enabled there. Enabled it and Robert is now my father's brother.
Fixed! Thanks very much.
How about the 'Creating Live Event' dialogue that stays on forever. Do you have that or does your stream ok.
techguyone said:
How about the 'Creating Live Event' dialogue that stays on forever. Do you have that or does your stream ok.
Click to expand...
Click to collapse
Hi techguyone, the first time I tried it I got your message for a few seconds before it came back with an error message saying "unable to create live event". When I retried I got your message again for another few seconds before it appeared to work. I'm still waiting on the processing, but both the "failed" event and the longer test are now visible in my uploads, even if I can only currently view the (very short) failed one.
It looks like it's going to work for me.
Have you tried the old clearing-out-the-app-data-via-settings trick already?
Mine worked eventually, but its still kinda clunky, interestingly enough I found the other live app (Facebook one) to work straight away, and was a lot easier. I think I'll be using Facebook over Youtube in the future for any impromptu streaming.
This worked for me...
What I did is that I clicked on the avatar in the upper left corner of the screen,and scrolled down and signed out,and the signed in again with one of my two existing youtube accounts,and accepted all the terms and everything again from the beggining....Then I pressed the record button, it took a while to create an event,but it actually started the live streaming!!!!! :

Help with Simple OCR app using Firebase ML Kit

Hi everyone,
I am new to Android development but I have been learning on the way as I create my first OCR app using Firebase in Java. I essentially followed a youtube video to create the app but I had the following problems that I needed help with:
1) If I take the picture in landscape, the app can detect the text. However, when I take the picture in portrait, the captured image is rotated 90 degrees and the app cannot detect the text in the image. Whats the simplest way for me to resolve this?
2) Currently I take the picture with the phone's camera and this image is displayed in the app. I click my detect text button and the text appears. But I would like to see some bounding boxes on the images that shows what Firebase ML kit is seeing.
3) Also when I take a simple screenshot of a smartphone pin screen, the app can detect most of the numbers, but it always seems to miss one. I assume this is because I am using the local on phone version of Firebase ML kit, but is it possible to make it more accurate without running on cloud. I am currently using:
implementation 'com.google.firebase:firebase-core:15.0.2'
implementation 'com.google.firebase:firebase-ml-vision:16.0.0'
Thanks

Question Casting restriction caused by rear screen

Hello guys,
the "WOW"-App (formerly known as Sky Ticket) is a streaming app from the pay-tv service sky (watch live sports and films and so on).
The app has a cast-function to cast it to a chromecast capable device.
The problem is, that the app doesn't stream at all since the A12 update, the app gives me an error indicating that i try to cast the phone screen via hdmi which is not allowed., so i can't watch anything, the stream doesn't even start.
This is caused by the rear screen (i spoke to sky support). Support says, they cant give solutions because the mi 11 ultra is a "exotic device".
Toggling off the settings or disabling the rear screen system app didn't resolve the issue.
Under AOSP ccustom rom (pixel experience and crdroid the app worked because the reaar screen is disabled there).
I tried to look into the permissions using Lucky Patcher but can't figure out the corresponding permission.
Anybody know which peersmission i have to deactivate or can help to disable the rear screen?
It happened with me as well, i wasn't able to use wireless display feature on my windows laptop. Everytime i tried to connect this phone to laptop for casting. It will try but won't succeed so i turned of rear display from settings and restart and casting started working but when ever i used to go to phone settings' main page it will disconnect everytime. So i had to minimize using home button everytime i connected.
I am from India and I bought my ultra on the day of its launch.
From the day one my satellite TV app Tata Sky refused to work with "Casting is on" message.
TataSky helpdesk blames this issue to this particular model and ask me to get support from Xiaomi.
I switched off casting/screen mirroring etc etc etc but nothing works.
I searched a lot but came to know this issue is because off rear display and switching it off via default settings doesn't resolve this issue.
I was OK to live without TataSky as I started loveing my Ultra .
But now need a resolution on this urgently PLEASE as update version of my ICICI bank app refused to work as casting is not allowed as security measure.
Uninstall it and install older version to work but I know it is a temporary solution because anytime my main banking app will force me to update.
There must me something in setting text file which could edit with Setedit to switch off "back display" as we were able to increase its switch on time by fiddling with this file.
(Use setedit to edit the time of the rear screen from 3000 (30s) to what number you want )
Any solution will be very much appreciated.
Shailendra Garg said:
I am from India and I bought my ultra on the day of its launch.
From the day one my satellite TV app Tata Sky refused to work with "Casting is on" message.
TataSky helpdesk blames this issue to this particular model and ask me to get support from Xiaomi.
I switched off casting/screen mirroring etc etc etc but nothing works.
I searched a lot but came to know this issue is because off rear display and switching it off via default settings doesn't resolve this issue.
I was OK to live without TataSky as I started loveing my Ultra .
But now need a resolution on this urgently PLEASE as update version of my ICICI bank app refused to work as casting is not allowed as security measure.
Uninstall it and install older version to work but I know it is a temporary solution because anytime my main banking app will force me to update.
There must me something in setting text file which could edit with Setedit to switch off "back display" as we were able to increase its switch on time by fiddling with this file.
(Use setedit to edit the time of the rear screen from 3000 (30s) to what number you want )
Any solution will be very much appreciated.
Click to expand...
Click to collapse
Go for custom rom -> EvoX, Project404 or PixelExperience, my Sky App works because rear display is deactivated in these roms

Switching Gmail accounts in Google Home

Hello,
I’m looking for any suggestions from users that have migrated their Google Home email address to a new Gmail and Home.
What I’m looking to do is:
Move Google Home from my current Gmail address to my new Gmail address in newly created “Home” in Google Home app
Move Nest devices (Wired doorbell, Speakers, Yale Lock, Protect, Thermostat, sensors) to newly created Home in Google Home app without losing my Nest Aware (1st Gen) subscription. And without factory resetting the Nest Doorbell as it is wired and not easy to get to the QR code.
Move YouTube TV from current Gmail address to new Gmail address.
Reasons:
Current email is associated with other things. Not just the Smart Home and have been getting more junk mail over the last 4 months.
“Issues” in Google’s development procedures and updates to the app have caused some devices to show up multiple times. Even after using the old method of downgrading the version of Google Home app and removing the duplicates, they still exists somewhere in Googles infrastructure. When giving voice commands, Google Assistant does not execute properly because it either doesn’t see the device or sees the device under a previous name.
After creating a Test Home environment for the Preview program, I moved one Chromecast w/Google TV dongle and a Nest mini to that environment. I had removed the devices from my main Home, factory reset and added them to the Test environment. Now, when I ask Google to sync my devices in the main Home, Google now responds that “two devices are not available and you might want to try setting them up again”
I’m waiting to execute this project until the new updates for Matter are released. Just in case there are problems so I do not have to factory reset devices or create a new Home, etc; more than once.
Any advice on the best ways to do this with minimal issues will be greatly appreciated.
Thanks
I know these following problems will not get fixed by creating a new Home in the app, but I wanted to list them to see how many others have been affected as well.
Because of the three major screw ups this year by Google, (the three I’m aware of) I’ve moved the majority of my Google Home routines to Amazon Alexa.
Google using code from Sonos costs us the use of being able to control Speaker groups. Still no fix.
The update pushed out to the Google Home App around October 20th 2022 time-frame broke the use of color light bulbs from major 3rd party vendors (that I know of Feit, Geeni, Tuya). Google Assistant no longer recognized the bulbs as color and only responds with an error when used in a routine or vocal command.
The fix for the above issue pushed out the following week only corrected part of the problem and broke Location. Whenever the Google Home app was opened, there was an error of “no location”. The App however does recognize color light bulbs again, but the update to power on/off, change brightness and set color, broke any routine that had a Starter that was time based. Example: For setting night functions of Locking the door, setting ADT alarm and turning off lights no longer executed. UNLESS, I remove the light bulb functions.
So basically I now have all routines that turn lights on/of, change brightness or color handled by Alexa.
It’s also weird that I could tell Google Assistant to run the broken routines and they worked, but it does not execute them based on a Time Starter.
4. Does anyone know how to dismiss ALL the notifications at once in the Google Home app like in previous versions. Instead of having to click the 3 dots next to each message and then click Dismiss?
Thanks again.

Categories

Resources