raspberry-pi2

OpenCV Multi Core Support

霸气de小男生 提交于 2019-12-21 12:58:25
问题 I was wondering if there is multi core support for the OpenCV library. I am experimenting with Haar cascading and it's pretty slow on my Raspberry 2 which would have four cores, but my application is currently running only on a single one. Any ideas? 回答1: CascadedDetect has multi core support. Recompile OpenCV with the WITH_TBB or WITH_OPENMP (or any other threading framework supported by OpenCV) flag on to enable it. 回答2: I've had a brief look at the class CascadeClassifier in modules

How to access Network Share from Raspberry Pi running IoT Core in UWP app

纵饮孤独 提交于 2019-12-20 10:28:03
问题 I have a c# UWP app that I'm intending to run on a Raspberry PI with Windows 10 IoT Core. The problem I have is when I try to connect to a UNC share to copy some files. The network is just a home network with local user credentials, share is on another computer on the same network. When running the app locally I can just use await StorageFolder.GetFolderFromPathAsync(@"\\share\folder"); to connect to the share and this works fine, I'm assuming this is because the credentials I'm using are

(Cross-)Compiling Swift for Raspberry PI

♀尐吖头ヾ 提交于 2019-12-20 08:59:54
问题 Swift is now Open Source. Did anyone tried compiling Swift for a Raspberry PI? I started to do, but my 8 GB SD card seems to be too small for it ;) Is it possible to cross compile it from Ubuntu? 回答1: A 8GB SD Card works ok, but you'll need to extend the root volume. I have it working and the used space on /dev/root partition is around 3.1GB. The steps below are based on the blog post by Andrew Madsen with a little extra focus on the steps inside fdisk . Get Ubuntu Download an image of Ubuntu

How to display a clock with the current time in a Windows Core IoT app?

本小妞迷上赌 提交于 2019-12-20 02:58:07
问题 I am trying to create an Windows 10 IoT app running headless on a Raspberry Pi 2. Everything is set up correctly and I am able to debug my from Visual Studio using the Raspberry Pi as the remote machine for debugging. Now I want to add a clock on the app page but I can't figure out how to keep the displayed time updated. In plain old C# I would use a BackgroudWorker or something similar to keep the displayed time current, but that type is not available in UWP. I have been looking into "Create

Automatically update apps inside the Windows 10 IoT Core?

眉间皱痕 提交于 2019-12-20 02:06:09
问题 Recently I have a question. If I write an UWP app and install into a Raspberry Pi with Windows IoT Core OS, is it possible that I set a automatic OTA update for my app inside the Raspberry Pi, just like normal UWP apps in Windows App Store do? EDIT: Just for my apps, not for upgrading Windows OS (since it can be upgraded directly by Windows Update) 回答1: Great question. I'd suggest looking at a higher level device management solution that can provide updates of any type to a device via an IoT

USB Mobile Broadband Modem on Windows 10 IoT?

点点圈 提交于 2019-12-18 12:07:33
问题 Anyone had experience using a USB Mobile Broadband on Windows IoT with the Raspberry Pi2 already? I have a Huawei datacard in the Windows IoT and appears as HUAWEI Mobile on connected devices but I'm unable to see the device on the wifimanager.htm admin page. Don't even appear on the Device Manager list. Is this lack of drivers? 回答1: I was looking for a solution too, and I have finally found one. I hope the following will help you! For the record, I used a Vodafone (Huawei) K5150, "officially

cv2.VideoCapture doesn't return frames

*爱你&永不变心* 提交于 2019-12-13 20:00:07
问题 I am trying to save a webcam video with wx Buttons. This is my code def OnRecord(self, evt): capture = cv2.VideoCapture(0) if (not capture.isOpened()): print "Error" # video recorder fourcc = cv2.cv.CV_FOURCC('D', 'I', 'V', 'X') # cv2.VideoWriter_fourcc() does not exist out = cv2.VideoWriter("output.avi", fourcc, 9.0, (640, 480), True) # record video while (capture.isOpened()): ret, frame = capture.read() if not ret: print "Capture Failed" else: out.write(frame) cv2.imshow('Video', frame) But

Windows 10 IOT serial - Working on RP2 but read serial data incomplete

浪子不回头ぞ 提交于 2019-12-13 19:13:45
问题 So I have been experimenting with the IOT serial sample and RP2 since the october release opened up the serial pins. Im using the windows iot serial sample. Have a few issues i cant figure out. The read data seems incomplete. I have an arduino outputting an analog input reading through the serial at 9600 baud. On the windows universial app, ill read one complete line then one incomplete line. For example: if the arduiono is outputting a value of "2.25", the app will read one line 2.25 then

Windows 10 IoT - Supported bindings

时间秒杀一切 提交于 2019-12-13 19:00:28
问题 According to https://msdn.microsoft.com/en-us/library/system.servicemodel the Windows Universal Platform supports the NetHttpBinding. In Visual Studio, I can develop a simple WCF client using this binding, without errors. I can use the NetHttpBinding class of the ServerModel namespace. When I deploy the client to a Raspberry Pi 2, a PlatformNotSupportedException occurs. Which WCF bindings are really supported by Windows 10 IoT? 回答1: There is almost no information available public about WCF

Python Raspberry pi - If path doesn't exist, skip the loop

好久不见. 提交于 2019-12-13 14:18:07
问题 I have a function to collect temperature (values from text files) which uses a partly predefined path. However, sometimes the path does not exist if the temperature sensor wasn't loaded (is disconnected). How can I set a condition or exception to skip a loop if a path is not available? I wanted to use continue, but i have no idea what condition to set with it. def read_all(): base_dir = '/sys/bus/w1/devices/' sensors=['28-000006dcc43f', '28-000006de2bd7', '28-000006dc7ea9', '28-000006dd9d1f',