12/07/2018

[Electronics] DIY Simple Metal Detector



I stumbled upon this simple metal detector circuit. I was very skeptical about whether it really had this function. Later, after analysis, I found the relevant video to confirm that it really did, and then I did it myself.

Be sure to check the relevant information before you start making it, and figure out the principle of the metal detector.


1. Tools and materials

Components:
- 555
- 47kΩ resistor
- Two 2μ2F capacitors
- Circuit board
- 9 volt battery, switch, some wires
- Buzzer
- 100 m copper wire with a diameter of 0.2 mm
- Tape and glue

Buzzer You can use a 10μF capacitor and speaker (8 ohm impedance).

tool:
- Breadboards and wires
- pliers, scorpion
- Soldering iron and solder wire
- Sharp knife, ruler, pencil, compass
- Hot glue gun

2. Schematic

This picture is found online. I just added a switch between the switch and the circuit and replaced the speaker with a buzzer.


3. Coil







The coil is the most difficult part. By calculation, a 90mm diameter coil requires approximately 250 windings, a diameter of 70 mm requires 290 windings, and an inductance of up to 10 mH. You can also buy off-the-shelf coils online.

Calculator address
The coil core is made of cardboard. The coil used was an enamelled copper wire with a diameter of 0.2 mm. I circled 260 laps. Please hang the paint on the thread before welding.

4. Testing

