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
|
||||
export const database: DatabaseRecord[] = [
|
||||
{
|
||||
AIname: ["paper", "crossword puzzle", "envelope", "toilet tissue"],
|
||||
type: "Papier",
|
||||
color: "#383087",
|
||||
colorName: "Kolor pojemnika: Niebieski",
|
||||
},
|
||||
{
|
||||
AIname: [
|
||||
"plastic bag",
|
||||
"water bottle",
|
||||
"pill bottle",
|
||||
"measuring cup",
|
||||
"water jug",
|
||||
"hair spray",
|
||||
"pong ball",
|
||||
"sunglasses",
|
||||
"stretcher",
|
||||
"hair slide",
|
||||
"lipstick",
|
||||
"pencil sharpener",
|
||||
"fountain pen",
|
||||
],
|
||||
type: "Tworzywa sztuczne",
|
||||
color: "rgb(255,255,0)",
|
||||
colorName: "Kolor pojemnika: Żółty",
|
||||
},
|
||||
{
|
||||
AIname: ["spatula", "screw", "beer bottle", "can opener"],
|
||||
type: "Metale",
|
||||
color: "#E31E25",
|
||||
colorName: "Kolor pojemnika: Czerwony",
|
||||
},
|
||||
{
|
||||
AIname: ["pop bottle", "coffee mug", "cup"],
|
||||
type: "Szkło",
|
||||
color: "#009746",
|
||||
colorName: "Kolor pojemnika: Zielony",
|
||||
},
|
||||
{
|
||||
AIname: ["pomegranate", "fig", "lemon", "strawberry", "banana"],
|
||||
type: "Bio",
|
||||
color: "#8F7459",
|
||||
colorName: "Kolor pojemnika: Brązowy",
|
||||
},
|
||||
{
|
||||
AIname: ["lighter"],
|
||||
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",
|
||||
},
|
||||
{
|
||||
AIname: ["paper", "crossword puzzle", "envelope", "toilet tissue"],
|
||||
type: "Papier",
|
||||
color: "#383087",
|
||||
colorName: "Kolor pojemnika: Niebieski",
|
||||
},
|
||||
{
|
||||
AIname: [
|
||||
"plastic bag",
|
||||
"water bottle",
|
||||
"pill bottle",
|
||||
"measuring cup",
|
||||
"water jug",
|
||||
"pong ball",
|
||||
"ashcan",
|
||||
"balloon",
|
||||
"beaker",
|
||||
],
|
||||
type: "Tworzywa sztuczne",
|
||||
color: "rgb(255,255,0)",
|
||||
colorName: "Kolor pojemnika: Żółty",
|
||||
},
|
||||
{
|
||||
AIname: ["spatula", "screw", "beer bottle", "can opener"],
|
||||
type: "Metale",
|
||||
color: "#E31E25",
|
||||
colorName: "Kolor pojemnika: Czerwony",
|
||||
},
|
||||
{
|
||||
AIname: ["pop bottle", "coffee mug", "cup"],
|
||||
type: "Szkło",
|
||||
color: "#009746",
|
||||
colorName: "Kolor pojemnika: Zielony",
|
||||
},
|
||||
{
|
||||
AIname: ["pomegranate", "fig", "lemon", "strawberry", "banana"],
|
||||
type: "Bio",
|
||||
color: "#8F7459",
|
||||
colorName: "Kolor pojemnika: Brązowy",
|
||||
},
|
||||
{
|
||||
AIname: [
|
||||
"lighter",
|
||||
"ballpoint",
|
||||
"Band Aid",
|
||||
"barometer",
|
||||
"basketball",
|
||||
"baseball",
|
||||
"bathing cap",
|
||||
"bath towel",
|
||||
"hair spray",
|
||||
"sunglasses",
|
||||
"stretcher",
|
||||
"hair slide",
|
||||
"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
|
||||
@@ -71,14 +94,16 @@ export const accentColor = "#1A77AA";
|
||||
|
||||
// Global data structures
|
||||
export interface DatabaseRecord {
|
||||
AIname: string[];
|
||||
type: string;
|
||||
color: string;
|
||||
colorName: string;
|
||||
AIname: string[];
|
||||
type: string;
|
||||
color: string;
|
||||
colorName: string;
|
||||
}
|
||||
export interface VideoData {
|
||||
stream: MediaStream;
|
||||
devices: MediaDeviceInfo[];
|
||||
device: MediaDeviceInfo;
|
||||
stream: MediaStream;
|
||||
devices: 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