Get Adobe Flash player

Laptop came in with no power.  No 3.3V, but 5V is ok. SIO chip, ISL6237 was replaced.

 

The problem: It looks like PU2 (ISL6237) were being damaged upon plugging in the charger.

  • The gate to source resistance is about 1.2 ohm.  PR58 is connected to gate and source of PQ8.
  • Resistance test between pin 25 LX2 -26 DH2 of PU2 is around 1.2ohm.

My old post has been receiving lots of hits requesting for the source code of the background subtraction in this post.  The code below is an improved implementation,  much faster and less code.  Please note that this method is excellent for the type of images where foreground and background object is contrasting. Additional image post-processing may be needed to remove small blobs.



var image= new Image<Bgr,byte>(filename);

// threshold values for each channel
var thresholds = new [] {new TRange<int>(70,255), new TRange<int>(0,255), new TRange<int>(0,255)};

Image<Gray, byte>[] grays = image.Convert<Lab, byte>().Split();

// threshold each channel
for (int i = 0; i < 3; i++)

{
grays[i]._ThresholdToZero(new Gray(thresholds [i].LowerValue));
grays[i]._ThresholdToZeroInv(new Gray(thresholds [i].UpperValue));
grays[i]._ThresholdBinary(new Gray(1), new Gray(255));
}

// merge the thresholded array of binary images above
var  mask = grays[0].And(grays[1].And(grays[2]));

// result
var resultImage = image.Copy(mask);


In one of my projects, there is a need to implement a server-less SQL database.  The result of my exploration led me to SQLITE.  I’m lucky to have found a good wrapper since I’m using C#.  All is well until the need to re-create the database arises. This is required when the application is being readied for deployment.  In my application, one of the requirements was to be able to reset the database  or re create the database inside the application.

To serve this purpose, I developed a small C#console application to create the database for me.  The code is quiet simple , far from optimized and buggy but of course it is up to you to improve it.



public static class Util
<pre> {
public static bool CreateDb(string db)
{
try
{
Console.WriteLine("Please wait creating database " + db);
SQLiteConnection.CreateFile(db);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return false;
}

return true;
}

public static bool ExecuteScript(string script, string connectionString)
{
try
{
if (!File.Exists(script)) throw new FileNotFoundException(script);

DbProviderFactory fact = DbProviderFactories.GetFactory("System.Data.SQLite");
using (DbConnection cnn = fact.CreateConnection())
{
cnn.ConnectionString = connectionString;

using (var cmd = cnn.CreateCommand())
{
var fileInfo = new FileInfo(script);
var sql = fileInfo.OpenText().ReadToEnd();

var tables = System.Text.RegularExpressions.Regex.Split(sql, "\r\n\r\n");

if (tables.Length > 0)
{
cnn.Open();

foreach (var table in tables)
{
Console.WriteLine("Writing TABLE: \n" + table);
cmd.CommandText = table;
cmd.CommandType = CommandType.Text;

cmd.ExecuteNonQuery();
}
}

cnn.Close();
return true;
}
}

}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return false;
}
}
}</pre>
<pre>

In your app.config, you need the following entry:
</pre>
<pre><?xml version="1.0"?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>

  <system.data>
    <DbProviderFactories>
      <remove invariant="System.Data.SQLite"/>
      <add name="SQLite Data Provider" invariant="System.Data.SQLite"?
      description=".Net Framework Data Provider for SQLite"
      type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/></pre>
<pre>    </DbProviderFactories>
  </system.data>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
</configuration></pre>
<pre>
Finally, add a reference to the first file, the second file below should be in the same location as the executable:
  1. System.Data.SQLite.dll
  2. System.Data.SQLite.lib

During the 32nd In-house Research and Development Review last May10-11, 2011 held at Munoz City, Philippines. Our on-going research on Milled Rice Computer Vision garnered an award.

For more information, follow this link - http://www.philmech.gov.ph/?page=news&action=details&code01=NP11050002

Our study, “Development of a Computer Vision System for Milled Rice Quality Analysis” won the AFMA Best R&D Paper for Technology/Information Generation – Agriculture category.

The event was held during the 21st National Research Symposium last October 9, 2009 at the Fernando Lopez Hall of the Bureau of Soils and Water Management (BSWM) Bldg., Visayas Avenue, Diliman, Quezon City.

Check the full article @ http://www.bar.gov.ph/news/21stnrswinners.asp