Wednesday, August 6, 2014

Puerto Princesa, Philippines

Access

  • Direct flights from Manila via Air Asia, Cebu Pacific, and Philippine Airlines

Sample Itinerary


3 Days / 2 Nights


Day 1 (AM)

  • Arrive at Puerto Princesa International Airport (PPS)
  • Check-in to hotel

Day 1 (PM)

  • City Tour
    • Crocodile Farm
    • Butterfly Garden
    • Mitra's Ranch
    • Cathedral
    • Plaza Cuartel
    • City Museum
    • Iwahig Penal Colony

Day 2

  • Honda Bay, Island Hopping Tour
    • Luli Island
    • Pandan Island
    • Snake Island
    • Starfish Island

Day 3

  • Sabang/Underground River Tour

Day 4 (AM)

  • Dolphin Watching

Day 4 (PM)

  • Depart to next destination

Reviews on Activities, Hotels, and Restaurants


Honda Bay, Island Hopping Tour

  • One can do swimming, snorkeling, and fish feeding on the islands. Do not forget to bring a change of clothes, snorkeling gear, and underwater camera. I liked Pandan Beach the best because of its clear green color. The sand is smooth and powdery light brown in color. There are also cottages nearby and it's very relaxing because it's not overcrowded. There are also a lot of fish and be sure to check out the moon rose (a bluish green color fish). Your guide will tell you where to look and the names of the fish. Don't forget to give extra tip to your guide, which is usually your boatman. However, be cautious of the coral eggs that may hit your skin because it's very itchy and may sting for awhile. Overall, this is a must-do when you visit Puerto Princesa.

Kalui Restaurant

  • The service in this restaurant is great. It was fast and the waiters are quite attentive to your needs. The food was okay. I will recommend the butterfly fish with pineapple marinade and avocado shake. Maybe you can get the Ka Lui special platter, which is good for 2, but it's worth the price. The restaurant has a native ambiance and there are tables wherein you can get to sit on the floor with pillows. It was very ethnic, just suitable with the atmosphere plus they only play native songs.

Sunday, June 9, 2013

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in unknown function

Error:


OpenCV Error: Assertion failed (scn == 3 || scn == 4) in unknown function, file ..\..\..\src\opencv\modules\imgproc\src\color.cpp, line 3414

Solution:


  • Check if the source image is not empty, src_image.empty().

Converting Image to Gray Scale

Friday, June 7, 2013

libpng warning: Image width is zero in IHDR

Error:


Hello, OpenCV

Running DetectFaceDemo
Detected 0 faces
Writing faceDetection.png
libpng warning: Image width is zero in IHDR
libpng warning: Image height is zero in IHDR
libpng error: Invalid IHDR data

Solution:


Change the path of the files to their absolute paths.

Wednesday, June 5, 2013

Setting the Environment Variables on Windows 7

  1. Right-click on Computer
  2. Choose Properties
  3. Click on Advanced system settings. 

Setting up OpenCV with Eclipse on Windows 7

Prerequisites

  • JDK
  • Apache Ant
  • Python

Installing the JDK

  1. Download the latest JDK
  2. Install the downloaded application.
  3. Follow the installation instructions.

Installing Apache Ant

  1. Download the latest binary distribution of Apache Ant
  2. Extract the downloaded compressed file to a directory (e.g. C:\Users\mizuki\Documents\apache-ant-1.9.1).
  3. Set the following environmental variables to their corresponding directories: JAVA_HOME (e.g. C:\Program Files\Java\jdk1.7.0_21\), ANT_HOME (e.g. C:\Users\mizuki\Documents\apache-ant-1.9.1\), and add %ANT_HOME%/bin to PATH.
  4. Open the command prompt and from the ANT_HOME directory, run ant -f fetch.xml -Ddest=system to get the library dependencies of most Ant tasks. (I am not sure if this step is needed but I just did this based on the Apache Ant installation guide)

Installing Python

  1. Download Python v2.6 or higher. 
  2. Install the downloaded application.
  3. Follow the installation instructions.

Installing OpenCV

  1. Download OpenCV
  2. Extract the downloaded file to a directory (e.g. C:\Users\mizuki\Documents\opencv\).

Installing the Eclipse IDE

  1. Download the latest Eclipse IDE
  2. Extract the downloaded compressed file to a directory (e.g. C:\Users\mizuki\Documents\eclipse-SDK-4.2.2-win32\).

Creating a Simple Java Project

  1. Start the Eclipse IDE and create a new workspace.
  2. Create a new Java project. 
  3. Name the project "HelloCV".
  4. Open Properties of the created project and click on Java Build Path to configure the needed OpenCV libraries. 
     
     
     
     
     
  5. Go to the directory where OpenCV was extracted and find the jar file under build > java
  6. Select the Native library location.
  7. For its location path, the dll file will be under the folder x86 for 32-bit processor and x64 for 64-bit processor still under the build > java folder.
  8. Create a new Java class Main.java with code shown in: OpenCV tutorial. However, use the string "opencv_java245" for the library.