I Tried Using a Camera and jev to Determine Whether "Something Has Been Placed There"

I Tried Using a Camera and jev to Determine Whether "Something Has Been Placed There"

I tried using a camera and jev to detect whether anything has been left in a spot. Conditions are written in plain Japanese, and exception rules can be added the same way.
2026.12.02

This page has been translated by machine translation. View original

I'm Yamatatsu from the Manufacturing Business Technology Department.

I tried using a camera and AI to determine whether "anything has been left in the aisle."
I also added the following conditions to the rules: "people are excluded, luggage that a person is holding is also excluded, putting luggage on the floor is out, but it's safe if there is a 'temporary placement' tag."
All I gave the AI was a text describing these rules in Japanese. I prepared zero training data.

The moment when a person places a cardboard box in the aisle and the judgment changes from NO to YES

The code for the prototype app is available below. The contents are aimed at engineers, but you can follow this article without reading it.

https://github.com/yamatatsu/jev-image

"AI that looks for predetermined objects" vs. "whether anything has been left"

When it comes to AI that finds objects in images, the common type looks for "predetermined objects" such as people, cars, and chairs (object detection such as YOLO).
It is also widely used in factories, and it is very good at quickly finding predetermined objects.

On the other hand, "is anything left in the aisle?" is a question that is hard for this kind of AI to answer.

  • You can't decide in advance whether what gets left will be a cardboard box, a stepladder, or a hose
  • Even the same cardboard box is safe if a person is carrying it, but out if it's placed on the floor
  • It's safe if a "temporary placement" tag is attached

The "something" can't be predetermined. The answer changes depending on the situation even for the same object. The text on a tag creates an exception.
If you try to do this with AI that looks for predetermined objects, you end up building the judgment rules one by one.

This time, I tried solving this problem with jev.

The Japanese I gave to jev

jev is an AI service that returns an answer when you give it an image and a question in Japanese.
This time, I asked a question that can be answered with yes/no, and used it to receive the likelihood of "yes" as a percentage.

The rules I wanted it to judge

  • If something is placed in the aisle, YES
  • However, people are excluded
  • Luggage a person is holding is also excluded
  • Luggage that a person has let go of and placed in the aisle is YES
  • However, if a "temporary placement" tag is attached, it is excluded

The text actually given

What I give to jev is two things: a "question" and the "criteria for judgment."
Both are Japanese sentences, and I simply copied the rules above almost as they are.

Question

`camera` は通路を写した画像です。通路に物が置かれていますか?次のルールで判断してください。
- 人そのものは「物」に含めない。
- 人が手に持っている・抱えている・背負っている荷物は含めない。
- 人が手から離して通路に置いた荷物は「物」に含める。
- ただし「仮置き」と書かれた札や表示が付いている物は含めない。

Criteria for judgment (the state to be treated as "yes")

人が持っていない物が通路に少なくとも1つ置かれていて、その物には「仮置き」の札が付いていない。

Criteria for judgment (the state to be treated as "no")

通路に置かれた物がない。写っているのは人、人が持っている荷物、「仮置き」の札が付いた物だけである。

I did not give any training data or sample images at all. Only the camera image and this text.

The answer that comes back

jev returns the likelihood of "yes" from 0 to 100%.
92% means "almost certainly something is placed there," 5% means "almost certainly nothing is there," and around 50% means "can't tell either way."
In the rest of this article, I'll call this number the "probability of YES."
The percentage attached to cases judged NO is also the probability of YES, not the probability of NO. Read it as: the smaller the number, the more confident it is that "nothing is placed there."

Since it returns a number rather than a yes/no binary, the receiving side can decide where to draw the line for YES.

What I built

I built a small verification app that runs entirely in the browser.
It simply takes a photo from the camera feed every few seconds, sends it to jev, and displays the returned answer by color.

Architecture diagram: Camera → App (takes one photo every few seconds) → jev (judges using the Japanese rules) → Judgment result (YES / NO / Unknown)

  1. Capture the camera feed
  2. Take one photo at regular intervals
  3. Send it to jev
  4. Look at the returned percentage and display it sorted into YES / NO / Unknown

For the judgment, I set 70% or higher as YES, 30% or lower as NO, and anything in between as "Unknown."
"Unknown" assumes that a person will check it.
I think, as the author, that passing uncertain cases to a person is more readily accepted on site than trying to settle everything automatically in black and white.

The 70% and 30% lines can be moved on the screen, so they can be adjusted to suit the site.

Threshold settings screen. Sliders for yes threshold 0.70 and no threshold 0.30

Trying it out

1. An empty aisle

Judging an empty aisle. The judgment is NO, the yes probability is 0.090

