Amazon Cloud Technology Build On 2022 - AIot Second Quarter Internet of Things Experiment Experience and Problem Summary

1. Preparation before experiment

1.1. Online Registration

        As long as you are interested in Amazon cloud technology, you can participate in online activities without any threshold. The event party is also very considerate. From signing up to confirming participation, to conducting experiments, the young lady of the event party has been very considerate and has done everything well. We just need to do it seriously.

1.2. Experiment preparation

        Those who participate online need to prepare a computer (win/linux/mac is fine), the network should not be too bad (after all, Amazon cloud resources are used), and then participate on time, there are no other requirements! ! !

2. Experimental process and problems

2.1. Experimental process

As shown in the figure below, the execution process of Rekognition Streaming Video Events is divided into the preset phase and the event processing phase.

 

- Preset phase

  step1: Create an S3 storage bucket and an SNS topic for storage and fanout of video detection results, respectively.

  Step2: When device registration is created, create the corresponding KVS Stream and rekognition stream processor and bind the stream processor to the S bucket and SNS topic in step1.

- Event processing phase

  step1: The IPC device detects an event.   

  Step2: The IPC device calls the PutMedia API of the KVS Producer SDK to stream the video to the KVS stream, and at the same time calls the API to trigger the rekognition stream processor to analyze the video data.   

  Step3: The Rekognition stream processor analyzes the video according to the startup parameters, including the start and stop conditions for processing the video, and the time for processing the video.   

  Step4: The Rekognition stream processor automatically saves the video analysis results to S3 and triggers the SNS topic.   

  Step5: The user retrieves video information through the application program or receives a notification to complete other business processes.

Ps: This is the process of the official document. The specific process requires everyone to do experiments to feel it, and understand it later

2.2. Problems and solutions

1. The first command of Cloud9 reports an error

Solution: After Cloud9 is created, don’t execute the command immediately. Some processes may not start up yet. It’s better to wait more than ten seconds before executing the command. If the error occurs, just execute the command again.

2. There was a problem with Cloud9’s last uploaded video

 Solution: This is an error in uploading and connecting video. The problem is that the security credential environment of aws cli is not correct . Experiment with AWS cli to regenerate the next few keys, and change the environment variables in cloud9 again. (Note that the commands of AWS cli are not typed in Cloud9, but typed in the local terminal of the computer)

3. The last json reports an error

Solution: The problem is that the uploaded json file of create is wrong. It is necessary to carefully check whether there is a problem with the created json file , and whether the replacement is correct? Is there a space?

4. Prompt that json already exists

 Solution: The problem is that the json is uploaded at the end, and uploading again will not be able to upload again because the previous task exists. Execute the following command: aws rekognition delete-stream-processor --name video_event_stream_processor

3. Summary

Although this experiment is relatively complicated, it can actually be completed as long as you carefully follow the requirements of the experiment manual and carefully remember the precautions taught by the teaching assistant. The following are the precautions, you must keep in mind when doing experiments

  1. Don't turn on the vpn on the computer.
  2. Note that the region is selected as Ireland.
  3. Do not copy commands mindlessly, copy and execute line by line, pay attention to the results of each command, and check for errors in time.
  4. Remember to send screenshots to the teaching assistant after finishing the experiment.

The above are some of my experience and experience in the experiment, I hope it can give you a little help in the next experiment

 

Guess you like

Origin blog.csdn.net/m0_58954887/article/details/126182358
Recommended