农业php,Tania 一个基于PHP的免费开源农业管理系统

End Official Support and Maintenance for Tania PHP

As the rewrite of Tania from PHP to Go is completed, and we have released the new Tania project to the public repository. The support for Tania PHP is ended. Please, check the new project at tania-core.

project-logo.png

146423eddbd2f9e97cbbae37f5e0d334.png68747470733a2f2f7472617669732d63692e6f72672f54616e69626f782f74616e69612e7376673f6272616e63683d646576656c6f706d656e74

Tania is a free and open source farming management system for everyone. You can manage your growing areas, reservoirs, farm tasks, inventories, and the crop growing progress.

It is developed on top of Symfony PHP web framework.

To get the stable release, you can checkout to the master branch or from the release tab.

Screenshots

68747470733a2f2f73332d61702d736f757468656173742d312e616d617a6f6e6177732e636f6d2f61736570636f2f696f742d64617368626f6172642e504e47

Requirements

PHP >= 7.0

MySQL >= 5.6

Composer (you can install from getcomposer.org)

General installation steps

First, clone this project:

git clone git@github.com:Tanibox/tania.git

cd tania

Second, setup your database and mailer parameters in /.env. You can duplicate and rename the /.env-example file.

Third, setup the web application:

curl -sS https://getcomposer.org/installer | php

php composer.phar install

Fourth, setup the database tables:

php bin/console --no-interaction doctrine:migrations:migrate

Fifth, create user:

php bin/console fos:user:create {{user}} {{email}} {{password}}

The last, you can run Tania in development mode (on your PC or laptop) by using this command:

php bin/console server:run

Tania will run on http://localhost:8000.

You can also run Tania in production mode (on your server) by referring to this Symfony documentation.

Done! You can start to use Tania.

Questions and issues

You can use our JIRA issue tracker for bug reporting, feature request, and general feedback.

Maintainers

Current maintainers:

Asep Bagja Priandana - Linkedin

Retno Ika Safitri - Linkedin

Didiet Noor - Linkedin

If you are interested in being a core contributor to this project, please drop me an email at

License

Tania is available under Apache 2.0 open source license.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Go语言(也称为Golang)是由Google开发的一种静态强类型、编译型的编程语言。它旨在成为一门简单、高效、安全和并发的编程语言,特别适用于构建高性能的服务器和分布式系统。以下是Go语言的一些主要特点和优势: 简洁性:Go语言的语法简单直观,易于学习和使用。它避免了复杂的语法特性,如继承、重载等,转而采用组合和接口来实现代码的复用和扩展。 高性能:Go语言具有出色的性能,可以媲美C和C++。它使用静态类型系统和编译型语言的优势,能够生成高效的机器码。 并发性:Go语言内置了对并发的支持,通过轻量级的goroutine和channel机制,可以轻松实现并发编程。这使得Go语言在构建高性能的服务器和分布式系统时具有天然的优势。 安全性:Go语言具有强大的类型系统和内存管理机制,能够减少运行时错误和内存泄漏等问题。它还支持编译时检查,可以在编译阶段就发现潜在的问题。 标准库:Go语言的标准库非常丰富,包含了大量的实用功能和工具,如网络编程、文件操作、加密解密等。这使得开发者可以更加专注于业务逻辑的实现,而无需花费太多时间在底层功能的实现上。 跨平台:Go语言支持多种操作系统和平台,包括Windows、Linux、macOS等。它使用统一的构建系统(如Go Modules),可以轻松地跨平台编译和运行代码。 开源和社区支持:Go语言是开源的,具有庞大的社区支持和丰富的资源。开发者可以通过社区获取帮助、分享经验和学习资料。 总之,Go语言是一种简单、高效、安全、并发的编程语言,特别适用于构建高性能的服务器和分布式系统。如果你正在寻找一种易于学习和使用的编程语言,并且需要处理大量的并发请求和数据,那么Go语言可能是一个不错的选择。
这篇文章提出了一种用于图像分割的增强局部纹理描述符(Enhanced Local Texture Descriptor,简称ELTD)。下面是基于Python实现的ELTD算法的代码: ```python import cv2 import numpy as np def eltd(image, window_size=3, num_bins=8, sigma=0.2): # 将图像转换成灰度图 gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # 计算图像的梯度 gx = cv2.Sobel(gray, cv2.CV_64F, 1, 0, ksize=3) gy = cv2.Sobel(gray, cv2.CV_64F, 0, 1, ksize=3) # 计算像素点的梯度幅值和方向 mag, ang = cv2.cartToPolar(gx, gy, angleInDegrees=True) # 将角度调整到0-180度之间 ang = np.mod(ang, 180) # 计算每个像素点的ELTD特征向量 height, width = gray.shape eltd_features = np.zeros((height, width, num_bins)) half_window = window_size // 2 for i in range(half_window, height - half_window): for j in range(half_window, width - half_window): # 计算当前窗口内的梯度幅值和方向 mag_window = mag[i-half_window:i+half_window+1, j-half_window:j+half_window+1] ang_window = ang[i-half_window:i+half_window+1, j-half_window:j+half_window+1] # 将方向值划分到不同的bin中 bins = np.floor(ang_window / (180 / num_bins)).astype(int) # 计算当前像素点的ELTD特征向量 for k in range(num_bins): eltd_features[i, j, k] = np.sum(mag_window[bins == k]) # 对特征向量进行归一化 eltd_features /= np.linalg.norm(eltd_features, axis=2, keepdims=True) + 1e-6 # 对特征向量进行平滑处理 eltd_features = cv2.GaussianBlur(eltd_features, (0, 0), sigma) # 返回ELTD特征 return eltd_features ``` 这段代码实现了ELTD算法的主要逻辑,它接受一张彩色图像作为输入,然后返回ELTD特征。其中,`window_size`参数表示局部纹理窗口的大小,`num_bins`参数表示将方向值划分到多少个bin中,`sigma`参数表示平滑处理的高斯核标准差。 需要注意的是,ELTD算法的实现还需要结合其他图像分割算法一起使用,才能得到最终的分割结果。例如,可以使用基于聚类的方法对ELTD特征进行聚类,得到分割结果。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值