Translate

Showing posts with label measurement on photos. Show all posts
Showing posts with label measurement on photos. Show all posts

Monday, June 20, 2016

[Android] How to measure face shape from your app using Face Shape Meter.

Face Shape Meter updated with new ability to export face shape result . If you have the app installed on your device, you can check face shape on a picture by calling Face Shape Meter from you application and get result back to your app after measurements. The result is returned as JSON string (see code example below).



How to call from your application:

Intent intent = new Intent("com.vistechprojects.faceshapemeterpro.action.MEASURE_FACE");
intent.setDataAndType(IMAGE_SOURCE_URI, "image/*"); // comment this line if you don't pass image uri
startActivityForResult(intent, REQUEST_CODE); // replace REQUEST_CODE with your constant

Example how to get results:

protected void onActivityResult(int requestCode, int resultCode, Intent data) {
...

if (resultCode == RESULT_OK && requestCode == REQUEST_CODE){
     JSONObject json = new JSONObject(data.getStringExtra("FSM_OUTPUT_JSON"));
     ...
}
...
}

JSON returned from Face Shape Meter: 

{"APP_RESULTS":{"face shape":"Heart"}}

Face Shape Meter Android app on Google Play

Friday, June 10, 2016

How to measure colors from your app using ColorMeter

ColorMeter updated (v3.1.0) with new ability to export measurement results. If you have the app installed on a device, you can measure color  from your application by calling ColorMeter. Currently you will get RGB and HEX color result as JSON string (see code example below).



How to call from your application:

Intent intent = new Intent("com.vistechprojects.colormeter.action.MEASURE_COLOR");
intent.setDataAndType(IMAGE_SOURCE_URI, "image/*"); // comment this line if you don't pass image uri
startActivityForResult(intent, REQUEST_CODE); // replace REQUEST_CODE with your constant

Example how to get results:

protected void onActivityResult(int requestCode, int resultCode, Intent data) {
...

if (resultCode == RESULT_OK && requestCode == REQUEST_CODE){
     JSONObject json = new JSONObject(data.getStringExtra("CM_OUTPUT_JSON"));
     ...
}
...
}

JSON returned from ColorMeter: 

{"APP_RESULTS":{"RGB":"112,63,30","HEX":"#703F1E"}}

Update v3.1.1:

This update allows you to set default size of averaging window by passing index parameter.

The index must be an integer value from 0 to 10 and it corresponds to default window sizes 1x1, 3x3, ..., 21x21 pixels.

Intent intent = new Intent("com.vistechprojects.colormeter.action.MEASURE_COLOR");
intent.setDataAndType(IMAGE_SOURCE_URI, "image/*"); // comment this line if you don't pass image uri
intent.putExtra("averaging_size_index", INDEX);  // INDEX must be an integer value from 0 to 10
startActivityForResult(intent, REQUEST_CODE); // replace REQUEST_CODE with your constant

Also in the new version it is possible to read each color channel separately:

protected void onActivityResult(int requestCode, int resultCode, Intent data) {
...
if (resultCode == RESULT_OK && requestCode == REQUEST_CODE){
     int red = data.getIntExtra("CM_OUTPUT_RED", 0));
     int green = data.getIntExtra("CM_OUTPUT_GREEN", 0);
     int blue = data.getIntExtra("CM_OUTPUT_BLUE", 0);
     String hex = data.getStringExtra("CM_OUTPUT_HEX");
     ...
}
...
}


ColorMeter Android app on Google Play

Wednesday, August 6, 2014

Diskometer - camera measure. User feedback.

Saturday, August 2, 2014

Partometer3D - camera measure. Measurements with your camera on photos in any defined plane in 3D.




Partometer3D  is a handy tool for object dimensions measurements. It  can be used as a ruler or tape measure, or remote measurement device. 

This app allows user to make measurements in defined plane in 3D . The measurement plane / object plane does not have to be parallel to the camera plane. It expands number of situations where application can be used. For example, big objects now can be measured by taking a picture at some angle (from a side), objects and distances that are difficult to reach can be measured as well. 

The app has following important and  distinctive features:

- measure in any selected plane in 3D space
- add/delete  any number of measurement lines/rulers
- values assigned to each ruler line
- measure objects in different directions
- save and share you measurement 
- find object ratios, if you don't not need absolute measurements
- compare object parts to each other
- use custom and predefined reference objects
- automatic reference object fine alignment using image processing

Partometer3D uses a phone/tablet camera and any available object with known size as a reference to perform measurement. To define the measurement plane a rectangular object  (e.g. sheet of paper, credit card, custom object) is used. Image processing is used for automatic edge alignment with the reference object.

The app shows measurement results in different units: meters, millimeters, centimeters, feet, inches based on user settings. It also calculate dimensions of the object in relative units with respect to  the reference object (ROL). 
    
There is an option to make a picture and work with the still image instead of live camera view. Picture Load feature is also implemented to work with any picture from your photo gallery. Zoom View feature helps to align object boundaries accurately. Partomter3D can be very useful if you need to measure dimensions, where a simple ruler or measure tape is difficult to apply. 


Partometer3D Android app on Google Play