Getting error in DRMF code

10 次查看(过去 30 天)
RAKSHA KULKARNI
RAKSHA KULKARNI 2015-2-23
Hi. Can anyone please help me write a DRMF code? It stands for "Discriminative Map Fitting Code." This code gives the coordinates of 66 landmarks on the face. Here is the program I got on the internet:
clear;
close all;
addpath(genpath('.'));
% ------------------------------------------------
% % % % % %
% Choose Face Detector % %
% 0: Tree-Based Face Detector (p204); % %
% 1: Matlab Face Detector (or External Face Detector); % %
% 2: Use Pre-computed Bounding Boxes % % % % %
% NOTES: % % % [a] Option '0' is very accurate and suited for faces in the 'wild'; % %
% But it is EXTREMELY slow!!! % %
% [b] Option '1' supports the functionality for incorporating % %
% YOUR OWN FACE DETECTOR WITH DRMF FITTING; % %
% Simply modify the function External_Face_Detector.m % % %
bbox_method = 1;
%------------------------------------------------%
%------------------------------------------------% % %
% Choose Visualize % %
% 0: Do Not Display Fitting Results; % %
% 1: Display Fitting Results and Pause of Inspection) % % %
visualize=1;
%------------------------------------------------%
%------------------------------------------------% % %
% Load Test Images
image_path='test_images/';
img_list=dir([image_path,'*.png']);
for i=1:size(img_list,1)
data(i).name = img_list(i).name;
data(i).img = im2double(imread([image_path,img_list(i).name]));
% % % Required Only for bbox_method = 2;
data(i).bbox = []; % Face Detection Bounding Box [x;y;w;h]
% % % Initialization to store the results
data(i).points = []; % MAT containing 66 Landmark Locations
data(i).pose = []; % POSE information [Pitch;Yaw;Roll]
end
%------------------------------------------------%
%------------------------------------------------%
%Run Demo
clm_model='model/DRMF_Model.mat';
load(clm_model);
data=DRMF(clm_model,data,bbox_method,visualize);
%------------------------------------------------%
The error is found in the last line, I'm not able to understand why "data" is written twice that is, on both side of equality (in the input argument list and in the output argument list)???
  6 个评论
shalev fahima
shalev fahima 2021-9-12
Ok image analyst i will upload my progress as far as a quastion ia it ok if I tag you for help?
Image Analyst
Image Analyst 2021-9-12
@shalev fahima don't put people's names as tags. It may make other people think they are not wanted as answerers. Besides, I don't know anything about DRMF.

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by