How to calculate confusion matrix of a frame
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi , I am doing a project vehicle detection and counting using GMM and blob analysis how can calculate accuracy of counted vehicles... ???? .... And also iam using MATLAB version 14 .. can any one help pe how to calculate accuracy or confusion matrix
답변 (1개)
Ulli Srinivasu
2020년 9월 15일
Hi Shilpa,
I understood that you want to create a confusion matrix for the detected vehicles.
The confusion matrix can be formed for a classification problem. In this case, it is not possible to formulate a confusion matrix. Since the number of detected vehicles using the algorithm may vary from the ground truth. It may be possible that the algorithm miss to detect the vehicles or wrongly detect vehicles.
However, you can calculate the accuracy and false detection rate.
Let us assume that the algorithm detected 20 vehicles and the actual vehicles in the video frame are 18. Also assume the properly detected vehicles are 15. Hence the algorithm missed to detect 3 vehicles, and wrongly predicted 5 vehicles.
Then,
The accuracy is 15/18.
False detection is 5/20.
Here false detection indicates that how many vehicles detected wrongly from the total detections.
For classification problem you can formulate confusion matrix using the MATLAB function “confusionmat”. You can also find the doc link.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!