<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Movie Content Analysis Project (MoCA)</title>
    <link rel="stylesheet" href="2col_leftNav.css" type="text/css" />
    <style type="text/css">.Stil1 {font-family: "Courier New", Courier, mono}</style>
  </head>
<body>
<div id="masthead">
  <TABLE CELLPADDING=10 WIDTH="100%" >
  <TR>
  <TD><IMG SRC="MoCA-medium.jpg" HEIGHT=150 WIDTH=150></TD>
  <TD VALIGN=BOTTOM WIDTH="100%">
      <B>Automatic Movie Content Analysis</B>&nbsp;&nbsp;&nbsp;
      <H1>The MoCA Project</H1>
  </TD>
  </TR>
  </TABLE>
</div>

<div id="content">
  <br><h2 id="segment"><a name="segment" id="segment"></a>segment</h2>
    <p>
      Segments artifical text appearances in videos (typical frame dimensions 360x270 and 352x240).
    </p>
</div>

<div id="content">
  <br><h2 id="Options"><a name="Options"></a>Options</h2> 
  <div class="feature">
    <p>
      <TABLE BORDER NOSAVE >
        <TR NOSAVE>
          <TD>-videoDir</TD>
          <TD NOSAVE>path to movie</TD>
          <TD>required</TD>
        </TR>

        <TR NOSAVE>
          <TD NOSAVE>-videoName</TD>
          <TD>name of video file</TD>
          <TD>required</TD>
        </TR>

        <TR NOSAVE>
          <TD VALIGN=TOP NOSAVE>-mdir</TD>
          <TD NOSAVE>root directory for all intermediate and final results<br />
                     default: &lt;videoDir>/measurements/</TD>
          <TD>optional</TD>
        </TR>

        <TR NOSAVE>
          <TD VALIGN=TOP NOSAVE>-from</TD>
          <TD>number of the first frame<br />
              default: number of the first frame of the video</TD>
          <TD>optional</TD>
        </TR>

        <TR NOSAVE>
          <TD VALIGN=TOP NOSAVE>-to</TD>
          <TD>number of the last frame<br />
              default: number of last frame of the video</TD>
          <TD>optional</TD>
        </TR>

        <TR NOSAVE>
          <TD VALIGN=TOP NOSAVE>-seggerade</TD>
          <TD>color segmentation: color difference threshold for region growing to the left, right, top and bottom<br />
              default: 2000</TD>
          <TD>optional</TD>
        </TR>
 
        <TR>
          <TD>-segdiag</TD>
          <TD>color segmentation: color difference threshold for region growing in corner direction<br />
              default: 1600</TD>
          <TD>optional</TD>
        </TR>

        <TR>
          <TD>-merge</TD>
          <TD>color segmentation: color distance threshold for region merging<br />
              default: 1800</TD>
          <TD>optional</TD>
        </TR>

        <TR>
          <TD>-mergeGraOri</TD>
          <TD>on/off switch for color segmentation<br />
              0 = don't merge regions by gradient and orientation information<br />
              1 = merge regions by gradient and orientation information<br />
              default: 1</TD>
          <TD>optional</TD>
        </TR>

        <TR>
          <TD>-klassSize</TD>
          <TD>on/off switch<br />
              0 = perform no geometry analysis<br />
              1 = perform geometry analysis<br />
              default: 1</TD>
          <TD>optional</TD>
        </TR>

        <TR>
          <TD>-klassKon</TD>
          <TD>on/off switch<br />
              0 = perform no contrast analysis<br />
              1 = perform contrast analysis<br />
              default: 1</TD>
          <TD>optional</TD>
        </TR>

        <TR>
          <TD>-klassTextur</TD>
          <TD>on/off switch<br />
              0 = perform no texture analysis<br />
              1 = perform texture analysis<br />
              default: 1</TD>
          <TD>optional</TD>
        </TR>

        <TR>
          <TD>-track</TD>
          <TD>on/off switch<br />
              0 = perform no motion analysis<br />
              1 = perform motion analysis<br />
              default: 1</TD>
          <TD>optional</TD>
        </TR>
      </TABLE>
    </p>
  </div>
</div>

<div id="content">
  <br><h2 id="Example"><a name="Example"></a>Example</h2> 
  <div class="feature">
    <p>
      segment -videoDir /opt/Movies/ForrestGump/ -videoName ForrestGump.mpg -from 1000 -to 1500</I>
    </p>
    
    <P>As a result four directories  will be created containing lots of MoCA images:
        <UL><I>/opt/Movies/ForrestGump/measurements/seg</I>
        <BR><I>/opt/Movies/ForrestGump/measurements/trc</I>
        <BR><I>/opt/Movies/ForrestGump/measurements/bil</I>
        <BR><I>/opt/Movies/ForrestGump/measurements/end</I></UL>
      They contain images of the following type:
        <UL>
          <LI><I>../measurements/seg</I> contains the text-segmented images right before motion analysis is applied.</LI>
          <LI><I>../measurements/trc</I> contains the final segmentation result</LI>
          <LI>the other directories can be ignored.</LI>
        </UL>
      Before the images can be viewed they must be transformed and saved as JPEG images. Use mocashow to convert the MoCA 
      image to JPEG images:
        <UL><I>cd /opt/Movies/ForrestGump/ measurements/trc</I>
        <BR><I>mocashow *.trc.moca.gz</I></UL>
      NOTE: Besides <I>segment</I> also <I>track</I> and <I>gzip/gunzip</I> must be installed on your system. They are called by <I>segment</I>.
    </P>
  </div>
</div>

<!--end content --> 
<div id="navBar"> 
  <div id="search">  </div> 
  <div id="sectionLinks"> 
    <ul> 
      <li><a href="index.html#Overview">Overview</a></li> 
      <li><a href="index.html#Projects">Projects</a></li> 
      <li><a href="index.html#MoCA People">MoCA People</a></li> 
      <li><a href="index.html#Downloads">Downloads</a></li>
      <li><a href="index.html#Publications">Publications</a></li> 
    </ul>
  </div>
  <div class="relatedLinks"></div>
</div>
<div id="siteInfo">  <a href="http://www.informatik.uni-mannheim.de/pi4/">Praktische Informatik IV</a> |
  <a href="http://www.informatik.uni-mannheim.de/pi4/people/kopf">Contact</a> |
  &copy;2005 Praktische Informatik IV, University of Mannheim</div>
</body>
</html>
