Multi Azure kinect cameras synchronization using python - azure

I am working on 3d photography and need to syncronize 4 azure kinect cameras.
I am not happy with cpp and working with python. Could anyone help me finding a code (same as green screen) for synchronizing in python?

Please refer to Synchronize multiple devices for physically connecting multiple Azure Kinect cameras.
I have written a simple Python example of configuring 2 Azure Kinect devices to be synced together where one is master and the other subordinate: k4a_sync.py. It assumes that the k4a python package has already been installed and that the devices are already physically connected with a sync wire before running the example.
Note that based on reading the system timestamps of the collected captures, the time between captures seems to be on the order of around 100-200 ms, which is unexpectedly way higher than the synchronization settings should have produced. This may be related to an open issue: https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1665

Related

I am making a smart switch, I want to solve a problem where I need to read data and send data to cloud at the same time with esp32

I am making a smart switch.
The switch has the following features :
The switch can be turned on or off through a physical switch or through thingspeak cloud switch.
it'll calculate the voltage, current and power using current and voltage sensor.
Now i have the code ready for both these functions, now the real problem is that sensors goes in a loop to calculate the value then upload on the cloud, but this causes a delay to the first function I can't use the switch neither the physical switch nor the cloud switch to turn the relay on or off.
I need a solution how to fix this so that I can calculate data and send and at the same time if I wanna use the relay I can get the values from cloud as well or the physical switch.
I am using an Esp32 microcontroller.
Hi CHANAKYA SUNIL JHA,
This is easily doable with FreeRTOS implementation in your code. I assume you are doing this project in Arduino IDE.
With FreeRTOS, you can implement two tasks, and assign each task to each of the core of your ESP32 and allow it to run in parallel.
I will provide a sample code for pinning 2 separate LEDs to 2 separate cores of ESP32 below. You can use this for your project.
Link to code template: https://github.com/Makerdemy/Advanced-ESP32/blob/master/Section%203/3.4/Code/LED_Dual_Core/LED_Dual_Core.ino
I hope this will be helpful and you are able to finish the project
Happy Tinkering,
Thank You.
Naveen PS

Web-Bluetooth error "GATT operation not authorized" occurs on Windows only

I have been working with web-bluetooth for the past several months on iOS and ChromeOS without any problems. But today, I tried to run some of my examples on Windows for the first time, and to my surprise, most of the things I had implemented didn't work with Windows. I am able to successfully connect to my peripheral, but whenever I try reading or writing anything to a custom service with a custom characteristic, I get the error "GATT operation not authorized". I have tried looking around but there is no information anywhere about this.
I am including below the simplest example I have which is just for turning the LEDs on / off on an nrf52832 board. There is only one custom service and one custom characteristic implemented, the value of which controls the states of the LEDs. This works without any problems on Chromebooks and Macs but does not work on Windows. Here is the link to this simple project including the embedded code and the web-app.
https://github.com/shtarbanov/WebBluetooth-Feather-nRF52832/tree/master/LED%20Control
I have made two implementations of the same thing, one based on promises and another based on async-await located in the folders "WebApp (Async)" and "WebApp (Promises)", respectively. Both of those implementations work fine on Mac and Cromebook, but not on Windows.
It is a known issue that secure characteristics are not accessible using Web Bluetooth on Windows. On other platforms the pairing occurs automatically, but not on Windows. There is an issue tracking this:
https://bugs.chromium.org/p/chromium/issues/detail?id=960258
Stuck with this also and as for workaround i can recommend for windows platform to pair device firstly using windows itself and than to pair it via browser(as a workaround). Not much but hope this helps, at list a little.
P.S. it should be paired via windows only once, so PC will remember device, and than you can pair via browser as long as PC remembers device.

Cubase No Audio

I am attempting to install Cubase Elements 10.5 'stay at home trial but fail to get any audio.
I have followed numerous guides online about shuffling various Gb files around (surely thats the installer job) but still nothing.
All audio mapping shows as connected.
When testing eg using the Production > Blues Rock Production (so its not even setup), for each Channel I get the error message:
The current preset or project was created with a previous version of HALion Sonic SE. If you modify the preset using new features of this trial version a previous version might not be able to load it or the preset might sound different
if I just click ok and load the project it seems to play, but no audio or output levels show.
I am getting nowhere with Steinburg 'Support', raised a support request and this is just ignored.
I have been trying to get this working for about a month and installed several times.
VST Connections
Audio Device and Driver
The application is in focus when it fails to provide audio, not sure where to make it play in background.
Screenshots of fault:
Chose a project as test, but when loading each of the channels shows this error,
I click ok to make it load:
Press play, no sound
but see it playing here:
Attach a screenshot of your VST connections in Cubase to help others diagnose your system.
Ensure you have latest drivers for your audio card etc.
Ensure your operating system (or any other background/foreground app) is not using the outputs you have selected in Cubase.
as they may not be multi-client.
ASIO compatible hardware is recommended.
Ensure background audio is enabled in Cubase if the application is not in focus.
Confirm that you have followed at least the steps above in any further replies. Specify your level of experience with computer audio in general, so that further information is relevant to you :-)

Micro:bit BBC programming bluetooth

I recently purchased Micro:Bit. I've seen that micro-python and bluetooth cannot be used at the same time due to memory capacity.
Does anyone know if I would be able to build a decent application using the javascript block programming?
The app basically has to do the following:
Read data from acceleretometer.
Acumulate some accelerometer data.
Send the information to another device connected via bluetooth.
Yes, you should be able to write a program for the microbit that does this. the official documentation describes the services that are available. I also found an example which suggests that there is an app which you can use at the phone end if that's relevant to your application.
The micropython restriction is a combination of the BLE protocol stack requiring 12 kB of RAM, and python being interpreted (so having a high RAM requirement).
You can chose the block version or test javascript - and should be able to write reasonably complex programs (even if the text entry might be best done in an editor). As a final fall-back, you can fall back on C/C++ using the microbit DAL (which seems to be built on top of the mbed offline toolchain).

Passing data within an app between devices in same network

I am currently developing a Universal Windows 10 application that is planned to run both on the PC + Mobile and the Raspberry Pi 2.
I was wondering what would be the best way for these two apps to pass data from one another through a local network and not using Azure. It is required that for every transaction done on each device, it gets transmitted over to another.
We also need to remote control the Raspberry Pi 2, like manage the data and shut it down using the app.
We are planning to build a RESTful API that will run on the same local network to facilitate this but I'm not pretty sure what APIs to use for this.
What are the necessary APIs that will be good for this requirement?
Thank you very much for your help!
Depending on the size of what you transfer, I found this:
BackgroundUploader class
Windows.Web.Http namespace.
See https://msdn.microsoft.com/library/windows/apps/br207140?cs-save-lang=1&cs-lang=csharp#code-snippet-2

Resources