[5] Real-time image transmission of binocular camera – Smart car under Pcduino platform

[5] Real-time image transmission of binocular camera – Smart car under Pcduino platform

6 months ago (03-27) Views: 62 Comments: 0

One, Mjpg-streamer open source library Due to the development of a real-time video push system, it may involve the implementation of a streaming media server, but it can be realized quickly and easily through the "MJPG-streamer" open source tool."MJPG-streamer" is a mature, lightweight video server software that can be used to capture camera images and publish them on real-time video servers.MJPG-streamer adopts the modularized design idea, including input module and output module. The input module defines the input source, such as camera, file, etc. MJPG-streamer then outputs the video through the output module, such as http output and other network output. Local output of the file [8]. This article uses a binocular camera supporting UVC protocol as the input source of image data. The http protocol is used to push the video stream. Therefore, the components involved are the output_http output component and the input_uvc input component.With MJPG-streamer, it is easy to push the binocular camera video on the pcDuino to the http protocol. Second, to achieve and test The use of MJPG-streamer library to develop a real-time image transmission system is convenient and efficient. Its installation command is as follows: After the installation is complete, you can use the

"2018 China Internet Company Overtime Report Non-Professional Edition"

"2018 China Internet Company Overtime Report Non-Professional Edition"

6 months ago (03-22) Views: 32 Comments: 0

Inadvertently opening the blog's access data, suddenly found several interesting conclusions, "big data" shows: 1. The periodic troughs are Sundays and Sundays, because everyone is generally on weekends; 2. February 14 to February 22 have a long valley, because the Spring Festival holiday 3. Visits on Saturdays of the same week are almost exceptionally higher than Sundays 4. Chinese New Year is lower than Saturday and Sunday Based on some facts, accessing this blog is mostly domestic programmers. The following conclusions can be drawn: 1. Chinese internet IT companies tend to choose to work overtime on Saturday 2. In the Spring Festival, we should not work overtime. This time the traffic is about the basic flow. We can divide the number of visits over the weekend (E) minus the number of visits during the Spring Festival (S), and divide it by the weekly peak (MAX) minus the Spring Festival. Calculate the overtime rate (E - S) / (MAX - S) for the weekend, import the data and calculate it over the average: Overtime rate for China IT industry: 21.53% on Saturday, 17.22% on Sunday

Base64 support in React Native

Base64 support in React Native

2 years ago (2017-03-08) Views: 14 Comments: 0

Most recent guests have used React Native's own blog client. When the client invokes the WordPress Rest API, some operations require HTTP authentication. In HTTP authentication, the "Authorization" field is added to the header of the HTTP request. The contents of the field when the user name: base64 encoding of the password Environmental dependence The Base64 codec algorithm is supported in the Nodejs buffer component. First we need to run the command line to install the buffer dependencies in the root directory of the React Native project: npm install buffer --save After installing, the app.json in the root directory of React Native The dependencies will automatically add the following one: Base64 support in React Native How to use Introduce coding decoding   Buffer project home page: For more ways to use buffers, refer to the Buffer home page: https://github.com/feross/buffer

Ubuntu using Java CV to get binocular camera images

Ubuntu using Java CV to get binocular camera images

2 years ago (2017-03-06) Views: 16 Comments: 0

The graduation project is to do a measurement of the object's distance through a binocular camera, and then control the model car to avoid the near obstacles. Therefore, the image of the binocular camera mounted on the model car needs to be transmitted and sent to the computer for double. The distance measurement algorithm calculates the distance, and the computer sends the calculated result to the car. The car controls the direction of travel so as to avoid obstacles.The Pcduino development board is used on the car, the Ubuntu system is installed, the Arduino expansion board is externally inserted, and the hardware part of the car is connected. After binocular cameras bought from Taobao, the way to get binocular camera images using java cv is similar to that of monocular cameras.The difference is that in order to separate the binocular cameras, the resolution parameters in the code need to be set.If you do not set any resolution, the effect is as follows: Binocular camera screen It is not familiar, we see this in a movie theater watching 3D movies without glasses.For developers, it's obviously not a good idea to mix two images together. You need to make the following settings

How to free Android phone storage

How to free Android phone storage

2 years ago (2017-02-23) Views: 9 Comments: 0

The Android application will generate some data during operation, such as image cache, database file, configuration file and so on.We may have such a need to clear the cached data in the application when we develop it, allowing the user to choose to delete the data generated within the application. This is a more user-friendly design point.Excessive cache will occupy the storage space of the mobile phone and it is said that it will also reduce the IO performance of the mobile phone. Here's a design that clears the cache provided by the Shum Book Android APP: So what data does the Android application generate in operation?Where are they stored?Then we implement the clean function according to the location of the generated data First of all, simply talk about Android's four data storage methods 1, SharePreferenc A lightweight data storage method is actually based on the "key-value" key-value pair data stored in the XML file; it is usually used to store some configuration information of the program. SharePreference storage directory: It is stored in the "data/data/package name/shared_prefs directory. SharePreference modify and store data Get the SharedPreference object according to the Context's getSharedPrerences(key, [pattern]) method; Use the editor() method of SharedPreference

[Picture removal algorithm practice] NDK two-dimensional array transfer

[Picture removal algorithm practice] NDK two-dimensional array transfer

