[Android, Mysql, PHP] Detect my location using Android Get link Facebook X Pinterest Email Other Apps July 25, 2019 Android GpsInfo - > insert_location.php Database Structure (Mysql) PHP map.php Get link Facebook X Pinterest Email Other Apps Comments
[C] How to use for loop with C February 15, 2019 #include<stdio.h> int main(int argc, char *argv[]){ int result = 0; int i = 0; for(i = 1; i <= 1000; i++){ result += i; } printf("sum of 1 to 1000 : %d\n", result); return 0; } Read more
[OpenCV] Chapter01-02 Transform image size and flip March 06, 2019 Transform image size and flip Source Code package main import ( "image" "log" "gocv.io/x/gocv" ) func main() { imageFilePath := "../../data/Lena.png" mat := gocv.IMRead(imageFilePath, gocv.IMReadAnyColor) if mat.Empty() { log.Panic("Can not read Image file : ", imageFilePath) return } log.Println("original image size:", mat.Size()) width, height := 0.25, 0.5 resizeImage := gocv.NewMat() gocv.Resize(mat, &resizeImage, image.Point{X: 0, Y: 0}, width, height, gocv.InterpolationNearestNeighbor) log.Println("original image size:", resizeImage.Size()) flippedImage := gocv.NewMat() // Flip flips a 2D array around horizontal(0), vertical(1), or both axes(-1) // Reverses with respect to the x axis. gocv.Flip(mat, &flippedImage, 0) // Reverses with respect to the y axis. gocv.Flip(mat, &flippedImage, 1) // Reverses with respect to the both x, y axis. gocv.Flip(mat, &flippedIma... Read more
[C] How to use fork with C February 16, 2019 #include <stdio.h> #include <unistd.h> int main(int argc, char *argv[]) { char *name = argv[0]; int child_pid = fork(); if (child_pid == 0) { printf("Child of %s is %d\n", name, child_pid); return 0; } else { printf("My child is %d\n", child_pid); return 0; } return 0; } Read more
Comments
Post a Comment