After testing, it works! (Video can't get it)

5.PCB

After the test was successful, I made this PCB circuit.

6. Cardboard structure




I made this cardboard structure for the aesthetics and ease of use of the final work.

7. Assembly




So the parts are all ready. Here's how to assemble them all. First fix the switch with a glue gun, then put it into the battery, and finally fix the board with a glue gun.

8. Summary


This metal detector is very simple. But its detection capabilities are also limited. When working outdoors, it does not work properly. However, for beginners, this is really a good work, I like it very much!

Follow Me
Link:Tenco

12/06/2018

These five computer vision technologies refresh your worldview(5)

5--Instance segmentation



In addition to semantic segmentation, instance segmentation segments instances of different classes, such as marking five cars in five different colors. In the classification, there is usually an image in which one target is the focus and the task is to say what the image is. But in order to split the instance, we need to perform more complex tasks. We see complex spots with multiple overlapping objects and different backgrounds. We not only classify these different objects, but also determine the boundaries, differences and relationships between them!



So far, we have seen how to use CNN features in many interesting ways to effectively locate different targets in images with bounding boxes. Can we extend these techniques to locate the exact pixels of each target, not just the bounding box? Explore the instance segmentation problem on Facebook AI using an architecture called Mask R-CNN.

Like Fast R-CNN and Faster R-CNN, the underlying principle of Mask R-CNN is simple. Given that Faster R-CNN works very well in target detection, can we extend it for pixel-level segmentation?

Mask R-CNN does this by adding a branch to the Faster R-CNN, which outputs a binary mask that indicates whether a given pixel is part of the target. This branch is a full convolutional network based on the CNN's feature map. Given the CNN feature map as input, the network outputs the matrix at all positions with 1s in the pixel belonging to the target, and outputs 0 (this is called binary mask) elsewhere.



In addition, when running on the original Faster R-CNN architecture without modification, the area of ​​the feature map selected by RoIPool (pool of interest area) is slightly out of alignment with the area of ​​the original image. Since image segmentation requires pixel-level specificity, unlike a bounding box, this naturally leads to inaccuracies. Mask R-CNN solves this problem by adjusting RoIPool to more precisely align by using a method called RoIAlign (region of interest alignment). In essence, RoIAlign uses bilinear interpolation to avoid rounding errors, resulting in inaccurate detection and segmentation.

Once these masks are generated, Mask R-CNN combines them with the classification and bounding boxes from Faster R-CNN to generate such an accurate segmentation:



   in conclusion

These five major computer vision technologies help computers extract, analyze, and understand useful information from one or a series of images. I haven't talked about many other advanced technologies, including style shifting, coloring, motion recognition, 3D objects, body pose estimation, and more. In fact, the cost of computer vision is too high to be explored in depth, and I encourage you to explore it further, whether through online courses, blog tutorials or official documentation. For beginners, I highly recommend the CS231n course because you will learn how to implement, train and debug your own neural network. As a bonus, you can get all the presentation slides and homework guides from my GitHub repository. I hope it will guide you to change your view of the world!

Follow Me
Link:Tenco

12/05/2018

These five computer vision technologies refresh your worldview(4)

4--semantic segmentation



At the heart of computer vision is the segmentation process, which divides the entire image into groups of pixels that can then be labeled and classified. In particular, semantic segmentation attempts to semantically understand the role of each pixel in an image (for example, is it a car, a motorcycle, or another type of class?). For example, in the above picture, in addition to identifying people, roads, cars, trees, etc., we must also depict the boundaries of each object. Therefore, unlike classification, we need to perform dense pixel-by-pixel prediction from the model.

Like other computer vision tasks, CNN has had great success in segmentation. One of the popular initial methods is to perform a patch classification through a sliding window in which each pixel is divided into classes using its surrounding images. However, this is computationally very inefficient because we do not reuse the shared features between overlapping patches.

Instead, the solution is the University of California, Berkeley's Full Convolutional Network (FCN), which promotes an end-to-end CNN architecture for intensive prediction without any fully connected layers. This allows split graphs to be generated for images of any size and is much faster than patch sorting methods. Almost all subsequent semantic segmentation methods use this paradigm.



However, there is still a problem: the convolution at the original image resolution will be very expensive. To solve this problem, the FCN uses downsampling and upsampling inside the network. The downsampling layer is called stripe convolution and the upsampling layer is called deconvolution.

Although the upsampling/downsampling layer is used, the FCN generates a coarse segmentation map due to information loss during pooling. SegNet is a more efficient memory architecture than FCNs that use the largest pooling and encoding-decoder framework. In SegNet, a fast/jump connection is introduced from a higher resolution feature map to improve the upsampling/downsampling roughness.



Recent semantic segmentation studies rely heavily on full convolutional networks such as expanded convolution, DeepLab and RefineNet.

12/04/2018

[Electronics] DIY Multimedia Subwoofer Speaker

I made this multimedia speaker in my spare time, the effect is good.
going in the topic
There are just idle Bluetooth headsets, two-channel power amplifier board, level indicator IC, idle MP4, speakers, etc., so I suddenly made this multimedia speaker.
The two-channel power amplifier board and MP4 power supply use a 2 * 2200 mAh polymer battery (so MP4 can display power supply), and the Bluetooth and level indicators are powered by a 1200 mAh polymer battery. Continuous use time is actually measured at full power for up to 20-25 days without charging
The playback distance of Bluetooth can be up to 10 meters. Here, a large antenna is added to the Bluetooth module, that is, the FET is scrapped.
1: Welding of Bluetooth module





2: Power amplifier board and MP4


3: Welding of mp4 MINI USB holder


4: After welding the components


5: The production of the outer panel is made of plywood, hand-punched and polished.






6: Level indicating test machine and welding











7: LED installation





8: Assemble, debug, install the sound-absorbing cotton horn. The diaphragm is installed in the middle to help increase the bass effect.
















Sound-absorbing cotton helps to show the bass


12/03/2018

These five computer vision technologies refresh your worldview(3)

3--target tracking



Target tracking refers to tracking one or more targets of a particular interest in a given scenario. Traditionally, it has been used in video and real-world interactions, which are observed after initial target detection. It is now essential for autonomous driving systems, such as the self-driving vehicles of companies such as Uber and Tesla.

The target tracking method can be divided into two categories according to the observation model: the generation method and the discrimination method. The generation method uses a generation model to describe the apparent features and minimize reconstruction errors to search for targets, such as PCA. The discriminant method can be used to distinguish between the target and the background, and its performance is more robust, and it gradually becomes the main method of tracking. The discriminating method is also called detection tracking, and deep learning belongs to this category. In order to achieve tracking by detection, we detect candidate targets for all frames and use deep learning to identify the desired target from the candidates. Two basic network models are available: Stack Autoencoder (SAE) and Convolutional Neural Network (CNN).

The most popular deep network using SAE tracking tasks is the Deep Learning Tracker, which proposes offline pre-training and online fine-tuning networks. The process is like this:

Offline unsupervised pre-training A stacked denoising autoencoder using a large-scale natural image dataset to obtain a general target representation. By adding noise to the input image and reconstructing the original image, the stack denoising autoencoder can achieve more robust feature representation.

The coded portion of the pre-trained network is combined with the classifier to obtain a classification network, and then the network is fine-tuned using the positive and negative samples obtained from the initial frame, which can distinguish the current target from the background. DLT uses a particle filter as a motion model to generate candidate patches for the current frame. The classification network outputs the probability scores of these patches, indicating the confidence of their classification, and then selects the highest patch of these patches as the target.

In model updates, DLT uses a way to limit thresholds.




Due to its superiority in image classification and target detection, CNN has become the mainstream depth model for computer vision and visual tracking. In general, large-scale CNN can be trained both as a classifier and as a tracker. Two representative CNN-based tracking algorithms are Full Convolutional Network Tracker (FCNT) and Multi-Domain CNN (MD Net).

FCNT successfully analyzed and utilized the feature map of the VGG model, which was a pre-trained ImageNet and produced the following observations:

CNN feature maps can be used for positioning and tracking.

Many CNN feature maps are noisy or unrelated to the task of distinguishing a particular target from its background.

Higher layers capture the semantic concept of object classes, while lower layers encode more discriminant features to capture intra-class variations.

Due to these observations, FCNT designed a feature selection network to select the most relevant feature maps on the conv4-3 and conv5-3 layers of the VGG network. Then, to avoid overfitting the noise, it also designed two additional channels (called SNet and GNet) for the selected features of the two layers. GNet captures the category information of the target, while SNet targets the region of interest (ROI). Finally, through SNet and GNet, the classifier obtains two predicted heat maps, and the tracker decides which heat map to use to generate the final trace result based on whether there is a disturber. The flow of FCNT is as follows.



Unlike FCNT's idea, MD Net uses all sequences of video to track moving objects. The above network uses irrelevant image data to reduce the training requirements of tracking data, and this idea has some deviation from tracking. The target of one class in this video can be the background in another video, so MD Net proposes the concept of multiple domains to independently distinguish between targets and backgrounds in each domain. A domain represents a set of videos that contain targets of the same type.

As shown below, MD Net is divided into two parts: the shared layer and the K branch of a specific domain layer. Each branch contains a binary classification layer with softmax loss, which is used to distinguish between targets and backgrounds in each domain, and the shared layer is shared with all domains to ensure a generic representation.



In recent years, deep learning researchers have experimented with different approaches to adapt to the characteristics of visual tracking tasks. They have explored many directions: applying other network models, such as recursive neural networks and deep confidence networks, designing network structures to accommodate video processing and end-to-end learning, optimizing processes, structures and parameters, or even deep learning with traditional computers Visual methods or methods combining language processing and speech recognition in other fields.

to be continued 


Robot shopping guide wins over real person shopping guide by nearly 90% of users welcome

To the person that loves shopping, a good guide is bought be like close close small boudoir honey, let a person be like mu chun feng, enjo...