2 years ago (2017-01-16) Views: 0 Comments: 0

I have recently seen an article about the "Cracking algorithm" in the picture. I suddenly became interested in it, so I thought I could implement it.Due to the urgency of mathematics ability, the article's thoughts and related papers could not be understood.So find the relevant Java code on Github, the effect of the algorithm is very obvious: Before you go to the picture Detour algorithm processed image I don't know if the algorithm is too complicated or because of the relatively low efficiency of Java. It takes about 20 seconds to process a 3M JPG image. The obvious effect of the algorithm led me to the idea of ​​developing a camera. In order to obtain faster processing speed, I decided to write it as C++ code after studying Java code, and then through NDK (Android native development). Ported to the Android platform. The basic idea of ​​the project is to obtain the Bitmap of the image in Android/Java and convert its pixels into a two-dimensional int two-dimensional array. Then the two-dimensional array of int is passed to the JNI layer, which is passed to the NDK layer C++ code processing, and the NDK layer processing. After returning to the end

Ruby image processing basic algorithm (two) binary, grayscale, embossed…

Ruby image processing basic algorithm (two) binary, grayscale, embossed…

2 years ago (2016-12-30) Views: 6 Comments: 0

First, the gray algorithm The color value of each pixel in a color photo is a mixture of red, green, and blue values. The values ​​of red, green, and blue are made up of a wide variety of colors, and the color values ​​of pixels can also have a variety of color values. This is the color picture. The principle, but the grayscale photograph only has 256 kinds of colors, the general processing method is to set the RGB three channel values ​​of the picture color value as the same, so the display effect of the picture will be gray. Grayscale processing generally has three algorithms: 1 The maximum value method: that is, the new color value R = G = B = Max (R, G, B), this method of processing the picture looks high brightness value. 2 means: the new color value R = G = B = (R + G + B) / 3, so that the picture processed is very soft 3 weighted average method: that is, the new color value R = G = B = (R * Wr + G * Wg + B * Wb), generally because the human eye is different for different

Ruby parsing bmp file and image processing algorithm (a)

Ruby parsing bmp file and image processing algorithm (a)

2 years ago (2016-12-30) Views: 4 Comments: 0

One, BMP file format (BMP file format) BMP file format, also known as Bitmap (Bitmap) or DIB (Device-Independent Device, device-independent bitmap), is an image file format widely used in the Windows system. Notepad++ is used as an analysis tool to combine bitmap data with Windows. The structure performs an in-depth analysis of the BMP file format. The data of the BMP file is divided into four parts according to the order from the beginning of the file header: bmp file header: Provides the format, size, and other information of the file Bitmap information (bitmap information): provides the size of the image data, Bit palette, compression method, color index, etc. Color palette: Optional, such as using the index to represent the image, the color palette is the mapping table of the index and its corresponding color Ø Bitmap data: The image data is ^ _ ^ The following combination of the definition of the Windows structure, through a table to analyze these four parts. BMP file data structure The images we generally see are mainly 24-bit images, that is, the R, G, and B colors are each represented by 8 bits. Such an image is called true color. In this case,

Use Ruby simple book reptile statistics user article information

Use Ruby simple book reptile statistics user article information

2 years ago (2016-12-16) Views: 1 Comments: 0

The Siwa Auditorium training requires us to output our own learning experience in the short form. The company also counts the number of articles, including the number of articles, the amount of comments, the amount of favorite items, and so on.It is naturally troublesome for so many people to manually count. Of course, programmers will give such arduous and tedious work to the code, so they write a reptile.The value-for-money guest is learning Ruby, so I wrote an article about Ruby's reptile statistics book users to drive my own Ruby learning. If you let me crawl a site's content, my first thought might be to grab it's HTML, but it will also in turn ask myself if this site has an Rss feed, and the RSS feed's content is xml. Compared to html is more concise and efficient, and because the structure of xml is a little stable (html may change a css that day may cause my reptiles do not use it), parsing will be more convenient.After the survey did not provide RSS, I decided to choose html to violently crawl the book. Analysis booklet URL Home: http://www.jianshu.com/ User homepage: http://www.jianshu.com/users/user ID (probably so) We can get the user's

Html5, why do you want to semantic label?

Html5, why do you want to semantic label?

2 years ago (2016-12-07) Views: 6 Comments: 0

Semantic tags, as the name implies, are tags that can be read directly.The earliest contact with HTML5, the semantics of HTML5 is not very deep understanding, but is very interested in several new features of Html, such as the canvas; Html5 semantic tags, header, footer, nav, etc. These are essentially In Div, we used div id="header", "footer" in the html4 era, and we could pretty much accomplish the same effect as the header and footer. Why does html5 have to split these divs apart as new labels? Focus on content and structure Prior to HTML5, DIV+CSS could actually render a web page well.HTML5 is not only satisfied with how to present a webpage, but also focuses more on the structure of the webpage and more closely focuses on the content of the webpage. We use divs to represent page elements, but these divs have no practical significance.In order to distinguish different structures, we often set different ids for these divs. The ID name marks the block that Div is responsible for.HTML5 creates different tags for these different blocks. We have browsed thousands of web pages, or read news, listen to music, or watch videos. Eventually you discover that literally millions

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW