kukuruza / City-Project

Analyze traffic given a set of optical cameras in urban areas
0 stars 0 forks source link

Save GeometrEstimator model for speed #4

Closed kukuruza closed 10 years ago

kukuruza commented 10 years ago

Right now the init part takes 2 sec. It's annoying in pipeline

satwikkottur commented 10 years ago

I have attached the object files. The downside is that they need to be updated if I make changes to the GeometryEstimator class. Shouldn't be a problem to the pipeline and other parts. Let me know if you face any problem or if there are any bugs. You can simply load the corresponding .mat file to get the object. Thanks.

kukuruza commented 10 years ago

Sorry, Satwik, I don't see how I use that? It's not in the tests, is it?

satwikkottur commented 10 years ago

Hi Evgeny,

% Loading the road properties that were manually marked (Pts for the lanes)
matFile = 'Geometry_Camera_368.mat';
geom = GeometryEstimator(image, matFile);
fprintf ('GeometryEstimator: constructor finished\n');

% Geometry object can be simply loaded using the object file
% The object geom will be directly loaded. However, newer functionalities
% might need this object to be created again
%objectFile = 'GeometryObject_Camera_360.mat';
%load(objectFile);
%fprintf(strcat('Read Geometry object from file, might not be the latest version\n' , ...
%    'Update if made changes to GeometryEstimator class\n'));

You can comment the first three lines and uncomment the last three to use these .mat files. Thank you.

kukuruza commented 10 years ago

Yes, thanks, I figured it out when trying to make 572 work, but forgot too close this issue. Thank you!