Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wf 2.6~2.9 影像回收/辨識狀況 #130

Closed
kelp404 opened this issue Apr 28, 2019 · 9 comments
Closed

wf 2.6~2.9 影像回收/辨識狀況 #130

kelp404 opened this issue Apr 28, 2019 · 9 comments
Assignees
Projects

Comments

@kelp404
Copy link
Collaborator

kelp404 commented Apr 28, 2019

@kelp404 前端在畫面呈現時有分成三個維度,舊有 API 無法讓前端方便使用,需要思考新的做法。

螢幕快照 2019-04-28 上午10 12 56

螢幕快照 2019-04-28 上午10 13 11

螢幕快照 2019-04-28 上午10 13 24

螢幕快照 2019-04-28 上午10 13 35

TaiBIF/camera-trap-vueapp#80


前端呈現時有分成三個維度
56815558-3b2fe380-6874-11e9-9243-c96ee6658947

@kelp404
Copy link
Collaborator Author

kelp404 commented Apr 28, 2019

@cjk-halodule 資料呈現上有問題:

wf 2.8 顯示每月資料筆數時呈現相機失竊資料的問題
螢幕快照 2019-04-28 上午10 16 42
假如某個月份我透過「相機異常回報」功能將五月回報為相機失竊,整個五月都沒有資料。
在左圖的時候我只要在該相機位置的五月用紅色區塊呈現就可以。
但在右圖我是沒有資料筆數的,這樣沒問題嗎?

@ghost
Copy link

ghost commented Apr 28, 2019

是的。Wireframe 兩張圖的邏輯沒對上,PT03A 在左圖應該要畫成1-4月綠色,5月紅色。

@dca
Copy link
Contributor

dca commented May 8, 2019

@ghost
Copy link

ghost commented May 8, 2019

  1. 如何判定使用者已經走過一筆資料並確認資料的鑑定狀態,即使物種名稱不在預設中(看到才發現有拍到的新紀錄物種)? => 需要新欄位?
  2. 上傳 CSV 的物種欄位若有資料是否視為已辨識?
  3. 是否需要與預設物種名單核對?

@kelp404
Copy link
Collaborator Author

kelp404 commented May 8, 2019

資料會在上傳 csv 的時候填上去。
當 csv 的物種不在計畫中會自動新增物種,然後這次上傳所產生的標註只要用了這個物種就會有 new-species 紀錄。

newSpecies: 'new-species', // 物種不在預設中,此物種為本次處理時自動新增

failures: [
// 錯誤提示
{
type: String,
required: true,
enum: AnnotationFailureType.all(),
index: {
name: 'Failures',
},
},
],

每個計畫都有定義所有物種。

const model = mongoose.model(
'SpeciesModel',
utils.generateSchema(
{
project: {
type: Schema.ObjectId,
ref: 'ProjectModel',
required: true,
index: {
name: 'Project',
},
},
title: {
// 物種名稱
'zh-TW': {
// 繁體中文
type: String,
required: true,
index: {
// We will use species to search from .csv.
name: 'TitleZhTW',
},
},
},
index: {
// 排序 (由小到大)
type: Number,
default: 0,
},
code: {
// 供「提示定義」使用
type: String,
enum: SpeciesCode.all(),
},
},
{
collection: 'Species',
},
),
);

@dca
Copy link
Contributor

dca commented May 12, 2019

  • Case 1. All StadyArea (包含底下子項目)
  • Case 2. single StadyArea
  • Case 3. single camara
  • 支援按照時間區間查詢

@dca
Copy link
Contributor

dca commented May 13, 2019

參考的 response 格式大概長這樣,只有 _id 裡面的欄位不同,需不需要幫前端做什麼整理,還是前端再另外處理?

目前已知問題,

  1. 為了區分所以是實作 3 個不同的 api
  2. 如果某個月沒有資料的話算出來就不會有那個月,看是要後端補齊還是前端容錯
[
    {
        "_id": {
            "month": 3,
            "year": 2019,
            "cameraLocation": "5cd6648799580eda3c7fe12c"
        },
        "dataCount": 136,
        "fileCount": 136,
        "speciesCount": 136,
        "failures": 0,
        "lastData": "2019-05-11T06:55:55.508Z"
    },
    {
        "_id": {
            "month": 6,
            "year": 2018,
            "cameraLocation": "5cd6648799580eda3c7fe12c"
        },
        "dataCount": 2074,
        "fileCount": 2074,
        "speciesCount": 2074,
        "failures": 120,
        "lastData": "2019-05-11T06:43:38.407Z"
    },
    {
        "_id": {
            "month": 7,
            "year": 2018,
            "cameraLocation": "5cd6648799580eda3c7fe12c"
        },
        "dataCount": 2342,
        "fileCount": 2342,
        "speciesCount": 2342,
        "failures": 12,
        "lastData": "2019-05-11T06:46:11.711Z"
    }
]

@ghost
Copy link

ghost commented May 16, 2019

spec 中還有一個最後更新時間,如果是即時算的就可以用當下的時間,如果是事先算的就要記最近一次算的時間了。請加到 response 中囉。

@ghost
Copy link

ghost commented May 19, 2019

timeUpdated added in 5859e4a.

@ghost ghost closed this as completed May 19, 2019
API v1 automation moved this from To do to Done May 19, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
API v1
  
Done
Development

No branches or pull requests

2 participants