Hands-on overview
This report introduces the workshop "Image processing/deep learning basics using MATLAB ® and code generation for GPU ~With visual inspection as the theme~" held at Macnica Nagoya office on July 25, 2019 (Thursday). Masu.
The day was sponsored by our company, Macnica, with cooperation from MathWorks Japan (hereinafter referred to as MathWorks) and NVIDIA LLC (hereinafter referred to as NVIDIA).
Agenda for this hands-on session
time | Lecture title | speaker |
---|---|---|
13:00 - 13:05 |
Opening remarks | Macnica Kravis Company Technology Department 4th Technology Section 2nd Section Manager Takeo Toba |
13:05 - 16:00 |
Basic image processing and deep learning with MATLAB and code generation for GPU ・ Fundamentals of image processing using MATLAB ・ CUDA code generation workflow ・ Deep learning with MATLAB ・ Code generation for Jetson |
MathWorks Japan Application Engineering Department Senior Application Engineer Mr. Keitaro Otsuka |
16:00 - 16:20 |
Break | |
16:20-17:00 |
Appearance inspection using images on NVIDIA Jetson™ | Macnica Kravis Company Technology Department 4th Technology Section 2nd Section Matsunaka Eiki |
17:00 - 17:05 |
Summary | Nvidia G.K. Industry Division Robotics Business Promotion Manager Mr. Masanori Umemoto |
17:05 - 17:10 |
closing remarks | MathWorks Japan General Manager of Application Engineering Department Mr. Takayuki Yamaguchi |
Learn to use MATLAB
First, Mr. Otsuka from Mathworks explained how to use MATLAB. It was a long event of about 3 hours, but the participants were enthusiastic about it, and there were many questions and answers.
What is MATLAB?
MATLAB (Matlab) is software developed by MathWorks in the United States, and is an integrated development environment for scientific computing/signal/data processing. According to Mr. Otsuka, the emphasis is on "how can engineers easily realize what they want to do?"
Main function
・Text-based, interactive development environment
・Programming language for scientific computing
・Data analysis and visualization tools
・Algorithm development tools
・Extensive Toolbox with specialized functions
・More than 4 million users worldwide in over 185 countries
Source: MATLAB, Inc. Product Description
https://jp.mathworks.com/products/matlab.html
I mainly practiced, so I will introduce some of them.
Introducing some of what we did in the MATLAB exercise
In this exercise, we will remove the coins other than the coins of a specific size from the coordinates of the photo with multiple coins.
MATLAB can turn GUI work into a function!
Among those who were present this time, he is very good as a developer! It is a function that I felt.
When programming is generated from the GUI, the following code is automatically created.
It is said that there are about 100,000 functions in MATLAB, and it is difficult for humans to remember all of them. Even in such a case, I felt that the function of being able to program quickly without writing only by operating the GUI would produce various effects in the field.
For example, such an effect can be expected.
・GUIがあるから初心者でも簡単に利用できる(勿論コマンドラインも利用可能)
・多くの関数の中から自動で必要な関数を組み合わせてくれるので、プログラミングの参考として使える
・コードを書く工数の削減ができる
Appearance inspection using images on NVIDIA Jetson Nano
Start from setting up Jetson Nano
First, I set up the Jetson Nano. Since the time is limited this time, we have prepared a command line file in advance and handed it to the participants.
In the early days, the setup was completed smoothly, but when it did not work as expected, our engineers supported us.
In addition, although it is not necessary for normal setup, I also set environment variables to use MATLAB on Jetson Nano, and explained how to use Nano easily.
Visual inspection
We migrated the model prepared in Mr. Otsuka's session to the Jetson Nano and performed a visual inspection. The model at this time used the "Nut Surface Flaw Detection Algorithm".
As you can see from the materials on the day, you could experience the appearance inspection simply by copying and pasting the command line.
Due to its popularity, it will be held regularly in the future!
We have delivered the first event, but did you get a sense of the atmosphere of the venue?
In fact, we received feedback saying, ``I couldn't participate in the first one for some reason, so if there is a next time, I would like to participate.'' So we held the second one on October 31, 2019.
Although it is undecided, we would like to be able to hold regular events in the future. If you are interested, please contact us using the inquiry button below.