Archived
Update constants.ts
This commit is contained in:
1 parent
cf2dbf1963
commit
7528993332
1 file changed
+89
-64
+89
-64
@@ -7,62 +7,85 @@ export const modelCtx = createContext(null) as Context<MobileNet | null>;
|
|||||||
|
|
||||||
//0-papier,1-metale i tworzywa sztuczne,2-szkło,3-bio,4-resztkowe
|
//0-papier,1-metale i tworzywa sztuczne,2-szkło,3-bio,4-resztkowe
|
||||||
export const database: DatabaseRecord[] = [
|
export const database: DatabaseRecord[] = [
|
||||||
{
|
{
|
||||||
AIname: ["paper", "crossword puzzle", "envelope", "toilet tissue"],
|
AIname: ["paper", "crossword puzzle", "envelope", "toilet tissue"],
|
||||||
type: "Papier",
|
type: "Papier",
|
||||||
color: "#383087",
|
color: "#383087",
|
||||||
colorName: "Kolor pojemnika: Niebieski",
|
colorName: "Kolor pojemnika: Niebieski",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
AIname: [
|
AIname: [
|
||||||
"plastic bag",
|
"plastic bag",
|
||||||
"water bottle",
|
"water bottle",
|
||||||
"pill bottle",
|
"pill bottle",
|
||||||
"measuring cup",
|
"measuring cup",
|
||||||
"water jug",
|
"water jug",
|
||||||
"hair spray",
|
"pong ball",
|
||||||
"pong ball",
|
"ashcan",
|
||||||
"sunglasses",
|
"balloon",
|
||||||
"stretcher",
|
"beaker",
|
||||||
"hair slide",
|
],
|
||||||
"lipstick",
|
type: "Tworzywa sztuczne",
|
||||||
"pencil sharpener",
|
color: "rgb(255,255,0)",
|
||||||
"fountain pen",
|
colorName: "Kolor pojemnika: Żółty",
|
||||||
],
|
},
|
||||||
type: "Tworzywa sztuczne",
|
{
|
||||||
color: "rgb(255,255,0)",
|
AIname: ["spatula", "screw", "beer bottle", "can opener"],
|
||||||
colorName: "Kolor pojemnika: Żółty",
|
type: "Metale",
|
||||||
},
|
color: "#E31E25",
|
||||||
{
|
colorName: "Kolor pojemnika: Czerwony",
|
||||||
AIname: ["spatula", "screw", "beer bottle", "can opener"],
|
},
|
||||||
type: "Metale",
|
{
|
||||||
color: "#E31E25",
|
AIname: ["pop bottle", "coffee mug", "cup"],
|
||||||
colorName: "Kolor pojemnika: Czerwony",
|
type: "Szkło",
|
||||||
},
|
color: "#009746",
|
||||||
{
|
colorName: "Kolor pojemnika: Zielony",
|
||||||
AIname: ["pop bottle", "coffee mug", "cup"],
|
},
|
||||||
type: "Szkło",
|
{
|
||||||
color: "#009746",
|
AIname: ["pomegranate", "fig", "lemon", "strawberry", "banana"],
|
||||||
colorName: "Kolor pojemnika: Zielony",
|
type: "Bio",
|
||||||
},
|
color: "#8F7459",
|
||||||
{
|
colorName: "Kolor pojemnika: Brązowy",
|
||||||
AIname: ["pomegranate", "fig", "lemon", "strawberry", "banana"],
|
},
|
||||||
type: "Bio",
|
{
|
||||||
color: "#8F7459",
|
AIname: [
|
||||||
colorName: "Kolor pojemnika: Brązowy",
|
"lighter",
|
||||||
},
|
"ballpoint",
|
||||||
{
|
"Band Aid",
|
||||||
AIname: ["lighter"],
|
"barometer",
|
||||||
type: "Zmieszane",
|
"basketball",
|
||||||
color: "#807571",
|
"baseball",
|
||||||
colorName: "Kolor pojemnika: Czarny",
|
"bathing cap",
|
||||||
},
|
"bath towel",
|
||||||
{
|
"hair spray",
|
||||||
AIname: ["cellular telephone", "iPod", "mouse", "keyboard", "laptop", "desktop computer", "toaster", "monitor", "television", "joystick"],
|
"sunglasses",
|
||||||
type: "PSZOK",
|
"stretcher",
|
||||||
color: "#DB3747",
|
"hair slide",
|
||||||
colorName: "Oddaj do punktu PSZOK",
|
"lipstick",
|
||||||
},
|
"pencil sharpener",
|
||||||
|
"fountain pen",
|
||||||
|
],
|
||||||
|
type: "Zmieszane",
|
||||||
|
color: "#807571",
|
||||||
|
colorName: "Kolor pojemnika: Czarny",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
AIname: [
|
||||||
|
"cellular telephone",
|
||||||
|
"iPod",
|
||||||
|
"mouse",
|
||||||
|
"keyboard",
|
||||||
|
"laptop",
|
||||||
|
"desktop computer",
|
||||||
|
"toaster",
|
||||||
|
"monitor",
|
||||||
|
"television",
|
||||||
|
"joystick",
|
||||||
|
],
|
||||||
|
type: "PSZOK",
|
||||||
|
color: "#DB3747",
|
||||||
|
colorName: "Oddaj do punktu PSZOK",
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
// Global constants
|
// Global constants
|
||||||
@@ -71,14 +94,16 @@ export const accentColor = "#1A77AA";
|
|||||||
|
|
||||||
// Global data structures
|
// Global data structures
|
||||||
export interface DatabaseRecord {
|
export interface DatabaseRecord {
|
||||||
AIname: string[];
|
AIname: string[];
|
||||||
type: string;
|
type: string;
|
||||||
color: string;
|
color: string;
|
||||||
colorName: string;
|
colorName: string;
|
||||||
}
|
}
|
||||||
export interface VideoData {
|
export interface VideoData {
|
||||||
stream: MediaStream;
|
stream: MediaStream;
|
||||||
devices: MediaDeviceInfo[];
|
devices: MediaDeviceInfo[];
|
||||||
device: MediaDeviceInfo;
|
device: MediaDeviceInfo;
|
||||||
}
|
}
|
||||||
export type VideoCtx = VideoData & { setter: Dispatch<SetStateAction<VideoCtx>> };
|
export type VideoCtx = VideoData & {
|
||||||
|
setter: Dispatch<SetStateAction<VideoCtx>>;
|
||||||
|
};
|
||||||
Reference in new issue
Block a user