raspberry-pi2

How to get image in color mode using opencv c++ with raspberry camera module

陌路散爱 提交于 2019-12-13 04:55:52
问题 i'm using raspberry pi 2 with opencv 3 gold and raspicam-0.1.3 libarrry for the pi camera module I have test the code below and it worked but it provide for me an image in grayscale mode (black and white) but i want it in color mode (RGB) here is the code : #include <ctime> #include <iostream> #include <raspicam/raspicam_cv.h> using namespace std; int main ( int argc,char **argv ) { time_t timer_begin,timer_end; raspicam::RaspiCam_Cv Camera; cv::Mat image; int nCount=100; //set camera params

Can I use picamera with this version of Ubuntu on a Raspberry Pi 2 Model B?

陌路散爱 提交于 2019-12-13 04:06:41
问题 I used to use the picamera Python module, along with a Raspberry Pi Camera on Raspbian OS on my Raspberry Pi Model B. Now I am running Ubuntu 14.04 LTS on a Raspberry Pi 2 Model B. However, I cannot use picamera anymore because I cannot enable the Raspberry Pi Camera. I cannot enable the Raspberry Pi Camera because I do not have Raspberry Pi firmware, so to speak. I actually have Ubuntu-rpi2 firmware. Here's the output of uname -a : Linux ubuntu 3.18.0-20-rpi2 #21-Ubuntu SMP PREEMPT Sun Apr 5

Display camera preview on Raspberry Pi Android things

孤街醉人 提交于 2019-12-13 03:27:42
问题 I was working on an app that runs on a Raspberry Pi with Android Things and is supposed to show a Camera preview onto an external display and there's a push button attached to the demo which on being pressed, captures a picture from the camera and does some computation on that captured image. I've successfully completed the second part, but while trying to get a camera preview on the screen, the app crashes for me. I got my RPi yesterday and I tried running the Camera2 sample on Github (https

Windows 10 IoT Core - video open close

戏子无情 提交于 2019-12-12 19:21:16
问题 I've been working project in Raspberry Pi 2 running Windows 10 IoT Core. Project subject sensor triggering with open a video. But I am getting the following error: An exception of type 'System.Exception' occurred in ProjeVol1.exe but was not handled in user code Additional information: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)) Code: private void SensorPin_ValueChanged(GpioPin sender,

ESP8266 nodemcu resolving raspberry's local dns

别等时光非礼了梦想. 提交于 2019-12-12 06:36:55
问题 I'm having an issue with connecting the esp module on the raspberry via mqtt . After a lot of search I think I am kinda lost now. So here's the problem I have setup my raspberry's local dns to work as cubex.local, I followed the instructions here: http://www.howtogeek.com/167190/how-and-why-to-assign-the-.local-domain-to-your-raspberry-pi/ Everything seems to be working fine on this end... I can use the cubex.local on the local network to have ssh and ftp access to the raspberry but when it

gdb building with expat

混江龙づ霸主 提交于 2019-12-12 04:26:44
问题 I can't seem to get the syntax right for building gdb on Windows 10 (mingw), with expat. I downloaded expat sources and had no problems building. The expat.h file is in /usr/local/include and the expat library (libexpat.a and libexpat.dll.a) ended up in /usr/local/lib My config is: ../gdb-7.7.1/configure --target=arm-linux-gnueabihf --prefix /c/sysGCC/output --with-python --with-expat --with-libexpat-prefix=/usr/local/lib --disable-nls But no matter what I try I always get a make error

How do you get a waveshare 3.5 inch touch LCD to work with Raspbian Jessie?

依然范特西╮ 提交于 2019-12-12 04:16:50
问题 I have a waveshare 3.5 inch touch LCD display and I m trying to get it working with the latest version of Raspbian A.K.A Raspbian Jessie. I followed futurice.com 's tutorial on getting it to work (tutorial is titled I'd like some LCD on my pi) and it worked on Raspbian Wheezy just fine. All I get now is a blank white screen. All help is greatly appreciated! (I must use the official Raspbian Jessie image without NOOBS from the Raspberry pi website.) I have a Raspberry Pi 2 Mobel B +. 回答1: From

Python reading Wiegand dropping Zeros

你说的曾经没有我的故事 提交于 2019-12-12 03:22:43
问题 Here's the code snippet from my RFID wiegand reader on my Raspberry Pi I use already. def main(): set_procname("Wiegand Reader") global bits global timeout GPIO.add_event_detect(D0, GPIO.FALLING, callback=one) GPIO.add_event_detect(D1, GPIO.FALLING, callback=zero) GPIO.add_event_detect(S1, GPIO.FALLING, callback=unlockDoor) while 1: if bits: timeout = timeout -1 time.sleep(0.001) if len(bits) > 1 and timeout == 0: #print "Binary:", int(str(bits),2) c1 = int(str(bits),2) result = ((~c1) >> 1)

Multiple (4x) SPI device on rasberry pi 2 running windows 10 iot

折月煮酒 提交于 2019-12-12 01:45:45
问题 I had successfully communicate single SPI device (MCP3008). Is that possible running multiple (4x) SPI device on raspberry pi 2 with windows 10 iot? I'm thinking to manually connect the CS(chip select) line and activate it before calling spi function and in-active it after done the spi function. Can it be work on windows 10 iot? How about configure the spi chip select pin? Change the pin number during the SPI initialization? Is that possible? Any smarter way to use multiple (4 x MCP3008 ) SPI

how to deploy npgsql on Raspberry pi 2 (Mono 4 + ARM proc)?

廉价感情. 提交于 2019-12-11 13:03:11
问题 I use Visual studio 2013 (Windows) to build a small .NET 4.5 application using Npgsql and Entity Framework 6. On windows it just works fine. But on Raspbian, the app crash saying it cannot find npgsql provider. Unhandled Exception: System.Configuration.ConfigurationErrorsException: Failed to find or load the registered .Net Framework Data Provider 'Npgsql'. at System.Data.Common.DbProviderFactories.GetFactory (System.String providerInvariantName) [0x00000] in <filename unknown>:0 [...] On my