-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sensor_receiver.py error in python3 #84
Comments
May be a bit late, but I fixed the issue by changing line 155 from |
Hi, does the pairing between StreamerPV and sensor_receiver.py work for you now? I always get a |
@cgsaxner i have the same problem |
@hankhhub how did u install and launch the streamer on your hololens ? |
@cgsaxner it works for me . |
@jonah27798 Thanks for your solution it helped so much . One question is sensor_receiver.py saving data ? |
@cyrineee I'm glad I could help. No, unfortunately it does not save data, but for example you can save the current frame by using openCV: |
Thanks a lot.so i add this code after cv2.imshow at line 87?
And does recorder_console.py save data ?
Thanks in advance.
…________________________________
From: jonah27798 <notifications@github.com>
Sent: Sunday, April 28, 2019 8:29:34 PM
To: Microsoft/HoloLensForCV
Cc: Cyrine NABLI; Mention
Subject: Re: [Microsoft/HoloLensForCV] sensor_receiver.py error in python3 (#84)
@cyrineee<https://github.com/cyrineee> I'm glad I could help. No, unfortunately it does not save data, but for example you can save the current frame by using openCV:
cv2.imwrite('current.jpg', image_array)
Please note that this overwrites the file after each frame.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#84 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AKDCODWXZEIETT32ROIHQO3PSXUI5ANCNFSM4G3TNMCQ>.
|
Thanks a lot. so i<http://a lot.so i> add this code after cv2.imshow<http://cv2.imshow> at line 87?
And does recorder_console.py<http://console.py> save data ?
Thanks in advance.
Télécharger Outlook pour Android<https://aka.ms/ghei36>
…________________________________
From: jonah27798 <notifications@github.com>
Sent: Sunday, April 28, 2019 8:29:34 PM
To: Microsoft/HoloLensForCV
Cc: Cyrine NABLI; Mention
Subject: Re: [Microsoft/HoloLensForCV] sensor_receiver.py error in python3 (#84)
@cyrineee<https://github.com/cyrineee> I'm glad I could help. No, unfortunately it does not save data, but for example you can save the current frame by using openCV:
cv2.imwrite('current.jpg', image_array)
Please note that this overwrites the file after each frame.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#84 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AKDCODWXZEIETT32ROIHQO3PSXUI5ANCNFSM4G3TNMCQ>.
|
@cyrineee Yes after cv2.inshow, but I believe its located in line 100 if you didn't edit the file. |
@cyrineee Thank you, I finally can connect to the streamer now. My problem was that I always attempted to connect to the HoloLens via USB, but for some reason it only works via WiFi. Concerning your question about recorder_console.py, it is essentially a tool for managing recordings you made with the Recorder tool. The Recorder stores recordings on your HoloLens, and the recorder_console.py provides a tool for downloading and extracting them to your computer, but you could also manually do that using the device portal. |
@cgsaxner i want to have the sensor data on my desktop but the recoder_console.py doesn't work for me .there is a problem of certificate security . it did work for you ? |
@cyrineee yes, for me it worked. |
for future visitors: |
I am trying pair StreamerPV project on HoloLens with sensor_receiver.py on desktop. I am using Python 3.5.6 in order to use tensorflow, and the code gives error at this line "image_data += image_data_chunk" which results from python3 not able to implicitly convert bytes to strings. So I changed the line to "image_data += image_data_chunk.decode('utf-8')" but it still gives me error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 1: invalid start byte
I tried codecs: utf-16, ascii, unicode-escape, etc.. and none of them work. If I used any error handling like "ignore, replace, backslashreplace", my image data gets corrupted.
Has anyone tried to implement this code in Python3, or should I just do it in Python2? Any suggestions would be appreciated.
The text was updated successfully, but these errors were encountered: