FLEX AI Setup and Use Guide - NVR IPCAMERA SECURITY
Guide How To

FLEX AI Setup and Use Guide

FLEX AI Setup and Use Guide
FLEX AI Setup and Use Guide

FLEX AI Setup and Use , FLEX AI enables you to enhance capabilities, enabling them to detect and track previously unidentifiable objects. While many cameras can detect and track people and specific vehicle types, it is a different matter identifying shopping carts, forklift trucks, hovercrafts, or items on a conveyor belt.

FLEX AI: Get started

Summary:

FLEX AI enables you to enhance camera capabilities, enabling them to detect and track previously unidentifiable objects. While many cameras can detect and track people and specific vehicle types, it is a different matter identifying shopping carts, forklift trucks, hovercrafts, or items on a conveyor belt.

With FLEX AI you can create custom object detection models for solid objects that can then be deployed to cameras, enabling you to detect objects that standard analytics does not already detect.

It is a cloud-based application, and its results are compatible with deployment to P-series AI cameras.

How it Works:

FLEX AI operates on a subscription-based model, granting users comprehensive access to train, process, and download custom detection models for end customers. However, the allocation of licenses requires a careful consideration of each end customer, with a separate FLEX AI license needed for each one. This process is typically managed by a STEP Partner, who oversees the distribution of licenses to ensure effective deployment.

For actual deployment onto cameras, FLEX AI uses a perpetual licensing system, distinct from its subscription model. Each camera necessitates its own perpetual license to run FLEX AI models effectively. This approach ensures that users can deploy and utilize the models on their cameras without the constraints of a subscription-based licensing system.

In terms of training models, FLEX AI currently supports the MP4 format or tagged WAVE Sync videos for training.

NOTE: Each project can only train one model.

Camera Compatibility:

Refer to the following article: Which Cameras are Compatible With FLEX AI

Note: Each camera can only run one FLEX AI model, although it may run in parallel with WiseAI.

The FLEX AI Flow:

The general process is as follow:

1.Ensure you have a license to develop new models.
2.Sign in to Cloud Portal and select FLEX AI.
3.Create a new project.
4.Import training clips.
5.Annotate the clips.
6.Send the model for training.
7.Evaluate the model, and improve if necessary.
8.Download the model to your computer.
9.Upload the model to a compatible camera.

FLEX AI: What do I need to train a model with FLEX AI?

Summary:

This article covers what you need to build effective models with FLEX AI.

Training Requirements and Recommendations:

• A minimum of 20 annotated objects or training images for an efficient detection model (at least 30 are recommended)
• About 100 annotated objects or training images are recommended for a more robust model
• Draw the bounding box around the object as close as possible (try to not leave any margin)
• All target objects or training images must be labeled (i.e. frames chosen without annotation cannot be used in a data set)
• Ensure you are marking all things considered the same object to yours within a frame (the algorithm may not preform well if all similar objects within a frame are not properly included for training custom object detection of your desired object).
• Use video clips that contain several different angles, perspectives, and lighting of the object of Interest (OOI) (preferably from the same camera for which the training is being done)
• Use clips where the annotated object is not partially hidden so that the AI can learn what it really looks like (i.e. if you were teaching it what a person looks like, then annotating just an arm sticking out from behind a tree is not helpful)

NOTE: After you click Train, the data you have created is sent to the cloud and
the algorithm is trained to detect your object. This process can take anywhere
from 30min to 1 hr and depends on the number of training images you included.

Performance Issues:

The following may cause object detection to have performance issues:

• Challenging background conditions due to low light or changing weather (ex: rain, snow, sunshine)
• Object size differs within the field of view of the camera which is different from the size used while training
• Parts of the object are covered or obstructed
• Objects are in high density crowds or occluded
• Stacking (ex: a model trained on single shopping carts will have issues detecting carts stacked in a corral)
• Object is moving too fast

Camera Recommendations

• Use footage from the camera covering a fixed that the model will be deployed and used.
• The Field of View (FoV) should show your object with a minimum size of 20px x 20px.
• Installed cameras should be at normal video View (
• (CCTV view of 45 degrees or larger)

Limitations:

FLEX AI has the following limitations:

• Cannot detect non-solid objects such as gas/vapor, liquid, smoke, etc.
• Cannot deploy more than one custom model to a camera at a time. Detecting multiple objects currently requires multiple cameras.
• Cannot support a single model that includes multiple objects (ex: hardhat + goggles + vest) and identify a missing item.
• Cannot be used for identification or recognition of an object (ex: specific people, faces, animals, etc.)
• Cannot be used for detecting the orientation of objects (ex: a cart that is facing left or right).
• Cannot distinguish colors. FLEX AI does not take color into account.
• Cannot be used for detecting the fine-grain objects (ex: golden retriever vs dog, tesla model Y vs vehicle)

Processing Times

• FLEX AI is a cloud based application and requires internet access and processing time.
• The algorithm takes the images you’ve make, trains our object detection model to detect your desired object, processes the model to show you simulated performance on videos you’ve provided, and then packages the model to work on the camera.
• Each step can take multiple minutes, the initial Training can take about an hour (dependent on the number of marked images you’ve provided)
• When the training is completed, we then process the model to detect the object with the videos you’ve provided in the video library of the project. When the videos become available, their buttons become active with the “Ready to View” status.
• We also package the model for the camera and the download button becomes active when the file is ready.

FLEX AI: How do I create and manage FLEX AI projects?

Summary:

This article provides for creating and managing FLEX AI projects.

Guide:

Creating New Projects

To create a new FLEX AI project:

1. On the Project screen, click the plus (+) button to create a new project.

2. Name your project after the detection type.

NOTE:
Project names must be unique.
Each project can only consist of one object detection type.

Managing Projects

Here is an example of multiple projects being worked on in parallel.

To search for a FLEX AI project:

1.Use the Search box to filter the displayed projects.
2.Apply sorting, as needed.
3.Click on a project to open it.

Existing projects will indicate their current status:

• Untrained – model is yet to be trained for the first time
• With annotations – model has been trained, reannotated, and is awaiting retraining
• Training in Progress – model is in the process of being trained
• Trained – model has been trained

FLEX AI: How do I add a video clip for FLEX AI usage?

Summary:

This article describes the process for uploading training video clips to train a FLEX AI model.

Step By Step Guide:

Uploading a video

1.Log in to your account.
2.Select the project.
3.Drag your MP4 video file to the Video Library field or click Hard Drive and select an MP4 file.

NOTE: The Video Library drawer can be expanded and collapsed by clicking the arrow.

 

Pulling bookmarked videos directly from WAVE Sync

NOTE: First tag WAVE Sync bookmarks with “flex_ai” to make them to appear in FLEX AI.

Tagging WAVE Sync videos

1. Sign in to your WAVE account.

2. Add a bookmark.

3. Tag your bookmark with “flex_ai”.

Importing WAVE Sync clips

1. Click WAVE Sync and enter your user ID and .

 

2. Select your system from the dropdown menu.

 

3. Select the checkbox for each WAVE Sync Bookmark you would like to import.

Recommendations

• Use videos that are less than 10 minutes long.
• Multiple videos can be uploaded at once with a maximum file limit of 500 MB each.
• Use the Video Library to rename your video, see its status, or delete it.
• More angles and perspectives of your object will increase the accuracy of the AI model.

FLEX AI: How do I annotate objects?

Summary:

This article describes move through a training video and mark objects. The goal is to take a video clip and pause at several points in the video and annotate objects (draw boxes around) you are teaching FLEX AI to detect.

Step By Step Guide:

Annotating objects

1. Pause the video on any frame that contains the object of interest.

 

2. Draw a detection box around every instance of the object. There can be multiple instances of an object and each instance should have its own detection box.

3. Click the Tighten button (or the keyboard shortcut T) to resize the detection boxes.
This means you can save time by roughly drawing the boxes and then tightening.

Step 1: Roughly draw a box around the object
Step 2: Click the Tighten button (or press T) to quickly get you close
There will be times that FLEX AI does not properly capture the true edges of the object, that’s why the application allows you to readjust the edges of the box.

Step 3: Drag the edges/corners of a detection box to finely edit.

 

4. To remove a detection box, select the appropriate box and click the Delete key on your keyboard.

5. Click Save (or the keyboard shortcut S) to save the marked detection boxes.

6. Once you have drawn the necessary detection boxes, click the Train button. Your project will be unavailable during the training period which typically takes 15 to 30 minutes depending on the number of annotations.

NOTE: Since training is done in the cloud, you can work on any number of other projects
while a project is training.
.

NOTE: The blue detection boxes also appear in the This Frame’s Detections area after you
save. It is recommended that a minimum of 50 detection boxes be defined before your
initial object training is complete. An AI model can include detection boxes from
multiple video clips.

Keyboard shortcuts

You can save time and effort when navigating video, marking, tightening and saving annotations, by using the keyboard shortcuts below.

FLEX AI: How do I improve my object detection model?

Summary:

This article covers improving the AI Object Detection model of your uploaded videos. This process will result in more accurate detections, fewer false positives, and fewer false negatives.

Step By Step Guide:

To improve the AI Object Detection model:

1.Click the Improve button (towards the top right of the video player) after you have reviewed the latest model.
2.Select a video to start.
FLEX AI will suggest the top 10 frames crucial for highlighting your object(s) to enhance your object detection model. Markers represent each frame the application is asking you to revisit.
3.Draw a detection box around every instance of the object.
Remember to save your detection boxes.
4.Click the Object Not Present button (towards the bottom right of the video player) if the object of interest is not in the frame.
5.Use the arrows or the orange dots to advance to different/suggested frames.
6.Complete all 10 suggested frames and repeat for all videos to be included in the next training.
7.Click the Add More button to manually look through the video and add detection boxes, if the suggested frames are not enough (ex: different angles and perspectives are needed in the training set).
8.Click Train when you are ready.
The current limit for a (1) year license is to have a maximum of (100) total trainings or improvements.

NOTE: All 10 suggested frames must be completed per video for them to be included
in the training. Detection boxes on any video where all 10 frames are not marked
will be discarded and not included.

FLEX AI: How do I review and download my FLEX AI model?

Summary:

This article covers reviewing the AI Object Detection model of your uploaded videos.

Step By Step Guide:

To review your uploaded videos:

1.Click the Ready to View button to select your trained AI model results video.
2.Adjust the confidence level slider (towards the top right of the video player) to view the identified objects that meet your specified minimum confidence level.

The following model has been trained only once, so there is no option to compare.
3.After training the AI model more than once, click the Single/Compare Player toggle to change your view from side-by-side video player to single video player.

The following model has been improved, so both the previous (left) and current (right) can be compared. We can already notice the newer model is performing better.

For tips on improving detection accuracy, refer to the following article: How do I improve my object detection model in FLEX AI?.
4.Click the Download button (towards the top right of the video player) when you feel the model has been trained to your preferences. The model can then be uploaded to a camera.
5.Upload your newly trained model to your target camera.
Refer to the following article: How do I upload a FLEX AI model to a camera?

NOTE: Downloaded AI models can be deployed to a camera via Manager/Wise Detector.

FLEX AI: How do I upload a FLEX AI model to a camera?

Summary:

This article describes how, after training a FLEX AI model, you can download it, and then upload it to a compatible P-Series .

Note: For simplification, the term ‘model’ refers to a ‘custom object model’.

Requirements:

• A compatible camera
Refer to the following article: Which cameras and AI applications are supported by SightMind?
• Latest version of Device Manager
• Latest
• Latest version of the WiseAI open platform application installed onto the camera

NOTE: A FLEX AI model cannot run concurrently with a Hanwha Vision AI Pack.
Any existing AI Pack must first be uninstalled from the camera.
However, a FLEX AI model can run in parallel with the WiseAI app.

Step By Step Guide:

To initially upload a Custom Detection Model:

1.Download the model from FLEX AI.
2.Launch Wise AI
3.Go to the Setup tab
4.Choose the Object.tar file you’ve downloaded from FLEX AI.
5.Receive the success message
6.You can now see the model within the list

Also from within the Object Detection from the menu.

You should also see FLEX AI Model below the other object detection options.

To upload a different model:

1.Only (1) custom model can be uploaded to a camera at this time
Remove the previous model(Click the trashcan icon next to the model)
2.Then you are free to upload a new detection model following the same steps above.

FLEX AI: Which cameras are compatible?

Summary:

This article lists the cameras onto which an object detection model created using FLEX AI can be uploaded.

Compatibility:

FLEX AI supports the camera models listed below. They are all P series AI cameras which incorporate the greatest processing power required to run the AI models.

Indoor Dome Outdoor Dome Bullet Box
PND-A9081RV

PND-A9081RF

PND-A6081RV

PND-A6081RF

PNV-A9081R

PNV-A6081R

PNV-A6081R-E

PNO-A9311R

PNO-A9081R

PNO-A6081R

PNB-A9001

PNB-A6001

About the author

M.Salih ASLAN

Hello, I live in Salih Turkey. I serve in dvr, nvr, security and surveillance industry. Write to me for any comments and suggestions ..

Add Comment

Click here to post a comment