The expectation is NO.
The result was NO (probability of YES: 9%).

2. A person just walking

A person walking in the aisle. The judgment is NO, the yes probability is 0.100

Since the rule is that people are not counted as "objects," the expectation is NO.
The result was NO (probability of YES: 10%).

3. A person walking while carrying a cardboard box

A person walking in the aisle carrying a cardboard box. The judgment is NO, the yes probability is 0.280

Since luggage a person is holding is excluded, the expectation is NO.
The result was NO (probability of YES: 28%).

4. A person placed a cardboard box on the floor

A person placing a cardboard box on the aisle floor. The judgment after placing is YES

Once the hands let go it becomes a target, so the expectation is YES.
The result was YES (probability of YES: 77%).

In this case, I also looked at the moment right after it was placed.
While the hands were still touching the cardboard box, the judgment was "Unknown" (probability of YES: 49%).
Since the picture looks like both "holding" and "placed," the AI seems to have withheld judgment.
That such pictures are sorted into "Unknown" and handed over to a person for checking is exactly as intended in this design.

5. The placed cardboard box has a "temporary placement" tag

A cardboard box with a "temporary placement" tag placed on the aisle floor. The judgment is NO, the yes probability is 0.130

Since it is excluded if there's a tag, the expectation is NO.
The result was NO (probability of YES: 13%).

Summary of results

# Scene Expected Result (probability of YES)
1 Empty aisle NO NO (9%)
2 A person just walking NO NO (10%)
3 A person walking while carrying a cardboard box NO NO (28%)
4 A person placed a cardboard box on the floor YES YES (77%)
4' Right after placing (hands still touching) Unknown Unknown (49%)
5 Placed cardboard box with a "temporary placement" tag NO NO (13%)

How it could be used on site

Suitable uses

This setup is suited to uses where fixed-point observation once every few minutes is enough.

  • Record items left in aisles and visualize "since when and for how long" they have been left
  • Record that the areas in front of fire extinguishers, fire hydrants, emergency exits, and distribution boards are not blocked, and use it as audit evidence
  • Watch times and places that patrols can't reach, such as night shifts, holidays, and the back of large warehouses

Unsuitable uses

  • A single judgment took roughly 200–300 ms (officially stated as 70–500 ms). It can't be used where this judgment time would be fatal
  • For things that need to stop immediately, like a forklift approach warning, other means are likely to be more effective

Cost estimate

  • Cost is proportional to the number of judgments. Roughly, the monthly cost is "cost per judgment × judgments per day × number of cameras × 30 days"
  • In this prototype, each judgment consumed about 1,400 tokens. The size of the image sent was 640×480 (about 30KB)
  • jev's pricing is $0.042 per million input tokens, and output is free (as of December 1, 2026, pricing page). Converted at 160 yen to the dollar, that's about 0.01 yen per judgment
  • One judgment every 5 minutes with one camera comes to about 80 yen a month, and even increasing to once a minute is only about 410 yen a month

In other words, the AI usage fee is within the margin of error.
You'll be thinking about cost in terms of camera installation, the notification mechanism, and the effort of the people checking "Unknown" cases.

With the same camera and mechanism, changing the question text lets you also check things like the area in front of fire extinguishers, forgetting to return tools (shadow boards), and wearing of protective equipment.
Since installed cameras can be reused for multiple purposes, another advantage is that it's easier to increase the value per camera.

Light to introduce and to change rules

This time, I prepared zero training data. I simply wrote the site's rules in Japanese and handed them over.
If the rules change, rewriting the text is enough. Even if rules differ from site to site, you just copy and tweak the question text.
I felt, as the author, that being able to start a small PoC easily is a big advantage.

Summary

  • Using jev, I was able to make judgments with exception rules where the answer changes depending on relationships between objects and on text: "exclude people," "exclude luggage being held," "YES if placed," and "exclude if there's a temporary placement tag"
  • No training data is needed, and changing the rules only requires rewriting the question text

Quickly finding predetermined objects is the strong suit of AI so far, but there are probably other judgments, like "something" or "it's OK if ~," that are quicker to write in words.
Why not start by writing a single question and pointing a camera at it?

That's all!


製造業のクラウド活用とデジタル化を支援します

クラスメソッドの専門家による包括的なクラウド導入とデジタル化支援で、製造業の業務効率を最大化しましょう。AWSの導入から運用、最適化まで、最新技術と豊富な知見であらゆる課題に対応します。生産ラインのデジタル化やデータ活用、IoTの導入事例もございます。ぜひ、弊社の実績をご覧ください。

製造業界での支援内容を見る

Share this article