Suck the cat with code! This paper is participating in[Cat Essay Campaign]

directory

  • preface
  • The body of the
    • Set up remote monitoring system
    • Video screenshot comparison
  • At the end

preface

Recently, the Nuggets community launched a “come on, with the code” suck cat “essay activity, first of all, thank the official invite me to participate in this essay, I just saw the invitation, a little hesitant, because I do not have a cat. However, after a careful look at the rules of the essay, IT turns out THAT I am also qualified to participate, haha. In fact, I still like cats very much, but in the process of drifting north to hide this love temporarily. In baoding home, mother and grandmother have a cat 🐱, their holiday home often “suction cat”.

The body of the

As a responsible shovel excrement officer, the most concerned is when he is at work, his “little lovely” in doing what. To this end, many poop collectors have bought special surveillance cameras to put in their homes to monitor their cats 🐱. We don’t have to do that. Today I’m going to tell you a secret money saving trick, so you don’t have to spend this money.

Come on, get with me. I believe that today’s friends should have at least one or two old mobile phones, have been sitting at home eating ashes, not willing to throw away, sell it can not sell a few money, a little chicken ribs. But today they come into play. Now, I will teach you how to turn an old mobile phone into a remote monitoring device.

Set up remote monitoring system

In order to build a remote monitoring system, we need to use sonnet’s audio and video products, which will be introduced in detail below. First, we need to according to your own phone models, in the link below to download the corresponding APP as video acquisition terminal, download links: docs. Agora. IO/cn/All/down… , the Web can be used as a remote monitoring terminal. The specific operation is shown in the figure below:

After downloading the APP on the mobile phone, log in and enter the room number and password. In order to ensure the security of media data and personal privacy, it is better to set a complex room password. Also, in addition to checking “Turn on camera,” make sure you check “Turn on microphone,” so you can hear your cat’s voice calling you. The specific operation is shown in the figure below:

After entering the room on the APP terminal, we can also enter the room on the Web according to the operation below.

After entering the room, the overall page is as follows:

Through the video screen, we can see the content of the video screen collected by the mobile phone: a cat pretending to be thinking 🤔.

Well, a remote monitoring system has been set up, so that managers can see their cat owners in the company without having to buy surveillance cameras. Isn’t it very simple? In fact, the original intention of the sound network product is not so used, if the sound network product partners know that I teach you to use their design products, DO not know they will not group to hit me 😁.

But there are a few caveats:

  1. The APP video capture terminal creates a room and enters it first, while the Web monitoring terminal can enter and exit the room at any time. Of course, the monitoring terminal can also use the mobile APP or PC client, which depends on the needs of the shoveler.
  2. The above product demo, we are directly bring them here to use, in fact, r&d miss little brothers and sisters also can download different platform SDK (download address: docs. Agora. IO/cn/All/down… For more flexible customized development, such as simple interface modification, and more complex, megvii products can also be used for intelligent analysis of the video picture, so that the excretion officers can read the real-time thoughts of cat owners.
  3. The room of the remote monitoring system is best set up as a long-term room, so that you can enter the collection terminal anytime and anywhere, and do not worry about the problem of not entering because the room is expired. There is no setup item in the demo above, but the official API should already be provided.

Video screenshot comparison

A lot of times, we get a video of the remote cat’s owner, and then we might want to analyze what’s in that video and what the message is. For example, if you have two identical cats 🐱, how to tell them apart, or how cats behave differently in the same position at different times.

To make a smarter analysis of these differences, consider MegSpot software from Megvii’s MegEngine, a free, login-free, professional, cross-platform image and video comparison PC application. MegSpot supports image overlay contrast, split contrast, GIF result rendering, pixel level image view, image histogram, RGBA view, and timely adjustment of brightness, contrast, saturation, gray level and other indicators for preview.

Here’s an example of using MegSpot to analyze the difference between two cats, as shown below:

In the process of observation, we can also conduct multi-dimensional analysis through the toolbar, which is as follows:

For example, to show a horizontal flip:

After comparative analysis, we can easily find that the two “cats” are very different, ha ha, too obvious. You can see it without MegSpot, but for the sake of demonstration, I’ll pretend I don’t. In this case, MegSpot is really overkill 😁.

There are many other features of MegSpot, so if you’re interested, try them out for yourself. Download link: github.com/MegEngine/M…

At the end

Today I shared two intelligent “cat sucking” methods, I believe that must bring you a different experience, then what else you can think of, please leave a message in the comment section, together to communicate. “Suck the cat” for a while cool, has been “suck the cat” straight! It should be the consensus of all the shovelers. In daily life, we in the scientific cat 🐱 at the same time, should also let cats feel the power of science and technology. I wish you all a happy suction cat, good night!